/* Reset / base */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #1e3a8a; /* Azul más profundo y profesional */
  --accent-hover: #1e40af;
  --muted: #64748b;
  --danger: #0f172a;
  --success: #1e3a8a;
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --radius: 20px;
  --max-width: 440px;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #f8fafc;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
  position: relative;
}

/* Animación de Ondas de Fondo */
.bg-waves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.wave {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 1600px;
  height: 1600px;
  margin-left: -800px;
  margin-top: -800px;
  background: var(--wave-color-1, rgba(30, 58, 138, 0.08));
  border-radius: 43%;
  animation: wave-animation 20s infinite linear;
  filter: blur(2px);
  will-change: transform;
}

.wave:nth-child(2) {
  animation-duration: 25s;
  background: var(--wave-color-2, rgba(30, 58, 138, 0.05));
  border-radius: 40%;
  top: 65%;
}

.wave:nth-child(3) {
  animation-duration: 30s;
  background: var(--wave-color-3, rgba(30, 58, 138, 0.03));
  border-radius: 45%;
  top: 70%;
}

@keyframes wave-animation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Card - Estilo del Login */
.card {
  width: 100%;
  max-width: var(--max-width);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.brand-header {
  text-align: center;
  margin-bottom: 17px;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #111827 0%, #313945 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}



form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px
}

.field {
  display: flex;
  flex-direction: column;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  outline: none;
  font-size: 15px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
  color: #1e293b;
}

input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
}

.btn[disabled] {
  opacity: .6;
  cursor: default
}

.helper {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.msg {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.msg.error {
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.12)
}

.msg.success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.08)
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.footer-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.meta-link {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.meta-link span {
  font-weight: 700;
  color: var(--danger);
  display: block;
}

.meta-link:hover {
  color: var(--accent);
}

/* responsive: stack on small widths */
@media (max-width:420px) {
  .card {
    padding: 18px
  }

  .brand {
    gap: 8px
  }
}

.google-login {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.google-login p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.g_id_signin {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: -65px;
  margin-top: -50px;
}

.logo-pequeno {
  width: 90px;
  margin-bottom: 20px;
  filter: none !important; /* Mantiene color original */
}


/* --- ESTILOS DEL PANEL DE APLICACIONES (MÓDULOS) --- */

#appsPanel {
  display: none;
  padding: 0;
  width: 100%;
  max-width: 1400px;
}

/* TÍTULO */
.apps-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #111827;
}

/* GRID DE APPS */
.grid-apps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  justify-content: center;
  width: 100%;
}

/* Media Queries para Responsive Design */
@media (max-width: 1200px) {
  .grid-apps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-apps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-apps {
    grid-template-columns: repeat(2, 1fr);
  }

  #appsPanel {
    padding: 15px;
  }
}

/* CONTENEDOR DEL ENLACE (CRÍTICO: QUITAR DECORACIÓN) */
.app-card-link {
  text-decoration: none;
  /* Elimina el subrayado del enlace */
  color: inherit;
  display: block;
  height: 100%;
}

/* CARD - Estilo Base (Más Profesional y Minimalista) */
.app-card {
  background: white;
  padding: 24px 16px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #f0f1f3;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* HOVER EFFECT: Elevación sutil y acento */
.app-card-link:hover .app-card {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--accent);
  background-color: white; /* Mantener blanco para ser menos invasivo */
}

/* IMAGEN / ICONO - Contenedor sutil */
.app-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
  transition: transform 0.3s ease;
}

.app-card-link:hover .app-img {
  transform: scale(1.1);
}

/* TÍTULO - Estilo Base */
.app-card h3 {
  color: #1f2937;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.3s ease;
  line-height: 1.2;
}

/* CAMBIO: No cambia a blanco, mantiene elegancia */
.app-card-link:hover h3 {
  color: var(--accent);
}

/* DESCRIPCIÓN - Estilo Base */
.app-card p {
  color: #6b7280;
  font-size: 11px;
  margin-bottom: 0;
  transition: color 0.3s ease;
  flex-grow: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.app-card-link:hover p {
  color: #374151;
}

/* Eliminar el estilo del botón, ya que el <a> completo es el que se usa */
.app-card button {
  display: none;
}


/* --- AJUSTES PARA EL PANEL DE APLICACIONES --- */

#appsPanel {
  display: none;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bienvenda {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 600;
}

.apps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.apps-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
}

#logoutBtn {
  background-color: #ef4444;
  color: white;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

#logoutBtn:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

#logoutBtn:active {
  transform: translateY(0);
}

/* Responsive para el header */
@media (max-width: 768px) {
  .apps-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .apps-title {
    font-size: 24px;
  }

  .grid-apps {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .logout-extra {
    display: none;
  }
}

/* Ticker de Festividad (Flotante) */
.login-festivity-ticker {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 12px 28px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatUp 0.8s ease-out forwards;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}

#loginFestivityTickerIcon {
  font-size: 22px;
}

#loginFestivityTickerText {
  color: #1e3a8a;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes floatUp {
  0% { transform: translate(-50%, 20px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

@media (max-width: 600px) {
  .login-festivity-ticker {
    top: 20px;
    width: 90%;
    padding: 10px 20px;
    justify-content: center;
  }
  #loginFestivityTickerText {
    font-size: 13px;
  }
}


/* --- Estilos para el Ícono de Mostrar/Ocultar Contraseña --- */

/* Contenedor Flex para alinear input y botón */
.password-container {
  position: relative;
  /* Esencial para posicionar el ícono dentro */
  display: flex;
  align-items: center;
}

/* El input debe ocupar el 100% del contenedor */
.password-container input {
  width: 100%;
}

/* Estilo del ícono (el "ojo") */
.password-toggle {
  position: absolute;
  right: 14px;
  /* Posición dentro del campo */
  top: 50%;
  /* Centrado verticalmente */
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  /* Tamaño del ícono */
  color: var(--muted);
  /* Color tenue */
  transition: color 0.15s ease;
}

/* Cambiar color al pasar el ratón */
.password-toggle:hover {
  color: var(--accent);
}

/* Estilo para simular el ícono del ojo tachado cuando la contraseña está oculta */
.password-toggle.toggled {
  opacity: 0.6;
}


/* Loader en esquina inferior derecha */
#loaderLogin {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 150px;
  display: none;
  z-index: 9999;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.modal-btn {
  width: 100%;
}

.modal-close {
  margin-top: 15px;
  background: transparent;
  border: none;
  color: #555;
  cursor: pointer;
}

/* ---------------- MODAL ---------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}


.modal-restablecer {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 450px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}


.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.modal-btn {
  width: 100%;
  padding: 10px;
}

.modal-close {
  margin-top: 15px;
  background: transparent;
  border: none;
  color: white;
  background-color: red;
  cursor: pointer;
  font-weight: bold;
}

.footer-site {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f5f5f5;
  text-align: center;
  padding: 15px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #666;
  z-index: 100;
}


/* estilo de seccion de noticias */

/* PANEL DE NOTICIAS PREMIUM */
.news-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(100%);
}

.news-panel.oculto {
  transform: translateX(100%);
}

.news-panel:not(.oculto) {
  transform: translateX(0);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: white;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}

.news-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-header button {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.news-header button:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.news-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* NEWS CARD ELEGANT */
.news-card {
  background: white;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.news-img-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(30, 58, 138, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.news-text-content {
  padding: 16px;
}

.news-card h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.news-card p {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.news-date {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.news-read-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .news-panel {
    width: 100%;
  }
}

/* BOTÓN FLOTANTE NOTICIAS */
.news-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 30px rgba(30, 58, 138, 0.4);
}

/* CONTADOR */
.news-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}


/* PANEL DE NOTICIAS */

/* PANEL DE NOTICIAS */
.news-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #ddd;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  transform: translateX(100%);
  /* ✅ OCULTO DESDE EL INICIO */
}

.news-panel.oculto {
  transform: translateX(100%);
}

.news-panel:not(.oculto) {
  transform: translateX(0);
}




/* MODAL OVERLAY */
.news-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.news-modal.oculto {
  display: none;
}

/* CONTENIDO */
.news-modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.news-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.news-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: rotate(90deg);
}

#modalTitle {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.modal-date {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#modalBody {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

#modalBody img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RELOJ FLOTANTE */
.clock-fab {
  position: fixed;
  top: 20px;
  left: 20px;
  background: white;
  /* Efecto Glassmorphism sutil para premium feel */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #313945;
  padding: 8px 16px;
  border-radius: 30px;
  display: none;
  /* Oculto inicialmente por JS logic */
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 998;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-family: inherit;
}

.clock-fab:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.clock-icon {
  font-size: 18px;
}

/* CLIMA FLOTANTE (Premium Glassmorphism) */
.weather-fab {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #1e293b;
  padding: 10px 18px;
  border-radius: 30px;
  display: none; /* Se activa por JS */
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 998;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.weather-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 1);
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 8px;
  /* El borde se quita si los detalles están ocultos */
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-right: 12px;
  transition: border 0.3s;
}

.weather-temp {
  font-size: 18px;
  font-weight: 800;
  color: #1e3a8a;
  white-space: nowrap;
}

.weather-details {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
  transition: all 0.3s ease;
  max-width: 200px;
  opacity: 1;
}

.weather-icon {
  font-size: 22px;
}

.weather-loc {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  display: block;
}

@media (max-width: 768px) {
  .clock-fab {
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 11px;
    height: 36px;
  }
  
  .weather-fab {
    top: 12px;
    right: 12px;
    left: auto;
    padding: 6px 14px;
    font-size: 13px;
    width: auto;
    height: 36px;
    border-radius: 18px;
    max-width: fit-content;
    gap: 8px;
    display: flex;
    flex-direction: row; /* Asegura horizontalidad */
    align-items: center;
  }

  .weather-fab .weather-main {
    border-right: none;
    padding-right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .weather-fab .weather-temp {
    font-size: 15px;
  }

  .weather-fab .weather-details {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    overflow: hidden;
    position: absolute; /* Evita que crezca verticalmente */
  }

  /* Cuando está expandido en móvil */
  .weather-fab.expanded {
    gap: 12px;
    padding: 10px 18px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

  .weather-fab.expanded .weather-main {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-right: none;
    padding-bottom: 8px;
    margin-bottom: 4px;
    width: 100%;
  }

  .weather-fab.expanded .weather-details {
    max-width: 250px;
    opacity: 1;
    position: relative;
    display: flex;
  }

  .news-fab {
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
  }
}

/* Banner Logo Style */
.banner-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Banner Logo (Removed from top) */

/* --- BANNER DE FESTIVIDADES (Elegante e Institucional) --- */
.festivity-banner {
  background: linear-gradient(135deg, #0f2027 0%, #173245 100%);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-left: 5px solid rgba(255, 255, 255, 0.2);
}

/* Botón de Cerrar Sesión Flotante y Compacto */
#bannerLogoutContainer {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

#logoutBtn {
  background: rgba(244, 67, 54, 0.85);
  color: white;
  border: none;
  padding: 7px 12px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#logoutBtn:hover {
  background: rgba(211, 47, 47, 1);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(244, 67, 54, 0.4);
}

.banner-bottom-bar {
  padding: 15px 25px; /* Restaurado */
  background: rgba(255, 255, 255, 0.04);
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

/* Removed Floating FAB */


.banner-bottom-bar .apps-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Capa pre-diseñada que atrapará animaciones JS */
#bannerAnimations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.festivity-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08); /* Más sobrio */
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
}

.banner-top-bar .btn {
  padding: 6px 14px;
  font-size: 11px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  text-transform: uppercase;
}

.banner-top-bar .btn:hover {
  background: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.festivity-content {
  display: flex;
  flex-direction: row; 
  align-items: center;
  gap: 24px;
  padding: 30px 25px;
  position: relative;
  z-index: 1;
}

.festivity-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  width: 90px;   /* Tamaño aumentado de 75 a 90 */
  height: 90px;  /* Tamaño aumentado de 75 a 90 */
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.festivity-logo {
  width: 100%;
  height: 100%;
  padding: 6px; 
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0,0,0,0.25)); /* Blanco puro */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.festivity-banner:hover .festivity-logo {
  transform: scale(1.1) rotate(5deg);
}

.festivity-text h3 {
  margin: 0 0 6px 0;
  font-size: 21px; /* Formal */
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.festivity-text p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-weight: 400;
}

/* Dato del día (Estilo formal) */
.festivity-info {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.8s ease;
}

.festivity-info-label {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animaciones Generadas por JS */

/* Nieve */
.flake {
  position: absolute;
  top: -30px;
  color: #fff;
  font-size: 14px;
  animation: fall linear infinite;
}

/* Hojas */
.leaf {
  position: absolute;
  top: -30px;
  font-size: 18px;
  animation: fallAndSway linear infinite;
  opacity: 0.85;
}

/* Pétalos */
.petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 16px;
  border-radius: 10px 0; /* Forma de pétalo */
  animation: fallAndSway linear infinite;
}

/* Ambient (Partículas formales de fondo) */
.ambient-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,1); /* JS controlará opacidad inicial */
  border-radius: 50%;
  animation: floatAmbient ease-in-out infinite alternate;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

@keyframes fallAndSway {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate(30px, 90px) rotate(180deg); }
  90% { opacity: 0.8; }
  100% { transform: translate(-25px, 200px) rotate(360deg); opacity: 0; }
}

@keyframes floatAmbient {
  0% { transform: translate(0,0); }
  100% { transform: translate(25px, -25px); }
}

@media (max-width: 600px) {
  .festivity-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}