/* Estilos generales */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Scroll suave para el sidebar */
.sidebar {
  scroll-behavior: smooth;
}

/* ===== MODO OSCURO PARA EL MENÚ ===== */
body.dark-mode .sidebar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}

body.dark-mode .sidebar-header {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  border-bottom: 3px solid #0056b3;
}

body.dark-mode .menu-header {
  color: #ffffff;
}

body.dark-mode .menu-header:hover {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 86, 179, 0.2) 100%);
  color: #4dabf7;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

body.dark-mode .submenu {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.98) 0%, rgba(60, 60, 60, 0.98) 100%);
  box-shadow: inset 0 0 30px rgba(0, 123, 255, 0.2), 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Líneas verticales eliminadas para modo oscuro */

/* Líneas verticales eliminadas para submenús anidados en modo oscuro */

body.dark-mode .submenu li a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .submenu li a:hover {
  background: linear-gradient(135deg, 
    rgba(0, 123, 255, 0.3) 0%, 
    rgba(0, 86, 179, 0.3) 50%, 
    rgba(0, 123, 255, 0.2) 100%);
  color: #4dabf7;
  box-shadow: 
    0 6px 20px rgba(0, 123, 255, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .inicio-link {
  color: #ffffff;
}

body.dark-mode .inicio-link:hover {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.2) 0%, rgba(230, 126, 34, 0.2) 100%);
  color: #f39c12;
}

body.dark-mode .barra-superior {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Botón modo oscuro */
#toggle-dark-mode {
  position: fixed;
  top: 8px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 10000;
}

#toggle-dark-mode:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

body.dark-mode #toggle-dark-mode {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

body.dark-mode #toggle-dark-mode:hover {
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
}

/* Efectos de partículas para el sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 188, 156, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(52, 73, 94, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Estilos del botón de menú */
.menu-toggle {
  position: fixed;
  top: 0px;
  left: 0px;
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
  font-size: 18px;
}

.sidebar {
  position: fixed;
  top: 0px;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding-top: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-280px);
  overflow-y: hidden;
  box-sizing: border-box;
  z-index: 9999;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  padding: 20px 15px;
  text-align: center;
  border-bottom: 3px solid #0056b3;
  position: relative;
  overflow: hidden;
}

.sidebar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.sidebar-header:hover::before {
  left: 100%;
}

.sidebar-header i {
  font-size: 2.5em;
  color: #ecf0f1;
  margin-bottom: 10px;
  display: block;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.sidebar h1 {
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: 15px auto;
  padding: 12px 15px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.logout-btn:hover::before {
  left: 100%;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.logout-btn i {
  margin-right: 8px;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.logout-btn:hover i {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
  animation: logoutShake 0.6s ease-in-out;
}

@keyframes logoutShake {
  0%, 100% { transform: scale(1.1) rotate(5deg); }
  25% { transform: scale(1.1) rotate(10deg); }
  75% { transform: scale(1.1) rotate(0deg); }
}

/* Estilos de los menús */
.menu-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.menu-header {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  color: #2c3e50;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.menu-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #3498db, #1abc9c);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.menu-header:hover::before {
  transform: scaleY(1);
}

.menu-header:hover {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.08) 0%, rgba(0, 86, 179, 0.08) 100%);
  color: #007bff;
  padding-left: 25px;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
  text-shadow: none;
  transform: translateX(3px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-header i:first-child {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: none;
}

/* Íconos coloridos para headers principales */
.menu-header i.fas.fa-bible { color: #3498db; }
.menu-header i.fas.fa-scroll { color: #e67e22; }
.menu-header i.fas.fa-tablets { color: #9b59b6; }
.menu-header i.fas.fa-landmark { color: #f39c12; }
.menu-header i.fas.fa-music { color: #e91e63; }
.menu-header i.fas.fa-fire { color: #e74c3c; }
.menu-header i.fas.fa-star { color: #f1c40f; }
.menu-header i.fas.fa-cross { color: #27ae60; }
.menu-header i.fas.fa-book-open { color: #8e44ad; }
.menu-header i.fas.fa-church { color: #1abc9c; }
.menu-header i.fas.fa-envelope { color: #3498db; }
.menu-header i.fas.fa-envelope-open { color: #e67e22; }
.menu-header i.fas.fa-eye { color: #9b59b6; }
.menu-header i.fas.fa-users { color: #f39c12; }
.menu-header i.fas.fa-question-circle { color: #e91e63; }
.menu-header i.fas.fa-book { color: #27ae60; }
.menu-header i.fas.fa-chart-line { color: #1abc9c; }
.menu-header i.fas.fa-language { color: #8e44ad; }

.menu-header:hover i:first-child {
  transform: scale(1.15) rotate(3deg);
  filter: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-header span {
  flex: 1;
  font-size: 14px;
}

.menu-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: #bdc3c7;
}

.menu-header:hover .menu-arrow {
  color: #3498db;
}

/* Submenú - VERSIÓN MEJORADA CON MÁS VIDA */
.submenu {
display: none;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.98) 0%, rgba(233, 236, 239, 0.98) 100%);
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: none;
}

/* Líneas verticales eliminadas */

@keyframes submenuGlow {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.submenu.active {
  display: block;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu li {
  display: block;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.submenu li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.submenu li:hover::before {
  transform: translateX(100%);
}

.submenu li a {
  color: #2c3e50;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 15px 20px 15px 50px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.5);
}

/* Líneas verticales eliminadas para submenús anidados */

/* Línea vertical eliminada */

/* Línea horizontal eliminada */

.submenu li a:hover {
  background: linear-gradient(135deg, 
    rgba(0, 123, 255, 0.12) 0%, 
    rgba(0, 86, 179, 0.12) 50%, 
    rgba(0, 123, 255, 0.08) 100%);
  color: #007bff;
  transform: translateX(5px) scale(1.005);
  box-shadow: 
    0 3px 12px rgba(0, 123, 255, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
  text-shadow: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu li a i {
  margin-right: 18px;
  font-size: 20px;
  width: 22px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: none;
  position: relative;
}

.submenu li a:hover i {
  transform: scale(1.25) rotate(5deg);
  filter: none;
  animation: iconPulse 0.6s ease-in-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1.25) rotate(5deg); }
  50% { transform: scale(1.35) rotate(5deg); }
}

/* Íconos coloridos para submenús - VERSIÓN MEJORADA CON MÁS VIDA */
/* Pentateuco */
.submenu li a i.fas.fa-seedling { 
  color: #2ecc71; 
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}
.submenu li a i.fas.fa-route { 
  color: #e67e22; 
  text-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}
.submenu li a i.fas.fa-hands { 
  color: #f39c12; 
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}
.submenu li a i.fas.fa-hashtag { 
  color: #9b59b6; 
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}
.submenu li a i.fas.fa-book-open { 
  color: #3498db; 
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Históricos */
.submenu li a i.fas.fa-cross { 
  color: #e74c3c; 
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}
.submenu li a i.fas.fa-balance-scale { 
  color: #f1c40f; 
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}
.submenu li a i.fas.fa-heart { 
  color: #e91e63; 
  text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}
.submenu li a i.fas.fa-crown { 
  color: #ffd700; 
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.submenu li a i.fas.fa-throne { 
  color: #8e44ad; 
  text-shadow: 0 0 10px rgba(142, 68, 173, 0.5);
}
.submenu li a i.fas.fa-scroll { 
  color: #d35400; 
  text-shadow: 0 0 10px rgba(211, 84, 0, 0.5);
}
.submenu li a i.fas.fa-hammer { 
  color: #7f8c8d; 
  text-shadow: 0 0 10px rgba(127, 140, 141, 0.5);
}
.submenu li a i.fas.fa-hammer { 
  color: #95a5a6; 
  text-shadow: 0 0 10px rgba(149, 165, 166, 0.5);
}
.submenu li a i.fas.fa-gem { 
  color: #00bcd4; 
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* Poéticos */
.submenu li a i.fas.fa-user-injured { 
  color: #e74c3c; 
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}
.submenu li a i.fas.fa-music { 
  color: #9b59b6; 
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}
.submenu li a i.fas.fa-lightbulb { 
  color: #f1c40f; 
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

/* Profetas Mayores */
.submenu li a i.fas.fa-dove { 
  color: #3498db; 
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}
.submenu li a i.fas.fa-sad-tear { 
  color: #9b59b6; 
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}
.submenu li a i.fas.fa-sad-tear { 
  color: #e74c3c; 
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}
.submenu li a i.fas.fa-eye { 
  color: #1abc9c; 
  text-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
}
.submenu li a i.fas.fa-paw { 
  color: #f39c12; 
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

/* Profetas Menores */
.submenu li a i.fas.fa-heart-broken { 
  color: #e91e63; 
  text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}
.submenu li a i.fas.fa-bug { 
  color: #27ae60; 
  text-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}
.submenu li a i.fas.fa-mountain { 
  color: #8b4513; 
  text-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}
.submenu li a i.fas.fa-fish { 
  color: #00bcd4; 
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}
.submenu li a i.fas.fa-microphone { 
  color: #9b59b6; 
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}
.submenu li a i.fas.fa-angry { 
  color: #e74c3c; 
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}
.submenu li a i.fas.fa-question-circle { 
  color: #f1c40f; 
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}
.submenu li a i.fas.fa-trash { 
  color: #95a5a6; 
  text-shadow: 0 0 10px rgba(149, 165, 166, 0.5);
}
.submenu li a i.fas.fa-fire { 
  color: #f39c12; 
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.submenu li a i.fas.fa-rose { 
  color: #e91e63; 
  text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}
.submenu li a i.fas.fa-sun { 
  color: #f1c40f; 
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

/* Nuevo Testamento - Evangelios */
.submenu li a i.fas.fa-user { 
  color: #3498db; 
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}
.submenu li a i.fas.fa-running { 
  color: #27ae60; 
  text-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}
.submenu li a i.fas.fa-user-md { 
  color: #e67e22; 
  text-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}
.submenu li a i.fas.fa-eagle { 
  color: #8e44ad; 
  text-shadow: 0 0 10px rgba(142, 68, 173, 0.5);
}

/* Cartas Paulinas */
.submenu li a i.fas.fa-hands-helping { 
  color: #1abc9c; 
  text-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
}
.submenu li a i.fas.fa-building { 
  color: #34495e; 
  text-shadow: 0 0 10px rgba(52, 73, 94, 0.5);
}
.submenu li a i.fas.fa-unlock { 
  color: #27ae60; 
  text-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}
.submenu li a i.fas.fa-shield-alt { 
  color: #3498db; 
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}
.submenu li a i.fas.fa-smile { 
  color: #f1c40f; 
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}
.submenu li a i.fas.fa-clock { 
  color: #9b59b6; 
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}
.submenu li a i.fas.fa-user-tie { 
  color: #8e44ad; 
  text-shadow: 0 0 10px rgba(142, 68, 173, 0.5);
}
.submenu li a i.fas.fa-user-graduate { 
  color: #e67e22; 
  text-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}
.submenu li a i.fas.fa-handshake { 
  color: #1abc9c; 
  text-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
}

/* Cartas Generales y Apocalipsis */
.submenu li a i.fas.fa-temple { 
  color: #f39c12; 
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}
.submenu li a i.fas.fa-tools { 
  color: #7f8c8d; 
  text-shadow: 0 0 10px rgba(127, 140, 141, 0.5);
}
.submenu li a i.fas.fa-rock { 
  color: #95a5a6; 
  text-shadow: 0 0 10px rgba(149, 165, 166, 0.5);
}
.submenu li a i.fas.fa-shield { 
  color: #3498db; 
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}
.submenu li a i.fas.fa-dragon { 
  color: #e74c3c; 
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* Efectos especiales para íconos - VERSIÓN MEJORADA */
/* Efectos de hover para todos los íconos */
.submenu li a:hover i.fas.fa-seedling { 
  color: #2ecc71; 
  text-shadow: 0 0 20px rgba(46, 204, 113, 0.9);
  animation: growPulse 0.8s ease-in-out;
}
.submenu li a:hover i.fas.fa-route { 
  color: #e67e22; 
  text-shadow: 0 0 20px rgba(230, 126, 34, 0.9);
  animation: slideRight 0.8s ease-in-out;
}
.submenu li a:hover i.fas.fa-hands { 
  color: #f39c12; 
  text-shadow: 0 0 20px rgba(243, 156, 18, 0.9);
  animation: wave 0.8s ease-in-out;
}
.submenu li a:hover i.fas.fa-hashtag { 
  color: #9b59b6; 
  text-shadow: 0 0 20px rgba(155, 89, 182, 0.9);
  animation: bounce 0.8s ease-in-out;
}
.submenu li a:hover i.fas.fa-book-open { 
  color: #3498db; 
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.9);
  animation: bookFlip 0.8s ease-in-out;
}

.submenu li a:hover i.fas.fa-cross { 
  color: #e74c3c; 
  text-shadow: 0 0 20px rgba(231, 76, 60, 0.9);
  animation: crossGlow 1s ease-in-out;
}
.submenu li a:hover i.fas.fa-balance-scale { 
  color: #f1c40f; 
  text-shadow: 0 0 20px rgba(241, 196, 15, 0.9);
  animation: balance 1s ease-in-out;
}
.submenu li a:hover i.fas.fa-heart { 
  color: #ff69b4; 
  text-shadow: 0 0 20px rgba(255, 105, 180, 0.9);
  animation: heartbeat 1s ease-in-out infinite;
}
.submenu li a:hover i.fas.fa-crown { 
  color: #ffd700; 
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
  animation: sparkle 1.5s ease-in-out infinite;
}
.submenu li a:hover i.fas.fa-throne { 
  color: #8e44ad; 
  text-shadow: 0 0 20px rgba(142, 68, 173, 0.9);
  animation: throneGlow 1s ease-in-out;
}

.submenu li a:hover i.fas.fa-user-injured { 
  color: #e74c3c; 
  text-shadow: 0 0 20px rgba(231, 76, 60, 0.9);
  animation: shake 0.8s ease-in-out;
}
.submenu li a:hover i.fas.fa-music { 
  color: #9b59b6; 
  text-shadow: 0 0 20px rgba(155, 89, 182, 0.9);
  animation: musicNote 1s ease-in-out;
}
.submenu li a:hover i.fas.fa-lightbulb { 
  color: #f1c40f; 
  text-shadow: 0 0 20px rgba(241, 196, 15, 0.9);
  animation: lightbulb 1s ease-in-out infinite;
}

.submenu li a:hover i.fas.fa-dove { 
  color: #3498db; 
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.9);
  animation: fly 1s ease-in-out;
}
.submenu li a:hover i.fas.fa-eye { 
  color: #1abc9c; 
  text-shadow: 0 0 20px rgba(26, 188, 156, 0.9);
  animation: blink 1s ease-in-out;
}
.submenu li a:hover i.fas.fa-paw { 
  color: #f39c12; 
  text-shadow: 0 0 20px rgba(243, 156, 18, 0.9);
  animation: roar 1s ease-in-out;
}

.submenu li a:hover i.fas.fa-user { 
  color: #3498db; 
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.9);
  animation: personWalk 1s ease-in-out;
}
.submenu li a:hover i.fas.fa-running { 
  color: #27ae60; 
  text-shadow: 0 0 20px rgba(39, 174, 96, 0.9);
  animation: run 0.8s ease-in-out infinite;
}
.submenu li a:hover i.fas.fa-eagle { 
  color: #8e44ad; 
  text-shadow: 0 0 20px rgba(142, 68, 173, 0.9);
  animation: soar 1s ease-in-out;
}

.submenu li a:hover i.fas.fa-dragon { 
  color: #ff4500; 
  text-shadow: 0 0 20px rgba(255, 69, 0, 0.9);
  animation: fire 1s ease-in-out infinite;
}

.submenu li a:hover i.fas.fa-unlock { 
  color: #27ae60; 
  text-shadow: 0 0 20px rgba(39, 174, 96, 0.9);
  animation: growPulse 0.8s ease-in-out;
}

.submenu li a:hover i.fas.fa-rose { 
  color: #e91e63; 
  text-shadow: 0 0 20px rgba(233, 30, 99, 0.9);
  animation: heartbeat 1s ease-in-out infinite;
}

/* Animaciones especiales */
@keyframes growPulse {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg); }
}

@keyframes slideRight {
  0% { transform: scale(1.4) rotate(8deg) translateX(0); }
  50% { transform: scale(1.6) rotate(8deg) translateX(5px); }
  100% { transform: scale(1.4) rotate(8deg) translateX(0); }
}

@keyframes wave {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  25% { transform: scale(1.6) rotate(12deg); }
  75% { transform: scale(1.6) rotate(4deg); }
}

@keyframes bounce {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) translateY(-3px); }
}

@keyframes bookFlip {
  0% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) rotateY(180deg); }
  100% { transform: scale(1.4) rotate(8deg); }
}

@keyframes crossGlow {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg); filter: brightness(1.5); }
}

@keyframes balance {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  25% { transform: scale(1.6) rotate(6deg); }
  75% { transform: scale(1.6) rotate(10deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg); }
}

@keyframes sparkle {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) scale(1.1); }
}

@keyframes throneGlow {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg); filter: brightness(1.3); }
}

@keyframes shake {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  25% { transform: scale(1.6) rotate(6deg); }
  75% { transform: scale(1.6) rotate(10deg); }
}

@keyframes musicNote {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) translateY(-2px); }
}

@keyframes lightbulb {
  0%, 100% { transform: scale(1.4) rotate(8deg); filter: brightness(1); }
  50% { transform: scale(1.6) rotate(8deg); filter: brightness(1.5); }
}

@keyframes fly {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) translateY(-3px); }
}

@keyframes blink {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg); opacity: 0.7; }
}

@keyframes roar {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) scale(1.1); }
}

@keyframes personWalk {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) translateX(2px); }
}

@keyframes run {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) translateX(3px); }
}

@keyframes soar {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) translateY(-4px); }
}

@keyframes fire {
  0%, 100% { transform: scale(1.4) rotate(8deg); }
  50% { transform: scale(1.6) rotate(8deg) scale(1.1); }
}

/* Enlaces especiales */
.inicio-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

.inicio-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.inicio-link:hover::before {
  transform: scaleY(1);
}

.inicio-link:hover {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.08) 0%, rgba(230, 126, 34, 0.08) 100%);
  color: #f39c12;
  padding-left: 25px;
  transform: translateX(3px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inicio-link i {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #f39c12;
  filter: none;
}

.inicio-link:hover i {
  transform: scale(1.15) rotate(3deg);
  color: #e67e22;
  filter: none;
  animation: homeBounce 0.5s ease-in-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Eliminar bordes del elemento Inicio */
.menu-item:has(.inicio-link) {
  border-bottom: none;
}

@keyframes homeBounce {
  0%, 100% { transform: scale(1.15) rotate(3deg); }
  50% { transform: scale(1.25) rotate(3deg); }
}

/* barra superior */
.barra-superior {
  position: fixed;
  top: 0;
  left: 0;
  height: 58px;
  width: 100%;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  display: flex;
  align-items: center;
  padding-left: 2cm;
  padding-right: 20px;
  z-index: 99999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
  justify-content: space-between;
}

.menu-hamburguesa {
  position: fixed;
  top: 15px;
  left: 10px;
  font-size: 20px;
  color: white;
  z-index: 1001;
  cursor: pointer;
  z-index: 99999;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
}

.menu-hamburguesa:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.menu-hamburguesa i {
  transition: transform 0.3s ease;
}

.menu-hamburguesa:hover i {
  transform: rotate(90deg);
}

/*
.logo {
  font-weight: bold;
  font-size: 18px;
} */
.info-usuario {
font-size: 16px;
font-family: Arial, sans-serif;
font-weight: bold;
margin: 10px 0;
padding: 5px;
background-color: transparent;
border-radius: 5px;
transition: all 0.3s ease;

position: relative;
left: -2cm;
}

/* ============================
🎯 MEDIA QUERIES RESPONSIVAS
============================ */

/* 📱 Teléfonos pequeños (≤ 480px) */
@media (max-width: 480px) {
  .sidebar {
    width: 260px;
    transform: translateX(-260px);
  }
  
  .icon-button {
      font-size: 14px;
      padding: 6px 8px;
      margin: 3px;
  }

  h1, h2, h3 {
      font-size: 20px;
      text-align: center;
  }

  #menu-container {
      font-size: 14px;
  }

  #back-to-top {
      width: 36px;
      height: 36px;
      font-size: 16px;
      bottom: 15px;
      right: 15px;
  }
}

/* 📲 Teléfonos grandes y tabletas verticales (≤ 768px) */
@media (max-width: 768px) {
  .sidebar {
    width: 270px;
    transform: translateX(-270px);
  }
  
  .icon-button {
      font-size: 14px;
      padding: 8px 12px;
      margin: 5px;
  }

  #content-container,
  #menu-sub {
      padding: 10px;
  }

  h1 {
      font-size: 24px;
  }

  #menu-container {
      font-size: 15px;
  }

  #back-to-top {
      width: 40px;
      height: 40px;
      font-size: 18px;
  }
}

/* 💻 Laptops y pantallas medianas (≤ 1024px) */
@media (max-width: 1024px) {
  .icon-button {
      font-size: 16px;
      padding: 10px 14px;
      margin: 6px;
  }

  h1 {
      font-size: 28px;
  }

  #menu-container {
      font-size: 16px;
  }
}

/* 🖥️ Escritorios grandes (≥ 1025px) */
@media (min-width: 1025px) {
  .icon-button {
      font-size: 18px;
      padding: 12px 16px;
      margin: 8px;
  }

  h1 {
      font-size: 32px;
  }

  #menu-container {
      font-size: 17px;
  }

  #back-to-top {
      width: 45px;
      height: 45px;
      font-size: 20px;
      bottom: 20px;
      right: 25px;
  }
}

/* Fondo Biblia */

/* === Fondo elegante para páginas de libros === */
/* ==== Fondo solo visible para capítulos en modo claro ==== */
body.libro {
  background: url('/icon/BibliaFondov.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  z-index: 1;
  color: #000;
}

body.libro::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255,255,255,0.55);
  z-index: -1;
}

/* ==== Estilos para modo oscuro ==== */
body.dark-mode {
  background: #121212 !important;
  color: #fff !important;
}

body.dark-mode * {
  color: #fff !important;
}

body.libro.dark-mode {
  background: #121212 !important;
}

body.libro.dark-mode::before {
  background: none !important;
}


/* === Fondo más claro para páginas de capítulos (mejor lectura) === */
body.capitulo {
  background: url('/icon/BibliaFondo.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  z-index: 1;
}


/* ==== Estilos para modo oscuro ==== */
body.dark-mode {
  background: #121212 !important;
  color: #fff !important;
}

body.dark-mode * {
  color: #fff !important;
}

body.capitulo.dark-mode {
  background: #121212 !important;
}

body.capitulo.dark-mode::before {
  background: none !important;
}

/* CSS para pop-pup recordar lectura */

.popup-ultima-lectura {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-contenido {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  text-align: center;
  max-width: 400px;
}

.popup-contenido h2 {
  margin-top: 0;
  color: #2c3e50;
}

.popup-contenido button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup-contenido button:hover {
  background: #0056b3;
}


/* para imágenes de usos y costumbres */
img {
  max-width: 100%;
  height: auto;
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
/* Modal cierre de sesión */
.modal-content {
  background: white;
  padding: 1.5em;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.modal-content button {
  margin: 0.5em;
  padding: 0.5em 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content .danger {
  background: #e74c3c;
  color: white;
}

