/* 212 Agency Corp — una sola familia (Archivo) en dos anchos; cobalto y papel */
:root {
  --cobalt: #1F33E0; --cobalt-deep: #1626B8; --paper: #F6F7FB; --ink: #0F1430; --haze: #D5D9F5; --sun: #FFC93C; --muted: #4A5070;
  --wide: 'Archivo', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--wide); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
.contenedor { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* Cabecera */
.cabecera { position: absolute; inset: 0 0 auto; z-index: 5; color: #fff; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.marca { white-space: nowrap; font-weight: 800; font-stretch: 75%; font-size: 22px; letter-spacing: 0.01em; text-decoration: none; }
@media (max-width: 560px) { .nav a { display: none; } }
.nav { display: flex; gap: clamp(12px, 3vw, 32px); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-size: 15px; opacity: .88; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.idioma { display: inline-flex; border: 1.5px solid currentColor; border-radius: 999px; overflow: hidden; }
.idioma button { font: inherit; font-size: 13px; font-weight: 600; background: none; color: inherit; border: 0; padding: 4px 11px; cursor: pointer; min-height: 32px; }
.idioma button[aria-pressed="true"] { background: #fff; color: var(--cobalt); }

/* Portada: el número es la marca */
.portada { background: var(--cobalt); color: #fff; padding: 120px 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.cifra { font-weight: 900; font-stretch: 62%; font-size: clamp(170px, 39vw, 520px); line-height: .78; letter-spacing: -0.02em; margin: 0 0 0 -0.04em; display: flex; }
.cifra span { display: inline-block; animation: subir .9s cubic-bezier(.2,.8,.2,1) both; }
.cifra span:nth-child(2) { animation-delay: .08s; color: var(--sun); }
.cifra span:nth-child(3) { animation-delay: .16s; }
@keyframes subir { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.portada-pie { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 64px; align-items: end; margin-top: clamp(24px, 4vw, 48px); }
.lema { font-weight: 700; font-stretch: 80%; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; margin: 0; max-width: 16ch; }
.portada p.bajada { margin: 0; font-size: 18px; max-width: 46ch; color: #E4E7FF; }
.boton { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; text-decoration: none; margin-top: 20px; transition: transform .2s; }
.boton:hover { transform: translateY(-2px); }

/* Secciones */
section.bloque { padding: clamp(64px, 9vw, 120px) 0; }
h2 { font-weight: 800; font-stretch: 75%; font-size: clamp(36px, 5.5vw, 64px); line-height: 1; letter-spacing: -0.01em; margin: 0 0 18px; }
.intro { font-size: 19px; max-width: 58ch; color: var(--muted); margin: 0 0 clamp(32px, 5vw, 56px); }

/* Servicios: lista con regla, sin tarjetas */
.servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 64px; margin: 0; padding: 0; list-style: none; }
.servicios li { border-top: 2px solid var(--ink); padding: 18px 0 30px; }
.servicios h3 { font-weight: 700; font-stretch: 85%; font-size: 24px; margin: 0 0 6px; line-height: 1.15; }
.servicios p { margin: 0; color: var(--muted); max-width: 44ch; }

/* Marcas: árbol de la casa */
.casa { background: var(--haze); }
.arbol { border-left: 3px solid var(--cobalt); padding-left: clamp(18px, 4vw, 40px); }
.nodo { margin: 0; }
.nodo-titulo { font-weight: 800; font-stretch: 75%; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 0; }
.nodo-texto { margin: 6px 0 0; color: var(--muted); max-width: 56ch; }
.nodo + .rama { margin-top: 28px; }
.rama { border-left: 3px solid var(--ink); margin-left: 4px; padding-left: clamp(18px, 4vw, 40px); }
.productos { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.productos li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 8px 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid rgba(15,20,48,.18); }
.productos b { font-weight: 700; font-stretch: 85%; font-size: 21px; }
.productos span { color: var(--muted); }
.productos a { font-weight: 600; color: var(--cobalt-deep); text-underline-offset: 4px; white-space: nowrap; }
@media (max-width: 680px) { .productos li { grid-template-columns: 1fr; } }

/* Contacto */
.contacto { background: var(--ink); color: #fff; }
.contacto .intro { color: #B9BEDA; }
.correo { font-weight: 800; font-stretch: 70%; font-size: clamp(34px, 7vw, 92px); line-height: 1; color: var(--sun); text-decoration: none; overflow-wrap: anywhere; }
.correo:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: clamp(32px, 5vw, 56px); color: #D7DAEE; }
.datos b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* Pie */
.pie { background: var(--ink); color: #9AA0C3; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 24px; padding-bottom: 28px; }
.pie nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Páginas legales */
.legal-cab { background: var(--cobalt); color: #fff; padding: 110px 0 48px; }
.legal-cab h1 { font-weight: 800; font-stretch: 75%; font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0 0 8px; }
.legal { padding: 48px 0 96px; }
.legal article { max-width: 72ch; }
.legal h2 { font-size: clamp(26px, 3vw, 34px); margin: 40px 0 10px; }
.legal p, .legal li { color: #2A3050; }
.legal ul { padding-left: 22px; }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
