/* Estilos para el sistema de cumpleaños */
.cumpleanos-container {
  /* Centrar la sección de cumpleaños y mejorar posicionamiento */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(54, 169, 225, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cumpleanos-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cumpleanos-header h3 {
  color: #36a9e1;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Agregar subtítulo con información del mes */
.cumpleanos-header small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  display: block;
}

.cumpleanos-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cumpleanos-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cumpleanos-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(54, 169, 225, 0.2);
}

.cumpleanos-item.hoy {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
  border: 2px solid #ffd700;
  animation: brillar 2s infinite alternate;
}

.cumpleanos-item.proximo {
  background-color: rgba(54, 169, 225, 0.15);
  border-left: 4px solid #36a9e1;
}

/* Agregar estilo para cumpleaños pasados */
.cumpleanos-item.pasado {
  background-color: rgba(128, 128, 128, 0.1);
  border-left: 4px solid #888;
  opacity: 0.7;
}

.cumpleanos-foto-container {
  position: relative;
  flex-shrink: 0;
}

.cumpleanos-foto {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.cumpleanos-item.hoy .cumpleanos-foto {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.cumpleanos-corona {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.2rem;
  animation: rotar 3s linear infinite;
}

.cumpleanos-info {
  flex-grow: 1;
  color: white;
}

.cumpleanos-nombre {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cumpleanos-fecha {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
  color: #36a9e1;
}

/* Agregar estilo para mostrar el estado del cumpleaños */
.cumpleanos-estado {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
}

.cumpleanos-edad {
  font-size: 0.9rem;
  color: #ffd700;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.cumpleanos-mensaje {
  font-size: 0.8rem;
  color: #ffd700;
  font-weight: bold;
  animation: parpadear 1.5s infinite;
}

.no-cumpleanos {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  padding: 2rem;
}

/* Agregar botón de cerrar */
.cumpleanos-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.cumpleanos-close:hover {
  color: #36a9e1;
}

/* Animaciones */
@keyframes brillar {
  0% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
}

@keyframes rotar {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes parpadear {
  0%,
  50% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.5;
  }
}

/* Efecto confeti */
.confeti {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: caerConfeti 3s linear infinite;
  pointer-events: none;
}

@keyframes caerConfeti {
  0% {
    top: -10px;
    opacity: 1;
    transform: rotate(0deg);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: rotate(360deg);
  }
}

/* Mejorar responsive design para diferentes tamaños de pantalla */
/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .cumpleanos-container {
    width: 85%;
    max-width: 380px;
    padding: 1.25rem;
  }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
  .cumpleanos-container {
    width: 90%;
    max-width: 350px;
    padding: 1rem;
    top: 45%;
  }

  .cumpleanos-header h3 {
    font-size: 1.2rem;
  }

  .cumpleanos-lista {
    max-height: 300px;
  }

  .cumpleanos-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .cumpleanos-foto {
    width: 50px;
    height: 50px;
  }

  .cumpleanos-nombre {
    font-size: 0.9rem;
  }

  .cumpleanos-fecha {
    font-size: 0.8rem;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .cumpleanos-container {
    width: 95%;
    max-width: 320px;
    padding: 0.75rem;
    top: 40%;
  }

  .cumpleanos-header h3 {
    font-size: 1.1rem;
  }

  .cumpleanos-header small {
    font-size: 0.8rem;
  }

  .cumpleanos-lista {
    max-height: 250px;
    gap: 0.75rem;
  }

  .cumpleanos-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .cumpleanos-foto {
    width: 45px;
    height: 45px;
  }

  .cumpleanos-nombre {
    font-size: 0.85rem;
  }

  .cumpleanos-fecha,
  .cumpleanos-edad,
  .cumpleanos-mensaje {
    font-size: 0.75rem;
  }

  .cumpleanos-estado {
    font-size: 0.7rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
  .cumpleanos-container {
    width: 98%;
    max-width: 300px;
    padding: 0.5rem;
  }

  .cumpleanos-lista {
    max-height: 200px;
  }

  .cumpleanos-foto {
    width: 40px;
    height: 40px;
  }
}

/* Scrollbar personalizado para la lista de cumpleaños */
.cumpleanos-lista::-webkit-scrollbar {
  width: 6px;
}

.cumpleanos-lista::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.cumpleanos-lista::-webkit-scrollbar-thumb {
  background: rgba(54, 169, 225, 0.5);
  border-radius: 3px;
}

.cumpleanos-lista::-webkit-scrollbar-thumb:hover {
  background: rgba(54, 169, 225, 0.8);
}

/* Agregar overlay de fondo para mejor visibilidad */
.cumpleanos-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
  backdrop-filter: blur(2px);
}
