/** Add styles here */
/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500&family=Poppins:wght@400;500&display=swap");

/* =============== VARIABLES CSS ============== =*/
:root {
  --header-height: 3.5rem;

  /* ========== Colors ========== */
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #fc00a8;
  --second-color: #00d9ff;
  --first-color-rgb: 102, 187, 106;
  --gradient-color: linear-gradient(
    75deg,
    var(--second-color) 20%,
    var(--first-color) 66%
  );
  --gradient-color2: linear-gradient(
    75deg,
    var(--first-color) 20%,
    var(--second-color) 66%
  );
  --first-color-light: hsl(260, 88%, 92%);
  --first-color-dark: hsl(0, 0%, 0%);
  --title-color: hsl(260, 80%, 18%);
  --text-color: hsl(259, 22%, 23%);
  --text-color-light: hsl(260, 16%, 65%);
  --white-color: hsl(0, 0%, 100%);
  --body-color: hsl(215, 33%, 93%);
  --container-color: hsl(0, 0%, 100%);
  --select-page: hsl(276, 92%, 54%);
  --check--icon: var(--first-color);
  --footer-color: #000;
  --section-bg-color: #f4f6f8;
  --card-bg-color: #ffffff;
  --nav-menu-bg: hsla(215, 33%, 93%, 0.85);

  /* ========== Font and typography ========== */
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --second-font: "Lora", serif;
  --biggest-font-size: 1.75rem;
  --bigger-font-size: 2rem;
  --big-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --logo-font-size: 1.9rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  --container-padding-mobile: 15px;
  --container-padding-tablet: 20px;
  --container-padding-desktop: 25px;
  --container-max-width-sm: 540px;
  --container-max-width-md: 720px;
  --container-max-width-lg: 960px;
  --container-max-width-xl: 1140px;
  --container-max-width-xxl: 1320px;

  /* ========== Font weight ========== */
  --font-regular: 400;
  --font-medium: 500;

  /* ========== z index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;

  /* ========== Command Center (HUD) Global Variables ========== */
  --cc-bg-glass: rgba(255, 255, 255, 0.65);
  --cc-bg-glass-strong: rgba(255, 255, 255, 0.9);
  --cc-border-subtle: rgba(0, 0, 0, 0.08);
  --cc-blur: 16px;

  /* Text Colors for CC (Mapped to System) */
  --cc-text-main: var(--title-color);
  --cc-text-muted: var(--text-color-light);

  /* Neon Palette */
  --neon-cyan: var(--second-color);
  --neon-cyan-glow: #22d3ee;
  --neon-magenta: var(--first-color);
  --neon-magenta-glow: #f472b6;
  --neon-green: #10b981;
  --neon-green-glow: #34d399;
  --neon-violet: #7c3aed;
  --neon-violet-glow: #a78bfa;
  --neon-blue: #2563eb;
  --neon-blue-glow: #60a5fa;
  --neon-red: #ef4444;
}

/* ========== Responsive typography ========== */
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 4rem;
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/* =============== BASE =============== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background 0.4s;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--font-regular);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-mobile);
  padding-right: var(--container-padding-mobile);
}

/* ================ CUSTOM SCROLLBAR (WebKit/Blink) ================ */
/* Aplicar al body o a elementos específicos con overflow si es necesario */
body::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

body::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 9px;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 11px;
  border: 2px solid var(--body-color);
}

body::-webkit-scrollbar-thumb:hover {
  background-color: var(--second-color);
}

body::-webkit-scrollbar-corner {
  background-color: transparent;
}

/* ================ SELECCIONAR EN LA PAGINA ================ */
::-webkit-selection {
  color: var(--select-page);
  background-color: transparent;
}

::selection {
  color: var(--select-page);
  background-color: transparent;
}

/* =============== THEME =============== */
.NavButtons {
  display: flex;
  align-items: center;
  column-gap: 1.25rem;
}

.ChangeTheme {
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* ========== MODE DARK ========== */
body.dark-theme {
  --title-color: hsl(261, 100%, 89%);
  --text-color: hsl(261, 41%, 87%);
  --body-color: hsl(0, 0%, 16%);
  --container-color: hsl(262, 34%, 19%);
  --select-page: hsl(197, 100%, 50%);
  --check--icon: var(--second-color);
  --section-bg-color: #222;
  --card-bg-color: #333;
  --card-bg-color: #333;
  --nav-menu-bg: hsla(0, 0%, 16%, 0.85);

  /* Command Center Dark Mode Overrides */
  --cc-bg-glass: rgba(15, 23, 42, 0.65);
  --cc-bg-glass-strong: rgba(15, 23, 42, 0.85);
  --cc-border-subtle: rgba(255, 255, 255, 0.08);
}

/*=============== SCROLL TO TOP BUTTON ===============*/
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 0.75rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-tooltip, 10);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.scroll-to-top i {
  font-size: 1.5rem;
}

.scroll-to-top:hover {
  background-color: var(--second-color);
}

/* Clase para mostrar el botón */
.scroll-to-top.show-scroll {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ======================================================== */
/* ==        ESTILOS PARA SCROLLBAR PERSONALIZADO        == */
/* ======================================================== */

/* --- Estilos para navegadores WebKit (Chrome, Safari, Edge) --- */
/* Define el ancho del scrollbar */
.dashboard-main-content::-webkit-scrollbar {
  width: 10px;
}

/* El fondo o riel del scrollbar */
.dashboard-main-content::-webkit-scrollbar-track {
  background-color: hsl(220, 18%, 15%);
  border-radius: 10px;
}

/* La barra móvil del scrollbar */
.dashboard-main-content::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 10px;
  border: 2px solid hsl(220, 18%, 15%);
}

/* Efecto al pasar el mouse sobre la barra */
.dashboard-main-content::-webkit-scrollbar-thumb:hover {
  background-color: #02ff17;
  border-color: hsl(220, 18%, 20%);
}

/* --- Estilos para Firefox --- */
/* Firefox usa una sintaxis más moderna y simple */
.dashboard-main-content {
  scrollbar-width: thin;
  scrollbar-color: var(--first-color) hsl(220, 18%, 15%);
}

/* === PUNTOS DE QUIEBRE COMUNES PARA EL ANCHO DEL CONTENEDOR === */
@media (min-width: 576px) {
  .container {
    max-width: var(--container-max-width-sm);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-max-width-md);
    padding-left: var(--container-padding-tablet);
    padding-right: var(--container-padding-tablet);
  }
}

@media (min-width: 992px) {
  .container {
    max-width: var(--container-max-width-lg);
    padding-left: var(--container-padding-desktop);
    padding-right: var(--container-padding-desktop);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width-xl);
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: var(--container-max-width-xxl);
  }
}

/* =============== BANNER SLIM PREMIUM (MENSAJE COMPLETO) =============== */
.BannerVacaciones.slim-premium {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 95%;
  max-width: 1100px; /* Un poco más ancho para el texto largo */
  min-height: 80px;
  border-radius: 100px; /* Estilo píldora */
  z-index: 2000;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
}

.BannerVacaciones.active {
  transform: translateX(-50%) translateY(0);
}

.BannerGlass {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 58, 28, 0.98),
    rgba(20, 80, 35, 0.95)
  );
  backdrop-filter: blur(12px);
  z-index: -1;
}

.BannerWrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  gap: 1.5rem;
  width: 100%;
}

/* --- CONTENIDO CENTRAL --- */
.BannerContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.BannerBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #d4af37, #f1d592);
  color: #0d3a1c;
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.BannerMessage p {
  color: #fff;
  font-size: 0.88rem; /* Ajuste leve para legibilidad */
  line-height: 1.3;
  margin: 0;
}

.BannerMessage strong {
  color: #f1d592;
  font-weight: 600;
}

/* --- ICONOS Y ANIMACIONES --- */
.FestiveIcons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: #f1d592;
  font-size: 1.6rem;
}

/* Reutilizamos tus animaciones swing y pulse */
@keyframes swing {
  0%,
  100% {
    transform: rotate(-12deg);
  }
  50% {
    transform: rotate(12deg);
  }
}
.swing {
  animation: swing 2.5s ease-in-out infinite;
}
.swing-alt {
  animation: swing 3s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(241, 213, 146, 0.6));
  }
}
.pulse {
  animation: pulse 2s ease-in-out infinite;
}
.pulse-alt {
  animation: pulse 2.5s ease-in-out infinite 0.3s;
}

/* --- NIEVE --- */
.snowflake {
  position: absolute;
  top: -15px;
  color: #fff;
  pointer-events: none;
  z-index: 1;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100px) rotate(360deg);
    opacity: 0;
  }
}

/* --- BOTÓN CIERRE --- */
.CloseBanner {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  transition: 0.3s;
  margin-left: 0.5rem;
}
.CloseBanner:hover {
  color: #f1d592;
  transform: scale(1.1) rotate(90deg);
}

/* Responsivo para móviles */
@media screen and (max-width: 992px) {
  .BannerVacaciones.slim-premium {
    border-radius: 25px;
    padding: 1rem 0.5rem;
  }
  .FestiveIcons {
    display: none;
  } /* Ocultamos iconos laterales en móvil para dar espacio al texto */
  .BannerMessage p {
    font-size: 0.8rem;
  }
}

/* ========================================= */
/* MODAL PUBLICITARIO DE INICIO             */
/* ========================================= */
.promo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Por encima de todo */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.promo-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.promo-content {
  background-color: var(--container-color);
  border-radius: 12px;
  width: 95%; /* Aumentamos un poquito para que en celulares aproveche mejor el espacio */
  max-width: 800px; /* AQUÍ ESTÁ LA MAGIA: Pasamos de 500px a 800px */
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.promo-overlay.is-visible .promo-content {
  transform: scale(1);
}

.promo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}
.promo-close:hover {
  background: var(--first-color);
}

.promo-header {
  padding: 1.5rem 1.5rem 0.5rem;
  text-align: center;
}
.promo-header h2 {
  color: var(--title-color);
  margin: 0;
  font-size: 1.5rem;
}

.promo-body {
  padding: 0 1.5rem 1rem; /* Quitamos el espacio de arriba para que la imagen suba un poco */
  text-align: center;
}

.promo-body img {
  width: 100%; /* Forzamos a que la imagen ocupe todo el ancho disponible */
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.promo-body p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin: 0;
}

.promo-footer {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
}
.btn-promo-action {
  background-color: var(--first-color);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}
.btn-promo-action:hover {
  opacity: 0.9;
}

/* ========================================= */
/* NOTIFICACIÓN FLOTANTE (DERECHOS DE PETICIÓN) */
/* ========================================= */
.floating-notification {
  position: fixed;
  top: 50%;
  left: 25px;
  background: linear-gradient(135deg, rgba(255, 171, 203, 0.95), rgba(168, 230, 255, 0.95));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  width: 380px;
  max-width: 90vw;
  z-index: 10000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 6px 0px 0px #00d9ff, 0 15px 35px rgba(0,0,0,0.2);
  /* Entrada más elástica/dinámica, incluyendo el centrado vertical */
  transform: translateY(-50%) translateX(-150%) scale(0.5) rotate(-20deg);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.6s ease;
  transform-origin: center left;
  border: 1px solid rgba(255,255,255,0.5);
}

.floating-notification.show {
  transform: translateY(-50%) translateX(0) scale(1) rotate(0);
  opacity: 1;
  /* Animación continua muy notoria */
  animation: float-notification 3s ease-in-out infinite alternate 1.5s;
}

@keyframes float-notification {
  0% { transform: translateY(-50%) rotate(0); box-shadow: -6px 6px 0px 0px #00d9ff, 0 15px 35px rgba(0,0,0,0.2); }
  50% { transform: translateY(calc(-50% - 10px)) rotate(1deg); box-shadow: -10px 12px 0px 0px #00d9ff, 0 25px 45px rgba(0,0,0,0.15); }
  100% { transform: translateY(-50%) rotate(-1deg); box-shadow: -6px 6px 0px 0px #00d9ff, 0 15px 35px rgba(0,0,0,0.2); }
}

.floating-notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 5px 20px;
}

.floating-notification-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-notification-icon {
  background: #ff6b6b;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  /* Glow pulsante + Timbre exagerado */
  animation: ring-bell 4s infinite ease-in-out, pulse-glow 2s infinite alternate;
}

@keyframes ring-bell {
  0%, 100% { transform: rotate(0) scale(1); }
  5%, 15%, 25% { transform: rotate(25deg) scale(1.2); }
  10%, 20% { transform: rotate(-25deg) scale(1.2); }
  30% { transform: rotate(0) scale(1); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
  100% { box-shadow: 0 0 0 15px rgba(255, 107, 107, 0); }
}

.floating-notification-title {
  color: #1a0b2e;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.floating-notification-close {
  background: rgba(255,255,255,0.3);
  border: none;
  color: #1a0b2e;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
}

.floating-notification-close:hover {
  background: #ff6b6b;
  color: white;
  transform: scale(1.1) rotate(90deg);
}

.floating-notification-body {
  padding: 10px 20px 25px 20px;
  text-align: center; /* CENTRADO */
}

.floating-notification-text {
  color: #2d2342;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 500;
}

.floating-notification-text strong {
  color: #fc00a8;
  font-weight: 800;
  font-size: 1.05rem;
  background: rgba(252, 0, 168, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

.floating-notification-action {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* BOTÓN DE CORREO SÚPER LLAMATIVO */
.floating-notification-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a0b2e, #2d2342);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 6px 20px 6px 6px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(26, 11, 46, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Brillo que barre el botón */
.floating-notification-email::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: shine-email 3s infinite;
}

@keyframes shine-email {
  0% { left: -100%; }
  20%, 100% { left: 200%; }
}

.floating-notification-email:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(26, 11, 46, 0.4);
  background: linear-gradient(135deg, #fc00a8, #1a0b2e);
  color: white;
}

.email-icon-wrapper {
  background: #00d9ff;
  color: #1a0b2e;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.floating-notification-email:hover .email-icon-wrapper i {
  animation: fly-mail 0.6s ease-out forwards;
}

@keyframes fly-mail {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  40% { transform: translate(15px, -15px) scale(0.5); opacity: 0; }
  50% { transform: translate(-15px, 15px) scale(0.5); opacity: 0; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* Animación de salida (desaparecer) */
.floating-notification.hide {
  animation: pop-out-notification 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards !important;
}

@keyframes pop-out-notification {
  0% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  30% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0) rotate(-15deg);
  }
}

.floating-notification-progress-bar {
  height: 6px;
  background: linear-gradient(90deg, #fc00a8, #00d9ff, #fc00a8);
  background-size: 200% 100%;
  width: 100%;
  transform-origin: left;
  animation: progress-gradient-shift 2s linear infinite;
}

@keyframes progress-gradient-shift {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
