﻿/* =================================== */
/* 🔷 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);
  }
}


/* =================================== */
/* 🍔 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 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;
}

.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;
}

/* ###################### 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);
}

/* 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  ###################### */



/* 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 */
}

.error-page {
  text-align: center;
  padding: 100px 20px;
}

.error-page h1 {
  font-size: 80px;
  color: #08306b;
}

.error-home-link {
  display: inline-block;
  margin-top: 20px;
}
