:root {
  --bg: #f3f5f8;
  --surface: #e6ebf2;
  --ink: #0d1b2e;
  --muted: #55565c;
  --accent: #0057a4;
  --accent-ink: #ffffff;
  --gris: #737276;
  --m: clamp(16px, 2.4vw, 32px);
  --s-xl: clamp(76px, 15vw, 260px);
  --s-l: clamp(40px, 5.2vw, 84px);
  --s-m: clamp(22px, 2.4vw, 34px);
  --s-b: clamp(16px, 1.15vw, 19px);
  --s-s: 14px;
  --ease: cubic-bezier(.2,.7,.1,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-size: var(--s-b); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h2 { font-size: var(--s-l); font-stretch: 112%; font-weight: 750; letter-spacing: -0.035em; line-height: 0.98; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* botones */
.boton { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 650; border: 2px solid var(--accent); transition: transform .25s var(--ease), background .25s; }
.boton:hover { background: #00468a; transform: translateY(-2px); }
.boton:active { transform: translateY(0) scale(.98); }
.boton-borde { background: transparent; color: var(--accent); min-height: 44px; }
.boton-borde:hover { background: var(--accent); color: #fff; }
.boton-claro { background: #fff; color: var(--accent); border-color: #fff; }
.boton-claro:hover { background: var(--bg); }
.enlace { font-weight: 650; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: color .2s; }
.enlace:hover { color: var(--accent); }

/* barra */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 14px var(--m); background: var(--bg); }
.logo { width: 150px; height: auto; }
.menu { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.menu a { text-decoration: none; font-weight: 550; transition: color .2s; }
.menu a:hover { color: var(--accent); }

/* hero */
.hero { min-height: calc(100svh - 72px); display: grid; grid-template-rows: 1fr auto; padding: 0 var(--m) var(--m); }
.nombre { align-self: center; justify-self: center; display: inline-flex; align-items: baseline; font-size: clamp(110px, 24vw, 420px); font-stretch: 125%; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.glifo { display: inline-block; width: 0.72em; height: 0.72em; margin-right: 0.04em; overflow: hidden; clip-path: inset(0 100% 0 0); animation: obturador 1.1s var(--ease) .2s forwards; }
.glifo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: asienta 1.4s var(--ease) .2s forwards; }
@keyframes obturador { to { clip-path: inset(0 0 0 0); } }
@keyframes asienta { to { transform: scale(1); } }
.hero-pie { display: grid; grid-template-columns: 5fr 7fr; gap: var(--m); align-items: end; }
.hero-pie p { grid-column: 1; max-width: 46ch; font-size: var(--s-b); }
.acciones { justify-self: end; display: flex; gap: 28px; align-items: center; }

/* intro */
.intro { position: relative; height: 185svh; margin-top: var(--s-m); }
.intro-fija { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.intro-fija p { width: min(62vw, 900px); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 600; text-align: center; color: var(--ink); background: var(--bg); padding: 18px 26px; }
.pasa { position: absolute; margin: 0; z-index: 1; }
.pasa img { width: 100%; object-fit: cover; }
.p1 { top: 10svh; left: 6vw; width: 28vw; } .p1 img { aspect-ratio: 4/5; }
.p2 { top: 62svh; right: var(--m); width: 42vw; } .p2 img { aspect-ratio: 16/10; }
.p3 { top: 120svh; left: 26vw; width: 24vw; } .p3 img { aspect-ratio: 1; }

/* escaparate */
.escaparate { position: relative; overflow: hidden; padding: var(--s-xl) 0 var(--s-l) var(--m); }
.pila span { display: block; white-space: nowrap; font-size: clamp(72px, 13vw, 220px); font-stretch: 125%; font-weight: 800; letter-spacing: -0.045em; line-height: 0.88; }
.t45 { color: #6b7a92; } .t100 { color: var(--ink); }
.objeto { position: absolute; top: calc(var(--s-xl) - 60px); right: -2vw; width: 40vw; z-index: 1; transform: rotate(-4deg); }
.hechos { margin: var(--s-m) var(--m) 0 auto; width: min(42vw, 560px); display: grid; gap: 16px; font-size: clamp(17px, 1.3vw, 20px); }

/* familias */
.familias { padding: var(--s-xl) var(--m) 0; }
.familias h2 { text-indent: 3vw; }
.tabla-zona { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--m); margin-top: 72px; align-items: start; }
.tabla-foto { grid-column: 1 / 5; grid-row: 1; margin: 0; align-self: end; } .tabla-foto img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.tabla-nombre { grid-column: 7; grid-row: 1; align-self: start; font-size: var(--s-s); color: var(--muted); }
.tabla { grid-column: 8 / 13; grid-row: 1; list-style: none; margin: 0; padding: 0; align-self: start; }
.tabla li + li { margin-top: 14px; } .tabla li.grupo { margin-top: 40px; }
.tabla a { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 12px; text-decoration: none; font-size: 16px; padding: 6px 10px; margin: 0 -10px; transition: background .2s, transform .25s var(--ease); }
.tabla a span:first-child { color: var(--muted); } .tabla a span:last-child { color: var(--accent); font-weight: 650; }
.tabla a:hover { background: var(--surface); transform: translateX(4px); }

/* herramientas */
.herramientas { margin-top: var(--s-xl); padding: var(--s-l) var(--m); background: var(--surface); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); align-items: center; }
.herr-texto { grid-column: 1 / 7; display: grid; gap: 20px; } .herr-texto p { max-width: 48ch; }
.otras { color: var(--muted); font-size: 15px; } .otras a { color: var(--ink); }
.conversor { grid-column: 8 / 13; display: grid; gap: 14px; }
.conversor label { font-weight: 650; }
.conversor input { font: inherit; font-size: clamp(40px, 5vw, 76px); font-stretch: 112%; font-weight: 750; letter-spacing: -0.03em; padding: 6px 16px; border: 3px solid var(--ink); background: var(--bg); color: var(--ink); width: 100%; }
.conversor output { font-size: clamp(40px, 5vw, 76px); font-stretch: 112%; font-weight: 750; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.atajos { display: flex; flex-wrap: wrap; gap: 10px; }
.atajos button { font: inherit; font-size: 15px; font-weight: 650; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); background: transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.atajos button:hover { background: var(--ink); color: #fff; } .atajos button:active { transform: scale(.96); }

/* empresa */
.empresa { padding: 140px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); }
.datos { grid-column: 1 / 3; display: grid; gap: 20px; align-content: start; font-size: var(--s-s); color: var(--muted); } .datos b { color: var(--ink); }
.bio { grid-column: 3 / 13; font-size: var(--s-m); line-height: 1.22; display: grid; gap: 1.2em; }
.capital { float: left; width: 3.6em; height: 3.6em; object-fit: cover; margin: 0.15em 0.5em 0 0; }
.suave { color: var(--muted); }

/* cifras */
.cifras { padding: var(--s-l) var(--m) var(--s-xl); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); align-items: center; }
.cifras h2 { grid-column: 1 / 6; font-size: clamp(30px, 3.2vw, 52px); } .cifras h2 span { color: var(--muted); }
.libro { grid-column: 7 / 13; margin: 0; display: grid; gap: 20px; }
.libro div { display: grid; grid-template-columns: clamp(170px, 19vw, 320px) 1fr; gap: 24px; align-items: baseline; }
.libro dt { font-size: clamp(56px, 6.5vw, 112px); font-stretch: 112%; font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-align: right; font-variant-numeric: tabular-nums lining-nums; color: var(--accent); }
.libro dd { margin: 0; font-size: 16px; }

/* historia */
.historia { padding: 120px var(--m); background: var(--ink); color: #fff; }
.frase-historia { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; font-weight: 650; letter-spacing: -0.02em; }
.frase-historia span { color: #7b8aa3; transition: color .4s; } .frase-historia span.luz { color: #fff; }
.frase-historia b { font-weight: 650; color: #fff; }

/* faq */
.faq { padding: var(--s-xl) var(--m); overflow-x: clip; }
.faq h2 { font-size: clamp(44px, 5.5vw, 92px); }
.preguntas { margin: 80px 0 0 33%; display: grid; gap: 12px; }
.preguntas details { padding: 12px 24px; margin: 0 -24px; transition: background .25s; }
.preguntas details[open] { background: var(--surface); }
.preguntas summary { list-style: none; cursor: pointer; font-size: clamp(19px, 1.6vw, 24px); display: flex; justify-content: space-between; gap: 24px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-top: 6px; flex: none; transition: transform .3s var(--ease); }
.preguntas details[open] summary::after { transform: rotate(225deg); }
.preguntas details p { margin-top: 12px; max-width: 48ch; font-size: 17px; }

/* contacto */
.contacto { min-height: 100svh; background: var(--accent); color: #fff; padding: var(--m); display: grid; grid-template-rows: auto 1fr auto; }
.contacto-frase { font-size: clamp(19px, 1.5vw, 22px); max-width: 30ch; }
.telefono { align-self: end; margin-bottom: 8vh; font-size: clamp(56px, 14.5vw, 250px); max-width: 100%; font-stretch: 112%; font-weight: 750; letter-spacing: -0.05em; line-height: 0.9; text-decoration: none; white-space: nowrap; transition: color .25s; }
.telefono:hover { color: var(--ink); }
.contacto-pie { display: flex; justify-content: space-between; gap: var(--m); font-size: var(--s-s); flex-wrap: wrap; }

/* pie */
.pie { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: 100svh; padding: var(--m); display: flex; flex-direction: column; }
.pie-arriba { display: flex; justify-content: space-between; gap: var(--m); padding-top: var(--s-l); }
.invita { font-size: clamp(40px, 5vw, 84px); font-stretch: 112%; font-weight: 750; letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 28px; }
.pie-enlaces { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; font-size: 16px; }
.pie-enlaces a, .legal a { text-decoration: none; } .pie-enlaces a:hover, .legal a:hover { text-decoration: underline; }
.legal { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; color: #b9c2d0; padding-bottom: 8px; }
.gigante { font-size: clamp(160px, 30vw, 520px); font-stretch: 125%; font-weight: 800; letter-spacing: -0.05em; line-height: 0.8; white-space: nowrap; color: var(--accent); transform: translateY(28%); margin-bottom: -6vw; }

/* entradas */
.aparece { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.aparece.visto { opacity: 1; transform: none; }

/* móvil */
@media (max-width: 1000px) { .menu { display: none; } .barra .boton-borde { margin-left: auto; } }
@media (max-width: 760px) {
  .menu { display: none; }
  .barra .boton-borde { margin-left: auto; padding: 0 14px; font-size: 14px; }
  .logo { width: 128px; }
  .nombre { font-size: 23vw; max-width: 100%; }
  .hero { overflow: hidden; }
  .hero-pie { grid-template-columns: 1fr; }
  .acciones { justify-self: start; flex-wrap: wrap; }
  .intro { height: 200svh; }
  .intro-fija { align-items: start; padding-top: 34svh; }
  .intro-fija p { width: calc(100vw - 40px); font-size: 22px; }
  .p1 { left: var(--m); width: 64vw; top: 30svh; } .p2 { width: 78vw; top: 90svh; } .p3 { left: var(--m); width: 52vw; top: 145svh; }
  .pila span { font-size: 17vw; }
  .objeto { position: relative; top: auto; right: -8vw; width: 86vw; margin-top: 24px; margin-left: auto; }
  .hechos { width: auto; margin: var(--s-m) var(--m) 0 0; font-size: 17px; }
  .familias h2 { text-indent: 0; }
  .tabla-zona { display: block; margin-top: 48px; }
  .tabla-nombre { display: none; }
  .tabla-foto { width: 60%; margin: 40px 0 0 auto; }
  .tabla a { grid-template-columns: 1fr auto; } .tabla a span:first-child { grid-column: 1 / -1; font-size: 14px; }
  .herramientas, .empresa, .cifras { display: block; }
  .conversor { margin-top: 32px; }
  .datos { display: flex; gap: 16px; margin-top: 32px; font-size: 13px; order: 2; }
  .empresa { display: flex; flex-direction: column-reverse; }
  .bio { font-size: 22px; }
  .capital { width: 110px; height: 110px; }
  .libro { margin-top: 32px; } .libro div { grid-template-columns: 1fr; gap: 4px; } .libro dt { text-align: left; font-size: 15vw; } .libro dd { font-size: 15px; }
  .preguntas { margin: 40px 0 0; }
  .preguntas details { margin: 0 calc(-1 * var(--m)); padding: 12px var(--m); }
  .telefono { font-size: 17vw; white-space: normal; }
  .contacto-pie { flex-direction: column; }
  .pie-arriba { flex-direction: column; }
  .invita { font-size: 10vw; }
  .legal { flex-direction: column; gap: 6px; }
  .gigante { font-size: 40vw; }
}
@media (prefers-reduced-motion: reduce) {
  .glifo, .glifo img { animation: none; clip-path: none; transform: none; }
  .aparece { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
