/* ==========================================================================
   Core — hoja de estilos
   Identidad: naranja #FF6A2B · tinta #18212B · blanco cálido #FAF9F6 · menta #6CE9C0
   Mulish para titulares, DejaVu Sans para lectura.

   1. Tokens y base        5. Secciones y encabezados   9. Contacto
   2. Navegación           6. Tarjetas (Qué hacemos)   10. Pie de página
   3. Botones              7. Valores y respaldo       11. Páginas legales
   4. Cabecera en video    8. Nosotros                 12. Responsive e impresión
   ========================================================================== */

/* 1. Tokens y base ---------------------------------------------------------- */
/* Fuentes locales recortadas a los caracteres del español: Mulish (titulares) y DejaVu Sans (lectura) */
@font-face { font-family: 'Mulish'; src: url('Mulish-Regular-latin.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Mulish'; src: url('Mulish-Bold-latin.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'DejaVu Sans'; src: url('DejaVuSans-latin.woff2') format('woff2'); font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122, U+2190-2197, U+2212; }
:root {
  --orange: #FF6A2B;
  --ink: #18212B;
  --paper: #FAF9F6;
  --mint: #6CE9C0;
  --muted: #57616A;
  --muted-dark: #C5CBCB;
  --line: #E4E2DC;
  --line-strong: #D8D6D0;
  --sand: #F0EEE8;
  --font-head: 'Mulish', 'DejaVu Sans', 'Segoe UI', sans-serif;
  --font-body: 'DejaVu Sans', 'Segoe UI', sans-serif;
  --header-h: 76px;
  --toolbar-h: 72px;
  --gutter: 40px;
  --section-y: 112px;
  --head-gap: 56px;   /* espacio entre el encabezado de sección y su contenido */
  --grid-gap: 24px;   /* separación única entre columnas */
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1px); /* cabecera + su borde inferior */ }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font: 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
h2, h3 { text-wrap: balance; }
.wrap { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 60; top: -60px; left: 16px; padding: 10px 16px; border-radius: 8px; color: var(--paper); background: var(--ink); font-weight: 700; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); }

/* 2. Navegación ------------------------------------------------------------- */
.scroll-progress { position: fixed; z-index: 50; inset: 0 0 auto; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: left; }
.site-header { position: fixed; z-index: 40; inset: 0 0 auto; background: #FAF9F6f2; border-bottom: 1px solid #18212b14; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 24px #18212b12; }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; }
.core-logo { width: 135px; height: 40px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 32px; font: 600 14px var(--font-head); }
.nav-links > a:not(.nav-cta) { position: relative; padding: 6px 0; }
.nav-links > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--orange); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 30px; color: var(--paper); background: var(--ink); transition: background .2s ease; }
.nav-cta:hover { background: #2a3542; }
.menu-toggle { display: none; }

/* 3. Botones ---------------------------------------------------------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 30px; font: 700 14px var(--font-head); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--orange); }
.button-primary:hover { background: #ff7c44; }
.button-outline { color: var(--ink); border-color: #18212b40; background: transparent; }
.button-outline:hover { border-color: var(--ink); }

/* 4. Cabecera en video ------------------------------------------------------ */
.core-video-header { position: relative; margin-top: var(--header-h); background: var(--ink); }
.film-frame { position: relative; height: clamp(420px, calc(100svh - var(--header-h) - var(--toolbar-h)), 820px); overflow: hidden; }
.core-film { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.film-toolbar { height: var(--toolbar-h); border-bottom: 1px solid var(--line); background: var(--paper); }
.film-toolbar-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.film-position { display: flex; align-items: baseline; gap: 14px; font: 600 13px var(--font-head); }
.film-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.film-dots { display: flex; gap: 10px; }
.film-dots button { width: 40px; height: 28px; padding: 12px 0; border: 0; background: transparent; cursor: pointer; }
.film-dots button::after { display: block; height: 4px; border-radius: 4px; background: var(--line-strong); content: ""; transition: background .3s ease; }
.film-dots button[aria-pressed="true"]::after { background: var(--orange); }
.film-controls { display: flex; justify-content: flex-end; gap: 8px; }
.film-controls button { min-width: 44px; height: 44px; padding: 0 16px; border: 1px solid #18212b40; border-radius: 30px; color: var(--ink); background: transparent; font: 700 14px var(--font-head); cursor: pointer; transition: background .2s ease, color .2s ease; }
.film-controls button:hover { color: var(--paper); background: var(--ink); }
.film-controls .film-prev, .film-controls .film-next { width: 44px; padding: 0; }
.film-controls .film-pause { min-width: 112px; }

/* Mensaje principal, debajo del video */
.intro { padding: 80px 0; border-bottom: 1px solid var(--line); background: #fff; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--grid-gap) 64px; }
.intro h1 { font: 800 clamp(40px, 4.6vw, 68px)/1.04 var(--font-head); letter-spacing: -.045em; }
.intro h1 span { color: var(--orange); }
.intro-side .lead { margin-bottom: 28px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5. Secciones y encabezados ------------------------------------------------ */
.section { padding: var(--section-y) 0; }
.section-light { background: var(--paper); }
.section-white { background: #fff; }
.section-dark { color: var(--paper); background: var(--ink); }
/* Todas las secciones comparten el mismo encabezado: título a la izquierda, texto de apoyo a la derecha */
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--grid-gap) 64px; margin-bottom: var(--head-gap); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font: 700 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.section-dark .eyebrow { color: var(--muted-dark); }
.section h2 { font: 800 clamp(34px, 3.6vw, 52px)/1.1 var(--font-head); letter-spacing: -.04em; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.7; }
.section-dark .lead { color: var(--muted-dark); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }

/* 6. Tarjetas (Qué hacemos) ------------------------------------------------- */
/* Subgrid: ícono, título, texto y lista quedan a la misma altura en las tres tarjetas */
.card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 36px 32px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px #18212b12; transform: translateY(-4px); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 14px; color: var(--ink); font: 800 20px var(--font-head); }
.icon-orange { background: var(--orange); }
.icon-mint { background: var(--mint); }
.icon-sand { background: var(--sand); }
.card h3 { margin-bottom: 12px; font: 700 22px/1.3 var(--font-head); letter-spacing: -.02em; }
.card > p { margin-bottom: 28px; color: var(--muted); font-size: 15px; }
/* La lista se apoya en la base de la tarjeta: las tres listas quedan a la misma altura */
.card-list { display: grid; align-content: start; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.card-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; }
.card-list li::before { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 6.5px; border-radius: 50%; background: var(--orange); content: ""; }
/* Siglas de documentos: código en una columna fija y descripción al lado */
.card-list-codes li::before { display: none; }
.card-list-codes b { min-width: 46px; padding: 1px 0; border-radius: 6px; color: var(--ink); background: #ff6a2b24; font: 800 12px/1.6 var(--font-head); letter-spacing: .04em; text-align: center; }

/* 7. Valores y respaldo ----------------------------------------------------- */
.value { padding-top: 28px; border-top: 1px solid #ffffff38; }
.value-tag { color: var(--mint); font: 700 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.value h3 { margin: 20px 0 14px; font: 700 26px/1.25 var(--font-head); letter-spacing: -.025em; }
.value p { color: var(--muted-dark); font-size: 15px; }
/* Respaldo: cuatro pilares sobre el encabezado */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--section-y); padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.pillars li { display: grid; gap: 6px; padding: 0 28px; border-left: 1px solid var(--line); }
.pillars li:first-child { padding-left: 0; border-left: 0; }
.pillars b { font: 700 24px/1.2 var(--font-head); letter-spacing: -.02em; }
.pillars span { color: var(--muted); font-size: 14px; line-height: 1.5; }
/* Respaldo: sello destacado a la izquierda, grupos de logos a la derecha */
.trust-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: stretch; gap: var(--grid-gap); }
.seal-card { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 40px #18212b0d; }
.seal-card img { width: 100%; max-width: 320px; height: auto; }
.seal-card p { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }
.seal-card strong { color: var(--ink); }
.logo-groups { display: grid; align-content: space-between; gap: 36px; }
.logo-group h3 { margin-bottom: 16px; font: 700 18px var(--font-head); letter-spacing: -.01em; }
.logo-grid { display: grid; gap: 12px; }
.logo-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logo-grid li { height: 100px; display: grid; place-items: center; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease); }
.logo-grid li:hover { border-color: var(--line-strong); box-shadow: 0 14px 30px #18212b10; transform: translateY(-3px); }
.logo-grid img { width: auto; max-width: 100%; height: 34px; object-fit: contain; }
.logo-grid .logo-tall { height: 64px; }
.logo-grid .logo-reniec { height: 46px; }

/* 8. Nosotros (bloque de dos columnas) -------------------------------------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 64px; }
.split-copy h2 { margin-bottom: 24px; }
.split-copy > p:not(.eyebrow) { max-width: 540px; margin-bottom: 16px; color: var(--muted); font-size: 16px; }
.section-dark .split-copy > p:not(.eyebrow) { color: var(--muted-dark); }
.facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #ffffff26; }
.facts dt { margin-bottom: 4px; color: var(--muted-dark); font: 700 11px var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.facts dd { font: 700 16px var(--font-head); }
/* Nosotros: bloque más ancho que el resto, video protagonista y texto compacto a la izquierda */
.split-wide { width: min(1680px, calc(100% - var(--gutter) * 2)); grid-template-columns: minmax(300px, 3fr) minmax(0, 9fr); gap: 72px; }
.split-wide .product-frame { margin-right: calc(var(--gutter) * -.5); } /* el video se acerca un poco al borde derecho */
.split-wide .split-copy h2 { margin-bottom: 20px; font-size: clamp(30px, 2.6vw, 40px); }
.split-wide .split-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.7; }
.split-wide .facts { gap: 32px; margin-top: 24px; padding-top: 20px; }
.product-frame { overflow: hidden; border: 1px solid #ffffff26; border-radius: var(--radius); background: #F6F6F2; box-shadow: 0 30px 60px #00000040; aspect-ratio: 16 / 9; }
.product-frame video { width: 100%; height: 100%; object-fit: cover; }

/* 9. Contacto --------------------------------------------------------------- */
.split-contact { align-items: stretch; }
.split-contact .split-copy { display: flex; flex-direction: column; justify-content: center; }
/* Oficinas: tres tarjetas iguales debajo del mensaje */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); margin-top: var(--grid-gap); }
.address { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; }
.address-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: var(--mint); font-size: 20px; }
.address > div { display: flex; flex-direction: column; align-items: flex-start; }
.address strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; font: 700 16px var(--font-head); }
.address small { padding: 2px 9px; border-radius: 20px; color: var(--muted); background: var(--sand); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.address a { margin-top: auto; }
.address p { margin-bottom: 12px; }
.address p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.address a { display: inline-block; font: 700 13px var(--font-head); border-bottom: 2px solid var(--orange); }
.contact-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--sand); }
.contact-card h3 { margin: 0 0 20px; font: 800 34px/1.12 var(--font-head); letter-spacing: -.03em; }
.contact-card { align-items: stretch; }
.contact-card-label { margin-bottom: 12px; color: var(--muted); font: 700 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
/* Canales de contacto: filas completas clicables */
.channels { display: grid; gap: 10px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease); }
.channel:hover { border-color: var(--ink); box-shadow: 0 12px 26px #18212b14; transform: translateY(-2px); }
.channel > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.channel strong { font: 700 15px var(--font-head); }
.channel small { overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.channel-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; }
.channel-icon svg { width: 22px; height: 22px; fill: currentColor; }
.channel-wa { color: #fff; background: #25D366; }
.channel-mail { color: var(--ink); background: var(--orange); }
.channel-arrow { color: var(--muted); font-weight: 700; }

/* 10. Pie de página --------------------------------------------------------- */
.footer { color: var(--paper); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); padding: 72px 0 48px; border-bottom: 1px solid #ffffff1e; }
.footer-about p { margin-top: 20px; color: var(--muted-dark); font-size: 14px; }
.footer-badge { display: inline-flex; margin-top: 20px; padding: 8px 14px; border: 1px solid #ffffff35; border-radius: 30px; font: 700 12px var(--font-head); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h4 { margin-bottom: 6px; font: 700 14px var(--font-head); }
.footer-col a, .footer-col p { color: var(--muted-dark); font-size: 14px; }
.footer-col a:hover { color: var(--paper); }
.footer-legal { padding: 24px 0; border-bottom: 1px solid #ffffff1e; }
.footer-legal p { max-width: 900px; color: var(--muted-dark); font-size: 12px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--muted-dark); font-size: 12px; }
/* Botón flotante de WhatsApp (Soporte Core), siempre visible */
.whatsapp-float { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #25D366; box-shadow: 0 10px 28px #25d36659; transition: transform .25s var(--ease), box-shadow .25s ease; }
.whatsapp-float:hover { box-shadow: 0 14px 34px #25d36680; transform: translateY(-3px) scale(1.05); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Apariciones suaves al bajar (las activa core.js; sin JS o con movimiento reducido todo se ve normal) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* 11. Páginas legales ------------------------------------------------------ */
.legal-hero { margin-top: var(--header-h); padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--muted); font: 600 13px var(--font-head); }
.breadcrumb a:hover { color: var(--ink); }
.legal-hero h1 { max-width: 820px; margin-bottom: 20px; font: 800 clamp(36px, 4.2vw, 60px)/1.06 var(--font-head); letter-spacing: -.045em; }
.legal-hero .lead { max-width: 720px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal-meta span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font: 600 12px var(--font-head); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); align-items: start; gap: 64px; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 32px); }
.legal-nav h2 { margin-bottom: 14px; color: var(--muted); font: 700 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.legal-nav ul { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-nav a { display: block; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; color: var(--muted); font: 600 14px var(--font-head); transition: color .2s ease, border-color .2s ease; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { border-color: var(--orange); color: var(--ink); }
.legal-doc { max-width: 780px; }
.legal-summary { margin-bottom: 48px; padding: 28px 32px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 16px; background: #fff; }
.legal-summary h2 { margin-bottom: 8px; font: 700 18px var(--font-head); }
.legal-summary p, .legal-doc section p, .legal-doc section li { color: var(--muted); }
.legal-doc section + section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-doc section h2 { margin-bottom: 12px; font: 700 22px/1.3 var(--font-head); letter-spacing: -.02em; }
.legal-doc section p + p, .legal-doc section p + ul, .legal-doc section ul + p { margin-top: 12px; }
.legal-doc section strong { color: var(--ink); }
.legal-doc section p a { border-bottom: 2px solid var(--orange); color: var(--ink); font-weight: 700; }
.legal-list { display: grid; gap: 10px; }
.legal-list li { display: flex; align-items: flex-start; gap: 12px; }
.legal-list li::before { width: 6px; height: 16px; flex: 0 0 6px; margin-top: 5px; border-radius: 3px; background: var(--orange); content: ""; }
.provider { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.provider div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.provider dt { margin-bottom: 4px; color: var(--muted); font: 700 11px var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.provider dd { font: 700 14px/1.45 var(--font-head); }
.legal-contact { margin-top: 56px; padding: 36px; border-radius: var(--radius); color: var(--paper); background: var(--ink); }
.legal-contact h2 { margin-bottom: 10px; font: 700 22px var(--font-head); }
.legal-contact p { margin-bottom: 24px; color: var(--muted-dark); }
.legal-contact p a { border-bottom: 2px solid var(--mint); color: var(--paper); font-weight: 700; }
/* Formulario del Libro de Reclamaciones */
.complaint-form { display: grid; gap: 20px; margin-top: 24px; }
.complaint-form fieldset { min-width: 0; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.complaint-form legend { padding: 0 8px; font: 700 16px var(--font-head); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; align-content: start; gap: 6px; font: 700 13px var(--font-head); }
.field-full { grid-column: 1 / -1; }
.field small { color: var(--muted); font: 400 12px var(--font-body); }
.complaint-form input:not([type="radio"]):not([type="checkbox"]), .complaint-form select, .complaint-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: var(--paper); font: 15px var(--font-body); }
.complaint-form textarea { min-height: 130px; resize: vertical; }
.complaint-form input:focus, .complaint-form select:focus, .complaint-form textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px #ff6a2b33; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { display: flex; flex: 1 1 220px; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--orange); background: #ff6a2b10; }
.choice span { display: grid; gap: 2px; font: 700 15px var(--font-head); }
.choice small { color: var(--muted); font: 400 13px/1.5 var(--font-body); }
.choice input, .check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--orange); }
.check { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 14px; cursor: pointer; }
.check a { border-bottom: 2px solid var(--orange); color: var(--ink); font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions p { color: var(--muted); font-size: 13px; }
.complaint-result { margin-top: 24px; padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--mint); border-radius: 16px; background: #fff; }
.complaint-result h2 { margin-bottom: 8px; font: 700 22px var(--font-head); }
.complaint-result > p { color: var(--muted); }
.result-code { display: inline-block; margin: 12px 0 8px; padding: 6px 14px; border-radius: 8px; background: var(--sand); font: 800 18px var(--font-head); letter-spacing: .04em; }
.result-data { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 20px; margin: 16px 0 24px; font-size: 14px; }
.result-data dt { color: var(--muted); font-weight: 700; }
.result-data dd { overflow-wrap: anywhere; white-space: pre-line; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Modo una sección por pantalla (lo activa core.js en escritorio): cada sección ocupa la pantalla
   bajo la cabecera con su contenido centrado, y los espacios se compactan para que todo quepa */
html.fullpage { --section-y: 56px; --head-gap: 32px; }
html.fullpage main > section:not(.core-video-header) { min-height: calc(100vh - var(--header-h) - 1px); display: flex; flex-direction: column; justify-content: center; }
html.fullpage .intro { padding-block: 56px; }
html.fullpage .pillars { margin-bottom: 40px; padding-bottom: 28px; }
html.fullpage .pillars b { font-size: 22px; }
html.fullpage .seal-card { gap: 18px; padding: 28px; }
html.fullpage .seal-card img { max-width: 270px; }
html.fullpage .logo-groups { gap: 24px; }
html.fullpage .logo-grid li { height: 84px; }
html.fullpage .card { padding: 30px 28px 28px; }
html.fullpage .card-icon { margin-bottom: 22px; }
html.fullpage .card > p { margin-bottom: 22px; }
html.fullpage .card-list { padding-top: 20px; }
html.fullpage .offices { margin-top: 20px; }
html.fullpage .film-frame { height: calc(100vh - var(--header-h) - var(--toolbar-h)); }
/* Pantallas bajas (laptops): un poco más compacto para que cada sección entre completa */
@media (max-height: 820px) {
  html.fullpage { --section-y: 36px; --head-gap: 24px; }
  html.fullpage .section h2 { font-size: clamp(30px, 2.9vw, 40px); }
  html.fullpage .lead { font-size: 16px; }
  html.fullpage .pillars { margin-bottom: 28px; padding-bottom: 20px; }
  html.fullpage .seal-card img { max-width: 220px; }
  html.fullpage .logo-grid li { height: 72px; }
  html.fullpage .logo-groups { gap: 18px; }
  html.fullpage .card { padding: 24px 24px 22px; }
  html.fullpage .card-icon { width: 44px; height: 44px; margin-bottom: 16px; }
  html.fullpage .card h3 { margin-bottom: 8px; font-size: 20px; }
  html.fullpage .card > p { margin-bottom: 16px; font-size: 14px; }
  html.fullpage .card-list { gap: 8px; padding-top: 16px; }
}

/* 12. Responsive e impresión ------------------------------------------------ */
@media (max-width: 1000px) {
  :root { --section-y: 88px; --head-gap: 44px; }
  .nav-links { gap: 20px; }
  .section-head, .intro-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .intro { padding: 64px 0; }
  .lead { max-width: 640px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 30px 28px 28px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .offices { grid-template-columns: minmax(0, 1fr); }
  .trust-layout { grid-template-columns: minmax(0, 1fr); }
  .seal-card { flex-direction: row; align-items: center; }
  .seal-card img { max-width: 260px; }
  .seal-card p { padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
  .logo-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-wide .product-frame { margin-right: 0; }
  .split-wide .split-copy > p:not(.eyebrow) { max-width: 680px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .legal-nav a { margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px; }
  .legal-nav a[aria-current="page"] { background: #ff6a2b14; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 68px; --head-gap: 36px; --header-h: 68px; }
  .menu-toggle { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #18212b30; border-radius: 12px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .nav-links.is-open { display: flex; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links > a:not(.nav-cta)::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 14px; border-bottom: 0; }
  .core-logo { width: 118px; height: 35px; }
  /* El video trae los textos dentro de la imagen: se muestra completo en 16:9 */
  .film-frame { height: auto; aspect-ratio: 16 / 9; }
  .core-film { object-position: center; }
  .film-toolbar { height: auto; }
  .film-toolbar-inner { grid-template-columns: 1fr auto; padding: 12px 0; row-gap: 10px; }
  .film-dots { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .film-controls .film-pause { min-width: 96px; }
  .section-head h2, .split-copy h2 { font-size: clamp(30px, 8.4vw, 38px); }
  .intro { padding: 48px 0; }
  .intro h1 { font-size: clamp(38px, 11vw, 48px); }
  .intro-actions .button { flex: 1 1 auto; }
  .lead { font-size: 16px; }
  .value h3 { font-size: 23px; }
  .seal-card { flex-direction: column; align-items: stretch; padding: 28px 24px; }
  .seal-card p { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .logo-grid-4, .logo-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid-5 li:last-child { grid-column: 1 / -1; }
  .logo-grid li { height: 84px; padding: 0 14px; }
  .logo-grid img { height: 28px; }
  .logo-grid .logo-tall { height: 54px; }
  .logo-grid .logo-reniec { height: 38px; }
  .pillars { padding-bottom: 36px; }
  .pillars li { padding: 0 16px; }
  .pillars b { font-size: 20px; }
  .facts { gap: 28px; }
  .contact-card { padding: 32px 28px; }
  .contact-card h3 { font-size: 28px; }
  .address { padding: 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 56px 0 36px; }
  .footer-legal { padding: 24px 0; border-bottom: 1px solid #ffffff1e; }
.footer-legal p { max-width: 900px; color: var(--muted-dark); font-size: 12px; line-height: 1.7; }
.footer-bottom { flex-direction: column; gap: 6px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .legal-hero { padding: 48px 0 40px; }
  .legal-summary, .legal-contact, .complaint-result { padding: 24px; }
  .provider, .form-grid, .result-data { grid-template-columns: minmax(0, 1fr); }
  .result-data { gap: 2px; }
  .result-data dd { margin-bottom: 10px; }
  .complaint-form fieldset { padding: 20px; }
}
/* La constancia del reclamo se imprime sin cabecera, menús ni formulario */
@media print {
  .site-header, .scroll-progress, .footer, .whatsapp-float, .legal-nav, .breadcrumb, .complaint-form, .result-actions, .legal-intro { display: none !important; }
  body, .legal-hero { background: #fff; }
  .legal-hero { margin: 0; padding: 0 0 16px; }
  .legal-layout { display: block; }
  .section { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
