/* =========================================================
   TELECABLE - Tema Navidad 2026 (Navidad andina)
   Ruta en servidor: public/css/navidad.css
   Solo se carga cuando $navidad = true, en matrix.blade.php
   y en layouts/authentication.blade.php
   Todo queda acotado a body.theme-navidad
   Sintaxis clasica: compatible con el editor de cPanel

   Version: etapa 1 (base)

   Colores de marca (no cambian):
     Azul Telecable .. #0066FF
     Azul marino ..... #001F4F
     Blanco .......... #FFFFFF
   Acentos de Navidad:
     Rojo ............ #D62839  (oscuro #A81E2C)
     Dorado .......... #F2B33D  (claro #FFE29A)
     Verde pino ...... #2E8B57  (oscuro #1F6B42)
     Hielo ........... #DCEBFF
   ========================================================= */


/* ---------- 1. Utilidad para vistas hijas ----------
   Las vistas que extienden matrix no ven $navidad.
   Usar class="nv-only" en cualquier elemento tematico:
   se oculta solo cuando el tema NO esta activo. */
body:not(.theme-navidad) .nv-only {
  display: none;
}

/* ---------- 2. Header: linea roja ---------- */
.theme-navidad > header {
  border-bottom: 3px solid #D62839;
}


/* ---------- 3. Header: gorro sobre el logo ----------
   Ajustar top / left si no calza con la forma del logo */
.theme-navidad .nv-logo a {
  position: relative;
  display: inline-block;
}

.theme-navidad .nv-logo__gorro {
  position: absolute;
    top: -15px;
    left: 0px;
    width: 45px;
    height: 32px;
    background-image: url(../images/navidad/gorro.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    transform: rotate(-0deg);
    pointer-events: none;
}


/* ---------- 4. Header: guirnalda de luces y copos ----------
   Cuelgan del borde inferior del header (top: 100%), sin
   capturar clics. Se desvanecen al hacer scroll (clase
   nv-scrolled en el body, script en el header). */
.theme-navidad .nv-header-decor {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 44px;
  background-image: url('../images/navidad/guirnalda.svg');
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 1600px 44px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.theme-navidad .nv-header-copos {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 130px;
  background-image: url('../images/navidad/copos.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nv-scrolled .nv-header-decor,
.nv-scrolled .nv-header-copos {
  opacity: 0;
  visibility: hidden;
}


/* ---------- 5. Header: moño en "Lo quiero ahora" ----------
   Moño de regalo pegado a la esquina superior derecha del
   boton. No cubre el texto ni captura clics. Se oculta al
   abrir el menu movil (el body recibe overflow-hidden). */
.theme-navidad .nv-cta {
  position: relative;
  display: block;
}


.theme-navidad .nv-cta__mono {
  position: absolute;
  top: -17px;
  right: 10px;
  width: 46px;
  height: 34px;
  background-image: url('../images/navidad/mono.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  pointer-events: none;
  transition: transform 0.25s ease;
}

/* Cinta vertical del regalo, debajo del moño */
.theme-navidad .nv-cta > div {
  position: relative;
  overflow: hidden;
}

.theme-navidad .nv-cta > div::after {
  content: "";
  position: absolute;
  top: 0;
  right: 27px;
  bottom: 0;
  width: 12px;
  background-color: #D62839;
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.28), inset -2px 0 0 rgba(0, 0, 0, 0.18);
}

/* En el boton de escritorio, espacio extra a la derecha del
   texto para que la cinta no lo cruce */
@media (min-width: 768px) {
  .theme-navidad .nv-cta > div {
    padding-right: 46px;
  }
}

.theme-navidad .nv-cta:hover .nv-cta__mono {
  transform: rotate(8deg) scale(1.08);
}

.overflow-hidden .nv-cta__mono {
  display: none;
}



/* ---------- 6. Footer: cerros nevados ----------
   Bloque propio antes del <footer>: ocupa su espacio y no se
   superpone a formularios ni contenido. El cerro del frente
   usa el mismo #00388C del footer. */
.theme-navidad .nv-footer-silueta {
  display: block;
  width: 100%;
  height: 110px;
  margin-bottom: -1px;
  background-image: url('../images/navidad/silueta-footer.svg');
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 1600px 110px;
  pointer-events: none;
}

.theme-navidad footer a:hover {
  color: #FFE29A;
}


/* ---------- 7. Movil ---------- */
@media (max-width: 640px) {
  .theme-navidad .nv-logo__gorro {
  top: -16px;
        left: 1px;
        width: 45px;
        height: 35px;
  }

  .theme-navidad .nv-header-copos {
    display: none;
  }

  .theme-navidad .nv-cta__mono {
    top: -14px;
    right: 14px;
    width: 40px;
    height: 30px;
  }
    .theme-navidad .nv-cta > div::after {
    right: 28px;
  }

  .theme-navidad .nv-footer-silueta {
    height: 80px;
    background-size: 1164px 80px;
  }
}


/* ---------- 8. Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  .theme-navidad .nv-header-decor,
  .theme-navidad .nv-header-copos,
  .theme-navidad .nv-cta__mono {
    transition: none;
  }
  
}
/* ---------- 9. Inicio: hero (nieve, estrella y brillo) ----------
   .nv-hero-nieve va dentro de .hero-section, entre la imagen de
   fondo (z-index 1) y el contenido (z-index 2): la nieve cae
   detras del titulo y del carrusel. Lleva el atributo hidden:
   sin el tema no ocupa espacio. La estrella es su ::after y se
   oculta en pantallas angostas, donde el hero cambia de diseno. */
.theme-navidad .nv-hero-nieve {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  background-image: url('../images/navidad/nieve.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
}

.theme-navidad .nv-hero-nieve::after {
  content: "";
  position: absolute;
  top: 6%;
  left: 38%;
  width: 70px;
  height: 70px;
  background-image: url('../images/navidad/estrella.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* Carrusel del hero: brillo dorado bajo el boton activo.
   Se mueve solo, porque el carrusel ya rota cada 3 s. */
.theme-navidad .carousel-container .active::after {
  content: "";
  position: absolute;
  right: 25%;
  bottom: 7px;
  left: 25%;
  height: 3px;
  border-radius: 2px;
  background-color: #F2B33D;
  box-shadow: 0 0 12px 3px rgba(242, 179, 61, 0.65);
}

@media (max-width: 992px) {
  .theme-navidad .nv-hero-nieve::after {
    display: none;
  }
}


/* ---------- 10. Inicio: pueblo nevado (apps a planes) ----------
   Franja entre la seccion de apps y el banner azul "Internet,
   full velocidad". La loma del frente usa el mismo #0066FF del
   banner. position relative: queda por encima de la seccion de
   apps cuando se monta sobre su relleno inferior. Las animaciones
   (ventanas, copos, alpaca) viven dentro del SVG. */
.theme-navidad .nv-pueblo {
  position: relative;
  display: block;
  width: 100%;
  height: 160px;
  margin-top: -60px;
  margin-bottom: -1px;
  background-color: transparent;
  background-image: url('../images/navidad/pueblo.svg');
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 1600px 200px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .theme-navidad .nv-pueblo {
    height: 100px;
    margin-top: -40px;
    background-size: 800px 100px;
  }
}
/* ---------- 11. Inicio: esferas en las tarjetas de planes ----------
   <span class="nv-esfera nv-esfera--rojo" hidden><span>Texto</span></span>
   dentro de cada .plan-card. El atributo hidden lo mantiene oculto
   cuando el tema esta apagado. La esfera cuelga del borde superior
   de la tarjeta (el adorno, de esfera-adorno.svg, trae el hilo y la
   tapa) y se balancea muy poco. Variantes de color: rojo, verde,
   dorado y azul. */
.theme-navidad .plan-card {
  position: relative;
}

.theme-navidad .nv-esfera {
  position: absolute;
  top: 25px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 31, 79, 0.28);
  color: #FFFFFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  transform-origin: 50% -30%;
  animation: nv-balanceo 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.theme-navidad .nv-esfera::after {
  content: "";
  position: absolute;
  top: -30%;
  right: 0;
  left: 0;
  z-index: 1;
  height: 130%;
  background-image: url('../images/navidad/esfera-adorno.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

.theme-navidad .nv-esfera span {
  position: relative;
  z-index: 2;
  max-width: 62px;
}

.theme-navidad .nv-esfera--rojo {
  background-color: #D62839;
}

.theme-navidad .nv-esfera--verde {
  background-color: #2E8B57;
  animation-delay: -1.5s;
}

.theme-navidad .nv-esfera--dorado {
  background-color: #F2B33D;
  color: #001F4F;
  animation-delay: -3s;
}

.theme-navidad .nv-esfera--azul {
  background-color: #0066FF;
  animation-delay: -4.2s;
}

@keyframes nv-balanceo {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

@media (max-width: 640px) {
  .theme-navidad .nv-esfera {
    top: 18px;
    right: 8px;
    width: 58px;
    height: 58px;
    font-size: 6.8px;
  }

  .theme-navidad .nv-esfera span {
    max-width: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-navidad .nv-esfera {
    animation: none;
  }
}

/* ---------- 12. Inicio: habitantes por seccion ----------
   Muneco de nieve (apps), esfera colgante (planes internet), alpaca
   (planes duo) y regalos cayendo (cable y tc play). Cada uno es un
   elemento con atributo hidden dentro de su seccion; las animaciones
   viven dentro de cada SVG. */
.theme-navidad .apps-section,
.theme-navidad .plans-section,
.theme-navidad .promo-section {
  position: relative;
}

.theme-navidad .promo-container {
  position: relative;
  z-index: 1;
}

.theme-navidad .nv-muneco {
  position: absolute;
  top: 28px;
  right: 12%;
  display: block;
  width: 80px;
  height: 104px;
  background-image: url('../images/navidad/muneco.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  pointer-events: none;
}

.theme-navidad .nv-colgante {
  position: absolute;
  top: 0;
  left: 3%;
  display: block;
  width: 60px;
  height: 240px;
  background-image: url('../images/navidad/colgante.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  pointer-events: none;
}

.theme-navidad .nv-alpaca {
  position: absolute;
  bottom: 8px;
  left: 3%;
  display: block;
  width: 96px;
  height: 104px;
  background-image: url('../images/navidad/alpaca.svg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  pointer-events: none;
}

.theme-navidad .nv-regalos {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: block;
  background-image: url('../images/navidad/regalos.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
}

@media (max-width: 640px) {
  .theme-navidad .nv-muneco {
    top: 8px;
    right: 12px;
    width: 44px;
    height: 57px;
  }

  .theme-navidad .nv-colgante {
    left: 8px;
    width: 32px;
    height: 128px;
  }

  .theme-navidad .nv-alpaca {
    bottom: 4px;
    left: 10px;
    width: 54px;
    height: 58px;
  }
}

/* ---------- 13. Inicio: Noche Buena andina ---------- */
.theme-navidad .promo-section {
  background-image: url('../images/navidad/noche-promo.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

.theme-navidad .nv-footer-silueta--noche {
  position: relative;
  height: 280px;
  background-image: url('../images/navidad/noche-cielo.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

.theme-navidad .nv-footer-silueta--noche::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 240px;
  background-image: url('../images/navidad/noche-escena.svg');
  background-repeat: no-repeat;
  background-position: 65% bottom;
  background-size: 1920px 240px;
}

.theme-navidad .nv-footer-silueta--noche::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background-image: url('../images/navidad/silueta-footer.svg');
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 1600px 110px;
}

@media (max-width: 640px) {
  .theme-navidad .nv-footer-silueta--noche {
    height: 145px;
    background-size: 100% 100%;
  }

  .theme-navidad .nv-footer-silueta--noche::before {
    height: 132px;
    background-size: 1056px 132px;
  }

  .theme-navidad .nv-footer-silueta--noche::after {
    height: 80px;
    background-size: 1164px 80px;
  }
}


/* ---------- 14. Papel tapiz ---------- */
.nv-p-nosotros main,
.nv-p-servicios main,
.nv-p-contacto main,
.nv-p-inicio .apps-section,
.nv-p-inicio .plans-section,
.nv-p-acceso main {
  background-image: url('../images/navidad/papel-tapiz.svg');
  background-repeat: repeat;
  background-position: center top;
  background-size: 240px 240px;
}
/* ---------- 15. Nosotros y Planes ---------- */
.theme-navidad .nv-valor {
  position: relative;
}

.theme-navidad .nv-valor::after {
  content: "";
  position: absolute;
  right: 25%;
  bottom: 10px;
  left: 25%;
  height: 3px;
  border-radius: 2px;
  background-color: #F2B33D;
  box-shadow: 0 0 12px 3px rgba(242, 179, 61, 0.65);
}

@media (max-width: 640px) {
  .theme-navidad .plan-card-img .nv-esfera {
    top: 24px;
    right: 16px;
    width: 74px;
    height: 74px;
    font-size: 8.5px;
  }

  .theme-navidad .plan-card-img .nv-esfera span {
    max-width: 54px;
  }
}
/* ---------- Etapas siguientes ----------
   Etapas 4 a 8: inicio
   Etapa 9: papel tapiz
   Etapas 10 y 11: nosotros y planes */
   