/* ═══════════════════════════════════════════
   TEMA LIGHT (default)
═══════════════════════════════════════════ */
:root {
  color-scheme: dark;

  /* Fondo */
  --bg: #0a0a0e;
  --bg-2: #16161e;
  --bg-gradient: linear-gradient(160deg, #0f0f17 0%, #1a1a24 50%, #12121a 100%);

  /* Tipografía */
  --text: #f8f9ff;
  --text-soft: #d1d5db;
  --muted: #9ca3af;

  /* Liquid Glass — modo oscuro */
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-glow: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(125, 211, 252, 0.25);

  /* Sombras dark */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(125, 211, 252, 0.18);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.65);
  --blur: blur(24px) saturate(180%);
  --blur-strong: blur(32px) saturate(200%);

  /* Acentos */
  --accent: #0ea5e9;
  --accent-2: #8b5cf6;
  --black: #0b0b0d;
  --wa-green: #25d366;

  /* Neumorphism Dark — 15% +/- shadows */
  /* Base: #0a0a0e (H:240, S:17, L:4) */
  --nm-bg: #0a0a0e;
  --nm-shadow: -2px -2px 5px rgba(255, 255, 255, 0.05),
               3px 3px 8px rgba(0, 0, 0, 0.6);
  --nm-inset: inset -2px -2px 5px rgba(255, 255, 255, 0.03),
              inset 3px 3px 8px rgba(0, 0, 0, 0.5);

  /* Imágenes Adaptativas */
  --hero-bg-img: url('assets/Corvi_Multimedia_Hero.webp?v=1.0');
  --adn-bg-img: url('assets/Corvi_Multimedia_ADN_Agencia_de_Marketing.webp?v=1.0');
  --bg-overlay: linear-gradient(to bottom, rgba(10, 10, 14, 0.6), rgba(10, 10, 14, 0.9));
  --adn-overlay: linear-gradient(to bottom, rgba(10, 10, 14, 0.9), rgba(10, 10, 14, 0.95));
  --icon-filter: brightness(0) invert(1);

  /* Imágenes Adaptativas Secciones */
  --valor-1-img: url('assets/Tecnologia_web_de_alto_rendimiento_dark.webp?v=1.0');
  --valor-2-img: url('assets/Identidad_de_marca_premium_dark.webp?v=1.0');
  --valor-3-img: url('assets/Produccion_multimedia_profesional_dark.webp?v=1.0');
  --afirma-cabina-img: url('assets/Afirma_Radio_cabina_dark.webp?v=1.0');
  --error-404-img: url('assets/error_404_Corvi_Multimedia_dark.webp?v=1.0');

  /* Logo en header - Dark mode filter */
  --nav-logo-filter: brightness(0) invert(1);
  --social-filter: none;

  /* Footer */
  --footer-bg: #0a0a0e;
  --footer-text: rgba(248, 249, 255, 0.95);
  --footer-muted: rgba(248, 249, 255, 0.50);
  --footer-line: rgba(255, 255, 255, 0.08);
  --footer-logo-filter: brightness(0) invert(1);

  /* Layout */
  --max: 1240px;
  --radius-xl: 48px;
  --radius-lg: 36px;
  --radius-md: 28px;
  --radius-sm: 20px;
  --ease: cubic-bezier(.25, .46, .45, .94);
  --speed: .28s;
}

/* ═══════════════════════════════════════════
   TEMA LIGHT
═══════════════════════════════════════════ */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f3f4f6;
  --bg-gradient: linear-gradient(160deg, #f9fafb 0%, #ffffff 50%, #f3f4f6 100%);
  --text: #111827;
  --text-soft: #374151;
  --muted: #6b7280;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-strong: rgba(0, 0, 0, 0.06);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.15);
  --nav-logo-filter: none;
  --footer-bg: #f9fafb;
  --footer-text: #111827;
  --footer-muted: #6b7280;
  --footer-line: rgba(0, 0, 0, 0.1);
  --footer-logo-filter: none;
  --social-filter: brightness(0);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Neumorphism Light — 15% +/- shadows */
  /* Base: #ffffff */
  --nm-bg: #f0f2f5; /* Un blanco azulado suave ayuda al efecto neumórfico */
  --nm-shadow: -5px -5px 10px #ffffff,
               5px 5px 10px rgba(0, 0, 0, 0.1);
  --nm-inset: inset -5px -5px 10px #ffffff,
              inset 5px 5px 10px rgba(0, 0, 0, 0.1);

  /* Imágenes Adaptativas - Light version placeholders */
  /* El usuario debe proporcionar estas versiones claras */
  --hero-bg-img: url('assets/Corvi_Multimedia_Hero_Light.webp?v=1.0');
  --adn-bg-img: url('assets/Corvi_Multimedia_ADN_Agencia_de_Marketing_Light.webp?v=1.0');
  --bg-overlay: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
  --adn-overlay: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
  --icon-filter: none;

  /* Versiones Light */
  --valor-1-img: url('assets/Tecnologia_web_de_alto_rendimiento_light.webp?v=1.0');
  --valor-2-img: url('assets/Identidad_de_marca_premium_light.webp?v=1.0');
  --valor-3-img: url('assets/Produccion_multimedia_profesional_light.webp?v=1.0');
  --afirma-cabina-img: url('assets/Afirma_Radio_cabina_light.webp?v=1.0');
  --error-404-img: url('assets/error_404_Corvi_Multimedia_light.webp?v=1.0');
}

/* ═══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-gradient);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(125, 211, 252, 0.10), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(196, 181, 253, 0.10), transparent 34%),
    radial-gradient(circle at 10% 82%, rgba(125, 211, 252, 0.06), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus visible accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  transition: width var(--speed) var(--ease);
}

/* ═══════════════════════════════════════════
   LIQUID GLASS — CLASES UTILITARIAS
═══════════════════════════════════════════ */
.liquid-glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 60%);
  pointer-events: none;
}

.liquid-glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  position: relative;
  overflow: hidden;
}

.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 55%, rgba(255, 255, 255, .06));
  pointer-events: none;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
  cursor: pointer;
  border: 0;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

@media (prefers-color-scheme: dark) {
  .btn-dark {
    background: rgba(255, 255, 255, .92);
    color: #0a0a0e;
  }
}

.btn-glass {
  background: var(--glass-strong);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
}

.section-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   NAVEGACIÓN
═══════════════════════════════════════════ */
.site-header {
  position: fixed; /* Cambiado de sticky para permitir que el hero suba */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0 0;
  transition: all var(--speed) var(--ease);
}

.site-header.scrolled {
  padding: 8px 0 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border-radius: 999px;
  transition: padding var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.site-header.scrolled .nav-shell {
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
}

/* Theme Switch Neumórfico */
.theme-switch {
  display: block;
  width: 60px;
  height: 32px;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch input {
  display: none;
}

.switch-rail {
  position: absolute;
  inset: 0;
  background: var(--nm-bg);
  border-radius: 999px;
  box-shadow: var(--nm-inset);
  transition: all 0.4s var(--ease);
}

.switch-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: var(--nm-bg);
  border-radius: 50%;
  box-shadow: var(--nm-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.switch-handle span {
  font-size: 14px;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-handle img {
  width: 16px;
  height: 16px;
  filter: var(--icon-filter);
  transition: filter var(--speed) var(--ease);
}

.switch-handle .sun { opacity: 0; display: none; }
.switch-handle .moon { opacity: 1; display: block; }

.theme-switch input:checked + .switch-rail .switch-handle {
  transform: translateX(28px);
}

[data-theme="light"] .switch-handle .sun { opacity: 1; display: block; }
[data-theme="light"] .switch-handle .moon { opacity: 0; display: none; }

/* ── Brand / Logo nav ── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

/* Ícono CM.svg */
.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: var(--nav-logo-filter);
  transition: filter var(--speed) var(--ease);
}

/* Nombre en Montserrat */
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: Inter, sans-serif;
}

/* ── Links nav ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  transition: all var(--speed) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Refinamientos Modo Light para los links */
[data-theme="light"] .nav-links a:hover {
  background: rgba(0, 0, 0, 0.05); /* Gris sutil pedido */
  color: var(--text);
}

[data-theme="light"] .nav-links a.active {
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: var(--text);
}

/* ── Menú hamburguesa ── */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.menu-toggle span {
  top: 22px;
}

.menu-toggle::before {
  top: 15px;
}

.menu-toggle::after {
  top: 29px;
}

.menu-toggle.active span {
  opacity: 0;
}

.menu-toggle.active::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Panel móvil ── */
.mobile-panel {
  display: none;
  margin-top: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.mobile-panel.open {
  display: block;
  animation: slideDown .28s var(--ease);
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.mobile-panel nav a {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all var(--speed) var(--ease);
}

.mobile-panel nav a:hover {
  background: var(--glass-strong);
  border-color: var(--line-strong);
  color: var(--text);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   FOOTER — sin esquinas redondeadas arriba
═══════════════════════════════════════════ */
.footer {
  padding: 0;
}

.footer-inner {
  background: var(--footer-bg);
  color: var(--footer-text);
  /* Sin border-radius */
  padding: 80px 0 0;
  position: relative;
}

/* Glow sutil en la parte superior del footer */
.footer-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(125, 211, 252, 0.30) 30%,
      rgba(196, 181, 253, 0.30) 70%,
      transparent 100%);
}

/* Logo grande en footer */
.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 60px;
  border-bottom: 1px solid var(--footer-line);
  margin-bottom: 60px;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-main-logo {
  display: block;
  flex-shrink: 0;
}

.footer-main-logo img {
  height: 72px;
  width: auto;
  max-width: 380px;
  filter: var(--footer-logo-filter);
  opacity: 0.92;
  transition: opacity var(--speed) var(--ease);
}

.footer-main-logo img:hover {
  opacity: 1;
}

/* Redes Sociales Footer */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--footer-line);
  transition: all var(--speed) var(--ease);
  color: var(--footer-muted);
}

.social-icon-link img {
  width: 20px;
  height: 20px;
  filter: var(--social-filter);
  opacity: 0.8;
  transition: opacity var(--speed) var(--ease);
}

.social-icon-link:not([href]):hover {
  cursor: default;
}

.social-icon-link[href]:hover {
  background: var(--glass-strong);
  border-color: var(--line-strong);
  transform: translateY(-3px);
  color: var(--footer-text);
}

.social-icon-link[href]:hover img {
  opacity: 1;
}

/* Grid de columnas */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-tagline {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--footer-muted);
  max-width: 290px;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .18);
  border: 1px solid rgba(37, 211, 102, .36);
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: all var(--speed) var(--ease);
  backdrop-filter: blur(10px);
}

.footer-wa:hover {
  background: rgba(37, 211, 102, .28);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .20);
}

.footer-privacy-link {
  font-size: 13px;
  color: var(--footer-muted);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
  width: fit-content;
  margin-top: 4px;
}

.footer-privacy-link:hover {
  color: var(--footer-text);
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-nav-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-nav a,
.footer-contact-link {
  font-size: 15px;
  color: var(--footer-muted);
  text-decoration: none;
  line-height: 1.65;
  transition: color var(--speed) var(--ease), padding-left var(--speed) var(--ease);
  display: block;
}

.footer-nav a:hover,
.footer-contact-link:hover {
  color: var(--footer-text);
  padding-left: 8px;
}

.footer-divider {
  height: 1px;
  background: var(--footer-line);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--footer-muted);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

.footer-bottom a:hover {
  color: var(--footer-text);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* ═══════════════════════════════════════════
   WHATSAPP FLOTANTE
═══════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px 15px 20px;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 36px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .30);
  transition: all var(--speed) var(--ease);
  animation: waEntrance .6s var(--ease) 1.2s both, waPulse 3.5s ease-in-out 2s infinite;
}

.wa-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 48px rgba(37, 211, 102, .55);
}

.wa-icon {
  flex-shrink: 0;
  transition: transform var(--speed) var(--ease);
}

.wa-float:hover .wa-icon {
  transform: rotate(-12deg) scale(1.12);
}

.wa-label {
  white-space: nowrap;
}

@keyframes waEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.85);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 10px 36px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .30);
  }

  50% {
    box-shadow: 0 10px 36px rgba(37, 211, 102, .45), 0 0 0 14px rgba(37, 211, 102, .0);
  }
}

/* ═══════════════════════════════════════════
   ACCESIBILIDAD
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 860px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-main-logo img {
    height: 54px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-main-logo {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .footer-main-logo img {
    height: 44px;
  }

  .footer-inner {
    padding-top: 56px;
  }

  .wa-float {
    padding: 15px;
  }

  .wa-label {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 60px; /* Incrementado para asegurar visibilidad debajo del menú */
  position: relative;
  overflow: hidden;
  background-image: var(--bg-overlay), var(--hero-bg-img);
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.25);
  width: fit-content;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 660px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(13, 148, 136, 0.25), 
    0 2px 8px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all var(--speed) var(--ease);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 
    0 14px 40px rgba(125, 211, 252, 0.35), 
    0 0 15px var(--accent);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════
   SECCIONES GENERALES
═══════════════════════════════════════════ */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-2);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 72px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--text);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ═══════════════════════════════════════════
   PROBLEMA
═══════════════════════════════════════════ */
.problema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problema-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 22px;
}

.problema-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0 0 32px;
}

.problema-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problema-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: var(--blur);
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
}

.problema-list li::before {
  content: "✕";
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.problema-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problema-stat {
  padding: 28px 32px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.problema-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problema-stat-label {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   PROPUESTA DE VALOR
═══════════════════════════════════════════ */
.valor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.valor-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  height: 100%;
}

.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.valor-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  margin-bottom: 28px;
}

.valor-card:hover .valor-img-frame {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.valor-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  width: 90%;
  height: 90%;
  margin: auto;
  transition: transform 1.5s var(--ease);
  filter: brightness(0.9);
  border-radius: var(--radius-sm);
}

.valor-card:hover .valor-img-bg {
  transform: scale(1.1);
  filter: brightness(1.05);
}

.valor-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.valor-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.valor-content {
  padding: 0;
}

.valor-card h3 {
  margin: 0 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.valor-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ═══════════════════════════════════════════
   ADN CORVI
═══════════════════════════════════════════ */
#adn-corvi {
  background-image: var(--adn-overlay), var(--adn-bg-img);
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; REMOVIDO para evitar lag */
}

.adn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.adn-card {
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform var(--speed) var(--ease);
}

.adn-card:hover {
  transform: translateY(-5px);
}

.adn-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.adn-card:hover::after {
  opacity: 1;
}

.adn-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, rgba(14,165,233,.25), rgba(139,92,246,.25));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.adn-card h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.adn-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ═══════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.servicio-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.servicio-img-wrapper {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--line-strong);
  transition: transform var(--speed) var(--ease);
}

.servicio-card:hover .servicio-img-wrapper {
  transform: scale(1.02) translateY(-4px);
}

.servicio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--speed) var(--ease);
}

.servicio-card:hover .servicio-img-wrapper img {
  transform: scale(1.05);
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.servicio-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.servicio-card h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.servicio-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  text-align: justify;
}

.servicio-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════
   AFIRMA RADIO (Refined Apple Glass Style)
═══════════════════════════════════════════ */
.section-afirma {
  padding: 120px 0 60px 0;
  position: relative;
  background: transparent;
  overflow: visible; /* Permitir sombras/glows externos */
}

/* Fondo decorativo integrado */
.section-afirma::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.afirma-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 100px;
  align-items: center;
}

@media (max-width: 1080px) {
  .afirma-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .afirma-content .section-title,
  .afirma-content .section-label {
    text-align: center;
  }
}

.afirma-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.afirma-content .section-title {
  text-align: left;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.afirma-content .section-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 580px;
}

.afirma-content .section-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0.85;
}

.afirma-benefits {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  display: grid;
  gap: 18px;
}

.afirma-benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-soft);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.afirma-visual {
  position: relative;
  z-index: 2;
}

/* Panel flotante Apple Glass Estilo Impactante */
.afirma-img-frame {
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
}

.afirma-visual:hover .afirma-img-frame {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(14, 165, 233, 0.05);
}

.afirma-img-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.5s var(--ease);
  filter: brightness(0.9);
}

.afirma-visual:hover .afirma-img-bg {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.afirma-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 40%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.afirma-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 60px;
}

/* Decoración detrás del panel */
.afirma-visual::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
}

/* ═══════════════════════════════════════════
   TESTIMONIOS
═══════════════════════════════════════════ */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonio-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonio-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  font-size: 14px;
}

.testimonio-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
}

.testimonio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  flex-shrink: 0;
}

.testimonio-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 2px;
}

.testimonio-role {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ═══════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════ */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(14, 165, 233, .12), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(139, 92, 246, .10), transparent 50%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cta-inner h2 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--text);
}

.cta-inner h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-inner p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ═══════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════ */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacto-info h2 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text);
}

.contacto-info p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.contacto-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacto-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: var(--blur);
  transition: all var(--speed) var(--ease);
}

.contacto-link-item:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.contacto-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.icon-email { background: rgba(14,165,233,.15); }
.icon-wa { background: rgba(37,211,102,.15); }

/* Formulario */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: .04em;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: var(--blur);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 15px;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--line-strong);
}

.form-group textarea {
  min-height: 140px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — PÁGINAS
═══════════════════════════════════════════ */
@media (max-width: 990px) {
  .container {
    width: min(calc(var(--max) * 0.75), calc(100% - 80px));
  }
  .valor-grid,
  .adn-grid,
  .testimonios-grid {
    grid-template-columns: 1fr 1fr;
  }
  .problema-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 750px) {
  .container {
    width: min(calc(var(--max) * 0.75), calc(100% - 64px));
  }
  .section { padding: 80px 0; }
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .valor-grid,
  .adn-grid,
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(var(--max) * 0.75), calc(100% - 50px));
  }
  .hero { padding: 120px 0 80px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .section { padding: 64px 0; }
  .cta-section { padding: 80px 0; }
}
