@charset "UTF-8";
:root {
  --container-width: 1920px;
  --outer-gutter: 1rem;
  --scrollbar-visible-width: 0px;
}

/* 📦 CONTENEDOR CENTRALIZADO */
.container {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--outer-gutter);
  padding-right: var(--outer-gutter);
}

/* 📱 RESPONSIVE GUTTERS */
@media screen and (max-width: 640px) {
  :root {
    --outer-gutter: 1rem;
  }
}
@media screen and (min-width: 641px) and (max-width: 768px) {
  :root {
    --outer-gutter: 1.5rem;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  :root {
    --outer-gutter: 2rem;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1280px) {
  :root {
    --outer-gutter: 2.5rem;
  }
}
@media screen and (min-width: 1281px) {
  :root {
    --outer-gutter: 3rem;
  }
}
header a svg {
  width: 24px;
  height: 24px;
}

/* -----------------------------------------------------------
   ANIMACIONES Y UTILIDADES
----------------------------------------------------------- */
@layer utilities {
  @keyframes pulse-custom {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
  }
  .animate-pulse-custom {
    animation: pulse-custom 2s ease-in-out infinite;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Rebote estilo pelota */
@keyframes bounce-ball {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-25px);
  }
  60% {
    transform: translateY(-10px);
  }
}
.animate-bounce-ball {
  animation: bounce-ball 1.5s ease-in-out infinite;
}

/* Efecto Rainbow */
@keyframes rainbow-fast {
  0% {
    color: #E53935;
  }
  25% {
    color: #f39c12;
  }
  50% {
    color: #27ae60;
  }
  75% {
    color: #2980b9;
  }
  100% {
    color: #E53935;
  }
}
.hover\:animate-rainbow-fast:hover {
  animation: rainbow-fast 1s infinite linear;
}

/* Texto cíclico */
@keyframes text-cycle {
  0%, 20% {
    transform: translateY(0%);
  }
  25%, 45% {
    transform: translateY(-100%);
  }
  50%, 70% {
    transform: translateY(-200%);
  }
  75%, 100% {
    transform: translateY(0%);
  }
}
.animate-text-cycle {
  animation: text-cycle 6s ease-in-out infinite;
}

/* Rotación Scroll */
@keyframes rotateOnScroll {
  to {
    transform: rotate(360deg);
  }
}
.rotate-scroll {
  animation: rotateOnScroll 1.2s linear forwards;
}

/* -----------------------------------------------------------
   BOTÓN VOLVER ARRIBA (WOW)
----------------------------------------------------------- */
.up {
  height: 3.75rem;
  width: 3.75rem;
  border-radius: 9999px;
  background-color: #fff;
  color: #19191C;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s ease;
  will-change: transform;
  outline: 1px solid red;
}

.up:hover {
  transform: rotate(360deg);
}

.up-wrap {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 9999;
}

/* -----------------------------------------------------------
   ANIMACIÓN SVG (DIBUJO DE LÍNEA)
----------------------------------------------------------- */
.animate-svg-on-scroll {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}

.animate-svg-on-scroll.draw {
  stroke-dashoffset: 0;
}

/* -----------------------------------------------------------
   TEXT LOOP Y REBOTE BOLA ROJA
----------------------------------------------------------- */
@keyframes bounce-ball-basket {
  0%, 100% {
    transform: translateY(0) scaleY(1);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  25% {
    transform: translateY(200%) scaleY(0.8);
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  50% {
    transform: translateY(-200%) scaleY(1.1);
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1);
  }
  75% {
    transform: translateY(100%) scaleY(0.9);
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
}
@keyframes text-loop {
  0%, 20% {
    transform: translateY(0%);
  }
  25%, 45% {
    transform: translateY(-100%);
  }
  50%, 70% {
    transform: translateY(-200%);
  }
  75%, 100% {
    transform: translateY(0%);
  }
}
.animate-text-loop {
  animation: text-loop 9s infinite;
}

/* -----------------------------------------------------------
   BOTÓN MAGNÉTICO
----------------------------------------------------------- */
.magnetic-wrap {
  position: relative;
  display: inline-block;
}

.magnetic-size {
  position: absolute;
  top: -10rem;
  bottom: -10rem;
  left: -10rem;
  right: -10rem;
  cursor: default;
}

.js-magnetic-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.js-magnetic-content .circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E53935;
  transition: transform 0.2s ease;
  position: relative;
}

/* -----------------------------------------------------------
   OTROS ELEMENTOS
----------------------------------------------------------- */
@keyframes lights {
  0% {
    filter: hue-rotate(0deg);
    opacity: 1;
  }
  25% {
    filter: hue-rotate(60deg);
    opacity: 0.8;
  }
  50% {
    filter: hue-rotate(120deg);
    opacity: 1;
  }
  75% {
    filter: hue-rotate(180deg);
    opacity: 0.8;
  }
  100% {
    filter: hue-rotate(360deg);
    opacity: 1;
  }
}
.tree-emoji {
  display: inline-block;
  font-size: 4rem;
  animation: lights 2s infinite linear;
}

/* -----------------------------------------------------------
   OPTIMIZACIÓN IMÁGENES & KEN BURNS
----------------------------------------------------------- */
/* Lazy Load base */
.lazy-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.lazy-bg.loaded {
  opacity: 1;
}

/* Estilos UNIFICADOS para todos los carruseles (Optimización) */
[id^=kenburns-] .na_fondo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* Mantiene la proporción */
  opacity: 0;
  transition: opacity 3s ease-in-out;
  position: absolute; /* Asegura que se superpongan */
  inset: 0;
}

[id^=kenburns-] .na_fondo.activo {
  opacity: 1;
}

/* Reserva espacio para evitar saltos (CLS Fix) */
[id^=kenburns-] {
  min-height: 250px; /* Altura mínima móvil */
  background-color: #19191C; /* Color de fondo mientras carga */
  position: relative;
}

@media (min-width: 1024px) {
  [id^=kenburns-] {
    min-height: 600px; /* Altura escritorio */
  }
}

/*# sourceMappingURL=main.css.map */
