/* ==========================================================================
   INFOFIN Activos Fijos · Arrendamiento inmobiliario
   Hoja de estilos unificada (escritorio + móvil)
   Escritorio es la base; móvil se ajusta en @media (max-width: 767px).
   El menú se convierte en hamburguesa por debajo de 960px.
   ========================================================================== */

/* ---------- Tipografía (Inter variable, subconjuntos latinos) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --blue: rgb(20, 97, 255);
  --blue-link: rgb(21, 101, 255);
  --cyan: rgb(1, 177, 254);
  --navy: rgb(0, 45, 114);
  --navy-2: rgb(0, 49, 116);
  --ink: rgb(0, 20, 47);
  --text: rgb(74, 86, 117);
  --muted: rgb(90, 102, 128);
  --muted-2: rgb(122, 133, 156);
  --faint: rgb(152, 162, 184);
  --dark-text: rgb(30, 42, 68);
  --pale: rgb(204, 221, 255);
  --surface: rgb(241, 244, 250);
  --surface-2: rgb(245, 248, 255);
  --green: rgb(12, 122, 67);
  --green-line: rgb(154, 216, 182);
  --white: #fff;
  --max: 1188px;
  --gutter: 24px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--blue-link); }
a:hover { color: var(--navy); }
input, select, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
.icon { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.h2 { font-size: 38px; font-weight: 700; line-height: 43.7px; }

/* Logo (recorte del PNG original) */
.logo { display: block; position: relative; width: 202px; height: 30px; overflow: hidden; flex-shrink: 0; }
.logo img { position: absolute; left: -27px; top: -10px; width: 255px; max-width: none; height: 48.38px; display: block; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 57px; padding: 20px 32px; border: none; cursor: pointer;
  background: var(--navy); color: var(--white); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 1.12px; text-transform: uppercase; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--white); color: var(--navy); }

/* Fondos decorativos (patrón rotado) */
.deco { position: absolute; left: 50%; top: 0; width: 1920px; height: 100%; margin-left: -960px; pointer-events: none; }
.deco__layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.deco__layer img { position: absolute; max-width: none; transform: rotate(33.7deg); }
.deco--hero .deco__layer { width: 1079.908px; height: 953.23px; }
.deco--hero .deco__layer img { left: -38.5px; top: 124.8px; width: 1156px; height: 703px; }
.deco--hero .deco__layer:nth-child(1) { transform: matrix(0, 1, -1, 0, 1712.23, 388); }
.deco--hero .deco__layer:nth-child(2) { transform: matrix(-0.119, 0.993, -0.993, -0.119, 1983.017, -329.515); }
.deco--demo .deco__layer { width: 978.376px; height: 863.609px; }
.deco--demo .deco__layer img { left: -34.9px; top: 113.1px; width: 1047.3px; height: 636.9px; }
.deco--demo .deco__layer:nth-child(1) { transform: matrix(0.988, 0.154, -0.154, 0.988, 247.797, 707.62); }
.deco--demo .deco__layer:nth-child(2) { transform: matrix(0.988, 0.154, -0.154, 0.988, -532.203, 258.62); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: var(--blue); display: flex; align-items: center; }
.site-header__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav { flex: 1; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 2px 31px; }
.nav__links { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; }
.nav__link { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 400; white-space: nowrap; }
.nav__link:hover { color: var(--pale); }
.nav__link--current { font-weight: 700; }
.nav__cta { display: inline-flex; align-items: center; height: 37px; padding: 10px 18px; background: var(--navy); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav__cta:hover { background: var(--white); color: var(--navy); }
.menu-btn { display: none; cursor: pointer; width: 44px; height: 44px; margin: 0 -10px 0 auto; align-items: center; justify-content: center; background: transparent; border: none; color: var(--white); }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .icon--close { display: none; }
.menu-btn[aria-expanded="true"] .icon--open { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }

/* ==========================================================================
   01 Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(163.182deg, rgb(1,180,254) 0.15%, var(--blue) 41.3%, var(--navy-2) 90.7%); padding-bottom: 258px; }
.hero__inner { position: relative; padding-top: 88px; padding-bottom: 88px; display: flex; justify-content: space-between; align-items: center; gap: 37px; flex-wrap: wrap; }
.hero__copy { flex: 0 1 557px; display: flex; flex-direction: column; gap: 15px; }
.hero__eyebrow { font-size: 16px; font-weight: 500; line-height: 18px; color: var(--white); text-transform: uppercase; }
.hero__title { font-size: 52px; font-weight: 700; line-height: 56.16px; color: var(--white); }
.hero__title span { color: var(--navy-2); }
.hero__lead { font-size: 17px; line-height: 27.2px; color: var(--surface); text-wrap: pretty; }
.checklist { list-style: none; padding: 0; max-width: 506px; display: flex; flex-direction: column; gap: 22px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 500; line-height: 16px; color: var(--white); }
.checklist .icon, .setup__list .icon { width: 18px; height: 15px; color: var(--cyan); }
.hero__cta { align-self: flex-start; margin-top: 50px; }

/* Tarjeta contrato */
.contract { flex: 0 1 546px; background: var(--white); border-top: 4px solid var(--cyan); box-shadow: 0 30px 70px rgba(4,21,74,0.35); padding: 32px; display: flex; flex-direction: column; }
.contract__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.contract__label { font-size: 12px; font-weight: 600; line-height: 15px; letter-spacing: .96px; color: var(--muted-2); text-transform: uppercase; }
.contract__id { margin-top: 4px; font-size: 22px; font-weight: 700; line-height: 27px; color: var(--navy); }
.badge { border: 1px solid var(--green-line); padding: 4px 10px; font-size: 12px; font-weight: 700; line-height: 15px; letter-spacing: .72px; color: var(--green); }
.contract__property { margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 20px 0 14px; border-top: 1px solid var(--pale); border-bottom: 1px solid var(--pale); }
.contract__property .icon { width: 28px; height: 28px; color: var(--blue-link); }
.contract__property-name { font-size: 16px; font-weight: 600; line-height: 19px; color: var(--navy); }
.contract__property-meta { margin-top: 4px; font-size: 13px; line-height: 16px; color: var(--muted); }
.contract__lines { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 18px; }
.contract__line { display: flex; justify-content: space-between; gap: 12px; }
.contract__line dt { color: var(--muted); }
.contract__line dd { margin: 0; color: var(--dark-text); }
.contract__total { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pale); border-bottom: 1px solid var(--pale); }
.contract__total span:first-child { font-size: 15px; font-weight: 700; }
.contract__total span:last-child { font-size: 26px; font-weight: 700; }
.contract__next { margin-top: 16px; background: var(--surface); padding: 20px 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 16px; color: var(--muted); }
.contract__next-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.contract__next-row strong { color: var(--blue-link); }
.progress { height: 4px; background: var(--pale); }
.progress span { display: block; width: 33%; height: 100%; background: var(--blue-link); }
.sample-note { margin-top: 12px; font-size: 11px; line-height: 13px; color: var(--faint); text-align: right; }

/* ==========================================================================
   Problemas (tarjeta flotante)
   ========================================================================== */
.problems { position: relative; z-index: 2; width: calc(100% - 48px); max-width: 1322px; margin: -258px auto 0; border-radius: 40px; background: var(--navy-2); padding: 86px clamp(24px, 6.9vw, 91px); display: flex; flex-direction: column; gap: 30px; }
.problems__title { max-width: 1020px; color: var(--white); }
.problems__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 56px; }
.problem { display: flex; gap: 32px; padding: 28px 0; }
.problem:nth-child(n+3) { border-top: 1px solid rgba(204,221,255,0.35); }
.problem .icon { width: 36px; height: 36px; color: var(--cyan); }
.problem__body { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.problem__body h3 { font-size: 19px; font-weight: 700; line-height: 23px; color: var(--white); }
.problem__body p { font-size: 15px; line-height: 24px; color: var(--pale); }
.problems__callout { margin-top: -23px; padding: 27px 24px 28px; background: radial-gradient(781.45px 771.352px at 54.08% -102.84%, var(--blue) 42.58%, rgb(1,180,254) 99.96%); display: flex; justify-content: center; }
.problems__callout p { max-width: 918px; text-align: center; font-size: 30px; font-weight: 400; line-height: 37.8px; color: var(--white); text-wrap: balance; }
.problems__callout strong { color: var(--cyan); font-weight: 700; }

/* ==========================================================================
   02 Cómo funciona
   ========================================================================== */
.how__inner { padding-top: 110px; padding-bottom: 174px; display: flex; flex-direction: column; }
.how__top { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; min-height: 400px; }
.how__copy { flex: 0 1 566px; display: flex; flex-direction: column; gap: 10px; }
.how__copy .h2 { margin-bottom: 6px; color: var(--navy); }
.how__copy .h2 span { color: var(--blue); }
.how__copy p { font-size: 16px; line-height: 25.6px; color: var(--text); }
.how__copy p.strong { font-weight: 600; color: var(--navy); }

.asset-card { flex: 0 1 546px; background: var(--white); box-shadow: 0 24px 50.1px rgba(0,49,116,0.2); }
.asset-card__bar { display: flex; align-items: center; gap: 8px; height: 35px; padding: 10px 16px; background: var(--navy); }
.asset-card__bar .icon { width: 14px; height: 14px; color: var(--cyan); }
.asset-card__bar span { font-size: 12px; font-weight: 500; color: var(--white); white-space: nowrap; }
.asset-card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.asset-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.asset-card__name { font-size: 19px; font-weight: 700; line-height: 23px; }
.asset-card__loc { margin-top: 4px; font-size: 12px; line-height: 15px; color: var(--muted); }
.asset-card .badge { padding: 3px 8px; font-size: 11px; line-height: 13px; letter-spacing: .66px; }
.asset-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.asset-card__stats div { background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.asset-card__stats dt { font-size: 11px; line-height: 13px; color: var(--muted-2); }
.asset-card__stats dd { margin: 0; font-size: 13px; font-weight: 600; line-height: 16px; color: var(--dark-text); }
.asset-card__stats dd.accent { color: var(--blue-link); }
.asset-card__chart-label { font-size: 11px; font-weight: 600; line-height: 13px; letter-spacing: .66px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; }
.bars span { flex: 1; background: var(--pale); }
.bars span:nth-child(4) { background: rgb(126,174,255); }
.bars span:nth-child(n+5) { background: var(--blue-link); }
.asset-card .sample-note { margin-top: 0; font-size: 10px; line-height: 12px; }

.steps__title { margin: 65px 0 25px; font-size: 28px; font-weight: 700; line-height: 28px; color: var(--navy); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 40px 12px; }
.step { display: flex; flex-direction: column; transition: opacity .5s ease; }
.step__n { font-size: 34px; font-weight: 300; line-height: 34px; color: var(--blue-link); font-variant-numeric: tabular-nums; transition: color .5s ease; }
.step__track { position: relative; height: 9px; margin: 10px -12px 24px 0; }
.step__line, .step__fill { position: absolute; left: 4px; right: 0; top: 4px; height: 1px; }
.step__line { background: var(--pale); }
.step__fill { background: var(--blue); transform-origin: left center; transform: scaleX(1); }
.step__dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(20,97,255,0.2); transition: box-shadow .5s ease; }
.step h4 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 18px; color: rgba(20,97,255,0.92); }
.step__desc { max-width: 218px; font-size: 14px; line-height: 22.4px; color: var(--text); }

/* Animación de la línea de tiempo (la activa JS si no hay reduced-motion) */
.steps.is-animating .step { opacity: .35; }
.steps.is-animating .step__fill { transform: scaleX(0); transition: transform 1.6s linear; }
.steps.is-animating .step.is-done,
.steps.is-animating .step.is-active { opacity: 1; }
.steps.is-animating .step.is-done .step__n,
.steps.is-animating .step.is-active .step__n { color: var(--cyan); }
.steps.is-animating .step.is-done .step__fill,
.steps.is-animating .step.is-active .step__fill { transform: scaleX(1); }
.steps.is-animating .step.is-done .step__dot,
.steps.is-animating .step.is-active .step__dot { box-shadow: 0 0 0 6px rgba(1,177,254,0.25), 0 0 16px rgba(1,177,254,0.8); }

/* ==========================================================================
   03 Qué incluye (pestañas en escritorio, acordeón en móvil)
   ========================================================================== */
.features { position: relative; overflow: hidden; background: linear-gradient(142.612deg, rgb(0,85,216) 23.48%, rgb(1,180,254) 136.07%); }
.features__inner { padding-top: 86px; display: flex; flex-direction: column; gap: 26px; }
.features__title { margin: 15px 0 14px; max-width: 1033px; color: var(--white); }

.tabs__list { display: flex; flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--pale); }
.tabs__list::-webkit-scrollbar { display: none; }
.tab { cursor: pointer; flex-shrink: 0; height: 52px; padding: 16px 14px; border: none; border-bottom: 3px solid transparent; background: transparent; color: var(--surface-2); font-size: 15px; font-weight: 600; line-height: 15px; white-space: nowrap; }
.tab:hover { text-decoration: underline; text-underline-offset: 4px; }
.tab[aria-selected="true"] { background: var(--white); color: var(--navy); border-bottom-color: var(--blue-link); }

.acc-btn { display: none; }
.panel { background: var(--white); min-height: 288px; padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; align-items: center; }
.panel[hidden] { display: none; }
.panel__copy { display: flex; flex-direction: column; gap: 18px; }
.panel__copy h3 { font-size: 28px; font-weight: 700; line-height: 33.6px; color: var(--navy); }
.panel__copy ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.panel__copy li { font-size: 16px; line-height: 24px; color: var(--text); }
.panel__sample { background: var(--surface-2); padding: 28px; display: flex; flex-direction: column; gap: 9px; font-variant-numeric: tabular-nums; }
.panel__sample-label { font-size: 12px; font-weight: 600; line-height: 15px; letter-spacing: .96px; text-transform: uppercase; color: var(--cyan); }
.panel__sample-value { font-size: 18px; font-weight: 600; line-height: 26.1px; color: var(--navy); }
.panel__sample-meta { font-size: 14px; line-height: 20px; color: var(--text); }

.extras { display: flex; justify-content: space-between; align-items: flex-end; gap: 39px; flex-wrap: wrap; }
.extras__copy { flex: 0 1 610px; display: flex; flex-direction: column; gap: 5px; padding: 79px 0; }
.extras__head { display: flex; flex-direction: column; gap: 13px; margin-bottom: 18px; }
.eyebrow { font-size: 13px; font-weight: 600; line-height: 13px; letter-spacing: 1.04px; text-transform: uppercase; color: var(--cyan); }
.extras__head h3 { font-size: 30px; font-weight: 700; line-height: 36px; color: var(--white); }
.extras__list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.extras__list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(204,221,255,0.2); font-size: 15px; line-height: 22px; color: var(--white); }
.extras__list li:last-child { border-bottom: none; }
.extras__list .icon { width: 24px; height: 24px; color: var(--cyan); }
.extras__photo { flex: 0 1 491px; height: 514px; position: relative; }
.extras__photo img { position: absolute; left: 20px; bottom: 0; width: calc(100% - 39px); height: 514px; object-fit: cover; object-position: 50% 0%; display: block; }

/* ==========================================================================
   04 Para quién
   ========================================================================== */
.audience__inner { padding-top: 86px; padding-bottom: 86px; display: flex; flex-direction: column; gap: 40px; }
.audience__title { max-width: 1047px; color: var(--navy); }
.audience__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.audience-card { background: var(--surface-2); min-height: 257px; padding: 28px 24px; display: flex; flex-direction: column; }
.audience-card .icon { width: 34px; height: 34px; color: var(--navy); }
.audience-card h3 { margin: 32px 0; font-size: 19px; font-weight: 600; line-height: 19px; color: var(--navy); }
.audience-card p { margin-top: -9px; font-size: 14px; line-height: 22.4px; color: var(--navy); }
.setup { border: 1px solid var(--pale); padding: 44px 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.setup__head { display: flex; flex-direction: column; gap: 10px; }
.setup__head .eyebrow { line-height: 16px; color: var(--blue-link); }
.setup__head h3 { font-size: 34px; font-weight: 700; line-height: 37.4px; color: var(--navy); }
.setup__list { list-style: none; padding: 0; flex: 0 1 675px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.setup__list li { display: flex; gap: 6px; align-items: flex-start; font-size: 15px; line-height: 22.5px; color: var(--text); }
.setup__list .icon { margin-top: 3px; }

/* ==========================================================================
   05 Casos de éxito
   ========================================================================== */
.cases { position: relative; overflow: hidden; background: radial-gradient(2514.053px 2509.226px at -2.66% 143.97%, var(--blue) 0%, rgb(2,29,70) 32.57%, var(--navy) 71.05%, var(--blue) 100%); }
.cases__inner { padding-top: 86px; padding-bottom: 86px; display: flex; flex-direction: column; gap: 28px; }
.cases__title { color: var(--white); }
.cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; padding: 20px 0; }
/* Sin testimonios: auto-fill conserva la columna vacía, así que las viñetas y los logos quedan a la
   izquierda con el mismo ancho que tenían (con auto-fit se estirarían a todo el ancho). */
.cases__grid--sin-testimonios { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.quote { display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { padding: 0 24px; border-left: 3px solid var(--cyan); font-size: 24px; line-height: 36px; color: var(--white); text-wrap: pretty; }
.quote__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 27px; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 18px; color: var(--white); }
.quote__nav { display: flex; align-items: center; gap: 8px; }
.quote__counter { margin-right: 6px; font-size: 13px; color: var(--white); font-variant-numeric: tabular-nums; }
.quote__btn { cursor: pointer; width: 36px; height: 36px; border: 1px solid var(--white); background: transparent; color: var(--white); font-size: 16px; transition: background-color .15s, color .15s; }
.quote__btn:hover { background: var(--white); color: var(--navy); }
.creds { display: flex; flex-direction: column; gap: 28px; }
.creds ul { padding: 0 0 0 18px; font-size: 16px; line-height: 24px; color: var(--white); }
.creds__logos { display: flex; gap: 12px; flex-wrap: wrap; }
.creds__logo { flex: 1; min-width: 160px; height: 88px; background: var(--white); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.creds__logo--oracle img { width: 238px; height: auto; }
.creds__logo--reniecyt span { display: block; width: 207px; height: 88px; background: url('../img/logo-reniecyt.png') 50% 10.402% / 100% 103.905% no-repeat; }

/* ==========================================================================
   06 Demo + footer
   ========================================================================== */
.demo { position: relative; overflow: hidden; background: var(--ink); }
.demo__inner { position: relative; padding-top: 86px; display: flex; justify-content: space-between; align-items: center; gap: 73px; flex-wrap: wrap; }
.demo__copy { flex: 0 1 558px; display: flex; flex-direction: column; }
.demo__title { margin-bottom: 6px; font-size: 40px; font-weight: 700; line-height: 44.8px; letter-spacing: -.4px; color: var(--white); }
.demo__title span { white-space: nowrap; }
.demo__title span + br + span { color: var(--cyan); }
.demo__lead { margin-top: 12px; font-size: 16px; line-height: 27.2px; color: var(--pale); }
.faq__title { margin: 64px 0 13px; font-size: 18px; font-weight: 700; line-height: 22px; color: var(--white); }
.faq { border-top: 1px solid rgba(204,221,255,0.2); }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.18); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 500; line-height: 19px; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--pale); }
.faq summary .icon { width: 18px; height: 18px; color: var(--cyan); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; max-width: 520px; font-size: 15px; line-height: 24px; color: var(--pale); }

.form-card { flex: 0 1 509px; background: var(--white); padding: 47px 36px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.form__head h3, .form-success h3 { font-size: 22px; font-weight: 700; line-height: 27.5px; color: var(--navy); }
.form__head p { font-size: 14px; line-height: 17px; color: var(--navy-2); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 15px; color: var(--muted); }
.field input, .field select { height: 44px; border: 1px solid rgb(211,218,230); border-radius: 0; padding: 0 14px; font-size: 15px; color: var(--dark-text); background: var(--white); }
.field select { padding: 0 26px 0 12px; }
.field input:focus, .field select:focus { border-color: var(--blue-link); outline: none; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.form__note { font-size: 12px; line-height: 15px; color: var(--muted-2); }
.form__submit { align-self: flex-start; }
.form__submit:hover { background: var(--blue-link); color: var(--white); }
.form__submit:active { background: var(--ink); }
.form__submit .br { display: none; }
/* Mientras se envía: main.js fija el ancho y el alto del botón para que no salte al cambiar el texto. */
.form__submit.is-loading, .form__submit.is-loading:hover { gap: 10px; cursor: progress; background: var(--navy); color: var(--white); }
.spinner { width: 16px; height: 16px; flex: none; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 48px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.form-success[hidden], .form[hidden] { display: none; }
/* Campo trampa para bots: fuera de la vista y fuera del acomodo del formulario. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* La casilla de reCAPTCHA mide 304 × 78 px fijos y en celulares de 360 px el formulario solo tiene
   296 px útiles. Se encoge, y su caja ocupa el tamaño ya encogido para no ensanchar la tarjeta. */
@media (max-width: 379px) {
  .g-recaptcha { width: 274px; height: 71px; }
  .g-recaptcha > div { transform: scale(.9); transform-origin: 0 0; }
}
.form-success .icon { width: 44px; height: 44px; color: var(--blue-link); }
.form-success p { margin-bottom: 12px; font-size: 14px; line-height: 22px; color: var(--text); }
.btn-outline { cursor: pointer; background: none; border: 1px solid var(--navy); padding: 12px 20px; font-size: 13px; font-weight: 600; letter-spacing: 1.04px; text-transform: uppercase; color: var(--navy); transition: background-color .15s, color .15s; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.site-footer { position: relative; padding-top: 41px; padding-bottom: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer small { font-size: 12px; line-height: 15px; color: var(--pale); }
.site-footer a { color: var(--pale); }

/* ==========================================================================
   Páginas secundarias: gracias (thank-you.php) y aviso de privacidad
   ========================================================================== */
.pie { background: var(--ink); }
.gracias { position: relative; overflow: hidden; background: linear-gradient(163.182deg, rgb(1,180,254) 0.15%, var(--blue) 41.3%, var(--navy-2) 90.7%); }
.gracias__inner { position: relative; min-height: calc(100vh - var(--header-h) - 110px); padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.gracias__title { font-size: 56px; font-weight: 700; line-height: 60px; color: var(--white); }
.gracias__lead { max-width: 580px; font-size: 18px; line-height: 28.8px; color: var(--surface); text-wrap: pretty; }
.gracias__acciones { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.legal { background: var(--surface-2); }
.legal__inner { max-width: 880px; padding-top: 64px; padding-bottom: 88px; }
.legal__title { margin-bottom: 32px; text-align: center; color: var(--navy); }
.legal__texto { font-size: 16px; line-height: 27px; color: var(--dark-text); overflow-wrap: anywhere; }
.legal__texto strong { color: var(--navy); }
.legal__texto a { color: var(--blue-link); }
@media (max-width: 767px) {
  .gracias__inner { padding-top: 64px; padding-bottom: 64px; }
  .gracias__title { font-size: 40px; line-height: 44px; }
  .gracias__lead { font-size: 16px; line-height: 26px; }
  .gracias__acciones .btn { align-self: stretch; width: 100%; }
  .legal__inner { padding-top: 40px; padding-bottom: 56px; }
}

/* ==========================================================================
   Tablet: menú hamburguesa (< 960px)
   ========================================================================== */
@media (max-width: 959px) {
  .menu-btn { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--navy); padding: 8px 20px 20px; flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: 0 20px 40px rgba(4,21,74,0.35);
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(204,221,255,0.2); font-size: 16px; }
  .nav__links .nav__link:last-child { border-bottom: none; }
  .nav__cta { margin-top: 12px; justify-content: center; height: 48px; background: var(--blue); letter-spacing: 1.12px; text-transform: uppercase; }
}

/* ==========================================================================
   Móvil (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .h2 { font-size: 28px; line-height: 33px; }
  .site-header__inner { gap: 16px; }
  .site-header .logo { transform: scale(.85); transform-origin: left center; }

  /* Hero */
  .hero { padding-bottom: 140px; }
  .hero__inner { padding-top: 40px; padding-bottom: 40px; gap: 40px; }
  .hero__eyebrow { font-size: 13px; line-height: 16px; letter-spacing: .5px; }
  .hero__title { font-size: 36px; line-height: 40px; }
  .hero__lead { font-size: 16px; line-height: 25.6px; }
  .checklist { gap: 16px; }
  .checklist li { font-size: 15px; line-height: 20px; }
  .hero__cta { align-self: stretch; margin-top: 24px; padding: 18px 16px; white-space: normal; }
  .contract { padding: 20px; }
  .contract__property-name { line-height: 23px; }
  .contract__total span:last-child { font-size: 24px; }

  /* Problemas */
  .problems { width: calc(100% - 24px); margin-top: -140px; border-radius: 24px; padding: 44px 20px 20px; gap: 12px; }
  .problem { gap: 16px; padding: 24px 0; }
  .problem + .problem { border-top: 1px solid rgba(204,221,255,0.35); }
  .problem .icon { width: 28px; height: 28px; }
  .problem__body h3 { font-size: 18px; }
  .problems__callout { margin: 8px -8px 0; padding: 24px 20px; }
  .problems__callout p { font-size: 21px; line-height: 28px; }

  /* Cómo funciona */
  .how__inner { padding-top: 64px; padding-bottom: 72px; }
  .how__top { gap: 36px; min-height: 0; }
  .steps__title { margin: 56px 0 28px; font-size: 24px; }
  .steps { gap: 32px 12px; }
  .step__desc { max-width: none; }

  /* Qué incluye: acordeón */
  .features__inner { padding-top: 56px; gap: 20px; }
  .features__title { margin: 0; }
  .tabs__list { display: none; }
  .tabs__items { display: flex; flex-direction: column; gap: 8px; }
  .tabs__item { border: 1px solid rgba(204,221,255,0.5); background: transparent; }
  .tabs__item.is-open { background: var(--white); }
  .acc-btn { cursor: pointer; width: 100%; min-height: 56px; padding: 16px 20px; border: none; background: transparent; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; color: var(--white); font-size: 16px; font-weight: 600; line-height: 20px; }
  .acc-btn .icon { width: 20px; height: 20px; transition: transform .2s; }
  .tabs__item.is-open .acc-btn { color: var(--navy); }
  .tabs__item.is-open .acc-btn .icon { transform: rotate(180deg); }
  .panel { min-height: 0; padding: 0 20px 20px; display: flex; flex-direction: column; align-items: stretch; gap: 20px; border-top: 1px solid var(--pale); }
  .panel__copy { gap: 14px; padding-top: 20px; }
  .panel__copy h3 { font-size: 22px; line-height: 27px; }
  .panel__sample { padding: 20px; }

  .extras__copy { padding: 40px 0 0; }
  .extras__head h3 { font-size: 24px; line-height: 29px; }
  .extras__photo { flex: 1 1 100%; height: 400px; }
  .extras__photo img { left: 0; width: 100%; height: 400px; }

  /* Para quién */
  .audience__inner { padding-top: 56px; padding-bottom: 56px; }
  .audience-card { min-height: 0; padding: 24px 20px; }
  .audience-card h3 { margin: 20px 0; line-height: 23px; }
  .setup { padding: 28px 20px; gap: 24px; }
  .setup__head h3 { font-size: 28px; line-height: 32px; }

  /* Casos */
  .cases__inner { padding-top: 56px; padding-bottom: 56px; }
  .cases__grid { gap: 40px; padding: 8px 0; }
  .quote blockquote { padding: 0 0 0 20px; font-size: 20px; line-height: 30px; }
  .quote__foot { padding: 0 0 0 23px; }
  .creds__logo { flex: 1 1 100%; }

  /* Demo */
  .demo__inner { padding-top: 56px; gap: 40px; }
  .demo__title { font-size: 30px; line-height: 34px; letter-spacing: -.3px; }
  .demo__title span { white-space: normal; }
  .faq__title { margin-top: 40px; }
  .form-card { padding: 28px 20px; }
  .form__submit { align-self: stretch; padding: 18px 16px; white-space: normal; }
  .form__submit .br { display: inline; }
  .site-footer { padding-top: 40px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  /* El indicador de carga sigue girando, más lento: sin movimiento parecería que la página se trabó. */
  .spinner { animation-duration: 2.4s; }
}
