/* =========================================================================
   XS Diseño & Informática — Páginas interiores (plantilla «XS · Página»)
   Se carga DESPUÉS de xs-home.css (tokens, vidrio, botones, header, footer,
   contacto y CF7 viven allí). Todo bajo .xs. Mobile-first 360px → 1920px.
   ========================================================================= */

/* ---------- Hero tipográfico ---------- */
.xs .xs-phero {
  position: relative;
  z-index: 2;
  min-height: 82vh;
  min-height: 82svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
@supports (overflow: clip) { .xs .xs-phero { overflow: clip; } }
.xs .xs-phero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 110, 34, .45), transparent);
  pointer-events: none;
}
.xs .xs-phero__halo {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(242, 110, 34, .14), transparent 70%),
    radial-gradient(45% 45% at 10% 90%, rgba(226, 182, 74, .06), transparent 70%);
}
.xs .xs-phero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
  mask: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
}
.xs .xs-phero__inner { position: relative; width: 100%; display: grid; gap: clamp(40px, 6vw, 72px); align-items: end; }
@media (min-width: 1024px) {
  .xs .xs-phero--split .xs-phero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
}
.xs .xs-phero__title--long { font-size: clamp(2.25rem, 4.7vw, 4.5rem); max-width: 20ch; }
.xs .xs-phero__copy { min-width: 0; }
.xs .xs-phero__title {
  font-size: clamp(2.5rem, 5.6vw, 5.4rem);
  font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
  max-width: 18ch;
  text-wrap: balance;
  overflow-wrap: break-word; hyphens: manual;
  background: linear-gradient(180deg, #FFFFFF 25%, rgba(242, 242, 242, .66) 115%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.xs .xs-phero__title .xs-grad-text { -webkit-text-fill-color: transparent; }
.xs .xs-phero__lead {
  margin-top: clamp(18px, 2.4vw, 28px);
  max-width: 58ch;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem);
  color: var(--text-2);
  text-wrap: pretty;
}
.xs .xs-phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 38px); }
@media (max-width: 400px) {
  .xs .xs-phero__ctas { flex-direction: column; }
  .xs .xs-phero__ctas .xs-btn__meta { display: none; }
}
.xs .xs-phero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(26px, 3.4vw, 40px); }
.xs .xs-phero__facts li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .03);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.xs .xs-phero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 10px var(--orange-2); flex: none; }
.xs .xs-phero__facts li:nth-child(3n+2)::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* panel lateral decorativo (opcional) */
.xs .xs-phero__panel { position: relative; min-width: 0; }
.xs .xs-panel {
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), rgba(22, 25, 34, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(242, 110, 34, .4);
}
.xs .xs-panel__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--glass-border); }
.xs .xs-panel__bar .xs-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xs .xs-panel__body { position: relative; z-index: 2; padding: clamp(18px, 2.2vw, 26px); display: grid; gap: 12px; }
.xs .xs-panel__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  font-size: 15px; color: var(--text-2);
}
.xs .xs-panel__row strong { color: var(--text); font-weight: 600; }
.xs .xs-panel__row small { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.xs .xs-panel__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--orange-2); box-shadow: 0 0 10px var(--orange-2); }
.xs .xs-panel__dot--gold { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.xs .xs-panel__dot--ok { background: #8BD17C; box-shadow: 0 0 10px rgba(139, 209, 124, .7); }
@media (max-width: 1023px) { .xs .xs-phero__panel { max-width: 560px; } }

/* entrada del hero sin retrasar el LCP: opacidad mínima + desplazamiento */
@keyframes xs-rise { from { opacity: .01; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.xs-js .xs .xs-phero__copy > *,
.xs-js .xs .xs-phero__panel { animation: xs-rise 1s var(--ease) both; }
.xs-js .xs .xs-phero__copy > :nth-child(2) { animation-delay: .06s; }
.xs-js .xs .xs-phero__copy > :nth-child(3) { animation-delay: .12s; }
.xs-js .xs .xs-phero__copy > :nth-child(4) { animation-delay: .2s; }
.xs-js .xs .xs-phero__copy > :nth-child(5) { animation-delay: .28s; }
.xs-js .xs .xs-phero__copy > :nth-child(n+6) { animation-delay: .36s; }
.xs-js .xs .xs-phero__panel { animation-delay: .3s; }

/* hero bajo (legales) */
.xs .xs-phero--legal { min-height: 0; padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(36px, 5vw, 56px); }
.xs .xs-phero--legal .xs-phero__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.xs .xs-phero--legal .xs-phero__lead { max-width: 60ch; }
.xs .xs-phero--legal + .xs-section { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- Migas de pan ---------- */
.xs .xs-crumbs { margin-bottom: clamp(18px, 2.6vw, 28px); }
.xs .xs-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.xs .xs-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.xs .xs-crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .22); }
.xs .xs-crumbs a { color: var(--text-2); transition: color .3s; }
.xs .xs-crumbs a:hover { color: var(--orange-2); }
.xs .xs-crumbs [aria-current="page"] { color: var(--orange-2); }

/* ---------- Secciones ---------- */
.xs .xs-page .xs-section { padding-block: clamp(72px, 10vw, 144px); }
.xs .xs-section--tight { padding-block: clamp(56px, 7vw, 96px) !important; }
.xs .xs-section--line { border-top: 1px solid var(--line); }
.xs .xs-section > .xs-container { position: relative; z-index: 2; }
.xs .xs-shead { max-width: 880px; margin-bottom: clamp(36px, 5vw, 64px); }
.xs .xs-shead--center { margin-inline: auto; text-align: center; }
.xs .xs-shead--center .xs-lead { margin-inline: auto; }
.xs .xs-shead .xs-h2 { font-size: clamp(2rem, 4.4vw, 4rem); }

/* intro: frase grande + texto */
.xs .xs-intro { display: grid; gap: 32px clamp(40px, 6vw, 96px); }
@media (min-width: 1024px) { .xs .xs-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.xs .xs-intro__big {
  font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15;
  text-wrap: balance;
}
.xs .xs-intro__big em { font-style: normal; color: var(--orange-2); }

/* prosa larga */
.xs .xs-prose { color: var(--text-2); max-width: 68ch; }
.xs .xs-prose > * + * { margin-top: 1em; }
.xs .xs-prose h3 { color: var(--text); font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-top: 1.8em; }
.xs .xs-prose h3:first-child { margin-top: 0; }
.xs .xs-prose strong { color: var(--text); font-weight: 600; }
.xs .xs-prose a:not(.xs-btn) { color: var(--text); text-decoration: underline; text-decoration-color: rgba(242, 110, 34, .6); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.xs .xs-prose a:not(.xs-btn):hover { color: var(--orange-2); text-decoration-color: var(--orange-2); }
.xs .xs-prose ul:not(.xs-checks):not(.xs-pills) { display: grid; gap: 10px; }
.xs .xs-prose ul:not(.xs-checks):not(.xs-pills) li { position: relative; padding-left: 26px; }
.xs .xs-prose ul:not(.xs-checks):not(.xs-pills) li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 10px; height: 2px; border-radius: 2px; background: var(--grad); }
.xs .xs-prose ol { display: grid; gap: 10px; counter-reset: xs-ol; }
.xs .xs-prose ol li { position: relative; padding-left: 36px; counter-increment: xs-ol; }
.xs .xs-prose ol li::before { content: counter(xs-ol, decimal-leading-zero); position: absolute; left: 0; top: .15em; font-family: var(--mono); font-size: 12px; color: var(--gold); }
.xs .xs-prose .xs-checks li { font-size: 13px; }

/* ---------- Split: imagen fija + texto ---------- */
.xs .xs-split { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 1024px) {
  .xs .xs-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 6vw, 104px); align-items: start; }
  .xs .xs-split--rev .xs-split__media { order: 2; }
  .xs .xs-split__media { position: sticky; top: calc(var(--header-h) + 40px); }
}
.xs .xs-split__media { min-width: 0; }
.xs .xs-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
@media (min-width: 1024px) { .xs .xs-frame { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 120px); } }
.xs .xs-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transform: scale(1.04); transition: transform 1.6s var(--ease), opacity .8s; }
.xs .xs-frame.xs-duo > img { filter: grayscale(1) contrast(1.15) brightness(.8); }
.xs .xs-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(14, 15, 18, .9) 6%, rgba(14, 15, 18, .2) 50%, rgba(14, 15, 18, .05));
}
.xs .xs-frame:hover > img { transform: scale(1.08); opacity: .78; }
.xs .xs-frame__cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
  background: rgba(14, 15, 18, .55); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.xs .xs-frame__cap::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 10px var(--orange-2); flex: none; }
.xs .xs-frame--shot > img { object-position: center top; filter: none; opacity: .9; }
.xs .xs-frame.xs-frame--shot { aspect-ratio: 16 / 10; max-height: none; }
.xs .xs-split__body { min-width: 0; display: grid; gap: clamp(48px, 7vw, 96px); }
.xs .xs-block { scroll-margin-top: calc(var(--header-h) + 32px); }
.xs .xs-block > .xs-label { display: block; margin-bottom: 14px; color: var(--gold); }
.xs .xs-block .xs-h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); margin-bottom: clamp(18px, 2vw, 26px); }
.xs .xs-block__panel { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); }
.xs .xs-block__panel > * { position: relative; z-index: 2; }

/* ---------- Cita mono ---------- */
.xs .xs-quote { position: relative; z-index: 2; max-width: 980px; margin-inline: auto; text-align: center; }
.xs .xs-quote blockquote { margin: 0; }
.xs .xs-quote p {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.3vw, 1.9rem);
  font-weight: 500; line-height: 1.45; letter-spacing: -.01em;
  color: var(--text);
  text-wrap: balance;
}
.xs .xs-quote p::before { content: "“"; display: block; margin-bottom: 12px; font-size: 2.6em; line-height: .6; color: var(--gold); font-family: var(--font); }
.xs .xs-quote figcaption, .xs .xs-quote cite { display: block; margin-top: 22px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.xs .xs-quote mark { background: none; color: var(--orange-2); }

/* ---------- Bento de ventajas ---------- */
.xs .xs-feats { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .xs .xs-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .xs .xs-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xs .xs-feats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xs .xs-feat--wide { grid-column: span 2; }
}
.xs .xs-feats > li { min-width: 0; }
.xs .xs-feat {
  height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)), rgba(22, 25, 34, .35);
}
.xs .xs-feat > * { position: relative; z-index: 2; }
.xs .xs-feat:hover { border-color: rgba(255, 255, 255, .16); }
.xs .xs-feat__title { margin-top: 8px; font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.xs .xs-feat__text { color: var(--text-2); font-size: .95em; }
.xs .xs-feat__num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.xs .xs-feat:hover .xs-icon svg * { animation: xs-redraw-h 1.1s var(--ease-io) both; }

/* ---------- Proceso ---------- */
.xs .xs-process { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: xs-proc; }
@media (min-width: 640px) { .xs .xs-process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .xs .xs-process { grid-template-columns: repeat(4, minmax(0, 1fr)); } .xs .xs-process--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xs .xs-process > li { position: relative; min-width: 0; padding: 26px 24px 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)); counter-increment: xs-proc; }
.xs .xs-process > li::before {
  content: counter(xs-proc, decimal-leading-zero);
  display: block; margin-bottom: 18px;
  font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 600; letter-spacing: -.05em; line-height: .9;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #F26E22, rgba(217, 77, 32, .2));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.xs .xs-process > li::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--orange-2), transparent);
  opacity: .6;
}
.xs .xs-process h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 8px; }
.xs .xs-process p { color: var(--text-2); font-size: .95em; }

/* ---------- FAQ (details/summary, accesible sin JS) ---------- */
.xs .xs-faq { display: grid; gap: 32px clamp(40px, 6vw, 96px); }
@media (min-width: 1024px) {
  .xs .xs-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .xs .xs-faq__head { position: sticky; top: calc(var(--header-h) + 40px); }
}
.xs .xs-faq__head .xs-h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.xs .xs-faq__list { border-top: 1px solid var(--line); }
.xs .xs-faq__item { border-bottom: 1px solid var(--line); }
.xs .xs-faq__item summary {
  list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.35;
  transition: color .3s;
}
.xs .xs-faq__item summary::-webkit-details-marker { display: none; }
.xs .xs-faq__item summary::marker { content: ""; }
.xs .xs-faq__item summary:hover { color: var(--orange-2); }
.xs .xs-faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; margin-top: -2px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(var(--orange-2), var(--orange-2)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--orange-2), var(--orange-2)) center / 1.5px 11px no-repeat;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.xs .xs-faq__item[open] summary::after { transform: rotate(45deg); border-color: rgba(242, 110, 34, .5); background-color: rgba(242, 110, 34, .1); }
.xs .xs-faq__a { padding: 0 48px 24px 4px; color: var(--text-2); max-width: 70ch; }
.xs .xs-faq__a > * + * { margin-top: .8em; }
.xs .xs-faq__a a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(242, 110, 34, .6); text-underline-offset: 3px; }
.xs .xs-faq__item[open] .xs-faq__a { animation: xs-faqin .5s var(--ease) both; }
@keyframes xs-faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Servicios relacionados ---------- */
.xs .xs-related { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .xs .xs-related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .xs .xs-related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xs .xs-related > li { min-width: 0; }
.xs .xs-rel {
  height: 100%; min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 24px; border-radius: var(--radius-lg);
  transition: border-color .5s, box-shadow .5s;
}
.xs .xs-rel > * { position: relative; z-index: 2; }
.xs .xs-rel__title { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.xs .xs-rel__text { color: var(--text-2); font-size: .92em; }
.xs .xs-rel__go { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.xs .xs-rel__go::after { content: "→"; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-border); color: var(--text); transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s; }
.xs .xs-rel:hover { border-color: rgba(242, 110, 34, .35); box-shadow: 0 0 60px -20px rgba(242, 110, 34, .3); }
.xs .xs-rel:hover .xs-rel__go::after { transform: rotate(-45deg); background: var(--orange-2); border-color: transparent; color: #0E0F12; }

/* ---------- Utilidades ---------- */
.xs .xs-mt { margin-top: clamp(28px, 4vw, 48px); }
.xs .xs-cols { display: grid; gap: 24px clamp(32px, 5vw, 72px); }
@media (min-width: 1024px) { .xs .xs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .xs .xs-cols > .xs-prose { max-width: none; } }
.xs .xs-feat__text a, .xs .xs-rel__text a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(242, 110, 34, .6); text-underline-offset: 3px; position: relative; z-index: 5; }
.xs .xs-ctaband .xs-tag { margin-bottom: 14px; }
@media (max-width: 639px) { .xs .xs-split__media .xs-vr__stage { max-width: 340px; } }

/* ---------- Píldoras (zonas, tecnologías…) ---------- */
.xs .xs-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.xs .xs-pills li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .03); font-size: 14px; color: var(--text-2); }

/* ---------- Nota / aviso ---------- */
.xs .xs-note { position: relative; padding: 18px 20px 18px 22px; border-radius: 16px; border: 1px solid rgba(226, 182, 74, .3); background: rgba(226, 182, 74, .05); color: var(--text-2); font-size: .95em; }
.xs .xs-note strong { color: var(--gold); font-weight: 600; }

/* ---------- Banda CTA ---------- */
.xs .xs-ctaband {
  position: relative; z-index: 2;
  display: grid; gap: 24px; align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px; overflow: hidden;
  background: radial-gradient(80% 120% at 100% 0%, rgba(242, 110, 34, .2), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.xs .xs-ctaband > * { position: relative; z-index: 2; }
@media (min-width: 900px) { .xs .xs-ctaband { grid-template-columns: minmax(0, 1fr) auto; } }
.xs .xs-ctaband .xs-h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.xs .xs-ctaband__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Portfolio (casos) ---------- */
.xs .xs-case + .xs-case { margin-top: clamp(64px, 9vw, 120px); }
.xs .xs-case__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.xs .xs-case__meta span::before { content: "— "; color: var(--orange-2); }

/* ---------- Legales ---------- */
.xs .xs-legal { max-width: 78ch; color: var(--text-2); font-size: clamp(1rem, .96rem + .15vw, 1.075rem); }
.xs .xs-legal > * + * { margin-top: 1em; }
.xs .xs-legal h2 { color: var(--text); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.xs .xs-legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.xs .xs-legal h3 { color: var(--text); font-size: 1.1rem; font-weight: 600; margin-top: 1.6em; }
.xs .xs-legal strong { color: var(--text); }
.xs .xs-legal a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(242, 110, 34, .6); text-underline-offset: 3px; overflow-wrap: anywhere; }
.xs .xs-legal ul, .xs .xs-legal ol { display: grid; gap: 8px; padding-left: 0; }
.xs .xs-legal ul li { position: relative; padding-left: 22px; }
.xs .xs-legal ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--orange-2); border-radius: 2px; }
.xs .xs-legal dl { display: grid; gap: 0; border-top: 1px solid var(--line); }
.xs .xs-legal dl > div { display: grid; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .xs .xs-legal dl > div { grid-template-columns: 200px 1fr; } }
.xs .xs-legal dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.xs .xs-legal dd { margin: 0; color: var(--text); }
.xs .xs-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.xs .xs-legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.xs .xs-legal th, .xs .xs-legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.xs .xs-legal th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: rgba(255, 255, 255, .03); }
.xs .xs-legal tr:last-child td { border-bottom: 0; }
.xs .xs-legal code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--text); overflow-wrap: anywhere; }
.xs .xs-legal td:nth-child(3) { min-width: 220px; }
.xs .xs-legal__updated { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- 404 ---------- */
.xs .xs-404 .xs-phero__title { font-size: clamp(3rem, 9vw, 8rem); }
.xs .xs-404__code { font-family: var(--mono); color: var(--orange-2); }

/* ---------- Movimiento reducido ---------- */
html.xs-reduced .xs .xs-phero__copy > *,
html.xs-reduced .xs .xs-phero__panel { animation: none !important; }
html.xs-reduced .xs .xs-frame > img { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .xs .xs-phero__copy > *, .xs .xs-phero__panel { animation: none !important; }
}
@media print {
  .xs .xs-phero { min-height: 0; padding-top: 24px; }
  .xs .xs-split__media, .xs .xs-ctaband, .xs .xs-contact { display: none !important; }
  .xs .xs-phero__title { color: #000; -webkit-text-fill-color: #000; background: none; }
}

/* anclas internas (#remoto, #marketing…) por debajo de la cabecera fija */
.xs .xs-page [id] { scroll-margin-top: calc(var(--header-h) + 32px); }

/* botonera fuera del hero */
.xs .xs-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 400px) { .xs .xs-ctas { flex-direction: column; } }
/* hero compacto (contacto, 404) */
.xs .xs-phero--compact { min-height: 0; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(40px, 6vw, 72px); }
.xs .xs-phero--compact + .xs-section { padding-top: clamp(48px, 6vw, 88px); }
.xs .xs-ctaband .xs-h2 + * { margin-top: 16px; }
.xs .xs-frame--shot > img { object-position: left top; }
.xs .xs-prose .xs-checks li { font-size: 14px; }

/* ---------- Recorridos 360 (partial _tours): miniatura → iframe de Google Maps al pulsar ---------- */
.xs .xs-tours { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .xs .xs-tours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xs .xs-tours__cell--feat { grid-column: 1 / -1; }
}
.xs .xs-tour { display: flex; flex-direction: column; height: 100%; margin: 0; border-radius: var(--radius-lg); overflow: hidden; transition: border-color .5s, box-shadow .5s; }
.xs .xs-tour:hover, .xs .xs-tour:focus-within { border-color: rgba(242, 110, 34, .35); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(242, 110, 34, .3); }
.xs .xs-tour__media { position: relative; z-index: 0; aspect-ratio: 16 / 10; margin: 8px 8px 0; border-radius: 16px; overflow: hidden; isolation: isolate; background: var(--bg-2); }
@media (min-width: 640px) { .xs .xs-tours__cell--feat .xs-tour__media { aspect-ratio: 21 / 9; } }
@media (max-width: 639px) { .xs .xs-tour.is-live .xs-tour__media { aspect-ratio: 4 / 5; } }
.xs .xs-tour__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05) brightness(.75); transform: scale(1.02); transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.xs .xs-tour__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(242, 110, 34, .35), rgba(217, 77, 32, .15)); mix-blend-mode: multiply; transition: opacity .8s var(--ease); }
.xs .xs-tour:hover .xs-tour__media img, .xs .xs-tour:focus-within .xs-tour__media img { transform: scale(1.07); filter: none; }
.xs .xs-tour:hover .xs-tour__media::after, .xs .xs-tour:focus-within .xs-tour__media::after { opacity: 0; }
.xs .xs-tour.is-live .xs-tour__media::after { opacity: 0; }
.xs .xs-tour__info { display: grid; gap: 4px; padding: 18px 22px 22px; }
.xs .xs-tour__title { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.xs .xs-tours__cell--feat .xs-tour__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.xs .xs-tours__note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 70ch; }
html.xs-reduced .xs .xs-tour__media img { transform: none !important; }

/* Filas del panel del hero de tour-360 convertidas en selector de recorridos */
.xs button.xs-panel__row { width: 100%; font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: border-color .3s, background-color .3s; }
.xs button.xs-panel__row:hover { border-color: rgba(242, 110, 34, .35); background: rgba(242, 110, 34, .06); }
.xs button.xs-panel__row.is-active { border-color: rgba(242, 110, 34, .55); background: rgba(242, 110, 34, .1); }
.xs button.xs-panel__row:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 2px; }
