/**
 * Sistema de Calendario para Evento de Quinceañera
 * -----------------------------------------------------------------------------
 * @author Enri Rego
 * @version 1.0.0
 * @date Noviembre 2025
 * @description Componente para añadir el evento de la quinceañera al calendario
 *              del usuario. Implementa un modal con opciones para descargar
 *              diferentes versiones del archivo iCalendar (.ics).
 * -----------------------------------------------------------------------------
 */

/* =============================================================================
   BOTÓN PRINCIPAL DE AGENDAR
   ============================================================================= */

/* Diseño del botón principal de agendar
   Se integra con el estilo visual del sitio */
#agendar {
  font-family: 'Dosis', sans-serif;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  border: 1px solid #ba85adb5;
  background-color: rgba(241, 240, 224, 0.475);
  outline: none;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Icono de calendario dentro del botón de agendar */
#agendar i {
  font-size: 1.1rem;
  margin-right: 5px;
  transition: transform 0.3s ease;
}

/* Efecto hover para el botón principal */
#agendar:hover {
  color: #FFFFFF;
  background-color: #f31acbb6;
}

/* Animación del icono en hover */
#agendar:hover i {
  transform: scale(1.1);
}

/* =============================================================================
   MODAL DE OPCIONES DE CALENDARIO
   ============================================================================= */

/* Contenedor principal del modal de opciones */
.opciones-calendario {
  position: fixed;
  z-index: 1050;
  top: 0;
  left: 0;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  transition: visibility 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Estado visible del modal */
.opciones-calendario.visible {
  visibility: visible;
  opacity: 1;
}

/* Contenido del modal de opciones */
.opciones-calendario-contenido {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 0;
  animation: fadeInUp 0.4s ease;
  border: 1px solid rgba(206, 53, 178, 0.2);
  border-radius: 8px;
  background-color: #FFFFFF;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Encabezado del modal de opciones */
.opciones-calendario-encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(206, 53, 178, 0.1);
  background-color: #ce35b2;
  border-radius: 8px 8px 0 0;
}

/* Título dentro del encabezado del modal */
.opciones-calendario-encabezado h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  margin: 0;
  color: #FFFFFF;
}

/* Botón para cerrar el modal de opciones */
#cerrar-opciones-calendario {
  font-size: 1.2rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  background: transparent;
}

/* Efecto hover para el botón de cerrar */
#cerrar-opciones-calendario:hover {
  color: #FFFFFF;
  transform: scale(1.1);
}

/* Contenido principal del modal */
.opciones-calendario-cuerpo {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}

/* =============================================================================
   BOTONES DE OPCIONES DE CALENDARIO
   ============================================================================= */

/* Diseño base para los botones de opciones */
.btn-calendario {
  font-family: 'Dosis', sans-serif;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ce35b2;
  border: 1px solid rgba(206, 53, 178, 0.3);
  border-radius: 5px;
  background-color: transparent;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

/* Icono dentro de los botones de opciones */
.btn-calendario i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Efecto hover para los botones de opciones */
.btn-calendario:hover {
  color: #FFFFFF;
  border-color: #ce35b2;
  background-color: #ce35b2;
}

/* Animación del icono en hover */
.btn-calendario:hover i {
  transform: scale(1.1);
}

/* Texto informativo bajo las opciones */
.opciones-calendario-info {
  margin-top: 0.5rem;
  text-align: center;
}

/* Estilo de los párrafos informativos */
.opciones-calendario-info p {
  font-size: 0.9rem;
  margin: 0;
  color: #666666;
}

/* =============================================================================
   NOTIFICACIONES Y ALERTAS
   ============================================================================= */

/* Diseño base para las notificaciones emergentes */
.notificacion-calendario {
  font-family: 'Dosis', sans-serif;
  position: fixed;
  z-index: 1060;
  bottom: 20px;
  left: 50%;
  padding: 12px 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  color: #FFFFFF;
  border-radius: 5px;
  background-color: rgba(206, 53, 178, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Estado visible de la notificación */
.notificacion-calendario.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Variante de error para las notificaciones */
.notificacion-error {
  background-color: rgba(220, 53, 69, 0.9);
}

/* Animación para la entrada del modal */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =============================================================================
   ADAPTACIONES RESPONSIVAS
   ============================================================================= */

/* Ajustes para tablets y dispositivos medianos */
@media (max-width: 768px) {
  .opciones-calendario-contenido {
    max-width: 400px;
  }

  .opciones-calendario-encabezado {
    padding: 1rem 1.2rem;
  }

  .opciones-calendario-encabezado h3 {
    font-size: 1.5rem;
  }

  .opciones-calendario-cuerpo {
    padding: 1.2rem;
  }

  .btn-calendario {
    padding: 0.8rem;
  }
}

/* Ajustes para dispositivos móviles pequeños */
@media (max-width: 480px) {
  .opciones-calendario-contenido {
    max-width: 320px;
  }

  .opciones-calendario-encabezado {
    padding: 0.8rem 1rem;
  }

  .opciones-calendario-encabezado h3 {
    font-size: 1.3rem;
  }

  .opciones-calendario-cuerpo {
    padding: 1rem;
  }

  .btn-calendario {
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .notificacion-calendario {
    font-size: 0.9rem;
    width: 80%;
    padding: 10px 15px;
  }
}

/* Estilos para prevenir el scroll de fondo cuando el modal está abierto */
body.bloquear-desplazamiento {
  overflow: hidden;
}