/* assets/css/layout.css */


/* Navbar General */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
  position: relative;
  width: 100%;
  z-index: 1000; /* Para que siempre esté encima de todo */
}

/* Zona Izquierda (Logo o Botón Atrás) */
.nav-left {
  display: flex;
  align-items: center;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-desktop { height: 40px; display: block;}
.logo-mobile {display: none}
.logo-text { height: 25px; display: block; }

/* Botón Volver (Flecha) */
.nav-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.nav-back-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

/* Botones Derecha */
.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #e56b50; 
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 8px 16px;
  background: white;
  transition: all 0.2s ease;
  font-family: 'Prompt', sans-serif; /* Asegúrate de tener la fuente cargada */
}

.nav-btn:hover {
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-text {
  margin-left: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-social {
  padding: 8px;
  width: 40px;
  height: 40px;
}

/* ... (TUS ESTILOS DE NAVBAR QUE YA TIENES ARRIBA) ... */
.nav-page-title {
  margin: 0 0 0 15px;
  padding-left: 15px;
  border-left: 2px solid #e5e7eb; /* Línea divisoria */
  font-family: 'Prompt', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-tema, #374151); /* Usa el color de la categoría */
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none; /* Si es link, sin subrayado */
}

/* Hover si es un link */
a.nav-page-title:hover {
  opacity: 0.7;
}

.nav-page-title span {
  font-size: 1.2rem; /* Flecha más pequeña */
  transform: translateY(-2px);
}

/* =========================================
   ESTILOS DEL POPUP (MODAL) - DISEÑO VIOLETA
   ========================================= */

/* 1. Fondo Oscuro con Blur */
#countdown-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px); /* Efecto borroso */
  z-index: 9999; /* Por encima de la navbar */
  
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none; /* No clickeable mientras está oculto */
  transition: opacity 0.3s ease;
}

/* Clase para mostrarlo */
#countdown-modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

/* 2. La Tarjeta Blanca */
#countdown-modal {
  background: white;
  width: 90%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 24px; /* Bordes muy redondeados */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  font-family: 'Inter', sans-serif;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#countdown-modal-overlay:not(.hidden) #countdown-modal {
  transform: scale(1);
}

/* 3. Botón Cerrar (X) */
#close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 5px;
  transition: color 0.2s;
}
#close-modal-btn:hover {
  color: #4B5563;
}

/* 4. Contenidos Internos */
.brand-icon img {
  height: 60px !important;
  width: auto !important;
  margin: 0 auto 20px auto !important;
  display: flex !important;
}

#countdown-modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1F2937;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

#countdown-modal p.fecha-texto {
  color: #6B7280;
  font-size: 0.85rem;
  margin-top: 5px;
  margin-bottom: 30px;
  font-weight: 500;
}

/* 5. Los Contadores Violetas */
.contador-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.caja-tiempo {
  background-color: #EEF2FF; /* Lila muy claro */
  border-radius: 12px;
  padding: 12px 0;
  width: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.caja-tiempo span.numero {
  color: #4F46E5; /* Violeta fuerte */
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.caja-tiempo span.etiqueta {
  color: #6366F1; /* Violeta medio */
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
}

.footer-texto {
  color: #9CA3AF;
  font-size: 0.65rem;
  line-height: 1.4;
  margin-top: 10px;
}

/* RESPONSIVE (Móvil) */
@media (max-width: 768px) {
  .navbar { padding: 0.8rem 1rem; }
  .logo-text { display: none; } /* Ocultar texto logo */
  
  
  .btn-evento .btn-text { display: none; } /* Ocultar texto Evento */
  
  .btn-evento {
    padding: 8px;
    width: 45px;
    height: 45px;
  }
  
  .btn-social {
    width: 45px;
    height: 45px;
  }
}
@media (max-width: 425px){
  .logo-desktop { display: none;}
  .logo-mobile {display: block}
}
