/* =================================================================
   GRUPO HERMES · Real Estate — iteración 2 (dirección clara)
   Estilos centralizados. Para cambiar el acento de marca en toda la
   web, edita --brand-orange.
   ================================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff") format("woff");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff") format("woff");
  font-weight: 400 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff") format("woff");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

/* Retícula: contenedor de 1320 px a 12 columnas; secciones alternan marfil,
   blanco y piedra; la fotografía rompe el margen derecho en la portada. */
:root {
  /* Marca ------------------------------------------------------- */
  /* Naranja corporativo. Se usa en titulares grandes, botones y detalles
     gráficos. Sobre marfil da 2,69:1, así que el texto pequeño va en grafito
     y conserva el naranja en el elemento decorativo asociado. */
  --brand-orange: #FF6B01;
  --brand-orange-tint: #FFF0E5;   /* fondo de opción seleccionada */
  --on-orange: #292C29;           /* texto sobre naranja: 4,95:1 (blanco: 2,86:1) */
  /* Dorado de identidad: solo para «GRUPO» en el nombre de marca. */
  --brand-gold: #B08D57;

  /* Superficies y texto ---------------------------------------- */
  --ivory: #FAF8F4;
  --white: #FFFFFF;
  --stone: #F0EBE3;
  --text: #292C29;
  --text-strong: #1C1E1C;          /* botón principal al pasar el cursor */
  --text-2: #666760;
  --line: #DDD6CB;
  --field: #8F8A80;               /* borde de campos: 3,4:1 sobre blanco */
  --error: #B3261E;

  /* Tipografía -------------------------------------------------- */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Ritmo -------------------------------------------------------- */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --section: clamp(88px, 11vw, 160px);
  --header-h: 84px;
  --radius: 2px;

  /* Movimiento --------------------------------------------------- */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms;
  --t-reveal: 550ms;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (max-width: 599px) { body { font-size: 17px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--brand-orange); color: var(--on-orange); }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--radius); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--ivory); padding: 10px 16px; font-size: 15px; text-decoration: none; transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }

/* -------------------------------------------------------------
   Tipografía
   ------------------------------------------------------------- */
.display, .h1, .h2, .h3, .pillar-title, .step-title {
  font-family: var(--serif); font-weight: 500; color: var(--text);
  letter-spacing: -.01em; font-feature-settings: "kern", "liga", "lnum";
}
.display em, .h1 em, .h2 em, .h3 em, .footer-tagline em {
  font-style: italic; font-weight: 500; color: var(--brand-orange); letter-spacing: -.005em;
}
.display { font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.5rem); line-height: 1.02; }
.display .l { display: block; }
.h1 { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 5.25rem); line-height: 1.02; text-wrap: balance; }
.h2 { font-size: clamp(2.2rem, 1.5rem + 2.3vw, 3.6rem); line-height: 1.06; text-wrap: balance; }
.h3 { font-size: clamp(1.7rem, 1.4rem + .8vw, 2.1rem); line-height: 1.12; }
@media (max-width: 599px) {
  .display, .h1, .h2 { font-weight: 600; }
  .display em, .h1 em, .h2 em { font-weight: 600; }
}

.eyebrow, .kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before, .kicker::before { content: ""; width: 28px; height: 1px; background: var(--brand-orange); flex: none; }
.lead { font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 30em; }
.body-lg { font-size: clamp(1.06rem, 1rem + .2vw, 1.15rem); line-height: 1.7; color: var(--text-2); max-width: 34em; }

/* -------------------------------------------------------------
   Logotipo provisional (composición tipográfica)
   ------------------------------------------------------------- */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; line-height: 1; flex: none; }
.wordmark-top { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: var(--brand-gold); padding-left: .15em; }
.wordmark-main { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text); margin-right: -.3em; }
.wordmark-rule { width: 44px; height: 1px; background: var(--brand-orange); margin: 12px 0 9px; }
.wordmark-sub { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .44em; text-transform: uppercase; color: var(--text-2); }
.wordmark-lg { gap: 6px; }
.wordmark-lg .wordmark-top { font-size: 12px; }
.wordmark-lg .wordmark-main { font-size: 42px; }

/* -------------------------------------------------------------
   Botones y enlaces
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn-lg { min-height: 54px; padding: 0 28px; }
/* Acción principal: grafito con texto marfil (13,3:1). El naranja queda para
   la flecha al pasar el cursor, sin convertir el botón en un bloque de color. */
.btn-primary { background: var(--text); border-color: var(--text); color: var(--ivory); }
.btn-primary .arrow { color: rgba(250, 248, 244, .72); transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.btn-primary:hover { background: var(--text-strong); border-color: var(--text-strong); }
.btn-primary:hover .arrow { color: var(--brand-orange); }
.btn[disabled] { cursor: progress; opacity: .9; }

.arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(3px); }
.btn-link:hover > .arrow { transform: translateY(2px); }
.btn-back:hover > .arrow { transform: translateX(-3px); }

.btn-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none;
  background: linear-gradient(var(--brand-orange), var(--brand-orange)) left calc(100% - 10px) / 0 1px no-repeat,
              linear-gradient(var(--line), var(--line)) left calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size 250ms var(--ease);
}
.btn-link:hover { background-size: 100% 1px, 100% 1px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px;
  background: none; border: 0; color: var(--text-2); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.btn-back:hover { color: var(--text); }

/* -------------------------------------------------------------
   Cabecera
   ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: var(--ivory); border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), background-color 250ms var(--ease);
}
.site-header.is-scrolled, .no-hero .site-header { border-bottom-color: var(--line); }
/* El desenfoque va en una capa propia: aplicado a la cabecera, convertiría a
   .site-header en el bloque contenedor del menú móvil (position: fixed) y el
   menú quedaría encerrado en la altura de la cabecera al hacer scroll. */
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: transparent; }
  .site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: transparent; transition: background-color 250ms var(--ease);
  }
  .site-header.is-scrolled::before { background: rgba(250, 248, 244, .92); backdrop-filter: blur(10px); }
}
body.menu-open .site-header, body.menu-open .site-header.is-scrolled { background: var(--ivory); }
html:not(.js) .site-header { position: absolute; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; gap: 44px; }
.site-nav ul a {
  position: relative; font-size: 16px; color: var(--text); text-decoration: none; padding: 8px 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brand-orange);
  transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease);
}
.site-nav ul a:hover::after { transform: scaleX(1); }

.menu-toggle { display: none; }

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .wordmark-main { font-size: 23px; }
  .wordmark-top { font-size: 9px; }

  .menu-toggle {
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 12px;
    background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  }
  .menu-toggle-icon { position: relative; width: 22px; height: 12px; }
  .menu-toggle-icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--text); transition: transform 250ms var(--ease), top 250ms var(--ease); }
  .menu-toggle-icon span:first-child { top: 2px; }
  .menu-toggle-icon span:last-child { top: 10px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { top: 6px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { top: 6px; transform: rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--ivory); border-top: 1px solid var(--line); overflow-y: auto;
  }
  .js .site-nav { visibility: hidden; opacity: 0; transition: opacity 250ms var(--ease), visibility 0s linear 250ms; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity 250ms var(--ease); }
  html:not(.js) .site-nav, html:not(.js) .menu-toggle { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; padding: 22px 0; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1.1; }
  .site-nav ul a::after { display: none; }
  body.menu-open { overflow: hidden; }
}

/* -------------------------------------------------------------
   Fotografía
   ------------------------------------------------------------- */
.photo { position: relative; overflow: hidden; background: var(--stone); max-width: 100%; }
.photo::before { /* fondo de reserva mientras carga o si la imagen falla */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(41, 44, 41, .045) 22px 23px);
}
.photo picture { display: block; position: relative; width: 100%; height: 100%; }
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo img.is-broken { visibility: hidden; }
/* Esquinas de las tres fotografías (portada, franja y bloque «Grupo Hermes») */
.hero-media, .band, .marca-media { border-radius: 12px; overflow: hidden; }

/* -------------------------------------------------------------
   B · Primera pantalla
   ------------------------------------------------------------- */
.hero { padding: calc(var(--header-h) + clamp(32px, 6vw, 80px)) 0 clamp(64px, 8vw, 120px); }
.hero-grid { display: grid; gap: 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; margin-top: 8px; }
.hero-media { aspect-ratio: 4 / 3; width: 100%; max-width: 640px; }

/* Retícula de portada: 55 % texto, 45 % imagen dentro del contenedor común.
   La altura la marcan el contenido y sus márgenes; la foto, 4:3, no supera
   los 540 px de ancho. */
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
  .hero .display { font-size: clamp(3.25rem, .5rem + 4.6vw, 5.25rem); }
  .hero-media { max-width: 540px; justify-self: end; }
}
@media (max-width: 599px) {
  .hero-copy { gap: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-link { align-self: flex-start; }
}

/* -------------------------------------------------------------
   Secciones
   ------------------------------------------------------------- */
.section { padding-block: var(--section); }
.kicker { margin-bottom: 24px; }
.h2 + .body-lg { margin-top: 24px; }

/* C · Propuesta de valor — fondo blanco */
.enfoque { background: var(--white); }
.enfoque-head { display: grid; gap: 32px; }
.enfoque-intro .body-lg { max-width: 30em; }
@media (min-width: 960px) {
  .enfoque-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
}
.pillars { display: grid; gap: 0; margin-top: clamp(56px, 7vw, 96px); }
.pillar { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 10px; padding: 28px 0 32px; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar-num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.35rem; line-height: 1.5; color: var(--text); }
.pillar-title { font-size: clamp(1.55rem, 1.3rem + .7vw, 1.95rem); line-height: 1.15; }
.pillar p { color: var(--text-2); font-size: 17px; max-width: 30em; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
  .pillar { display: flex; flex-direction: column; gap: 14px; padding: 32px 0 0; }
  .pillar:last-child { border-bottom: 0; }
  .pillar-num { margin-bottom: 8px; }
}
.band { margin-top: clamp(64px, 8vw, 112px); aspect-ratio: 1891 / 831; }
@media (max-width: 767px) { .band { aspect-ratio: 3 / 2; } } /* recorte móvil propio: mesa y terraza */

/* D · Proceso — fondo marfil */
.proceso-grid { display: grid; gap: 56px; }
.steps { border-top: 1px solid var(--text); }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; color: var(--text-2); font-feature-settings: "lnum"; padding-top: 2px; }
.step-body { display: grid; gap: 10px; }
.step-title { font-size: clamp(1.5rem, 1.3rem + .7vw, 1.95rem); line-height: 1.15; }
.step p { color: var(--text-2); max-width: 32em; }
.proceso-cta { margin-top: 48px; }
@media (min-width: 1024px) {
  .proceso-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 120px); align-items: start; }
  .proceso-aside { position: sticky; top: calc(var(--header-h) + 40px); }
  .proceso-main { padding-top: 6px; }
  .step { grid-template-columns: 96px minmax(0, 1fr); padding: 40px 0 44px; }
  .step-num { font-size: 2.3rem; }
}

/* E · Marca — fondo piedra */
.marca { background: var(--stone); }
.marca-grid { display: grid; gap: 48px; }
.marca-media { aspect-ratio: 1122 / 1402; width: 100%; max-width: 520px; }
.marca .h1 { margin-bottom: 28px; }
.values { margin-top: 44px; border-top: 1px solid var(--text); }
.values > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.values dt { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.values dd { color: var(--text-2); font-size: 16px; }
@media (min-width: 1024px) {
  .marca-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 8vw, 128px); align-items: center; }
}

/* F · Contacto — fondo marfil, panel piedra */
.contacto-grid { display: grid; gap: 48px; }
.next { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.next-title { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.next ol { counter-reset: n; display: grid; gap: 14px; }
.next li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; color: var(--text-2); font-size: 17px; }
.next li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.direct { margin-top: 32px; font-size: 17px; color: var(--text-2); }
.direct a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1px solid var(--brand-orange); margin-left: 6px; transition: color var(--t-fast); }
.direct a:hover { border-bottom-width: 2px; }
@media (min-width: 1024px) {
  .contacto-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 112px); align-items: start; }
  .contacto-intro { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* Formulario -------------------------------------------------- */
.form-panel { background: var(--stone); padding: clamp(24px, 4vw, 56px); }
@media (max-width: 599px) { .form-panel { margin-inline: calc(var(--gutter) * -1); padding: 32px var(--gutter) 36px; } }

.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.stepper li { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 2px solid var(--line); font-size: 15px; color: var(--text-2); min-width: 0; transition: border-color 300ms var(--ease), color 300ms var(--ease); }
.stepper-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--field); border-radius: 50%; font-size: 13px; font-weight: 600; background: var(--white); transition: background-color 300ms var(--ease), border-color 300ms var(--ease); }
.stepper-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.is-current { border-top-color: var(--brand-orange); color: var(--text); font-weight: 600; }
.stepper li.is-current .stepper-n { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--on-orange); }
.stepper li.is-done { border-top-color: var(--text); color: var(--text); }
.stepper li.is-done .stepper-n { background: var(--text); border-color: var(--text); color: var(--ivory); }
@media (max-width: 479px) {
  .stepper { display: flex; }
  .stepper li { flex: 0 0 auto; padding-right: 8px; }
  .stepper li.is-current { flex: 1 1 auto; }
  .stepper li:not(.is-current) .stepper-t { display: none; }
  .stepper-t { overflow: visible; }
}
.form-note { font-size: 15px; color: var(--text-2); margin-bottom: 28px; }
html:not(.js) .stepper { display: none; }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 26px; }
.js .lead-form .form-step { display: none; }
.js .lead-form[data-current="1"] .form-step[data-step="1"],
.js .lead-form[data-current="2"] .form-step[data-step="2"],
.js .lead-form[data-current="3"] .form-step[data-step="3"] { display: grid; }
html:not(.js) .form-step + .form-step { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.field[hidden] { display: none; }
html:not(.js) [data-next], html:not(.js) [data-prev] { display: none; }

.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field-row { display: grid; gap: 26px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.label { font-size: 16px; font-weight: 600; color: var(--text); }
.req { color: var(--text); margin-left: 2px; }
.opt { color: var(--text-2); font-weight: 400; }
.hint { font-size: 15px; color: var(--text-2); }

.input {
  width: 100%; min-height: 54px; padding: 13px 16px;
  background: var(--white); color: var(--text); border: 1px solid var(--field); border-radius: var(--radius);
  font-family: var(--sans); font-size: 17px; line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  appearance: none;
}
.input:hover { border-color: var(--text-2); }
.input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.input:disabled { background: var(--stone); color: var(--text-2); border-color: var(--line); cursor: not-allowed; }
.textarea { min-height: 120px; resize: vertical; }
.input-suffix { position: relative; width: 220px; max-width: 100%; }
.inline-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.check-inline { display: inline-grid; grid-template-columns: 22px auto; gap: 10px; align-items: center; color: var(--text); }
.check-inline input { margin: 0; }
.select { position: relative; max-width: 360px; }
.select select { padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.input-suffix .input { padding-right: 52px; }
.input-suffix span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-size: 16px; pointer-events: none; }
.field.has-error .input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--field); border-radius: var(--radius); background: var(--white);
  font-size: 16px; color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.chip:hover span { border-color: var(--text-2); }
.chip input:checked + span { border-color: var(--brand-orange); box-shadow: inset 0 0 0 1px var(--brand-orange); background: var(--brand-orange-tint); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.field.has-error .chip span { border-color: var(--error); }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.check input {
  appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--field); border-radius: var(--radius);
  background: var(--white); display: grid; place-content: center; cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast);
}
.check input::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--on-orange); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--brand-orange); border-color: var(--brand-orange); }
.check input:checked::after { opacity: 1; }
.check a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--brand-orange); }
.check a:hover { text-decoration-thickness: 2px; }
.field.has-error .check input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

.error { font-size: 15px; font-weight: 600; color: var(--error); }
.error:empty { display: none; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { border-left: 3px solid var(--error); background: var(--white); color: var(--text); padding: 14px 16px; font-size: 16px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-actions-split { justify-content: space-between; flex-wrap: wrap-reverse; }
@media (max-width: 599px) {
  .form-actions .btn { width: 100%; }
  .form-actions-split .btn-back { width: 100%; justify-content: center; }
}

.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(41, 44, 41, .25); border-top-color: currentColor; border-radius: 50%; animation: spin 700ms linear infinite; }
[data-submit].is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: grid; gap: 16px; padding: clamp(16px, 3vw, 32px) 0; outline: none; }
.form-success[hidden] { display: none; }
.form-success p { color: var(--text-2); max-width: 32em; }
.success-mark { width: 52px; height: 52px; border: 1.5px solid var(--brand-orange); border-radius: 50%; position: relative; margin-bottom: 8px; background: var(--white); }
.success-mark::after { content: ""; position: absolute; left: 17px; top: 18px; width: 16px; height: 8px; border: 2px solid var(--text); border-top: 0; border-right: 0; transform: rotate(-45deg); }

/* Valorador -------------------------------------------------- */
.vform [hidden] { display: none !important; }
.vprogress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.vprogress span { height: 3px; background: var(--line); transition: background-color 300ms var(--ease); }
.vprogress span.is-done { background: var(--text); }
.vprogress span.is-current { background: var(--brand-orange); }
.vprogress-label { margin: 12px 0 26px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
html:not(.js) .vprogress, html:not(.js) .vprogress-label, html:not(.js) [data-js-only] { display: none; }
.vstep-title { float: none; width: 100%; padding: 0; margin: 0 0 2px; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.15; color: var(--text); }
.js .vform .form-step { display: none; }
.js .vform[data-current="1"] .form-step[data-step="1"],
.js .vform[data-current="2"] .form-step[data-step="2"],
.js .vform[data-current="3"] .form-step[data-step="3"],
.js .vform[data-current="4"] .form-step[data-step="4"],
.js .vform[data-current="5"] .form-step[data-step="5"],
.js .vform[data-current="6"] .form-step[data-step="6"] { display: grid; }
.select-full { max-width: none; }
.input-narrow { max-width: 160px; }
.field-short { max-width: 220px; }

/* Desplegable de sugerencias */
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 4px); max-height: 288px; overflow-y: auto;
  margin: 0; padding: 6px 0; list-style: none; background: var(--white);
  border: 1px solid var(--text); border-top: 0; box-shadow: 0 18px 40px -18px rgba(41, 44, 41, .35);
}
.combo-list[hidden] { display: none; }
.combo-list li { padding: 11px 16px; font-size: 16px; color: var(--text); cursor: pointer; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--stone); }
.combo-list li.is-empty { color: var(--text-2); cursor: default; background: none; }
.combo-list mark { background: none; color: inherit; font-weight: 600; }

@media (min-width: 600px) { .field-row-street { grid-template-columns: minmax(0, 1fr) 230px; } }
.numero-pair { display: flex; gap: 8px; }
.numero-pair .input { min-width: 0; }
.btn-ghost { background: var(--white); border-color: var(--text); color: var(--text); min-height: 54px; }
.btn-ghost:hover { background: var(--text); color: var(--ivory); }
.btn-ghost:disabled { opacity: .55; cursor: not-allowed; }
.btn-link-plain {
  justify-self: start; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 15px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--brand-orange);
}
.btn-link-plain:hover { color: var(--text); }
.catastro { display: grid; gap: 22px; }
.js .vform:not(.is-manual) .manual { display: none; }
.manual { display: grid; gap: 22px; }

/* Resultados del Catastro */
.vresults { display: grid; gap: 14px; }
.vresults:empty { display: none; }
.vres-head { font-size: 15px; color: var(--text-2); }
.vres-head strong { color: var(--text); }
.vres-group { display: grid; gap: 8px; }
.vres-group-title { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.vres-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.vres-more { justify-self: start; }
.nums { display: flex; flex-wrap: wrap; gap: 8px; }
.nums button {
  min-width: 52px; min-height: 44px; padding: 0 14px; background: var(--white); border: 1px solid var(--field);
  border-radius: var(--radius); font: inherit; font-size: 16px; color: var(--text); cursor: pointer;
}
.nums button:hover { border-color: var(--text); }
.vselected { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 16px 18px; background: var(--white); border-left: 3px solid var(--brand-orange); font-size: 16px; }
.vselected::before { content: ""; width: 20px; height: 10px; margin-top: 6px; border: 2px solid var(--text); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.vselected small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.vfrom { font-size: 15px; color: var(--text-2); }
.vfrom strong { color: var(--text); }

/* Tarjetas de opción (resultados y estado) */
.cards { display: grid; gap: 10px; }
.card-opt { position: relative; display: block; cursor: pointer; }
.card-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.card-opt-body {
  display: grid; gap: 4px; padding: 16px 18px 16px 52px; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.card-opt-body::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--field); background: var(--white); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.card-opt:hover .card-opt-body { border-color: var(--text-2); }
.card-opt input:checked + .card-opt-body { border-color: var(--brand-orange); box-shadow: inset 0 0 0 1px var(--brand-orange); background: var(--brand-orange-tint); }
.card-opt input:checked + .card-opt-body::before { border-color: var(--text); box-shadow: inset 0 0 0 5px var(--text); }
.card-opt input:focus-visible + .card-opt-body { outline: 2px solid var(--text); outline-offset: 2px; }
.card-opt-title { font-size: 17px; font-weight: 600; color: var(--text); }
.card-opt-desc { font-size: 15px; color: var(--text-2); }
.field.has-error .card-opt-body { border-color: var(--error); }
.vres-list .card-opt-body { padding-top: 13px; padding-bottom: 13px; }
.vres-list .card-opt-body::before { top: 16px; }

/* G · FAQ — fondo blanco */
.faq { background: var(--white); }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 112px); } }
.faq-list { border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem); line-height: 1.25; font-weight: 600;
  transition: color var(--t-fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--text), var(--text)) center / 14px 1.5px no-repeat,
              linear-gradient(var(--text), var(--text)) center / 1.5px 14px no-repeat;
  transition: transform 250ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--brand-orange); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.faq details[open] summary::after { background-image: linear-gradient(var(--brand-orange), var(--brand-orange)), linear-gradient(var(--brand-orange), var(--brand-orange)); }
.faq details p { padding: 0 48px 26px 0; color: var(--text-2); max-width: 36em; }

/* H · Pie — fondo piedra */
.site-footer { background: var(--stone); padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer-top { display: grid; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand { display: grid; gap: 28px; justify-items: start; }
.footer-tagline { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--text); }
.footer-cols { display: grid; gap: 36px; }
@media (min-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; align-items: end; } }
.footer-label { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer-list { display: grid; gap: 6px; font-size: 16px; color: var(--text); }
.footer-list + .footer-label { margin-top: 28px; }
.footer-list a { text-decoration: none; background: linear-gradient(var(--brand-orange), var(--brand-orange)) left bottom / 0 1px no-repeat; transition: background-size 250ms var(--ease); }
.footer-list a:hover { background-size: 100% 1px; }
/* Contacto del pie: teléfono y correo con icono; WhatsApp e Instagram como accesos compactos */
.site-footer .footer-contact-list { gap: 2px; }
.site-footer .footer-contact-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; background-position: 30px calc(100% - 10px); }
.site-footer .footer-contact-link span { overflow-wrap: anywhere; }
.site-footer .footer-icon { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .footer-icon .footer-icon-fill { fill: var(--text); stroke: none; }
.site-footer .footer-brand-icon { flex: none; width: 22px; height: 22px; display: block; }
.site-footer .footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.site-footer .footer-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--field); border-radius: 8px; background: transparent;
  color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.site-footer .footer-chip-icon { padding: 0; width: 44px; }
.site-footer .footer-chip:hover { border-color: var(--text); background: rgba(250, 248, 244, .7); }
.site-footer .footer-chip:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 24px; font-size: 14px; color: var(--text-2); }

/* CTA móvil fijo */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  .js .mobile-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    min-height: 52px; box-shadow: 0 4px 14px rgba(41, 44, 41, .14);
    transform: translateY(calc(100% + 24px)); transition: transform 300ms var(--ease);
  }
  .js .mobile-cta.is-visible { transform: none; }
  .js body.has-mobile-cta .site-footer { padding-bottom: 104px; }
}

/* -------------------------------------------------------------
   Asistente de IA (todas las reglas con prefijo .hc)
   ------------------------------------------------------------- */
.hc { --hc-gap: max(16px, env(safe-area-inset-right, 0px)); --hc-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.hc-ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hc-launcher {
  position: fixed; right: var(--hc-gap); bottom: var(--hc-bottom); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 16px;
  background: var(--text); color: var(--ivory); border: 1px solid var(--text); border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 18px rgba(41, 44, 41, .18);
  transition: background-color var(--t-fast) var(--ease), transform 250ms var(--ease), opacity 250ms var(--ease), bottom 300ms var(--ease);
}
.hc-launcher:hover { background: var(--text-strong); }
.hc-launcher:hover .hc-ico { color: var(--brand-orange); }
.hc-launcher:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.hc-near-form .hc-launcher, body.chat-open .hc-launcher, body.menu-open .hc-launcher { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
@media (max-width: 767px) {
  body.mcta-visible .hc-launcher { bottom: calc(12px + 52px + 12px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 599px) {
  .hc-launcher { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .hc-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
body.chat-open .mobile-cta { display: none !important; }

.hc-panel {
  position: fixed; right: var(--hc-gap); bottom: var(--hc-bottom); z-index: 60;
  width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - var(--header-h) - 40px));
  display: flex; flex-direction: column;
  background: var(--ivory); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(41, 44, 41, .16), 0 2px 8px rgba(41, 44, 41, .06);
  font-family: var(--sans); overflow: hidden;
}
.hc-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hc-panel { transition: opacity 220ms var(--ease), transform 220ms var(--ease); opacity: 0; transform: translateY(10px); }
  .hc-panel.is-open { opacity: 1; transform: none; }
}
@media (max-width: 599px) {
  .hc-panel {
    inset: var(--hc-vt, 0px) 0 auto 0; width: 100%; height: var(--hc-vh, 100dvh); border-radius: 0; border: 0;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
  body.chat-open { overflow: hidden; }
}

.hc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 12px 14px 20px; border-bottom: 1px solid var(--line); background: var(--white); }
.hc-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.15; color: var(--text); outline: none; }
.hc-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.hc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); flex: none; }
.hc-head-actions { display: flex; gap: 2px; }
.hc-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.hc-icon-btn:hover { background: var(--stone); }
.hc-icon-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

.hc-demo { margin: 0; padding: 10px 20px; font-size: 13px; color: var(--text); background: var(--brand-orange-tint); border-bottom: 1px solid var(--line); }

.hc-log { flex: 1 1 auto; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; outline: none; }
.hc-log:focus-visible { box-shadow: inset 0 0 0 2px var(--text); }
.hc-msg { display: flex; flex-direction: column; gap: 8px; max-width: 88%; }
.hc-msg-bot { align-self: flex-start; }
.hc-msg-user { align-self: flex-end; align-items: flex-end; }
.hc-bubble { padding: 10px 14px; border-radius: 14px; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.hc-bubble p + p, .hc-bubble p + ul, .hc-bubble ul + p { margin-top: 8px; }
.hc-bubble ul { list-style: disc; padding-left: 1.1em; }
.hc-msg-bot .hc-bubble { background: var(--white); border: 1px solid var(--line); border-top-left-radius: 4px; }
.hc-msg-user .hc-bubble { background: var(--text); color: var(--ivory); border-top-right-radius: 4px; }
.hc-msg-error .hc-bubble { border-left: 3px solid var(--brand-orange); }

.hc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-action {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--field); background: var(--white); color: var(--text);
  font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.hc-action:hover { border-color: var(--text); }
.hc-action-primary { background: var(--text); border-color: var(--text); color: var(--ivory); }
.hc-action-primary:hover { background: var(--text-strong); }
.hc-action:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.hc-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hc-chip {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--field); border-radius: 999px; background: transparent;
  color: var(--text); font: 400 14.5px/1.2 var(--sans); cursor: pointer; text-align: left;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.hc-chip:hover { border-color: var(--brand-orange); background: var(--white); }
.hc-chip:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.hc-chip:disabled { opacity: .5; cursor: default; }

.hc-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.hc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .hc-dots i { animation: hc-dot 1.2s ease-in-out infinite; }
  .hc-dots i:nth-child(2) { animation-delay: .15s; }
  .hc-dots i:nth-child(3) { animation-delay: .3s; }
}
@keyframes hc-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.hc-compose { border-top: 1px solid var(--line); background: var(--white); padding: 10px 12px 10px 16px; }
.hc-notice { margin: 2px 4px 10px 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.hc-notice[hidden] { display: none; }
.hc-notice a { color: var(--text); text-decoration-color: var(--brand-orange); text-underline-offset: 2px; }
.hc-form { display: flex; align-items: flex-end; gap: 8px; }
.hc-input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; max-height: 132px; padding: 11px 14px; resize: none;
  border: 1px solid var(--field); border-radius: 12px; background: var(--ivory); color: var(--text);
  font: 400 16px/1.4 var(--sans);
}
.hc-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.hc-send {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px;
  background: var(--text); color: var(--ivory); cursor: pointer; transition: background-color var(--t-fast) var(--ease);
}
.hc-send:hover { background: var(--text-strong); }
.hc-send:hover .hc-ico { color: var(--brand-orange); }
.hc-send:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.hc-send:disabled { opacity: .55; cursor: progress; }
.hc-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.hc-hint, .hc-count { font-size: 12.5px; color: var(--text-2); }
.hc-count { font-variant-numeric: tabular-nums; }

/* Asistente guiado (.ga, reutiliza el aspecto de .hc) */
.ga [hidden] { display: none !important; }
.ga-brand-g { color: var(--brand-gold); }
.ga-teaser {
  position: fixed; right: var(--hc-gap); bottom: calc(var(--hc-bottom) + 64px); z-index: 46;
  width: min(320px, calc(100vw - 32px)); padding: 22px 22px 20px; display: grid; gap: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(41, 44, 41, .16), 0 2px 8px rgba(41, 44, 41, .06); font-family: var(--sans);
}
@media (prefers-reduced-motion: no-preference) { .ga-teaser { animation: ga-in 320ms var(--ease) both; } }
@keyframes ga-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ga-teaser-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--text); }
.ga-teaser-text { font-size: 16px; color: var(--text-2); margin-bottom: 10px; }
.ga-teaser-actions { display: grid; gap: 8px; }
.ga-teaser-actions .hc-action { justify-content: center; min-height: 46px; font-size: 15px; }
.ga-teaser-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.ga-teaser-close:hover { background: var(--stone); color: var(--text); }
.hc-near-form .ga-teaser, body.chat-open .ga-teaser, body.menu-open .ga-teaser { display: none !important; }
@media (max-width: 767px) {
  body.mcta-visible .ga-teaser { bottom: calc(12px + 52px + 12px + 64px + env(safe-area-inset-bottom, 0px)); }
}
.ga .hc-suggest.is-answered { display: none; }
.ga-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.ga-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--text); }
.ga-check a { color: var(--text); text-decoration-color: var(--brand-orange); }
.ga .hc-bubble .hc-actions { margin-top: 12px; }
.ga-error { font-size: 13.5px; font-weight: 600; color: var(--error); margin-top: 6px; }
.ga-error:empty { display: none; }
.ga .hc-compose { padding-bottom: 12px; }

/* Páginas legales */
.legal { padding: calc(var(--header-h) + 64px) 0 var(--section); }
.legal-body { max-width: 760px; }
.legal-body h1 { margin-bottom: 16px; }
.legal-body h2 { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; margin: 44px 0 12px; }
.legal-body p, .legal-body li { color: var(--text-2); margin-bottom: 12px; }
.legal-body ul { list-style: disc; padding-left: 1.2em; }
.legal-body ol { list-style: decimal; padding-left: 1.4em; }
.legal-body li > ul { margin-top: 8px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--text); text-decoration-color: var(--brand-orange); }
.legal-meta { color: var(--text-2); font-size: 15px; }
mark.pending { background: #FBE3D4; color: var(--text); padding: 0 4px; }

/* -------------------------------------------------------------
   Animaciones (solo con JS y sin preferencia de movimiento reducido)
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-intro] { animation: intro 560ms var(--ease) both; }
  .js .hero-copy [data-intro]:nth-child(2) { animation-delay: 80ms; }
  .js .hero-copy [data-intro]:nth-child(3) { animation-delay: 160ms; }
  .js .hero-copy [data-intro]:nth-child(4) { animation-delay: 240ms; }
  .js .hero-media[data-intro] { animation: intro-media 600ms var(--ease) 100ms both; }

  .js .reveal:not(.is-visible) { opacity: 0; transform: translateY(14px); }
  .js .reveal { transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
}
@keyframes intro { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes intro-media { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
