/* style-calendario.css
======== Estilos generales ======== */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.6;
}

/* ======== HEADER ======== */
.header {
  background: #08163b;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

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

.logo img {
  width: 100px;
  height: auto;
  background: white;
  border: 4px solid #efefef;
  border-radius: 10px;
}

.logo h1 {
  font-size: 1.2rem;
  font-weight: 600;
}

/* ======== Menú principal ======== */
.menu {
  display: flex;
  gap: 20px;
}
.menu-auth {
  display: flex;
  gap: 20px;
}
.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.menu a:hover {
  color: #00c3ff;
}

.menu-btn {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.btn {
  display: inline-block;
  background-color: #0a1a44;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #142b70;
}
/* ======== CALENDARIO ======== */
.calendar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 10px;
}

.calendar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  max-width: 700px;
  width: 100%;
  padding: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0a1a44;
  color: white;
  border-radius: 10px;
  padding: 10px;
}

.calendar-header button {
  background: white; /*#00c3ff;*/
  border: none;
  color: #0a1a44;
  font-size: 1.2rem;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.calendar-header button:hover {
  background: #636A82;
}
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #0a1a44;
}
.weekdays div {
    padding: 6px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-top: 15px;
  gap: 5px;
}

.calendar-grid div {
  box-sizing: border-box;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8vh;
  width: 15vh;
}

.calendar-grid div:hover {
  /*background: #8CD3FF;*/
  border: 5px solid #0a1a44;
}

.calendar-grid .today {
 /* background: #007bff; #00c3ff;
  color: white;*/
  font-weight: bold;
  border: 5px solid #8094AC;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(128, 148, 172, 0.7);
}
/*VENTANA EMERGENTE PARA LOS EVENTOS*/
/* Contenedor del modal (centrado sobre overlay) */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 950; /* encima del overlay */
}

/* Caja del modal */
.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    position: relative;
}

/* Día con evento HOY: parpadeo usando el color del evento */
.blink-today {
  animation: parpadeo 0.5s infinite alternate;
  color: white;
  font-weight: bold;
  border-radius: 8px;
}
/*ESTILO PARA EL TITULO EN CASO DE HABER MAS DE 1 EVENTO*/
/* Título clickeable */
.evento-titulo {
  margin: 0;
  padding: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  background: #0a1a44;
  color: white;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.evento-titulo:hover {
  background: #092037;
}
/* Descripción con animación tipo acordeón */
.evento-desc {
  padding-left: 10px;
  color: #333;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  margin-top: 5px;
}
/* Contenedor de cada evento */
.evento-item {
  padding: 10px;
  margin-bottom: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border-radius: 8px;
  background: #f7f7f7;
  transition: 0.3s ease;
}

/* Icono + y - */
.evento-icono {
    font-weight: bold;
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Cuando está expandido */
.evento-desc.activo {
    opacity: 1;
    max-height: 500px;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }

@keyframes parpadeo {
  from { filter: brightness(1); }
  to { filter: brightness(0.5); }
}
/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    position: relative;
    z-index: 1100;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    background: #0a1a44;
    flex-direction: column;
    display: flex;
    align-items: flex-start;
    padding: 80px 20px;
    gap: 25px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    height: 84vh;
  }

  .menu.show {
    right: -80px;
  }
  .modal{
    width: 100vw;
  }
  .modal-content {
    max-width: 100%;
  }  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .menu a {
    width: 100%;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 10px 0;
  }
  .calendar-grid div {
    height: 5.5vh;
    width: 5.5vh;
  }
   .calendar-grid div:hover {
    border: 5px solid #0a1a44;
  } 

  .menu-auth {
    margin-top: auto;     /* ← AHORA funciona */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .menu-auth a {
    width: 100%;
    font-size: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
  }
}
