/* ============================================================
   PEPE FX — Efectos especiales para eventos
   Estilo: oscuro, cinematográfico · paleta VIOLETA / PÚRPURA NEÓN
   (basada en el logo: negro + halo púrpura brillante)
   ============================================================ */

:root {
  --bg:        #0a0a0f;
  --bg-soft:   #111119;
  --bg-card:   #16161f;
  --text:      #f5f5f7;
  --text-dim:  #a0a0ad;
  --accent-1:  #7c3aed;   /* violeta */
  --accent-2:  #a855f7;   /* púrpura */
  --accent-3:  #c4b5fd;   /* lavanda claro / brillo */
  --accent-deep: #6d28d9; /* violeta profundo */
  --glow:      124, 58, 237;  /* rgb del violeta para sombras/halos */
  --glow-soft: 168, 85, 247;  /* rgb del púrpura */
  --line:      rgba(255, 255, 255, 0.08);
  --radius:    16px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);   /* easing suave (ease-out-quint) */
  --fondo-base: #08060e;                          /* negro violáceo */
  /* Gradiente violeta (haz diagonal) inspirado en CUADRADO 4/5 */
  --fondo-violeta:
    radial-gradient(60% 55% at 14% 22%, rgba(124, 58, 237, 0.24), transparent 60%),
    radial-gradient(55% 55% at 90% 85%, rgba(91, 33, 182, 0.22), transparent 60%),
    linear-gradient(122deg, transparent 40%, rgba(124, 58, 237, 0.10) 52%, transparent 62%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;   /* que los anclajes no queden bajo el header */
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--fondo-base);
  background-image: var(--fondo-violeta);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

h1, h2, h3, .brand, .hero-marca {
  font-family: 'Poppins', system-ui, sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.12;
  font-weight: 700;
}

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

/* ===== Video de fondo ===== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 12s ease-out;
}
.bg-video.loaded {
  opacity: 1;
  transform: scale(1);   /* zoom lento cinematográfico al cargar */
}
/* Capa sobre el video (sin oscurecer: el video se ve a pleno) */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

/* ===== Canvas de chispas (por encima del video) ===== */
#emberCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.site-header, .hero, .section, .site-footer { position: relative; z-index: 3; }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  cursor: pointer;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px rgba(var(--glow), 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(var(--glow), 0.6); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-3); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
/* Header sin logo (inicio): el menú va a la derecha */
.site-header.sin-marca { justify-content: flex-end; }
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: 1.5px;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  transition: transform 0.4s var(--ease), text-shadow 0.4s var(--ease);
}
.brand:hover { transform: translateY(-1px); text-shadow: 0 0 22px rgba(var(--glow-soft), 0.4); }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(var(--glow-soft), 0.3));
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.brand:hover .brand-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 0 16px rgba(var(--glow-soft), 0.5));
}
.brand-mark { color: var(--accent-2); font-size: 0.7rem; filter: drop-shadow(0 0 6px var(--accent-2)); }
/* "FX" con degradado violeta y glow */
.brand-accent {
  margin-left: 2px;
  background: linear-gradient(180deg, var(--accent-3), var(--accent-2) 55%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(var(--glow-soft), 0.5));
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  position: relative;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--text); }
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).active::after { transform: scaleX(1); }
.nav a:not(.nav-cta).active { color: var(--text); }
.nav .nav-cta {
  color: var(--accent-3);
  border: 1px solid var(--accent-2);
  padding: 8px 20px;
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav .nav-cta:hover {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--glow), 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;   /* el logo va arriba, no al medio */
  text-align: center;
  padding: clamp(96px, 12vh, 150px) 20px 80px;
  overflow: hidden;
}
/* Halo violeta: apenas un tinte, para no pintarle el color al video */
.hero-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 50vh;
  background: radial-gradient(ellipse at center, rgba(var(--glow), 0.12), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Degradado superior: solo el alto que necesita el menú para leerse */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 16vh;
  background: linear-gradient(to bottom,
    rgba(8, 6, 14, 0.8) 0%,
    rgba(8, 6, 14, 0.35) 55%,
    transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; width: 100%; max-width: 820px; }

/* Entrada del logo del inicio */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-marca {
  opacity: 0;
  animation: heroIn 1s var(--ease) 0.2s forwards;
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}
.scroll-hint { opacity: 0; animation: heroIn 0.9s var(--ease) 0.9s forwards; }

/* Logo sobre el video: presente, pero sin comerse la escena */
.hero-logo {
  display: block;
  margin: 0 auto;
  width: min(340px, 58vw);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(var(--glow-soft), 0.55));
}
.fire-text {
  background: linear-gradient(180deg, var(--accent-3), var(--accent-2) 55%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(var(--glow-soft), 0.55));
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--text-dim);
  border-radius: 999px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 0; }
}

/* ============================================================
   FX & PYRO + "Conocenos" (revelado con humo)
   ============================================================ */
.fxpyro {
  position: relative;
  z-index: 3;
  /* Mismo fondo que Servicios: el video queda solo en el inicio */
  background-color: var(--fondo-base);
  background-image: var(--fondo-violeta);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 7vh, 70px);
  padding: clamp(90px, 14vh, 150px) 20px;
  text-align: center;
  overflow: hidden;
}
/* Fondo de fuego / chispas (canvas). La máscara lo deja SOLO alrededor:
   el centro, donde va el texto, queda limpio. */
.fxpyro-fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 52% 50% at 50% 50%, transparent 40%, #000 88%);
  mask-image: radial-gradient(ellipse 52% 50% at 50% 50%, transparent 40%, #000 88%);
}
/* Brasa cálida, solo en las esquinas de abajo */
.fxpyro::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background:
    radial-gradient(60% 100% at 0% 100%, rgba(255, 106, 0, 0.18), transparent 70%),
    radial-gradient(60% 100% at 100% 100%, rgba(255, 106, 0, 0.18), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
/* Halo violeta detrás del título */
.fxpyro::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 130vw);
  height: 65%;
  background: radial-gradient(closest-side, rgba(var(--glow), 0.22), transparent 75%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
/* El contenido, por encima del fuego */
.fxpyro-title,
.fxpyro-conocenos,
.social-orbs { z-index: 1; }

.fxpyro-title {
  position: relative;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 15vw, 9.5rem);
  letter-spacing: -4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.14em;
}
.fp-fx {
  color: #fff;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.35));
}
.fp-amp {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.52em;
  letter-spacing: 0;
}
.fp-pyro {
  background: linear-gradient(180deg, var(--accent-3), var(--accent-2) 55%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(var(--glow-soft), 0.6));
}

/* "Conocenos": título de las redes, aparece disipándose el humo */
.fxpyro-conocenos {
  position: relative;
  display: inline-block;
  margin-bottom: -10px;
  font-weight: 700;
  letter-spacing: 7px;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  color: #fff;
  text-shadow: 0 0 22px rgba(var(--glow-soft), 0.7);
  /* estado oculto: "dentro del humo" */
  opacity: 0;
  filter: blur(16px);
  transform: translateY(14px) scale(1.08);
  transition:
    opacity 1.5s var(--ease),
    filter 1.6s var(--ease),
    transform 1.6s var(--ease);
}
.fxpyro-conocenos.revelado {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
/* Nube de humo que se disipa sobre el título */
.fxpyro-conocenos::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 300%; height: 500%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(40% 45% at 30% 55%, rgba(214, 219, 240, 0.75), transparent 70%),
    radial-gradient(45% 50% at 68% 42%, rgba(198, 204, 232, 0.7), transparent 72%),
    radial-gradient(35% 40% at 50% 72%, rgba(224, 228, 245, 0.6), transparent 70%),
    radial-gradient(closest-side, rgba(210, 214, 235, 0.55), transparent 78%);
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
}
.fxpyro-conocenos.revelado::after { animation: humoDisipar 3.4s var(--ease) forwards; }
@keyframes humoDisipar {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.7); }
  45%  { opacity: 0.7; transform: translate(-52%, -62%) scale(1.15); }
  100% { opacity: 0; transform: translate(-54%, -95%) scale(1.8); }
}

/* Bolitas de redes: fila abajo del botón, reveladas con humo */
.social-orbs {
  position: relative;
  display: flex;
  flex-wrap: wrap;              /* red de seguridad: en pantallas muy angostas bajan de fila */
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
}
.social-orb {
  position: relative;
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 16, 24, 0.85);
  border: 1px solid rgba(var(--glow-soft), 0.5);
  box-shadow: 0 0 18px rgba(var(--glow), 0.45);
  /* oculta "dentro del humo" hasta que se revela */
  opacity: 0;
  filter: blur(14px);
  transform: translateY(12px) scale(1.15);
  transition:
    opacity 1.2s var(--ease),
    filter 1.3s var(--ease),
    transform 1.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.social-orb svg { width: 34px; height: 34px; display: block; }
.social-orb.revelado {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.social-orb:hover { box-shadow: 0 0 28px rgba(var(--glow-soft), 0.85); transform: translateY(-4px); }
/* Nube de humo sobre cada bolita */
.social-orb::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 260%; height: 260%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(45% 50% at 35% 55%, rgba(214, 219, 240, 0.7), transparent 70%),
    radial-gradient(closest-side, rgba(210, 214, 235, 0.6), transparent 78%);
  filter: blur(12px);
  opacity: 0;
  pointer-events: none;
}
.social-orb.revelado::after { animation: humoDisipar 2.6s var(--ease) forwards; }

@media (max-width: 560px) {
  .fxpyro-title { letter-spacing: -2px; }
  .fxpyro-conocenos { letter-spacing: 4px; }
  .social-orb { width: 62px; height: 62px; }
  .social-orb svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .fxpyro-conocenos,
  .social-orb { opacity: 1; filter: none; transform: none; transition: none; }
  .fxpyro-conocenos.revelado::after,
  .social-orb.revelado::after { animation: none; }
}

/* ===== Secciones genéricas ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 78px clamp(20px, 5vw, 40px);
}
.section-alt {
  max-width: none;
  background-color: var(--fondo-base);
  background-image: var(--fondo-violeta);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--accent-3);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 16px; }
.section-desc { color: var(--text-dim); }

/* ===== Nosotros ===== */
.about { max-width: 780px; margin: 0 auto; text-align: center; }
.about .section-eyebrow,
.about .section-title { text-align: center; }
.about .section-title { margin-bottom: 20px; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; }
.about-text strong { color: var(--text); }

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 64px);
  margin-top: 46px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.3rem);
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(180deg, var(--accent-3), var(--accent-2) 60%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(var(--glow-soft), 0.35));
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
}

/* ===== Servicios: "Elegí tu momento" (estilo MagicFX) ===== */

/* Pestañas FX / Pyro */
.moments-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 44px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.moment-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px clamp(30px, 6vw, 54px);
  border: none;
  background: none;
  border-radius: 999px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.moment-tab-name { font-weight: 700; font-size: 1.45rem; letter-spacing: 0.5px; }
.moment-tab-sub { font-size: 0.82rem; color: inherit; opacity: 0.75; }
.moment-tab:hover { color: #fff; }
.moment-tab.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--glow), 0.4);
}

/* Fondo de humo de colores (canvas). Igual que el fuego de FX & PYRO:
   la máscara lo deja SOLO alrededor, sin ensuciar las tarjetas. */
.fx-humo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;      /* gana al max-width de .section-alt > * */
  margin: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, transparent 42%, #000 92%);
  mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, transparent 42%, #000 92%);
}
/* El contenido, por encima del humo */
#servicios .section-head,
#servicios .moments-tabs,
#servicios .fx-slider { position: relative; z-index: 1; }

/* Carrusel deslizante de efectos */
.fx-slider { position: relative; }
/* El carrusel respira más ancho que el resto de la sección */
.section-alt > .fx-slider { max-width: 1400px; }
.slider-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-track { display: flex; gap: 20px; }
.fx-slide {
  flex: 0 0 min(86vw, 1060px);   /* fallback; el JS fija el ancho exacto en px */
  scroll-snap-align: center;
}
.fx-slide-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #1a1330, #0d0d14);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.fx-slide-media:hover {
  border-color: rgba(var(--glow-soft), 0.5);
  box-shadow: 0 18px 50px rgba(var(--glow), 0.28);
}
.fx-slide-video, .fx-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fx-slide-bg { background-size: cover; background-position: center; }
.fx-slide-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  filter: drop-shadow(0 0 30px rgba(var(--glow-soft), 0.5));
}
.fx-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 14, 0.94) 8%, rgba(8, 6, 14, 0.35) 52%, rgba(8, 6, 14, 0.05));
}
.fx-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 36px);
}
.fx-slide-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 8px;
}
.fx-slide-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 8px;
}
.fx-slide-desc {
  color: var(--text-dim);
  font-size: 1.06rem;
  max-width: 560px;
  margin-bottom: 20px;
}
.fx-slide-cta {
  align-self: flex-start;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  padding: 13px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(var(--glow), 0.4);
  transition: transform 0.3s var(--ease);
}
.fx-slide-media:hover .fx-slide-cta { transform: translateX(3px); }

/* Flechas del carrusel */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(12, 12, 18, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.slider-arrow svg { width: 26px; height: 26px; }
.slider-arrow.prev { left: 6px; }
.slider-arrow.next { right: 6px; }
.slider-arrow:hover { background: rgba(var(--glow), 0.55); }
.slider-arrow:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  .fx-slide { flex-basis: min(92vw, 1060px); }
  /* Flechas también en móvil (más chicas), además del deslizado con el dedo */
  .slider-arrow { width: 40px; height: 40px; background: rgba(12, 12, 18, 0.82); }
  .slider-arrow svg { width: 20px; height: 20px; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .slider-track { gap: 14px; }
  /* Tarjeta más alta (vertical) para que el video/efecto luzca en el celu */
  .fx-slide-media { aspect-ratio: 3 / 4; }
  .fx-slide-caption { padding: 20px 18px; }
  .fx-slide-name { font-size: 1.55rem; }
  .fx-slide-desc {
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;      /* máx 3 líneas para que no desborde */
    overflow: hidden;
  }
}
@media (max-width: 480px) {
  .fx-slide { flex-basis: 88vw; }
  .fx-slide-media { aspect-ratio: 4 / 5; }
  .moment-tab { padding: 8px 20px; }
  .moment-tab-name { font-size: 0.95rem; }
}
/* ===== Contacto ===== */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.contact-card {
  flex: 1 1 200px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 22px;
  background: linear-gradient(160deg, var(--bg-card), #101018);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--glow-soft), 0.55);
  box-shadow: 0 16px 40px rgba(var(--glow), 0.22);
}
.contact-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.contact-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.contact-card:hover .contact-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 22px rgba(var(--glow-soft), 0.25);
}
.contact-label {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.contact-value {
  color: var(--text-dim);
  font-size: 0.85rem;
  word-break: break-word;
}
.contact-cta { text-align: center; margin-top: 44px; }

/* Espacio extra arriba en páginas sin hero (ej. contacto.html),
   para que el contenido no quede bajo el header fijo */
.section-top { padding-top: 118px; }

/* ===== Flotantes de contacto (email + WhatsApp) ===== */
.floats {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
/* En el inicio se esconden: el video se ve limpio */
.floats.oculto {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
/* Bolita de email, al lado del WhatsApp */
.mail-float {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 28, 0.9);
  border: 1px solid rgba(var(--glow-soft), 0.5);
  color: #EA4335;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.mail-float svg { width: 24px; height: 24px; display: block; }
.mail-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 22px rgba(var(--glow), 0.6);
}

.wa-float {
  min-width: 58px;
  height: 58px;
  padding: 0 13px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: gap 0.35s var(--ease);
  animation: waPulse 2.6s ease-out infinite;
}
.wa-float svg { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.wa-float-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-weight: 600;
  font-size: 0.92rem;
  transition: max-width 0.35s var(--ease), opacity 0.35s var(--ease);
}
.wa-float:hover { gap: 9px; }
.wa-float:hover .wa-float-text { max-width: 130px; opacity: 1; }
@keyframes waPulse {
  0%   { box-shadow: 0 8px 26px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0.45); }
  70%  { box-shadow: 0 8px 26px rgba(0,0,0,0.35), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 26px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 560px) {
  .floats { right: 16px; bottom: 16px; gap: 10px; }
  .wa-float { min-width: 52px; height: 52px; padding: 0 12px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float-text { display: none; }
  .mail-float { width: 46px; height: 46px; }
  .mail-float svg { width: 22px; height: 22px; }

  /* Inicio: que el tagline no se desborde */
  .hero-marca { letter-spacing: -1px; }
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 50px 20px 40px;
  border-top: 1px solid var(--line);
  background: #000;   /* pie en negro, sin el degradado violeta */
}
.footer-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 10px;
}
.footer-logo {
  height: 58px;
  width: auto;
  display: inline-block;
  filter: drop-shadow(0 0 14px rgba(var(--glow-soft), 0.3));
}
.footer-text { color: var(--text-dim); margin-bottom: 8px; font-size: 0.92rem; }
.footer-copy { color: #666; font-size: 0.85rem; }

/* Footer con columnas (marca / menú / contacto) */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
  max-width: var(--maxw);
  margin: 0 auto 34px;
  text-align: left;
}
.footer-brand-col { max-width: 300px; }
.footer-brand-col .footer-brand { text-align: left; margin-bottom: 6px; }
.footer-brand-col .footer-logo { height: 46px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social-item {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.footer-social-item svg { width: 18px; height: 18px; display: block; }
.footer-social-item:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.09); }

.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: #fff; }

.footer-contact { display: flex; flex-direction: column; gap: 13px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.9rem; transition: color 0.3s var(--ease); }
.footer-contact-item:hover { color: #fff; }
.footer-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-ico svg { width: 16px; height: 16px; display: block; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ===== Transición entre páginas ===== */
/* Fade-in al cargar (CSS puro, sin depender del JS) */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.5s var(--ease); }

/* Veil para el fade-out al navegar (arranca invisible) */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.page-veil.show { opacity: 1; }

/* ===== Botón "Volver arriba" ===== */
.to-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 20, 28, 0.75);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(var(--glow), 0.5); }
@media (max-width: 560px) { .to-top { left: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(12, 12, 18, 0.97);
    backdrop-filter: blur(14px);
    border-left: 1px solid var(--line);
    display: none;            /* cerrado: fuera del layout (no genera desborde) */
  }
  .nav.open {
    display: flex;
    animation: navIn 0.35s var(--ease);
  }
  @keyframes navIn { from { transform: translateX(100%); } to { transform: none; } }
  .nav a { font-size: 1.3rem; }
  .nav-toggle { display: flex; z-index: 60; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 58px 20px; }
  .section-head { margin-bottom: 32px; }
  .stats { gap: 28px 40px; margin-top: 36px; }
}

@media (max-width: 560px) {
  .hero { padding: clamp(84px, 10vh, 120px) 18px 72px; min-height: 92vh; }
  .hero-logo { width: 82vw; }

  .section { padding: 50px 16px; }

  .servicio-card { min-height: 300px; padding: 24px 22px; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-btn.prev { left: 2px; }
  .slider-btn.next { right: 2px; }

  .contact-grid { gap: 14px; }
  .contact-card { flex: 1 1 140px; max-width: none; padding: 24px 14px; gap: 8px; }
  .contact-icon { width: 56px; height: 56px; }
  .contact-icon svg { width: 26px; height: 26px; }
  .contact-label { font-size: 0.92rem; }
  .contact-value { font-size: 0.78rem; }
  .contact-cta { margin-top: 32px; }
  .contact-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  /* Sin animación, mostramos todo visible igual */
  .hero-marca, .scroll-hint { opacity: 1 !important; transform: none !important; }
  .bg-video { opacity: 1 !important; transform: none !important; }
}

/* ===== Página de detalle de categoría (efecto.html) ===== */
.detalle-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--accent-3); }
.breadcrumb-actual { color: var(--text); }

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.equipo-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.equipo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--glow-soft), 0.5);
  box-shadow: 0 16px 40px rgba(var(--glow), 0.2);
}
.equipo-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #1a1330, #0d0d14);
  overflow: hidden;
}
.equipo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.equipo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.equipo-emoji { font-size: 3.4rem; filter: drop-shadow(0 0 20px rgba(var(--glow-soft), 0.5)); }
.equipo-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px; }
.equipo-nombre { font-size: 1.3rem; font-weight: 700; }
.equipo-desc { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.es-placeholder .equipo-media { opacity: 0.8; }
.equipo-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.equipo-acciones .btn { padding: 10px 20px; font-size: 0.88rem; }

.detalle-volver { text-align: center; margin-top: 44px; }

/* ===== Modal: Ficha técnica ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(6px);
}
.modal-pdf {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(var(--glow-soft), 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(var(--glow), 0.3);
  animation: modalIn 0.28s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal-pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.modal-pdf-title {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-pdf-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.modal-pdf-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-3);
  padding: 7px 14px;
  border: 1px solid rgba(var(--glow-soft), 0.4);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal-pdf-link:hover { background: var(--accent-2); color: #fff; }
.modal-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.modal-close:hover { background: rgba(var(--glow-soft), 0.4); }
.modal-pdf-body {
  flex: 1;
  display: flex;
  overflow: auto;
  -webkit-overflow-scrolling: touch;   /* scroll suave en iPhone */
  background: var(--bg-soft);
}

/* Las hojas del PDF, dibujadas una debajo de la otra */
.ficha-pdf {
  flex: 1;
  min-width: 0;
  align-self: flex-start;              /* si es corto, arranca arriba */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.ficha-pagina {
  /* El ancho lo fija el JS en píxeles. max-width es la red de seguridad para
     que la hoja no se desborde nunca, y height:auto mantiene la proporción. */
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* Mientras baja el PDF */
.ficha-cargando {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.ficha-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(var(--glow-soft), 0.25);
  border-top-color: var(--accent-2);
  animation: fichaGira 0.8s linear infinite;
}
@keyframes fichaGira { to { transform: rotate(360deg); } }

.ficha-img { max-width: 100%; margin: auto; display: block; }
.ficha-vacia { margin: auto; padding: 44px 28px; text-align: center; color: var(--text-dim); }
.ficha-abrir { display: inline-block; margin-top: 20px; }

@media (max-width: 600px) {
  .modal { padding: 0; }
  /* 100vh en el celular incluye la barra del navegador y corta la cabecera
     del modal (la ✕ queda fuera de pantalla). dvh mide el alto real. */
  .modal-pdf { height: 100vh; height: 100dvh; border-radius: 0; }
  .ficha-pdf { padding: 8px; gap: 8px; }
}
