/* ============================================================
   EZG Productora — Design System
   Cinematográfico · Dark · Acento #F26829 · Warm hero #F06B30 (original) · Yozakura + Azonix
   ============================================================ */

/* ── Fuente local: Yozakura ─────────────────────────────────── */
@font-face {
  font-family: 'Yozakura';
  src: url('../assets/fonts/YOZAKURA-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: block;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Fondos — estética cinematográfica oscura */
  --bg-base: #080808;
  --bg-surface: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --bg-header: rgba(8, 8, 8, 0.92);
  --bg-modal: #161616;
  --bg-footer: #080808;

  /* Acento principal — naranja EZG */
  --accent: #F26829;
  --accent-dim: rgba(240, 90, 0, 0.12);
  --accent-glow: 0 0 28px rgba(240, 90, 0, 0.40);
  --accent-hover: #d4551e;

  /* Texto */
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --text-on-dark: #f5f5f5;

  /* Bordes */
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(242, 104, 41, 0.35);

  /* Radios */
  --radius-sm: 5px;
  --radius: 10px;
  --radius-lg: 16px;

  /* Sombras */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.50);
  --shadow-popup: 0 8px 48px rgba(0, 0, 0, 0.70);

  /* Transiciones */
  --transition: 0.20s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.38s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header height — usada en JS para smooth scroll */
  --header-h: 70px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Azonix', sans-serif;
  background-color: #080808;
  /* hardcoded para transition (FALLA 17 — CSS vars no transicionan) */
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* SIN transition en base — evita que otros cambios de bg tarden 3s */
}

/* ── Body dimmer — manejado por JS applyFrame() (rAF interpolado, Sesión 19) ── */
body.warm-mode {
  background-color: #F06B30;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color var(--transition), background var(--transition);
}

.header--scrolled {
  background: rgba(8, 8, 8, 0.97);
  border-bottom-color: var(--border);
}

.nav {
  padding: 0 42px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.nav__link:hover {
  color: #ffffff;
}

/* Chevron */
.nav__chevron {
  transition: transform var(--transition);
  opacity: 0.6;
}

.nav__item--mega.is-open .nav__chevron {
  transform: rotate(180deg);
}

/* CTA nav */
.nav__cta-wrap {
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
}

.nav__cta {
  padding: 6px 18px;
  font-size: 14px;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
}

.nav__cta-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 9999;
}

.nav__cta-dropdown.is-open {
  display: flex;
}

.nav__cta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition);
}

.nav__cta-item:hover {
  background: var(--bg-card-hover);
}

.nav__cta-item__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.nav__cta-item--image {
  padding: 6px 12px;
  border: none;
  background: transparent;
  margin-top: 4px;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav__cta-item--image::before {
  content: '';
  display: block;
  width: 70%;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 8px;
}

.nav__cta-item--image:hover {
  background: transparent;
  opacity: 0.75;
}

.nav__cta-item--image .nav__cta-item__icon {
  display: flex;
  justify-content: center;
}

.nav__cta-item--image .nav__cta-item__icon img {
  width: auto;
  max-width: 110px;
  height: auto;
  display: block;
  border-radius: 6px;
}

.nav__cta-item--image .nav__cta-item__body {
  display: none;
}

.nav__cta-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav__cta-item small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.nav__cta-item--soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  justify-content: center;
  text-align: center;
}

body.warm-mode .nav__cta-item--soon strong {
  text-shadow: 0 0 0.5px #000000, 0 0 0.5px #000000;
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mega-menú ───────────────────────────────────────────── */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popup);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu__card {
  border-radius: var(--radius);
  transition: background var(--transition);
}

.mega-menu__card:hover {
  background: var(--bg-card-hover);
}

.mega-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.mega-menu__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}

.mega-menu__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mega-menu__desc {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Botón base ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  font-family: 'Azonix', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: var(--radius);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
#hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
  padding-bottom: 130px;
}

/* Fondo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(240, 107, 48, 0.12) 0%, transparent 70%);
}

.hero__bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Contenido centrado */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 40px 24px;
}

/* ── Eclipse planetario fusionado (Sesión 25) ─────────────── */
/* perspective:600px → GPU compositing (sin pixelación). clip-path terminador → efecto planeta. */
.shutter-container {
  position: relative;
  width: 200px;
  height: 200px;
  cursor: pointer;
  border-radius: 50%;
  perspective: 600px;
  /* GPU compositing — NUNCA quitar (anti-pixelación) */
  outline: 1px solid transparent;
  /* Suprimir recuadro azul/celeste en mobile al tocar */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* Mini eclipse en nav — 38px (Sesión 24 bis) + scroll reveal (Sesión 24) */
.shutter-container--nav {
  width: 38px;
  height: 38px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.shutter-container--nav.nav-eclipse--visible {
  opacity: 1;
  pointer-events: auto;
}

.shutter-container--nav .eclipse-face--sun {
  perspective: 100px;
}

/* Animación eclipse pulsante (cara luna) */
@keyframes eclipse-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(240, 107, 48, 0.7),
      0 0 50px rgba(240, 107, 48, 0.4),
      0 0 90px rgba(255, 69, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 35px rgba(240, 107, 48, 1),
      0 0 70px rgba(240, 107, 48, 0.7),
      0 0 120px rgba(255, 69, 0, 0.4);
  }
}

/* Animación eclipse pulsante — escala nav 55px (Sesión 20) */
/* Glow en .eclipse-coin para que clip-path de luna no lo clipee (FALLA 40) */
.shutter-container--nav .eclipse-coin {
  animation-name: eclipse-pulse-nav;
}

@keyframes eclipse-pulse-nav {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(240, 107, 48, 0.7),
      0 0 10px rgba(240, 107, 48, 0.4),
      0 0 18px rgba(255, 69, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 7px rgba(240, 107, 48, 1),
      0 0 14px rgba(240, 107, 48, 0.7),
      0 0 22px rgba(255, 69, 0, 0.4);
  }
}

@keyframes solar-pulse {

  0%,
  100% {
    box-shadow: 0 0 15px #F06B30, 0 0 30px #F06B30, 0 0 55px #e05520;
  }

  50% {
    box-shadow: 0 0 25px #F06B30, 0 0 55px #F06B30, 0 0 95px #e05520;
  }
}

/* ── Estructura planetaria ─────────────────────────────────── */
/* Glow aquí: sin clip-path en este nivel, box-shadow visible (FALLA 40) */
.eclipse-coin {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: eclipse-pulse 2.4s ease-in-out infinite;
  /* rotateY solo en logo sol (.shutter-logo) — perspective en .eclipse-face--sun */
  /* SIN transition — JS controla via rAF */
}

.eclipse-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  /* clip hijos al disco */
  /* SIN backface-visibility — JS controla visibilidad con opacity/clipPath */
}

/* Cara luna: gradiente sutil de curvatura */
.eclipse-face--moon {
  background: radial-gradient(circle at 45% 42%, #0a0a14 0%, #050508 50%, #000000 100%);
  z-index: 2;
  /* animation en .eclipse-coin — para que glow no se clipee con clip-path (FALLA 40) */
}

/* Viñeta esférica luna — refuerza borde oscuro */
.eclipse-face--moon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}

/* Cara sol: empieza invisible (JS la muestra en transición)
   perspective + preserve-3d para rotateY del logo coherente con terminador */
.eclipse-face--sun {
  z-index: 1;
  opacity: 0;
  perspective: 400px;
  transform-style: preserve-3d;
}

/* Sombra esférica (JS: --sun-cx + --logo-limb-a para penumbra al girar como esfera) */
.eclipse-face--sun::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at var(--sun-cx, 45%) 42%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 15%,
      rgba(0, 0, 0, calc(0.14 + var(--logo-limb-a, 0) * 0.12)) 32%,
      rgba(0, 0, 0, calc(0.32 + var(--logo-limb-a, 0) * 0.18)) 52%,
      rgba(0, 0, 0, calc(0.50 + var(--logo-limb-a, 0) * 0.15)) 72%,
      rgba(0, 0, 0, calc(0.62 + var(--logo-limb-a, 0) * 0.12)) 100%);
}

.eclipse-face--sun .shutter-logo {
  position: absolute;
  top: 3%;
  left: 3%;
  z-index: 1;
  width: 94%;
  height: 94%;
  object-fit: cover;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  /* SIN border-radius: evita FALLA 42 (doble clip circular = artefacto lens-shape) */
  /* El clip circular lo provee overflow:hidden del padre */
}

/* Viñeta esférica sol — borde + refuerzo con canto (--logo-limb-a) */
.eclipse-face--sun::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle,
    transparent 52%,
    rgba(0, 0, 0, calc(0.18 + var(--logo-limb-a, 0) * 0.22)) 86%,
    rgba(0, 0, 0, calc(0.26 + var(--logo-limb-a, 0) * 0.35)) 100%);
}


/* ── Títulos hero ────────────────────────────────────────── */
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

/* Títulos hero — arte EZG */
.hero__title--art {
  font-family: 'Yozakura', cursive;
  font-size: clamp(56px, 10vw, 100px);
  color: var(--accent);
  letter-spacing: 0.05em;
}

.hero__title--tech {
  font-family: 'Azonix', 'Exo 2', 'Inter', sans-serif;
  font-size: clamp(28px, 5.5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.25em;
  transition: color 0.8s ease, letter-spacing 0.8s ease;
}

/* F1 — inline-block para que CSS transform funcione en glitch-vibrate */
#part-tecno,
#part-log {
  display: inline-block;
}

/* #part-ia ya tiene display:inline-block vía .text-accent */

.text-accent {
  color: #000000 !important;
  background-color: var(--accent) !important;
  display: inline-block;
  padding: 0 4px !important;
  line-height: 1.0 !important;
  border-radius: 2px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  font-style: italic;
}

/* ── Subtítulo dinámico (hero-animation.js) ─────────────── */
.hero__subtitle-container {
  min-height: 2.4em;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__subtitle-container.is-smoke-in {
  animation: smoke-in 0.25s ease both;
}

.hero__subtitle-container.is-smoke-out {
  animation: smoke-out 0.15s ease both;
}

.hero__subtitle-container.is-payoff {
  color: var(--accent);
  font-style: normal;
  font-family: 'Azonix', sans-serif;
  letter-spacing: 0.15em;
  animation: payoff-slam 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Hero Animation keyframes ──────────────────────────── */
@keyframes glitch-vibrate {
  0% {
    transform: translate(0, 0) skewX(0deg);
  }

  15% {
    transform: translate(-3px, 1px) skewX(-4deg);
  }

  30% {
    transform: translate(3px, -1px) skewX(3deg);
  }

  45% {
    transform: translate(-2px, 2px) skewX(-2deg);
  }

  60% {
    transform: translate(2px, -2px) skewX(2deg);
  }

  75% {
    transform: translate(-1px, 1px) skewX(-1deg);
  }

  100% {
    transform: translate(0, 0) skewX(0deg);
  }
}

@keyframes smoke-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes smoke-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes payoff-slam {
  0% {
    opacity: 0;
    transform: scale(1.3) translateY(-6px) skewX(-3deg);
  }

  40% {
    opacity: 1;
    transform: scale(0.96) translateY(2px) skewX(1deg);
  }

  70% {
    transform: scale(1.02) translateY(-1px) skewX(-0.5deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0) skewX(0);
  }
}

/* F7 — Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .shutter-container--nav {
    transition: none;
  }

  /* scroll reveal: snap instantáneo */
  @keyframes glitch-vibrate {

    0%,
    100% {
      transform: none;
    }
  }

  @keyframes solar-pulse {

    0%,
    100% {
      box-shadow: 0 0 20px rgba(240, 107, 48, 0.4);
    }
  }

  @keyframes eclipse-pulse {

    0%,
    100% {
      box-shadow: 0 0 20px rgba(240, 107, 48, 0.4);
    }
  }

  @keyframes eclipse-pulse-nav {

    0%,
    100% {
      box-shadow: 0 0 6px rgba(240, 107, 48, 0.4);
    }
  }

  @keyframes logo-flicker {

    0%,
    100% {
      opacity: 1;
    }
  }

  @keyframes payoff-slam {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes smoke-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes smoke-out {
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }
}


/* ══════════════════════════════════════════════════════════════
   SECCIONES GENERALES
   ══════════════════════════════════════════════════════════════ */
#sobre-ezg {
  min-height: 60vh;
  padding: 80px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

#main-footer {
  border-top: 1px solid var(--border);
  padding: 40px 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE
   ══════════════════════════════════════════════════════════════ */
body.light-mode {
  --bg-base: #f4f4f4;
  --bg-surface: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --bg-header: rgba(244, 244, 244, 0.92);
  --text-primary: #000000;
  --text-secondary: #0a0a0a;
  --text-muted: #2a2a2a;
  --border: rgba(255, 255, 255, 0.08);
}

body.light-mode .hero__bg-radial {
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(240, 107, 48, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #f0f0f0 0%, #e0e0e0 100%);
}

body.light-mode .hero__title--art {
  color: #111111;
}

/* Cards: fondo naranja (mismo que bubble Asther) en light mode */
body.light-mode .service-card,
body.light-mode .project-card,
body.light-mode .info-card,
body.light-mode .highlight-box,
body.light-mode .asther-bubble,
body.light-mode .mega-menu__card,
body.light-mode .faq-item,
body.light-mode .kpi-item,
body.light-mode .benefit-card {
  background: #D44B1F;
  border-color: rgba(0, 0, 0, 0.2);
}

body.warm-mode .tab-btn:hover {
  border-color: #000000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    /* dvh: maneja barra de direcciones dinámica en iOS Safari */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--bg-base);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 999;
    overflow-y: auto;
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 18px;
    padding: 10px 0;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .mega-menu {
    position: static;
    transform: none !important;
    min-width: 100%;
    box-shadow: none;
    background: var(--bg-surface);
    margin-top: 8px;
  }

  /* Solo el eclipse hero se achica en mobile — el nav siempre 38px */
  .shutter-container:not(.shutter-container--nav) {
    width: 160px;
    height: 160px;
  }
}

/* ── Corporate Mode (post Big Bang) ─────────────────────── */

/* Hero radial + grain — manejados por JS applyFrame() (rAF interpolado, Sesión 19) */

/* H1 tech → plateado elegante (EZG naranja, ια box y botón CTA sin cambios) */
body.corporate-mode .hero__title--tech {
  color: #c0c0c8;
  letter-spacing: 0.12em;
  transition: color 0.8s ease, letter-spacing 0.8s ease;
}


/* Restaurado del backup — near-black cuando ambas clases presentes (modo light completo) */
body.warm-mode.corporate-mode .hero__title--tech {
  color: #1a0800;
}

/* ══════════════════════════════════════════════════════════════
   WARM ORANGE MODE — post Big Bang click
   Naranja pantalla completa = #F06B30 (muestreado diseño original)
   ══════════════════════════════════════════════════════════════ */
body.warm-mode {
  --bg-base: #E8622A;
  --bg-surface: #de5d26;
  --bg-card: rgba(255, 255, 255, 0.18);
  --bg-card-hover: rgba(255, 255, 255, 0.26);
  --bg-header: rgba(218, 88, 27, 0.96);
  --bg-modal: rgba(255, 255, 255, 0.20);
  --bg-footer: #d25423;

  --accent: #1a0800;
  --accent-dim: rgba(26, 8, 0, 0.12);
  --accent-glow: 0 0 28px rgba(26, 8, 0, 0.30);
  --accent-hover: #000000;

  --text-primary: #1a0800;
  --text-secondary: #3d1500;
  --text-muted: #5a2200;
  --text-on-dark: #1a0800;

  --border: rgba(0, 0, 0, 0.15);
  --border-accent: rgba(26, 8, 0, 0.40);
}

body.warm-mode .header--scrolled {
  background: rgba(208, 78, 17, 0.98);
}



body.warm-mode .text-accent {
  color: #ffffff !important;
  background-color: #1a0800 !important;
}


body.warm-mode .hero__title--art {
  color: #ffffff;
}

body.warm-mode .hero__subtitle-container.is-payoff {
  color: #1a0800;
}


body.warm-mode .chat-trigger {
  background: #000000;
  box-shadow: none;
}
body.warm-mode .asther-bubble .btn--primary,
body.warm-mode .info-card .btn--primary {
  background: #000000;
  color: #ffffff;
}
body.warm-mode .asther-bubble .btn--primary:hover,
body.warm-mode .info-card .btn--primary:hover {
  background: #222222;
}

/* Recuadros en warm-mode: mismo naranja que el fondo, texto negro */
body.warm-mode .project-card,
body.warm-mode .info-card,
body.warm-mode .faq-item,
body.warm-mode .contact-item,
body.warm-mode .highlight-box,
body.warm-mode .service-card,
body.warm-mode .info-grid-card,
body.warm-mode .kpi-item,
body.warm-mode .benefit-card {
  background: rgba(218, 88, 27, 0.96);
  border: 1px solid #000000;
  color: #000000;
  --accent: #f0e0d0;
  --text-primary: #000000;
  --text-secondary: #000000;
  --text-muted: #222222;
  --border: #000000;
  box-shadow: none;
}

/* Asther bubble en warm-mode: solo bordes izq/der como dark mode */
body.warm-mode .asther-bubble {
  background: rgba(218, 88, 27, 0.96);
  border: none;
  border-left: 3px solid #000000;
  border-right: 3px solid #000000;
  color: #000000;
  box-shadow: none;
}

body.light-mode .chat-trigger,
body.light-mode .chat-trigger.is-open {
  background: #080808;
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════
   #SOBRE-EZG — Portfolio y Servicios
   ══════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

body.warm-mode .section-header h2 {
  color: #000000;
}

/* Texto accent en warm mode → negro */
body.warm-mode .section-header p,
body.warm-mode .subsection-header h3,
body.warm-mode .subsection-header p,
body.warm-mode .service-card__price,
body.warm-mode .contact-item__value a,
body.warm-mode .project-card__name {
  color: #000000;
}

body.warm-mode #main-footer {
  background: rgba(218, 88, 27, 0.96);
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 1rem;
}

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

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(242, 104, 41, 0.3);
}

body.warm-mode .project-card:hover {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000, 0 0 25px rgba(0, 0, 0, 0.5);
}



.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.project-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project-card__tag {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.service-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.service-card__time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Tabs System (Portfolio / Servicios) ────────────────────── */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

body.warm-mode .tab-btn:not(.active) {
  background: rgba(218, 88, 27, 0.96);
  border: 1px solid #000000;
  color: #000000;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(242, 104, 41, 0.3);
}

body.warm-mode .tab-btn:hover {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000, 0 0 20px rgba(0, 0, 0, 0.4);
}


.tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}


/* Light mode for tabs */
body.light-mode .tab-btn {
  color: rgba(255, 255, 255, 0.7);
}
body.light-mode .tab-btn.active {
  color: #ffffff;
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: grid;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Footer inner ──────────────────────────────────────────── */
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.65;
  font-size: 9px;
  color: #777;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.powered-by:hover {
  opacity: 1;
}

.powered-by img {
  height: 14px;
  width: auto;
  max-width: 90px;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.powered-by:hover img {
  opacity: 1;
}

@media (max-width: 580px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Dark mode: straknet-logo-s-white.png — s=blanca, TRAK.net=navy original.
   Sin filtros de color — la imagen ya tiene los colores correctos.
   Neón azul sutil permanente (drop-shadow). Hover: surge intensificado. */
/* Color azul baked en el PNG — sin brightness. */
.powered-by img {
  filter: none;
  transition: filter 0.3s ease;
}

.powered-by__text {
  white-space: nowrap;
  color: #e0e8ff;
  text-shadow: 0 0 1px #fff, 0 0 5px rgba(0, 150, 255, 0.5);
}

/* Hover dark — neón azul surge */
.powered-by:hover img {
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px rgba(80, 160, 255, 1)) drop-shadow(0 0 18px rgba(0, 80, 255, 0.7));
  animation: neon-surge 0.8s ease-in-out infinite alternate;
}

.powered-by:hover .powered-by__text {
  text-shadow: 0 0 2px #fff, 0 0 8px rgba(0, 150, 255, 0.7);
  color: #ffffff;
}

@keyframes neon-surge {
  0% {
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 5px rgba(80, 160, 255, 0.9));
  }

  50% {
    filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px rgba(80, 160, 255, 1)) drop-shadow(0 0 22px rgba(0, 80, 255, 0.6));
  }

  100% {
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 5px rgba(80, 160, 255, 0.8));
  }
}

/* ── Warm / light mode — todo negro + neón oscuro sutil.
   brightness(0) convierte CUALQUIER pixel no-transparente en negro puro. */
body.warm-mode .powered-by {
  color: rgba(0, 0, 0, 0.75);
  opacity: 0.8;
}

body.warm-mode .powered-by img {
  filter: brightness(0);
}

body.warm-mode .powered-by__text {
  color: #000000;
  text-shadow: none;
}

body.warm-mode .powered-by:hover {
  opacity: 1;
}

body.warm-mode .powered-by:hover img {
  filter: brightness(0) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
  animation: neon-surge-dark 0.8s ease-in-out infinite alternate;
}

body.warm-mode .powered-by:hover .powered-by__text {
  color: #000000;
}

/* Unificar bg-surface en warm-mode: scrollbar y tags al mismo tono que el fondo */
body.warm-mode ::-webkit-scrollbar-track {
  background: #F06B30;
}
body.warm-mode .project-card__tag {
  background: rgba(0, 0, 0, 0.12);
  color: #1a0800;
  border-color: rgba(0, 0, 0, 0.15);
}

@keyframes neon-surge-dark {
  0% {
    filter: brightness(0) drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
  }

  50% {
    filter: brightness(0) drop-shadow(0 0 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  }

  100% {
    filter: brightness(0) drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .powered-by:hover img {
    animation: none;
  }
}

/* Reduced motion — coin-flip: JS usa duración=0 → snap instantáneo */

/* ══════════════════════════════════════════════════════════════
   INFOGRAFÍA — Componentes para secciones Nosotros / Servicios
   ══════════════════════════════════════════════════════════════ */

/* Info card: descripción destacada */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 0 30px rgba(242, 104, 41, 0.06);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.info-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(242, 104, 41, 0.3);
}

body.warm-mode .info-card:hover {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000, 0 0 25px rgba(0, 0, 0, 0.5);
}

.info-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

body.warm-mode .info-card {
  color: #000000;
}

body.warm-mode .info-card p {
  color: #000000;
  text-shadow: 0 0 0.3px #000000, 0 0 0.3px #000000;
}

.info-card p + p {
  margin-top: 12px;
}

.info-card .accent {
  color: var(--accent);
  font-weight: 700;
}

/* KPI row: métricas en fila */
.kpi-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.kpi-item {
  flex: 1;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition-slow);
}

.kpi-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(242, 104, 41, 0.3);
}

body.warm-mode .kpi-item {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.warm-mode .kpi-item:hover {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000, 0 0 25px rgba(0, 0, 0, 0.5);
}



.kpi-item__value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.kpi-item__label {
  font-size: 0.72rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

body.warm-mode .kpi-item__label {
  color: #000000;
  text-shadow: 0 0 0.4px #000000, 0 0 0.4px #000000;
}

body.warm-mode .nav__link {
  text-shadow: 0 0 0.3px currentColor, 0 0 0.3px currentColor;
}

/* Motor grid: las 16 capacidades IA */
.motor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .motor-grid {
    grid-template-columns: 1fr;
  }
}

.motor-card {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.motor-card__name {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.88rem;
}

.motor-card__desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 3px;
  line-height: 1.45;
}

/* Highlight box: filosofía / beneficios */
.highlight-box {
  background: linear-gradient(135deg, rgba(242, 104, 41, 0.07), rgba(242, 104, 41, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 20px 0 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.highlight-box:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(242, 104, 41, 0.3);
}

body.warm-mode .highlight-box:hover {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000, 0 0 25px rgba(0, 0, 0, 0.5);
}

.highlight-box h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
}

.highlight-box ul li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}

.highlight-box ul li::before {
  content: '›';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Sub-sección header (dentro de #sobre-ezg / #servicios) */
.subsection-header {
  margin: 3rem 0 1.2rem;
}

.subsection-header h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.subsection-header p {
  color: var(--text-secondary);
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

/* Cards de equipo / filosofía */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all var(--transition-slow);
}

.info-grid-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(242, 104, 41, 0.3);
}

body.warm-mode .info-grid-card:hover {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000, 0 0 25px rgba(0, 0, 0, 0.5);
}



.info-grid-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.info-grid-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.info-grid-card .card-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 10px;
  transition: all var(--transition-slow);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(242, 104, 41, 0.3);
}

body.warm-mode .faq-item:hover {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000, 0 0 25px rgba(0, 0, 0, 0.5);
}



.faq-item__q {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.faq-item__a {
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-top: 6px;
  line-height: 1.55;
}

/* Divisor de sección */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 40px 0;
  opacity: 0.35;
}

/* Benefits grid (3 cols) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-slow);
}

.benefit-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(242, 104, 41, 0.3);
}

body.warm-mode .benefit-card:hover {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000, 0 0 25px rgba(0, 0, 0, 0.5);
}



.benefit-card .card-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.benefit-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* KPI clickeable → link sin decoración */
a.kpi-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

a.kpi-item--link:hover {
  border-color: var(--border-accent);
}

/* Descripción debajo del nombre en service-card */
.service-card__desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 6px;
}

/* Grilla de contacto (4 cols → 2 → 1) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-slow);
}

.contact-item:hover {
  border-color: var(--border-accent);
}

body.warm-mode .contact-item:hover {
  border-color: #000000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}



.contact-item__icon {
  margin-bottom: 8px;
  color: var(--text-secondary);
  transition: color var(--transition), filter var(--transition), transform var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 32px;
}

.contact-item__icon svg {
  width: 28px;
  height: 28px;
}

/* Redes Sociales - Colores e Iluminación al hacer hover o tap */
.contact-item--email:hover, body.warm-mode .contact-item--email:hover {
  border-color: #EA4335;
  box-shadow: 0 0 12px rgba(234, 67, 53, 0.4);
}
.contact-item--email:hover .contact-item__icon, body.warm-mode .contact-item--email:hover .contact-item__icon {
  color: #EA4335;
  filter: drop-shadow(0 0 8px rgba(234, 67, 53, 0.6));
  transform: scale(1.1);
}

.contact-item--whatsapp:hover, body.warm-mode .contact-item--whatsapp:hover {
  border-color: #25D366;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}
.contact-item--whatsapp:hover .contact-item__icon, body.warm-mode .contact-item--whatsapp:hover .contact-item__icon {
  color: #25D366;
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.6));
  transform: scale(1.1);
}

.contact-item--instagram:hover, body.warm-mode .contact-item--instagram:hover {
  border-color: #E1306C;
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.4);
}
.contact-item--instagram:hover .contact-item__icon, body.warm-mode .contact-item--instagram:hover .contact-item__icon {
  color: #E1306C;
  filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.6));
  transform: scale(1.1);
}

.contact-item--telegram:hover, body.warm-mode .contact-item--telegram:hover {
  border-color: #0088cc;
  box-shadow: 0 0 12px rgba(0, 136, 204, 0.4);
}
.contact-item--telegram:hover .contact-item__icon, body.warm-mode .contact-item--telegram:hover .contact-item__icon {
  color: #0088cc;
  filter: drop-shadow(0 0 8px rgba(0, 136, 204, 0.6));
  transform: scale(1.1);
}


.contact-item__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-item__value {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.contact-item__value a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item__value a:hover {
  text-decoration: underline;
}

.contact-item__value--pending {
  color: var(--text-muted);
  font-style: italic;
}

/* Bot nudge: respawn — aparece titilando desde la izquierda, se estabiliza fijo */
@keyframes chat-trigger-nudge {
  0%   { opacity: 0;    border-color: transparent;  }
  6%   { opacity: 1;    border-color: var(--accent); }
  14%  { opacity: 0.15; border-color: transparent;  }
  24%  { opacity: 1;    border-color: var(--accent); }
  32%  { opacity: 0.2;  border-color: transparent;  }
  42%  { opacity: 1;    border-color: var(--accent); }
  48%  { opacity: 0.3;  border-color: transparent;  }
  58%  { opacity: 1;    border-color: var(--accent); }
  64%  { opacity: 0.45; border-color: transparent;  }
  74%  { opacity: 1;    border-color: var(--accent); }
  78%  { opacity: 0.6;  border-color: transparent;  }
  86%  { opacity: 1;    border-color: var(--accent); }
  90%  { opacity: 0.8;  border-color: transparent;  }
  95%  { opacity: 1;    border-color: var(--accent); }
  100% { opacity: 1;    border-color: var(--accent); }
}

.chat-trigger--nudge {
  animation: chat-trigger-nudge 2s ease-in 1;
  animation-fill-mode: forwards;
}

/* ── Burbuja Asther post-hero ──────────────────────────────── */
.asther-bubble-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 12px 24px 160px;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.asther-bubble-section.is-collapsed {
  opacity: 0;
  height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
}

/* ── Flechas de navegación fijas ────────────────────────────── */
#scroll-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: 100vh;
  width: 0;
  pointer-events: none;
  z-index: 900;
}
.scroll-nav__arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.scroll-nav__arrow.is-visible {
  opacity: 1;
}
.scroll-nav__arrow--up  { top: 80px; }
.scroll-nav__arrow--down { bottom: 28px; }
.scroll-nav__tri {
  display: block;
  width: 0;
  height: 0;
}
.scroll-nav__arrow--up .scroll-nav__tri {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 12px solid rgba(190, 190, 190, 0.35);
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
}
.scroll-nav__arrow--down .scroll-nav__tri {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid rgba(190, 190, 190, 0.35);
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
}

.asther-bubble {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 3px solid #FF6B35;
  border-right: 3px solid #FF6B35;
  border-radius: 0;
  padding: 16px 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.asther-bubble--visible {
  opacity: 1;
  transform: translateY(0);
}

.asther-bubble__avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}

.asther-bubble__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.asther-bubble__name {
  font-family: 'Azonix', sans-serif;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.asther-bubble__name span {
  font-family: 'Yozakura', cursive;
  font-size: 1rem;
  opacity: 0.75;
  letter-spacing: 0.06em;
}

.asther-bubble__text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  min-height: 3em;
}

/* Cursor parpadeante mientras typea */
.asther-bubble__text::after {
  content: '|';
  color: var(--accent);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 1px;
}

/* Cursor se desvanece suavemente antes de desaparecer */
.asther-bubble__text.asther-typing--fading::after {
  animation: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.asther-bubble__text.asther-typing--done::after {
  display: none;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.asther-bubble__cta {
  margin-top: 14px;
  font-family: 'Azonix', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  align-self: flex-start;
  opacity: 0;
  transition: opacity 1.875s ease-in;
}

.asther-bubble__cta.asther-cta--visible {
  opacity: 1;
}

@media (max-width: 580px) {
  .asther-bubble {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .asther-bubble__cta {
    align-self: center;
  }
}

/* ── Padding responsive secciones ───────────────────────────── */
@media (max-width: 768px) {
  #contacto { padding-top: 80px !important; }
  #preguntas-frecuentes { padding-top: 40px !important; }
}

body.warm-mode .asther-bubble__avatar img {
  border-color: #ffffff;
}