/* GENENRAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Bebas Neue", sans-serif;
  background-color: #680303;
  color: #2b2b2b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
 /* CABECERA */
 .header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  color: #FF0000;
  height: 100px;
  padding: 0 20px;
  box-sizing: border-box;
  gap: 10px;
  top: 0;
  z-index: 999;
}
.logo {
  height: 80px;
  width: auto;
  cursor: pointer;
 }
body h1 {
  text-align: center;
  font-size: 45px;
}
.menu {
  position: relative;
  display: flex;
  align-items: center;
}
.side {
  font-size: 60px;
  cursor: pointer;
  color: #ffffff;
  padding: 5px 20px;
}
.menu-items {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #000;
  width: 220px;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgb(124, 231, 195);
  overflow: hidden;
  z-index: 1000;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.menu-items.show {
  transform: scaleY(1); 
  display: block;
  opacity: 1;
  visibility: visible;
}
.menu-items a {
  font-family: "Oswald", sans-serif;
  display: flex;
  font-size: 20px;
  align-items: center;
  padding: 12px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #444;
  gap: 10px;
}
.menu-items a:hover {
  background-color: #410000;
}
.menu-items a:last-child {
  border-bottom: none;
}
.menu-icon {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  margin-right: 15px;
}
/* CONTENEDOR GENERAL */
.container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 650px;
  margin: 100px auto;
  padding: 5px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  border-radius: 10px;
  background-color: #161a2b;
}
.left {
  width: 100%;
  max-width: 60%;
  padding: 20px;
}
.right {
  width: 100%;
  max-width: 40%;
  min-height: 100%;
  padding: 20px 0;
}
/* Contenedor principal del calendario con efecto glass */
.calendar {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #0d0e20;
  border-radius: 16px;
  background: linear-gradient(135deg, #c7d2fe, #e0e7ff);
  box-shadow: 0 10px 25px rgba(13, 14, 32, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid #c5d0f3;
}

/* Cabecera del mes */
.calendar .month {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: capitalize;
  color: #0d0e20;
}

.calendar .month .prev,
.calendar .month .next {
  cursor: pointer;
  color: #0d0e20;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #c5d0f3;
}

.calendar .month .prev:hover,
.calendar .month .next:hover {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}
/* Fila de días de la semana */
.calendar .weekdays {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px 6px;
  font-size: 1rem;
  color: #3b3f5c;
  letter-spacing: 0.3px;
}

.weekdays div {
  width: 14.28%;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
}

/* DOMINGOS EN ROJO (cabecera) */
.weekdays div:last-child {
  color: #d32f2f;
}

/* Grid de días */
.calendar .days {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 8px;
  gap: 8px;
}

.calendar .days .day {
  width: calc(14.28% - 8px);
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0b1220;
  font-family: "Oswald";
  font-size: 1.30rem;
  position: relative;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #c5d0f3;
  transition: all 0.18s ease;
  user-select: none;
}
.calendar .days .day:hover {
  background: rgba(255, 137, 137, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(13, 14, 32, 0.12);
}
/* Celdas vacías */
.calendar .days .empty {
  background: transparent;
  border: 1px dashed rgba(197, 208, 243, 0.6);
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* Domingo */
.day.sunday {
  color: #d32f2f;
  font-weight: 600;
}
.calendar .days .day:nth-child(7n) {
  color: #d32f2f;
}

/* Festivos */
.day.holiday {
  color: #d32f2f;
  font-weight: 700;
}
.day.holiday.today,
.day.holiday.has-event,
.day.holiday.active {
  color: #d32f2f !important;
}

/* Hoy */
.calendar .days .today {
  background: #dbeafe;
  color: #1d4ed8;
  border: 2px solid #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

/* Día activo (seleccionado) */
.calendar .days .active {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  border: 1px solid #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

/* Días anteriores/siguientes */
.calendar .days .prev-date,
.calendar .days .next-date {
  color: #8e95b3;
}
/* Días con evento */
.day.has-event:not(.active):not(.today) {
  background: linear-gradient(180deg, rgba(54, 0, 0, 0.85), rgba(54, 0, 0, 0.92));
  color: #fff;
  border-color: #4a0a0a;
}

/* Indicador de evento */
.day.has-event::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}
/* Barra herramientas inferior (goto / hoy) */
.calendar .goto-today {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 18px;
  color: #3b3f5c;
}

.calendar .goto-today .goto {
  display: flex;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c5d0f3;
  background: rgba(255, 255, 255, 0.6);
}

.calendar .goto-today .goto input {
  width: 140px;
  height: 40px;
  outline: none;
  border: none;
  padding: 0 12px;
  color: #0d0e20;
  background: transparent;
  font-size: 0.95rem;
}

.calendar .goto-today button {
  padding: 10px 14px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background-color: #2563eb;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  transition: all 0.18s ease;
}

.calendar .goto-today .goto .goto-btn {
  background: transparent;
  color: #2563eb;
  border: none;
  border-left: 1px solid #c5d0f3;
  height: 40px;
  padding: 0 14px;
}

.calendar .goto-today .goto .goto-btn:hover {
  background: #ff0b0b;
  color: #fff;
  border-color: #2563eb;
}

.calendar .goto-today .today-btn {
  min-width: 100px;
}

.calendar .goto-today button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgb(255, 0, 0);
}

/* Redundantes pero reforzados */
.calendar .days .day.holiday { color: red !important; }
.calendar .days .day.holiday.active { color: red !important; }
.calendar .days .day.holiday.today { color: red !important; }
.calendar .days .day.holiday.has-event { color: red !important; }
/* LATERAL DERECHA */
.right .today-date {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.right .today-date .event-day {
  font-family: "Oswald";
  font-size: 1.5rem;
  font-weight: 500;
}

.right .today-date .event-date {
  font-family: "Oswald";
  font-size: 1.5rem;
  font-weight: 400;
  color: #dfdfe0;
  padding-right: 10px;
}

.events {
  font-size: 30px;
  width: 100%;
  max-height: 600px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-left: 4px;
}

.events .event {
  position: relative;
  width: 95%;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 20px;
  padding-left: 50px;
  color: #fff;
  background: linear-gradient(90deg, #3f4458, transparent);
  cursor: pointer;
}

.events .event:nth-child(even) {
  background: transparent;
}

.events .event:hover {
  background: linear-gradient(90deg, red, transparent);
}

.events .event .title {
  display: flex;
  align-items: center;
}

.events .event .title .event-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-left: 20px;
}
/* MODAL EVENTOS */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
  align-items: center;
  justify-content: center;
}
.modal.show {
  display: flex;
  opacity: 1;
}
.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 15px 50px rgba(0,0,0,0.35);
  font-family: "Merienda";
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}
.close {
  color: #aaa;
  position: absolute;
  top: 15px; right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover { color: #000; }
#modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
  text-align: center;
}
.event-detail {
  display: flex;
  align-items: center;
  margin: 10px 0;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.modal.show .event-detail {
  opacity: 1;
  transform: translateY(0);
}
.event-detail i {
  font-size: 18px;
  color: #007bff;
  width: 30px;
}
.event-detail span {
  margin-left: 10px;
  color: #ff0000;
  font-size: 15px;
}
.btn-modal {
  align-self: center;
  width: 50%;
  margin-top: auto;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.btn-modal:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,123,255,0.4);
}

/* MODAL ADMINISTRADOR */
.admin-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.admin-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.modal-buttons button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
#btnAceptar { background-color: #007bff; color: #fff; }
#btnCancelar { background-color: #ccc; }

/* PIE DE PAGINA */
    footer {
      background-color: #1a1a1a;
      color: #ffffff;
      width: 100%;
      padding: 20px 0;
      text-align: center;
      margin-top: auto;
      
    }
    /* Contenedor principal */
    footer .row.primary {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between; /* Distribuye las columnas */
      align-items: flex-start;
      width: 100%;
      max-width: 1700px;
      margin: 0 auto;
    }
    /* Estilos de títulos */
    footer h3 {
      font-size: 1.3rem;
      margin-bottom: 10px;
      color: #FF0000;
      text-transform: uppercase;
    }
    /* Columnas del footer */
    footer .column {
      flex: 1;
      min-width: 200px; /* Se ajusta mejor para evitar que las columnas bajen */
      text-align: center;
      box-sizing: border-box;
    }
    footer .column.about {
      flex: 1.5; /* Hace que esta columna sea más ancha */
      text-align: left;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      max-width: 50%;
    }
    footer .column.contact,
    footer .column.subscribe,
    footer .column.links {
      flex: 1;
      min-width: 200px;
    }
    /* Columna about */
    footer .logo-text {
      display: flex;
      align-items: center;
      gap: 15px;
      width: 100%;
    }
    footer .logo-text img.logo {
      width: 80px; /* Tamaño del logo */
      height: auto;
      flex-shrink: 0; /* Evita que el logo se deforme en pantallas pequeñas */
    }
    /* Collumna Contacto */
    footer .contact p {
      margin: 5px 0;
      font-size: 1rem;
    }
    footer .contact a {
      color: #f7c606;
      text-decoration: none;
    }
    footer .contact i {
      font-size: 1.5rem;
      margin-right: 5px;
      vertical-align: middle;
    }
    /* Columna Redes sociales */
    footer .social img {
      width: 40px;
      margin-right: 10px;
      cursor: pointer;
    }
    footer .social img:hover {
      opacity: 0.8;
    }
    /* Columna Formulario de suscripción */
    footer .subscribe input {
      width: 80%;
      padding: 10px;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
    }
    footer .subscribe button {
      font-size: 1.1rem;
      width: 100%;
      margin-top: 10px;
      padding: 10px;
      background-color: #f7c606;
      color: #000000;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    footer .subscribe button:hover {
      background-color: #d4a505;
    }
    /* Columna Enlaces Rápidos */
    footer .column.links {
      text-align: center;
    }
    footer .column.links ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    footer .column.links ul li {
      margin-bottom: 10px;
    }
    footer .column.links ul li a {
      color: #f7c606;
      text-decoration: none;
      font-size: 1rem;
    }
    footer .column.links ul li a:hover {
      text-decoration: underline;
    }
    /* Copyright */
    footer .row.copyright {
      width: 100%;
      background-color: #25262e;
      padding: 15px 0;
      text-align: center;
    }
    footer .copyright p {
      font-size: 1rem;
      color: #e5d335;
    }
/* RESPONSIVE */
@media (max-width: 900px) {
  .container { 
    flex-direction: column; 
    margin: 50px auto; }
  .left, .right { max-width: 100%; width: 100%; }
  .calendar .month { font-size: 1.5rem; padding: 0 10px; }
  .calendar .weekdays div, .calendar .days .day { font-size: 1rem; }
  .right .today-date { flex-direction: column; gap: 5px; padding-left: 10px; }
}
@media screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    text-align: center;
  }
  .menu-items {
    position: static; /* o relative si lo necesitas */
    width: 100%;
    border-radius: 0;
    max-height: none; /* asegúrate que no esté limitado */
    overflow-y: auto; /* agrega scroll si el contenido es muy largo */
  }
    .left, .right {
    width: 100% !important;
    padding: 10px;
  }

  .calendar .month {
    font-size: 1.5rem;
    padding: 0 20px;
  }

  .calendar .days .day {
    height: 60px;
    font-size: 1rem;
  }

  .right .today-date .event-date {
    font-size: 1.2rem;
  }

  footer .row.primary {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    footer .column.about,
    footer .column.contact,
    footer .column.social,
    footer .column.subscribe,
    footer .column.links {
      max-width: 100%;
      margin-bottom: 20px;
    }
  
    footer .logo-text {
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }
  
    footer .logo-text img.logo {
      margin-bottom: 10px;
    }
}