/* ===============================
   ESTILO GENERAL PROFESIONAL
   CETPRO Nuestra Señora de las Mercedes
================================= */

:root{
  --azul-principal: #0b3a6e;
  --azul-secundario: #145aa3;
  --gris-claro: #f5f7fb;
  --gris-texto: #4b5563;
  --borde: #e5e7eb;
  --blanco: #ffffff;
  --sombra: 0 8px 22px rgba(0,0,0,0.08);
  --radio: 14px;
}

/* Reset */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f7fc;
  color: #1f2937;
  line-height: 1.6;
}

/* Contenedor */
.container{
  width: min(1200px, 92%);
  margin: auto;
}

/* ========== HEADER NUEVO ========== */
.site-header{
  background: linear-gradient(135deg, #0b2a6f 0%, #0a4ea3 60%, #083a7a 100%);
  color: #fff;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.25);
}

.header-hero{
  padding: 22px 0 14px;
}

.brand{
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.logo-img{
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.25);
}

.titulo-principal{
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.titulo-principal span{
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  opacity: .95;
}

@keyframes fadeUp{
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in{
  animation: fadeUp .75s ease both;
}

/* ========== NAV NUEVO ========== */
.main-nav{
  border-top: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.nav-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.menu-principal{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.menu-principal > li{
  position: relative;
}

.menu-principal > li > a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}

.menu-principal > li > a:hover,
.menu-principal > li > a:focus-visible{
  background: rgba(255,255,255,0.16);
  outline: none;
}

.has-dropdown > .dropdown-link i{
  font-size: .85rem;
  opacity: .95;
}

.submenu{
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 380px;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
  padding: 10px;
  display: none;
  z-index: 50;
}

.has-dropdown:hover > .submenu,
.has-dropdown:focus-within > .submenu{
  display: block;
}

.submenu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.submenu a:hover,
.submenu a:focus-visible{
  background: rgba(15, 23, 42, 0.06);
  outline: none;
}

.submenu-scroll{
  max-height: 320px;
  overflow: auto;
}

/* ========== MENÚ MÓVIL ========== */
.nav-toggle{
  display: none;
}

.nav-toggle-btn{
  display: none;
  position: absolute;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle-btn span{
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
}

/* ================= MAIN ================= */
main{
  padding: 40px 0;
}

/* SECCIÓN TABLA */
.tabla-horarios{
  background: var(--blanco);
  padding: 32px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* TÍTULO DE LA TABLA CENTRADO */
.tabla-horarios h2{
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--azul-principal);
  margin-bottom: 12px;
}

/* TEXTO DESCRIPTIVO */
.tabla-horarios p{
  text-align: center;
  font-size: 1.05rem;
  color: var(--gris-texto);
  max-width: 900px;
  margin: 0 auto 26px;
}

/* ================= TABLA ================= */
.tabla-responsive{
  overflow-x: auto;
}

/* TABLA GENERAL */
table{
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: var(--blanco);
  border-radius: 10px;
  overflow: hidden;
}

/* CABECERA */
thead{
  background: linear-gradient(90deg, var(--azul-principal), var(--azul-secundario));
}

thead th{
  color: var(--blanco);
  text-align: center;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* CUERPO */
tbody td{
  padding: 15px;
  text-align: center;
  font-size: 1rem;
  border-bottom: 1px solid var(--borde);
}

/* FILAS ALTERNAS */
tbody tr:nth-child(even){
  background: var(--gris-claro);
}

/* EFECTO HOVER */
tbody tr:hover{
  background: #eaf2ff;
}

/* ================= FOOTER ================= */
footer{
  background: var(--azul-principal);
  color: var(--blanco);
  text-align: center;
  padding: 26px 10px;
  margin-top: 40px;
}

/* REDES SOCIALES */
.redes-sociales p{
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.social-icons{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.social-icons a{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.social-icons a:hover{
  background: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

/* TEXTO FINAL */
footer p{
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 860px){
  .nav-inner{
    justify-content: flex-start;
  }

  .nav-toggle-btn{
    display: inline-flex;
  }

  .menu-principal{
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: min(92vw, 460px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
    padding: 10px;
    z-index: 60;
  }

  .nav-toggle:checked ~ .menu-principal{
    display: flex;
  }

  .menu-principal > li > a{
    color: #0f172a;
    justify-content: space-between;
  }

  .submenu{
    position: static;
    transform: none;
    min-width: 100%;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0;
    display: none;
  }

  .has-dropdown:hover > .submenu,
  .has-dropdown:focus-within > .submenu{
    display: block;
  }

  .tabla-horarios h2{
    font-size: 1.4rem;
  }

  .tabla-horarios p{
    font-size: 1rem;
  }
}