/* Reset básico */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../image/fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  padding: 30px 15px;
  text-align: center;
}

.banner {
  background: url('../image/UEPJXXIII.jpg') no-repeat center center;
  background-size: cover;
  width: 850px;
  height: 200px;
  border-radius: 12px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  margin: 0 auto; /* CENTRAR horizontalmente */
}

h1 {
  margin-bottom: 25px;
  font-size: 2.5rem;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.listas {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.elemento {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px;
  width: 450px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse por el elemento */
.elemento:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  background: rgba(255, 255, 255, 0.15);
}


.elemento h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.like-btn {
  background-color: #FFD700; /* Amarillo */
  border: none;
  padding: 10px 20px;
  font-size: 24px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 0 10px #FFD700;
  transition: background-color 0.3s ease, box-shadow 0.6s ease;
  animation: glow 2s infinite alternate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Animación de brillo */
@keyframes glow {
  from {
    box-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700;
  }
  to {
    box-shadow: 0 0 20px #FFF700, 0 0 30px #FFF700;
  }
}

/* Clase para efecto "liked" (verde) */
.like-btn.liked {
  background-color: #28a745 !important; /* Verde */
  box-shadow: 0 0 15px #28a745, 0 0 30px #28a745 !important;
  animation: none;
  color: white;
}

/* Efecto hover para más dinamismo */
.like-btn:hover:not(.liked) {
  background-color: #ffec5c;
  box-shadow: 0 0 15px #ffec5c, 0 0 25px #ffec5c;
}

.footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #eee;
}

.social-icons {
  margin-top: 8px;
}

.social-icons a {
  color: #eee;
  margin: 0 8px;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ff3860;
}

/* Lista A y B, puedes personalizar colores */
.elemento.A {
  border: 2px solid #00d1b2; /* verde */
}

.elemento.B {
  border: 2px solid #3273dc; /* azul */
}


/* ===== Estilos Modal ===== */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo semi-transparente */
  justify-content: center; /* Centrar horizontal */
  align-items: center;     /* Centrar vertical */
  z-index: 9999;
}

.modal.show {
  display: flex; /* Mostrar como flexbox para centrar */
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: slideIn 0.3s ease forwards;
}

.modal-content h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

.modal-content button {
  background-color: #4facfe;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #00c6ff;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
