/* layout.css · contenedor, header, footer, secciones, grids, hero */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); color: var(--navy); }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--blue-hover), var(--blue)); color: #fff; font-weight: 800; font-size: 14px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 16px; }
.brand__name--lg { font-size: 20px; }
.brand__ai { color: var(--blue); }
.brand__tag { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* Logo SVG: oculto en móvil (se muestra isotipo+texto), visible en desktop */
.brand__logo { height: 40px; width: auto; display: none; }
.brand__compact { display: inline-flex; align-items: center; gap: 8px; }
/* Footer siempre muestra el logo SVG (fondo claro) */
.brand__logo--footer { display: block; height: 46px; }
.nav { display: none; align-items: center; gap: 0; }
.nav__link { padding: 9px 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.nav__link:hover, .nav__link.is-active { color: var(--blue); }
.nav__cta { display: none; white-space: nowrap; }
.nav__burger { display: inline-flex; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { border-top: 1px solid var(--border); background: #fff; }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px 24px; }
.drawer__link { padding: 12px; border-radius: 10px; font-size: 16px; color: var(--ink); }
.drawer__link:hover, .drawer__link.is-active { background: rgba(23,139,239,.1); color: var(--blue); }
.drawer__cta { margin-top: 12px; }

/* Secciones */
.section { padding: 72px 0; }
.section--muted { background: rgba(248,250,252,.6); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 680px; }
.section-head--center { margin: 0 auto; text-align: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 8px; letter-spacing: -.01em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.section--dark .section-head p { color: rgba(255,255,255,.75); }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
.mt-10 { margin-top: 40px; }
.mt-6 { margin-top: 24px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .06; background-image: linear-gradient(to right,#fff 1px,transparent 1px), linear-gradient(to bottom,#fff 1px,transparent 1px); background-size: 48px 48px; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; padding: 80px 0; }
.hero__eyebrow { display: inline-flex; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.5rem); margin-top: 20px; max-width: 820px; letter-spacing: -.02em; }
.hero__sub { margin-top: 20px; max-width: 640px; font-size: 18px; color: rgba(255,255,255,.8); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__metrics { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; }
.metric { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); border-radius: var(--radius-card); padding: 20px; }
.metric__value { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: #fff; }
.metric__label { font-size: 14px; color: rgba(255,255,255,.7); }

/* Footer */
.site-footer { background: rgba(248,250,252,.5); border-top: 1px solid var(--border); padding: 56px 0; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer-tag { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.footer-desc { margin-top: 12px; max-width: 380px; font-size: 14px; color: var(--muted); }
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-ico { width: 18px; height: 18px; color: var(--blue); display: inline-flex; }
.footer-ico svg { width: 18px; height: 18px; }
.footer-contact a:hover { color: var(--blue); }
.footer-col__title { font-size: 14px; color: var(--navy); }
.footer-col ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--blue); }
.footer-social { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); color: var(--navy); background: #fff; transition: all .18s ease; }
.footer-social a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.footer-bottom__legal { color: var(--muted); opacity: .85; }
.footer-bottom__site { color: var(--blue); font-weight: 600; }
