/* =================================== */
/* 🔄 RESET BÁSICO DEL NAVEGADOR       */
/* =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =================================== */
/* 🔄 FONDO GENERAL DE LA PÁGINA       */
/* =================================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f0f4ff, #ffffff);
  color: #222;
  line-height: 1.6;
}

/* =================================== */
/* 🎯 CLASE PARA ACCESIBILIDAD         */
/* =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =================================== */
/* 🔷 NAVBAR / MENÚ SUPERIOR           */
/* =================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(135deg, #08306b, #0a427c);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =================================== */
/* 🔷 LOGO DEL COLEGIO                 */
/* =================================== */
.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.logo-link:hover,
.logo-link:focus {
  opacity: 0.9;
  outline: 2px solid #FFD700;
  outline-offset: 4px;
  border-radius: 4px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 62px;
  height: 62px;
  margin-right: 10px;
  object-fit: contain;
}

.logo-text {
  font-size: 14px;
  color: white;
  line-height: 1.3;
}

.district {
  font-weight: bold;
  font-size: 18px;
  color: #FFD700;
}

.subtitle {
  font-size: 12px;
  color: #e0e0e0;
}

/* =================================== */
/* 🔷 MENU DE NAVEGACION PRINCIPAL     */
/* =================================== */
.nav {
  display: flex;
  gap: 20px;
  font-size: 16px;
  align-items: center;
}

/* Enlaces y botones del nav */
.nav-link {
  position: relative;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: normal;
}

/* Efecto subrayado animado */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFD700;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #FFD700;
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* =================================== */
/* 🔸 BOTONES: EVENTOS e INGRESAR      */
/* =================================== */
.nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-eventos {
  background-color: #0a427c;
  color: #FFD700;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.btn-eventos:hover,
.btn-eventos:focus {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.btn-ingresar {
  background-color: #FFD700;
  color: #08306b;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.btn-ingresar:hover,
.btn-ingresar:focus {
  background-color: #f7c600;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  outline: 2px solid #08306b;
  outline-offset: 2px;
}

/* =================================== */
/* 🔽 SUBMENÚS DESPLEGABLES            */
/* =================================== */
.dropdown {
  position: relative;
}

.dropdown .nav-link {
  cursor: pointer;
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: all 0.35s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 8px;
}

/* Hover y Focus-within para accesibilidad */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-content a {
  padding: 12px 18px;
  text-decoration: none;
  color: #08306b;
  font-size: 15px;
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  background: #FFD700;
  color: #08306b;
  padding-left: 25px;
  box-shadow: inset 5px 0 0 #0a427c;
  outline: none;
}

/* Animación escalonada */
.dropdown:hover .dropdown-content a,
.dropdown:focus-within .dropdown-content a {
  animation: fadeSlide 0.4s ease forwards;
  opacity: 0;
}

.dropdown:hover .dropdown-content a:nth-child(1),
.dropdown:focus-within .dropdown-content a:nth-child(1) {
  animation-delay: 0.05s;
}

.dropdown:hover .dropdown-content a:nth-child(2),
.dropdown:focus-within .dropdown-content a:nth-child(2) {
  animation-delay: 0.1s;
}

.dropdown:hover .dropdown-content a:nth-child(3),
.dropdown:focus-within .dropdown-content a:nth-child(3) {
  animation-delay: 0.15s;
}

.dropdown:hover .dropdown-content a:nth-child(4),
.dropdown:focus-within .dropdown-content a:nth-child(4) {
  animation-delay: 0.2s;
}

.dropdown:hover .dropdown-content a:nth-child(5),
.dropdown:focus-within .dropdown-content a:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =================================== */
/* 🟪 SECCIÓN HERO PRINCIPAL           */
/* =================================== */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 40px;
  border-radius: 15px;
  color: white;
  max-width: 800px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.hero-overlay h1 {
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-overlay p {
  font-size: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* =================================== */
/* 🟩 ICONOS DE ACCESO RÁPIDO          */
/* =================================== */
.icon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: -40px;
  z-index: 2;
  position: relative;
  padding: 0 20px;
}

.icon-box {
  width: 150px;
  padding: 30px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon-box img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
}

/* 🎨 Colores */
.green {
  background: #bce3d4;
  color: #08306b;
}

.yellow {
  background: #FFD700;
  color: #08306b;
}

.purple {
  background: #d2c2e2;
  color: #08306b;
}

.peach {
  background: #f9d0a2;
  color: #08306b;
}

.blue {
  background: #1E90FF;
  color: #08306b;
}

/* Hover en iconos */
.hover-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.hover-icon:hover,
.hover-icon:focus {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.95);
  outline: 2px solid #08306b;
  outline-offset: 2px;
}

.hover-icon img {
  transition: transform 0.3s ease;
}

.hover-icon:hover img,
.hover-icon:focus img {
  transform: scale(1.5);
}

.hover-icon p {
  transition: color 0.3s ease;
  margin: 0;
}

.hover-icon:hover p,
.hover-icon:focus p {
  color: #08306b;
  font-weight: bold;
}

/* =================================== */
/* 📰 NOTICIAS DESTACADAS              */
/* =================================== */
.noticias-destacadas {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.noticias-destacadas h2 {
  font-size: 28px;
  color: #08306b;
  margin-bottom: 30px;
  font-weight: 600;
}

.noticias-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.noticia {
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  border-radius: 10px;
  transition: outline 0.3s ease;
}

.noticia:focus {
  outline: 3px solid #FFD700;
  outline-offset: 4px;
}

.noticia img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.noticia img:hover,
.noticia:focus-within img {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05) contrast(1.05);
}

.noticia p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

/* =================================== */
/* 🖼️ GALERÍA DE FOTOS                 */
/* =================================== */
.galeria-fotos {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}

.galeria-fotos h2 {
  font-size: 28px;
  color: #08306b;
  margin-bottom: 30px;
  font-weight: 600;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.galeria-grid img:hover,
.galeria-grid img:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05) contrast(1.05);
  outline: 3px solid #FFD700;
  outline-offset: 2px;
}

/* =================================== */
/* 🪟 MODAL PARA NOTICIAS DESTACADAS   */
/* =================================== */
.modal-noticia {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  cursor: pointer;
}

.modal-noticia.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: default;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 16px;
  color: #08306b;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 5px;
}

.modal-close:hover,
.modal-close:focus {
  color: #08306b;
  outline: 2px solid #08306b;
  outline-offset: 2px;
  border-radius: 4px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =================================== */
/* 🖼️ LIGHTBOX GALERÍA DE FOTOS        */
/* =================================== */
.lightbox-galeria {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}

.lightbox-galeria.show {
  display: flex;
}

.lightbox-galeria-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
  object-fit: contain;
  cursor: default;
}

.close-galeria {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close-galeria:hover,
.close-galeria:focus {
  background: rgba(255, 215, 0, 0.8);
  color: #08306b;
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.arrow {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.arrow:hover,
.arrow:focus {
  background: rgba(255, 215, 0, 0.8);
  color: #08306b;
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.arrow.left {
  left: 30px;
}

.arrow.right {
  right: 30px;
}

/* =================================== */
/* 🍔 HAMBURGUESA PARA NAVEGACIÓN      */
/* =================================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 6px;
  margin-left: auto;
}

.hamburger:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #ffffff;
  display: block;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =================================== */
/* 📱 MENÚ DESPLEGADO (MÓVIL)          */
/* =================================== */
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 92px;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #08306b, #0a427c);
  padding: 12px 0;
  gap: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

.nav.open .nav-link {
  color: #ffffff;
  padding: 12px 20px;
  font-size: 18px;
  display: block;
  text-align: left;
  width: 100%;
}

.nav.open .dropdown {
  width: 100%;
}

.nav.open .dropdown-content {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  border-radius: 0;
  padding-left: 20px;
  margin-top: 4px;
  min-width: 100%;
}

.nav.open .dropdown-content a {
  color: #ffffff;
  padding: 8px 0;
  display: block;
  font-size: 16px;
  background: transparent;
}

.nav.open .dropdown-content a:hover,
.nav.open .dropdown-content a:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  padding-left: 10px;
  box-shadow: none;
}

/* =================================== */
/* 🟧 FOOTER                           */
/* =================================== */
.footer {
  background: linear-gradient(135deg, #08306b, #0a427c);
  color: white;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #FFD700;
  font-size: 20px;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  margin: 8px 0;
  color: #e0e0e0;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section a:hover,
.footer-section a:focus {
  color: #FFD700;
  padding-left: 5px;
  outline: none;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: #e0e0e0;
}

/* =================================== */
/* 🔒 PREVENCIÓN DE SCROLL             */
/* =================================== */
html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
  position: relative;
}

/* =================================== */
/* 📱 DISEÑO RESPONSIVO                */
/* =================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .district {
    font-size: 14px;
  }

  .subtitle {
    font-size: 10px;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-buttons {
    display: none;
  }

  /* Mostrar botones cuando el menú está abierto */
  .nav.open~.nav-buttons {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(92px + 200px);
    /* ajustar según altura del menú */
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #08306b, #0a427c);
    padding: 15px 20px;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 998;
  }

  .nav.open~.nav-buttons a {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
  }

  .hero {
    height: 70vh;
    padding-top: 60px;
  }

  .hero-overlay {
    padding: 25px;
  }

  .hero-overlay h1 {
    font-size: 26px;
  }

  .hero-overlay p {
    font-size: 16px;
  }

  .icon-links {
    flex-direction: column;
    gap: 12px;
    margin-top: -20px;
    padding: 12px 0;
  }

  .icon-box {
    width: 90%;
    max-width: 320px;
    padding: 20px 15px;
  }

  .icon-box img {
    width: 45px;
    height: 45px;
  }

  .noticias-destacadas {
    padding: 40px 15px;
  }

  .noticias-destacadas h2 {
    font-size: 24px;
  }

  .noticia img {
    height: 200px;
  }

  .noticia p {
    font-size: 14px;
  }

  .galeria-fotos {
    padding: 40px 15px;
  }

  .galeria-fotos h2 {
    font-size: 24px;
  }

  .galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .galeria-grid img {
    height: 150px;
  }

  .close-galeria {
    top: 15px;
    right: 15px;
    font-size: 32px;
    width: 40px;
    height: 40px;
  }

  .arrow {
    font-size: 28px;
    padding: 10px 15px;
  }

  .arrow.left {
    left: 10px;
  }

  .arrow.right {
    right: 10px;
  }

  .modal-content {
    padding: 15px;
    width: 95%;
  }

  .modal-content p {
    font-size: 14px;
  }

  .modal-close {
    font-size: 24px;
  }

  .footer {
    padding: 40px 15px 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 22px;
  }

  .hero-overlay p {
    font-size: 14px;
  }

  .icon-box {
    width: 95%;
    font-size: 15px;
  }

  .noticias-destacadas h2,
  .galeria-fotos h2 {
    font-size: 20px;
  }

  .galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }

  .galeria-grid img {
    height: 120px;
  }
}




/* Prevención de scroll cuando modales están abiertos */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100%;
  position: relative;
}

/* Capa de fade del carrusel (para mejor transición) */
.hero-fade-layer {
  pointer-events: none;
}

/* Mejorar clicks en overlay de modales */
.modal-noticia,
.lightbox-galeria {
  cursor: pointer;
}

.modal-content,
.lightbox-galeria-img {
  cursor: default;
}

/* Estados de focus mejorados */
.noticia:focus {
  outline: 3px solid #FFD700;
  outline-offset: 4px;
}

.galeria-grid img:focus {
  outline: 3px solid #FFD700;
  outline-offset: 2px;
}

/* Animación de entrada del modal */
.modal-noticia.active .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ###################### Botones Footer Sociales ###################### */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Estilo base para todos los botones sociales */
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-social i {
  font-size: 16px;
}

/* Colores específicos por marca */
.facebook {
  background-color: #1877F2;
}

.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.youtube {
  background-color: #FF0000;
}

.twitter {
  background-color: #000000;
  /* Color oficial de X */
}

.tiktok {
  background: linear-gradient(45deg, rgba(0, 0, 0, 1) 4%, rgba(255, 0, 80, 1) 57%, rgba(0, 242, 234, 1) 94%);
}

/* Efectos al pasar el mouse */
.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

/* Contenedor de botones */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Estilo base para todos los botones sociales */
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-social i {
  font-size: 16px;
}

/* Colores específicos por marca */
.facebook {
  background-color: #1877F2;
}

.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.youtube {
  background-color: #FF0000;
}

.twitter {
  background-color: #000000;
  /* Color oficial de X */
}

/* Efectos al pasar el mouse */
.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

/* Ajuste para pantallas pequeñas (solo mostrar iconos) */
@media (max-width: 576px) {
  .btn-social span {
    display: none;
  }

  .btn-social {
    padding: 10px;
    border-radius: 5px;
    /* Se vuelven circulares en móvil */
  }
}

/* ###################### Fin Botones Footer Sociales  ###################### */


/* ###################### Botones de Footer Enlaces Rapidos  ###################### */
/* Contenedor de la sección */
.footer-section h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

/* Línea decorativa bajo el título */
.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #007bff;
  /* Color institucional */
}

/* Navegación vertical */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Estilo de los enlaces */
.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e0;
  /* Gris claro para lectura descansada */
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-link i {
  font-size: 0.85rem;
  color: #007bff;
  /* Color del icono */
  transition: transform 0.3s ease;
}

/* Efecto Hover */
.footer-link:hover {
  color: #ffffff;
  transform: translateX(8px);
  /* Desplazamiento a la derecha */
}

.footer-link:hover i {
  transform: scale(1.2);
  /* El icono crece un poco */
}

/* ###################### Fin Botones de Footer Enlaces Rapido ###################### */


/* ###################### Botones de Footer Contactos ###################### */
/* Contenedor de contacto */
.contact-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Alineación de icono y texto */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Estilo de los iconos */
.contact-item i {
  color: #3498db;
  /* Azul institucional */
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* Estilo de los textos y enlaces */
.contact-item p {
  margin: 0;
  color: #cbd5e0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover en los enlaces */
.contact-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Color especial para WhatsApp al hacer hover */
.contact-item .fa-whatsapp+p a:hover {
  color: #25d366;
}

/* ###################### Fin Botones de Footer Footer Contactos  ###################### */


/* Contenedor de recordatorios */
.recordatorios-horizontal {
  padding: 20px 0;
  background-color: #fcfcfc;
}

.recordatorios-horizontal h2 {
  font-size: 28px;
  color: #08306b;
  margin-bottom: 30px;
  font-weight: 600;
}


.rec-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  overflow-x: auto;
  padding: 20px;

  position: relative;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.4s ease;
}

.rec-container:hover {
  scrollbar-color: #6d7377 #f1f1f1;
}

.rec-container:hover::-webkit-scrollbar {
  display: block;
  /* La volvemos a mostrar en Chrome/Safari */
}

.rec-container::-webkit-scrollbar {
  height: 8px;
  /* Altura del scroll horizontal */
}

.rec-container::-webkit-scrollbar-track {
  background: transparent;
  /* Invisible al inicio */
  transition: background 0.4s ease;
}

.rec-container::-webkit-scrollbar-thumb {
/* Usamos un color con opacidad 0 (transparente) */
    background: rgba(52, 152, 219, 0); 
    border-radius: 10px;
    transition: background 0.4s ease;
}

.rec-container:hover::-webkit-scrollbar-track {
    background: #f1f1f1; /* El riel aparece */
}

.rec-container:hover::-webkit-scrollbar-thumb {
    background: #6d7377; /* El azul aparece suavemente */
    border: 2px solid #f1f1f1; /* Para darle ese acabado fino */
}

.rec-container::after {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #08306b;
  font-size: 14px;
  font-weight: bold;
  pointer-events: none;
  background: rgba(252, 252, 252, 0.9);
  padding: 5px 10px;
  border-radius: 5px;
}

/* Estilo Píldora */
.rec-pill {
  display: flex;
  align-items: center;
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.2s;
  width: 500px !important;
}

.rec-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.rec-icon {
  font-size: 1.2rem;
  margin-right: 15px;
}

.rec-info {
  display: flex;
  flex-direction: column;
  width: 350px;

}

.rec-titulo {
  font-weight: bold;
  font-size: 0.9rem;
  color: #2c3e50;
}

.rec-desc {
  font-size: 0.75rem;
  color: #7f8c8d;
}

.rec-date {
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid #eee;
  color: #3498db;
  font-weight: bold;
  font-size: 0.8rem;
  justify-content: center;
}

.eye-icon {
  margin-left: 10px;
  color: #485364;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.eye-icon:hover {
  color: #0a427c;
}

/* Animación sutil para urgencia */
.pulse-urgente {
  border-color: #e74c3c;
  background-color: #fffafa;
}

/* Estilo para el icono de Administración */
.btn-admin-icon {
    color: #ffde00; /* Amarillo CIB */
    font-size: 20px;
    margin-right: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.btn-admin-icon:hover {
    color: #ffffff;
    transform: scale(1.1); /* Efecto de aumento al pasar el mouse */
}