/* ============================================================
   AvalonBiz Consulting Group — sistema de diseño web (rediseño 2026)
   Estilo editorial audaz (referencia: accenture.com) con marca propia.
   Paleta: blanco + negro-navy dramático + cian eléctrico de acento.
   Tipografía: Inter (pesos fuertes), titulares grandes, izquierda.
   NOTA: este look es SOLO para la web. Los documentos (Word/PPT/PDF)
   siguen la identidad sobria de la skill avalonbiz-identidad-visual.
   ============================================================ */

:root {
  /* Base */
  --ink: #0B0F17;          /* negro-navy: secciones oscuras, pie, texto fuerte */
  --ink-2: #141B26;        /* superficie oscura algo más clara */
  --white: #FFFFFF;
  --paper: #F3F6F8;        /* gris muy claro para secciones alt */

  /* Acento */
  --accent: #1BC6E6;       /* cian eléctrico (acento principal) */
  --accent-deep: #0FA7C4;  /* cian oscuro (hover sobre claro) */
  --steel: #34849C;        /* azul acero heredado (secundario) */

  /* Texto */
  --text: #1A2129;
  --muted: #5B6672;
  --muted-dark: #9FB1BE;   /* texto secundario sobre oscuro */
  --border: #DCE3E8;
  --border-dark: #25303C;
  --link: #1F5A6B;         /* enlaces de texto: AA sobre blanco (~7:1) */

  --maxw: 1240px;
  --pad-x: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }
a, button, .btn, input, textarea { touch-action: manipulation; }
/* Enlaces dentro de texto: subrayado siempre (no depender solo del color — WCAG) */
.legal a, .field.consent a { text-decoration: underline; text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Manrope', sans-serif; margin-top: 0; color: var(--ink); font-weight: 700; }
.display {
  font-size: clamp(46px, 8.2vw, 108px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
}
h1 {
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
h3 { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2vw, 23px); line-height: 1.5; color: var(--text); font-weight: 400; }
.muted { color: var(--muted); }
.nota { font-size: 13px; color: var(--muted); }
strong { font-weight: 700; }

/* Acento cian: barra/kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 18px;
}
.kicker::before {
  content: ''; width: 30px; height: 3px; background: var(--accent); display: inline-block;
}
.on-dark .kicker, .dark .kicker { color: #fff; }

/* Resalte de una palabra en cian (sobre oscuro) */
.hl { color: var(--accent); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: var(--muted-dark); }
/* Cualquier bloque oscuro: titulares en blanco (corrige h1 heredando color oscuro) */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .checklist li::before { color: var(--accent); }
.on-dark .lead { color: var(--muted-dark); }

/* Sección con foto cálida de fondo. Overlay direccional: oscuro a la izquierda
   (donde va el texto) y claro a la derecha para que la foto respire. */
.section.people { position: relative; overflow: hidden; color: #fff; background-color: var(--ink); }
.section.people .media-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.section.people::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,11,16,0.9) 0%, rgba(8,11,16,0.6) 46%, rgba(8,11,16,0.3) 100%);
}
.section.people .container { position: relative; z-index: 2; }
.section.people p { color: var(--muted-dark); }
.section.people .checklist li { text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.section .container > .lead, .section .container > p { max-width: 760px; }
.center { text-align: center; }
.center .lead, .center p { margin-left: auto; margin-right: auto; }
.measure { max-width: 760px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  padding: 16px 30px; border-radius: 0;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn::after { content: '→'; font-weight: 600; transition: transform .18s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn:hover::after { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* sobre fondo oscuro */
.on-dark .btn, .dark .btn, .btn.invert {
  background: #fff; border-color: #fff; color: var(--ink);
}
.on-dark .btn:hover, .dark .btn:hover, .btn.invert:hover {
  background: var(--accent); border-color: var(--accent); color: var(--ink);
}
.on-dark .btn.ghost, .dark .btn.ghost {
  background: transparent; color: #fff; border-color: #3a4654;
}
.on-dark .btn.ghost:hover, .dark .btn.ghost:hover {
  background: #fff; color: var(--ink); border-color: #fff;
}

/* ============================================================
   Cabecera
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 54px; width: auto; }
.brand .claim {
  font-size: 12px; color: var(--steel); font-weight: 600;
  letter-spacing: 0.02em; border-left: 1px solid var(--border); padding-left: 14px;
}
.nav-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
/* Menú "tubelight": píldora con una luz cian que se desliza al ítem activo/hover */
.main-nav ul {
  position: relative; list-style: none; display: flex; align-items: center;
  gap: 2px; margin: 0; padding: 5px;
  background: rgba(11,15,23,0.035); border: 1px solid var(--border); border-radius: 999px;
}
.main-nav a {
  position: relative; z-index: 2;
  color: var(--text); font-size: 15px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; transition: color .25s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--accent-deep); }
.main-nav .nav-cta a { z-index: 2; color: #fff; background: var(--ink); padding: 10px 22px; font-weight: 700; }
.main-nav .nav-cta a:hover { background: var(--accent); color: var(--ink); }
/* La "lámpara" deslizante */
.nav-lamp {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; z-index: 1;
  border-radius: 999px; background: rgba(27,198,230,0.12); opacity: 0; pointer-events: none;
  transition: left .42s cubic-bezier(.34,1.45,.5,1), width .42s cubic-bezier(.34,1.45,.5,1), opacity .25s;
}
.nav-lamp.on { opacity: 1; }
.nav-lamp .nav-lamp-bar {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 4px; border-radius: 0 0 8px 8px; background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(27,198,230,0.7), 0 5px 16px 2px rgba(27,198,230,0.45);
}

/* ============================================================
   Hero (home) — editorial oscuro a sangre
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 9vw, 120px);
}
.hero::before { /* halo cian sutil */
  content: ''; position: absolute; right: -10%; top: -20%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(27,198,230,0.18) 0%, rgba(27,198,230,0) 62%);
  pointer-events: none;
}
/* Héroe con imagen de marca de fondo (izquierda oscura para el texto) */
.hero.has-image {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(11,15,23,0.97) 0%, rgba(11,15,23,0.86) 30%, rgba(11,15,23,0.45) 62%, rgba(11,15,23,0.62) 100%),
    url('/img/hero.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero.has-image::before { display: none; }

/* Fondo animado (shader WebGL) sobre la imagen del héroe.
   La imagen queda de fallback si no hay WebGL/JS o con reduced-motion. */
.hero.has-shader.has-image { background-image: url('/img/hero.jpg'); } /* sin degradado: lo pone ::after */
.hero-shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero.has-shader::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,15,23,0.95) 0%, rgba(11,15,23,0.82) 30%, rgba(11,15,23,0.42) 64%, rgba(11,15,23,0.66) 100%);
}

.hero .container { position: relative; z-index: 2; }
.hero .display { color: #fff; max-width: 14ch; }
.hero .subclaim {
  font-size: clamp(18px, 2.1vw, 24px); line-height: 1.5;
  color: var(--muted-dark); max-width: 620px; margin: 0 0 34px; font-weight: 400;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-motif {
  position: absolute; right: 4%; bottom: -2%; z-index: 1;
  width: clamp(220px, 34vw, 460px); color: var(--accent); opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 880px) { .hero-motif { display: none; } }

/* Hero interno (páginas) */
.page-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.page-hero .lead { max-width: 720px; margin-bottom: 0; }
.page-hero.dark {
  color: #fff; border-bottom: 0;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(11,15,23,0.84), rgba(11,15,23,0.93)), url('/img/band.jpg');
  background-size: cover; background-position: center;
}
.page-hero.dark .lead { color: var(--muted-dark); }

/* Hero interno con imagen + ken-burns sutil (subpáginas) */
.page-hero.media {
  position: relative; overflow: hidden; color: #fff; border-bottom: 0;
  background-color: var(--ink);
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 84px);
}
.page-hero.media .ph-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: kenburns 28s ease-in-out infinite alternate;
}
.page-hero.media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,15,23,0.88) 0%, rgba(11,15,23,0.55) 48%, rgba(11,15,23,0.25) 100%),
    linear-gradient(0deg, rgba(11,15,23,0.35), rgba(11,15,23,0.0));
}
.page-hero.media .container { position: relative; z-index: 2; }
.page-hero.media .lead { color: var(--muted-dark); }
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.14) translate(-1.6%, -1.2%); }
}

/* Banda editorial con imagen de marca + frase */
.image-band {
  position: relative; min-height: 380px; display: flex; align-items: center;
  background-color: var(--ink); color: #fff; text-align: center;
  background-image: linear-gradient(rgba(11,15,23,0.42), rgba(11,15,23,0.62)), url('/img/canarias.jpg');
  background-size: cover; background-position: center;
  border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark);
}
.image-band .container { width: 100%; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.image-band .kicker { color: #fff; justify-content: center; }
.image-band h2 { color: #fff; max-width: 20ch; margin: 0 auto; }
.image-band p { color: var(--muted-dark); max-width: 560px; margin: 14px auto 0; }

/* ============================================================
   Rejillas y tarjetas
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  padding: 30px 30px 32px; border-radius: 0;
}
.section.dark .card { background: var(--ink-2); border-color: var(--border-dark); }
.section.dark .card h3 { color: #fff; }
.section.dark .card p { color: var(--muted-dark); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; color: var(--muted); }
/* Número de paso en tarjetas de método */
.step-num { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.12em; color: var(--accent-deep); margin-bottom: 14px; }
.section.dark .step-num, .on-dark .step-num { color: var(--accent); }

/* Tile de servicio (Accenture-style, numerada, hover de relleno) */
a.tile {
  display: flex; flex-direction: column; position: relative;
  background: var(--white); border: 1px solid var(--border);
  padding: 32px 30px 30px; color: var(--ink); text-decoration: none; overflow: hidden;
  transition: background .22s, color .22s, transform .22s, border-color .22s;
}
a.tile .idx {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent-deep); margin-bottom: 26px;
}
a.tile h3 { font-size: 23px; margin-bottom: 12px; transition: color .22s; }
a.tile p { color: var(--muted); margin-bottom: 26px; transition: color .22s; }
a.tile .go {
  margin-top: auto; font-weight: 700; font-size: 15px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; transition: color .22s;
}
a.tile .go::after { content: '→'; transition: transform .22s; }
a.tile:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-3px); color: #fff; }
a.tile:hover h3, a.tile:hover .go { color: #fff; }
a.tile:hover p { color: var(--muted-dark); }
a.tile:hover .idx { color: var(--accent); }
a.tile:hover .go::after { transform: translateX(5px); }

/* ---------- KPIs / cifras grandes ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.section.dark .kpis { background: var(--border-dark); border-color: var(--border-dark); }
.kpi { background: var(--white); padding: 38px 22px; }
.section.dark .kpi { background: var(--ink); }
.kpi .valor {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: clamp(46px, 6vw, 68px); font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink); line-height: 1; margin-bottom: 10px;
}
.section.dark .kpi .valor { color: var(--accent); }
.kpi .etiqueta { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.section.dark .kpi .etiqueta { color: var(--muted-dark); }

/* Credenciales: cifras enormes en línea */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.creds .item { border-top: 3px solid var(--accent); padding-top: 18px; }
.creds .num { font-family: 'Space Grotesk', 'Manrope', sans-serif; font-size: clamp(48px, 6vw, 76px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1; }
.section.dark .creds .num { color: #fff; }
.creds .lbl { font-size: 15px; color: var(--muted); margin-top: 8px; font-weight: 500; }
.section.dark .creds .lbl { color: var(--muted-dark); }

/* Tira de clientes */
.client-strip { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.client-strip .chip {
  font-size: 14px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--border); padding: 11px 18px; background: #fff; letter-spacing: 0.01em;
}
.section.dark .client-strip .chip { color: #fff; border-color: var(--border-dark); background: var(--ink-2); }

/* Listas */
.checklist { list-style: none; padding-left: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 14px; font-size: 17px; }
.checklist li::before {
  content: '→'; position: absolute; left: 0; top: 0; color: var(--accent-deep); font-weight: 700;
}
.section.dark .checklist li::before { color: var(--accent); }

/* ============================================================
   Banda CTA (oscura)
   ============================================================ */
.cta-band {
  color: #fff; padding: clamp(56px, 9vw, 110px) 0; position: relative; overflow: hidden;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(8,11,16,0.58), rgba(8,11,16,0.74)), url('/img/cta-home.jpg');
  background-size: cover; background-position: center;
}
.cta-band .container { text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.cta-band .btn { text-shadow: none; }
.cta-band::before {
  content: ''; position: absolute; left: -8%; bottom: -40%;
  width: 50vw; height: 50vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(27,198,230,0.16) 0%, rgba(27,198,230,0) 60%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: var(--muted-dark); max-width: 560px; margin-bottom: 30px; }

/* ============================================================
   Formulario
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 56px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--text);
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 0; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(27,198,230,0.25);
}
.field textarea { resize: vertical; min-height: 140px; }
.field.consent { display: flex; gap: 12px; align-items: flex-start; }
.field.consent input { width: auto; margin-top: 4px; }
.field.consent label { font-weight: 400; font-size: 13px; color: var(--muted); }
.contact-aside .panel { background: var(--ink); color: #fff; padding: 34px 32px; }
.contact-aside .panel h3 { color: #fff; }
.contact-aside dt { font-weight: 700; color: var(--accent); margin-top: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-aside dd { margin: 4px 0 0; color: #fff; font-size: 16px; }
.contact-aside dd a { color: #fff; }
.contact-aside dd a:hover { color: var(--accent); }
.contact-aside dl { margin: 0; }

/* ============================================================
   Legales
   ============================================================ */
.legal { padding: clamp(48px,6vw,80px) 0; }
.legal h2 { font-size: clamp(20px,2.4vw,26px); margin-top: 40px; }
.legal h3 { color: var(--ink); font-size: 17px; margin-top: 24px; }
.legal p, .legal li { font-size: 16px; color: var(--text); }
.legal ul { padding-left: 0; list-style: none; }
.legal ul li { padding-left: 24px; position: relative; margin-bottom: 8px; }
.legal ul li::before { content: '→'; color: var(--accent-deep); position: absolute; left: 0; font-weight: 700; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th { background: var(--paper); text-align: left; padding: 12px 14px; border: 1px solid var(--border); }
.legal td { padding: 12px 14px; border: 1px solid var(--border); }

/* ============================================================
   404
   ============================================================ */
.error-page { background: var(--ink); color: #fff; text-align: center; padding: clamp(90px,14vw,170px) 0; }
.error-page .code { font-family: 'Space Grotesk', 'Manrope', sans-serif; font-size: clamp(90px, 18vw, 200px); font-weight: 700; letter-spacing: -0.05em; color: var(--accent); line-height: 0.9; }
.error-page h1 { color: #fff; }
.error-page p { color: var(--muted-dark); }

/* ============================================================
   Pie (oscuro)
   ============================================================ */
.site-footer { background: var(--ink); color: #fff; padding: clamp(56px,7vw,84px) 0 32px; border-top: 4px solid var(--accent); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
/* Logo oficial (oscuro) sobre el pie oscuro -> se muestra en blanco */
.site-footer img { height: 40px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 16px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted-dark); font-size: 15px; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .about { font-size: 15px; color: var(--muted-dark); max-width: 340px; }
.site-footer .about strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border-dark); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--muted-dark);
}
.footer-bottom a { color: var(--muted-dark); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   Reveal al hacer scroll (progresivo; sin JS = visible)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* La barra del kicker se "dibuja" al revelarse (detalle, no slop) */
.kicker.reveal::before { width: 0; transition: width .45s cubic-bezier(.22,.61,.36,1) .08s; }
.kicker.reveal.in::before { width: 30px; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --pad-x: 22px; }
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.10);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad-x) 18px; background: none; border: 0; border-radius: 0; }
  .main-nav a { display: block; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-lamp { display: none; }
  .main-nav .nav-cta { margin-top: 12px; }
  .main-nav .nav-cta a { display: inline-block; }
  .site-header .container { position: relative; }
  .brand .claim { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
}
/* Móvil: decisiones de maquetación propias, no solo reflow del escritorio */
@media (max-width: 640px) {
  .hero { padding: 54px 0 46px; }
  .hero .display { font-size: 15.5vw; letter-spacing: -0.02em; }
  .hero .subclaim { font-size: 17px; }
  .section .container > .lead { font-size: 18px; }

  /* Servicios: fila compacta (índice + título + flecha), descripción debajo */
  a.tile { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 20px 18px; gap: 2px 14px; }
  a.tile .idx { margin: 0; order: 1; }
  a.tile h3 { order: 2; flex: 1 1 auto; margin: 0; font-size: 19px; }
  a.tile .go { order: 3; margin: 0; font-size: 0; }
  a.tile .go::after { font-size: 18px; }
  a.tile p { order: 4; flex: 1 1 100%; margin: 10px 0 0; font-size: 15px; }
  a.tile:hover { transform: none; } /* sin desplazamiento en táctil */

  /* KPIs en 2x2 con cifras ajustadas al ancho de teléfono */
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 24px 12px; }
  .kpi .valor { font-size: 38px; }
  .kpi .etiqueta { font-size: 11px; letter-spacing: 0.06em; }

  /* Credenciales: línea con borde superior, números algo menores */
  .creds .num { font-size: 56px; }

  /* CTA y titulares de banda más contenidos */
  .cta-band h2, .section.dark h2, .page-hero h1 { letter-spacing: -0.015em; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .kicker.reveal::before { width: 30px; }
  .page-hero.media .ph-bg { transform: scale(1.04); }
}
