/* ============ RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 84px;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--surface-white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  padding-top: 76px;
  max-width: 100%;
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}
img, svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
input, textarea {
  font: inherit;
}

/* ============ FONDO TRASLÚCIDO BORROSO GLOBAL ============ */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('img/logo.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 75vmin;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  filter: blur(6px);
  -webkit-filter: blur(6px);
}

/* ============ TOKENS DE DISEÑO ============ */
:root {
  /* Paleta Corporativa: Navy Ingeniería + Verde Sinergia */
  --navy-950: #050b16;
  --navy-900: #071022;
  --navy-800: #0d1e3a;
  --navy-700: #162d54;

  --brand-700: #15803d;
  --brand-600: #16a34a;
  --brand-500: #22c55e;
  --brand-400: #4ade80;
  --brand-50:  #ecfdf5;

  --mail-red: #EA4335;
  --mail-red-hover: #D33C30;

  --surface-white: #ffffff;
  --surface-subtle: #f4f7f9;
  --ink: #0b1528;
  --ink-secondary: #1e293b;
  --muted-light: #475569;
  --muted-dark: #94a3b8;
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;

  --grad-brand: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  --grad-dark: linear-gradient(145deg, #09152b 0%, #050c1a 100%);

  --shadow-sm: 0 1px 3px rgba(11, 21, 40, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(11, 21, 40, 0.04), 0 12px 24px -6px rgba(11, 21, 40, 0.06);
  --shadow-card-hover: 0 14px 30px -6px rgba(11, 21, 40, 0.14), 0 4px 12px -2px rgba(22, 163, 74, 0.12);
  --shadow-glow: 0 10px 25px -5px rgba(22, 163, 74, 0.4);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --section-pad: clamp(72px, 9vw, 120px);
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  overflow-wrap: break-word;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  text-wrap: balance;
}
p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

#nosotros, #contacto, #areas1, #mision, #valores {
  scroll-margin-top: 84px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-600);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* ============ SECCIONES Y CABECERAS ============ */
.section-light {
  background-color: var(--surface-white);
}
.section-subtle {
  background-color: var(--surface-subtle);
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
  text-align: left;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}
.eyebrow-light {
  color: var(--brand-400);
}
.section-head p {
  color: var(--muted-light);
  font-size: 1.06rem;
  margin-top: 14px;
  line-height: 1.65;
}

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(22, 163, 74, 0.55);
}
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-block {
  width: 100%;
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ============ ANIMACIÓN SCROLL GENERAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(7, 16, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(5, 11, 22, 0.96);
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.65);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand-accent {
  color: var(--brand-400);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: #cbd5e1;
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--brand-400);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-cta {
  padding: 10px 20px;
  font-size: 0.88rem;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.nav-mobile {
  display: none;
}

@media (max-width: 920px) {
  .nav-links, .nav-cta.desktop-only {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav, .nav.is-scrolled {
    background: #071022;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-mobile {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #071022;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s ease, visibility 0s linear 0.35s;
  }
  .nav-mobile.is-open {
    max-height: min(420px, calc(100dvh - 76px));
    overflow-y: auto;
    visibility: visible;
    transition: max-height 0.35s ease, visibility 0s;
  }
  .nav-mobile-inner {
    padding: 16px clamp(20px, 5vw, 48px) 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav-mobile-inner a {
    padding: 13px 4px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-mobile-inner .btn {
    margin-top: 16px;
    border-bottom: none;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 197, 94, 0.15), transparent 48%),
    radial-gradient(circle at 15% 85%, rgba(29, 78, 216, 0.22), transparent 52%),
    var(--navy-900);
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 110px) clamp(56px, 7vw, 84px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 780px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: #e2e8f0;
  margin-bottom: 24px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 10px var(--brand-400);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  max-width: 16ch;
  line-height: 1.06;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: #cbd5e1;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  max-width: 56ch;
  margin-top: 22px;
  line-height: 1.68;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.metric-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--brand-400);
}
.metric-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}
.metric-card span:last-child {
  font-size: 0.88rem;
  color: var(--muted-dark);
}

@media (max-width: 768px) {
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ============ SERVICIOS Y VALORES (CON EFECTO OLA AL CARGAR) ============ */
.services {
  padding-block: var(--section-pad);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  cursor: default;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid rgba(22, 163, 74, 0.15);
  display: grid;
  place-items: center;
  color: var(--brand-600);
  margin-bottom: 18px;
}
.card-top .icon-wrap {
  margin-bottom: 0;
}
.service-card h3 {
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}
.service-card p {
  color: var(--muted-light);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* --- Animación de "Ola" al entrar en vista (Ingeniería y Gestión + Valores) --- */
.service-card.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: none;
}
.service-card.reveal.in-view {
  animation: cardWave 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--wave-delay, 0s);
}
.service-card.reveal.in-view .icon-wrap {
  animation: iconWave 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--wave-delay, 0s);
}

/* Desfase secuencial para crear la ola uno tras otro */
.service-card.reveal:nth-child(1) { --wave-delay: 0.05s; }
.service-card.reveal:nth-child(2) { --wave-delay: 0.22s; }
.service-card.reveal:nth-child(3) { --wave-delay: 0.39s; }
.service-card.reveal:nth-child(4) { --wave-delay: 0.56s; }
.service-card.reveal:nth-child(5) { --wave-delay: 0.73s; }

@keyframes cardWave {
  0% {
    opacity: 0;
    transform: translateY(24px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-card);
  }
  45% {
    opacity: 1;
    transform: translateY(-8px);
    border-color: rgba(22, 163, 74, 0.5);
    box-shadow: var(--shadow-card-hover);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--border-light);
    box-shadow: var(--shadow-card);
  }
}

@keyframes iconWave {
  0% {
    background: var(--brand-50);
    color: var(--brand-600);
    transform: scale(1);
  }
  45% {
    background: var(--brand-600);
    color: #ffffff;
    transform: scale(1.08);
  }
  100% {
    background: var(--brand-50);
    color: var(--brand-600);
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.reveal:nth-child(n) { --wave-delay: 0.05s; }
}

/* ============ QUIÉNES SOMOS (BANNER EDITORIAL + CARRUSEL) ============ */
.why {
  padding-block: var(--section-pad);
  position: relative;
  overflow: hidden;
}
.gal {
  display: grid;
  gap: 2.2rem;
}

.about-banner {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -12px rgba(7, 16, 34, 0.25);
  overflow: hidden;
}
.about-banner-main {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.14);
  color: var(--brand-400);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.about-banner-main h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.about-banner-main p {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.7;
}
.about-banner-main strong {
  color: #fff;
}
.about-banner-aside {
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.aside-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-400);
}
.aside-lead {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.etymology-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.ety-part {
  background: rgba(7, 16, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 14px 12px;
  text-align: center;
}
.ety-part strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-400);
  letter-spacing: 0.02em;
}
.ety-part span {
  display: block;
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-top: 4px;
}
.ety-plus {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-400);
}

@media (max-width: 900px) {
  .about-banner {
    grid-template-columns: 1fr;
  }
  .about-banner-aside {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Carrusel */
:where(.gal button) {
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
}
.cf {
  --cw: 54%;
  --s: 0.74;
  --sh: 56%;
  display: grid;
  gap: 1rem;
}
.cf-stage {
  position: relative;
  aspect-ratio: 16 / 7;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.cf-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--cw);
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 10, 22, 0.18);
  transform: translateX(-50%) scale(0.5);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease, box-shadow 0.5s ease;
}
.cf-slide[data-pos="0"] {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: none;
  cursor: default;
  box-shadow: 0 24px 48px rgba(6, 10, 22, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cf-slide[data-pos="-1"] {
  transform: translateX(calc(-50% - var(--sh))) scale(var(--s));
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.cf-slide[data-pos="1"] {
  transform: translateX(calc(-50% + var(--sh))) scale(var(--s));
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.cf-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cf-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 34, 0.52);
  transition: opacity 0.5s ease;
}
.cf-slide[data-pos="0"]::after {
  opacity: 0;
}
.cf-cap {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3.2rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(to top, rgba(5, 11, 22, 0.9), rgba(5, 11, 22, 0));
  opacity: 0;
  transition: opacity 0.5s ease;
}
.cf-slide[data-pos="0"] .cf-cap {
  opacity: 1;
}
.cf-cap small {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.cf-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.cf-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cf-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.cf-btn:active {
  transform: scale(0.94);
}
.cf-prev svg {
  transform: rotate(180deg);
}
.cf-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cf-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.cf-dot::before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
.cf-dot[aria-current="true"] {
  width: 26px;
  background: var(--brand-600);
}

@media (max-width: 640px) {
  .cf { --cw: 66%; --s: 0.64; --sh: 48%; }
  .cf-stage { aspect-ratio: 5 / 4; }
  .cf-cap { padding: 2.2rem 1rem 0.9rem; font-size: 0.95rem; }
}

/* ============ QUÉ HACEMOS: 6 ÁREAS + BURBUJAS ============ */
.ar-ic {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.areas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 16px;
}
.area {
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 12px 22px;
  text-align: center;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.area-ic {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.area-t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.84rem, 1.1vw, 0.96rem);
  line-height: 1.25;
  color: var(--ink);
}
.area:hover, .area.on {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.area:hover .area-ic, .area.on .area-ic {
  background: var(--grad-brand);
  color: #fff;
}

.stage {
  grid-row: 2;
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  min-height: 195px;
  padding-top: 54px;
}
.row {
  display: flex;
  gap: 28px;
  width: max-content;
  max-width: 100%;
}
.b {
  width: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  animation: bIn 0.35s ease both;
}
.b:nth-child(2) { animation-delay: 0.06s; }
.b:nth-child(3) { animation-delay: 0.12s; }
.b-dot {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 2px solid var(--brand-500);
  color: var(--brand-600);
  box-shadow: 0 8px 20px -4px rgba(22, 163, 74, 0.28);
}
.b-t {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--ink);
}
@keyframes bIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.links path {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: linkDraw 0.4s ease forwards;
}
@keyframes linkDraw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 960px) {
  .areas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
  }
  .area {
    margin-bottom: 10px;
    padding: 18px 8px 16px;
    gap: 10px;
  }
  .area:nth-child(-n+3) { grid-row: 1; }
  .area:nth-child(n+4) { grid-row: 3; }
  .area-ic { width: 46px; height: 46px; border-radius: 12px; }
  .ar-ic { width: 22px; height: 22px; }
  .area-t { font-size: 0.78rem; }
  .stage {
    display: none;
    min-height: 0;
    padding-top: 38px;
    margin-bottom: 14px;
  }
  .areas.has-on .stage { display: block; }
  .areas[data-r="1"] .stage { grid-row: 2; }
  .areas[data-r="2"] .stage { grid-row: 4; }
  .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .b { width: auto; }
  .b-dot { width: 50px; height: 50px; }
  .b-t { font-size: 0.76rem; }
}

/* ============ MISIÓN ============ */
.coverage {
  padding-block: var(--section-pad);
  position: relative;
  overflow: hidden;
}
.coverage-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.coverage .section-head {
  margin-bottom: 0;
}
.coverage-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.coverage-stat {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.coverage-stat .stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.coverage-stat .stat-label {
  font-size: 0.86rem;
  color: var(--muted-light);
  margin-top: 4px;
}
.img-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(11, 21, 40, 0.2);
  border: 1px solid var(--border-light);
}
.img-ph--tall {
  aspect-ratio: 4 / 4.4;
}
.img-ph .ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 920px) {
  .coverage-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .coverage-visual {
    order: -1;
  }
  .img-ph--tall {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 520px) {
  .coverage-stats {
    grid-template-columns: 1fr;
  }
}

/* ============ VALORES ============ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.value-card {
  padding: 24px 20px;
}
.value-card h3 {
  font-size: 1.06rem;
}
.value-card p {
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ============ CONTACTO INTERACTIVO ============ */
.contact-section {
  padding-block: var(--section-pad);
  background:
    radial-gradient(circle at 12% 20%, rgba(34, 197, 94, 0.12), transparent 45%),
    var(--navy-900);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.contact-copy h2 {
  color: #fff;
  margin-bottom: 16px;
}
.contact-copy p {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.68;
  margin-bottom: 32px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-400);
}
.contact-info-item strong {
  font-size: 1rem;
  color: #f8fafc;
}

.contact-form {
  background: var(--surface-white);
  color: var(--ink);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hp-field {
  position: absolute;
  left: -5000px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group-textarea {
  position: relative;
  margin-bottom: 22px;
}
.f-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}
.f-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--r-sm);
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.f-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
#f-mensaje {
  min-height: 115px;
  resize: vertical;
  padding-bottom: 28px;
}
#char-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.74rem;
  color: #64748b;
  font-family: var(--font-mono);
  pointer-events: none;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-wsp, .btn-mail {
  flex: 1 1 180px;
  border-radius: var(--r-sm);
  padding: 14px 20px;
  color: #fff;
}
.btn-wsp {
  background: var(--brand-600);
  box-shadow: 0 8px 20px -6px rgba(22, 163, 74, 0.5);
}
.btn-wsp:hover {
  background: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(22, 163, 74, 0.6);
}
.btn-mail {
  background: var(--mail-red);
  box-shadow: 0 8px 20px -6px rgba(234, 67, 53, 0.45);
}
.btn-mail:hover {
  background: var(--mail-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(234, 67, 53, 0.55);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-950);
  color: var(--muted-dark);
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid.footer-grid--3 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 48px;
}
.footer-brand-col .brand {
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 0.94rem;
  max-width: 36ch;
  line-height: 1.6;
  color: #cbd5e1;
}
.footer-meta {
  font-size: 0.9rem;
  color: var(--muted-dark);
  margin-top: 12px;
  line-height: 1.6;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.92rem;
  color: var(--muted-dark);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--brand-400);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}
.footer-CopyNote {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .footer-grid.footer-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid.footer-grid--3 .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid.footer-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ============ BOTONES FLOTANTES ============ */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(5, 11, 22, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(5, 11, 22, 0.36);
}
.float-btn svg {
  width: 24px;
  height: 24px;
}
.float-wsp {
  background: #25D366;
}
.float-wsp:hover {
  background: #20BA5A;
}
.float-correo {
  background: var(--mail-red);
}
.float-correo:hover {
  background: var(--mail-red-hover);
}

@media (max-width: 768px) {
  .floating-buttons { bottom: 18px; right: 18px; }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 22px; height: 22px; }
}