:root {
  --header-bg: #ffffff;
  --header-text: #1f2937;
  --gradient-start: #e0f2fe;
  --gradient-end: #fef3c7;
  --text: #1f2937;
  --card: #ffffff;
  --muted: #6b7280;
  --button: #f97316;
  --button-hover: #ea580c;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(160deg, var(--gradient-start), var(--gradient-end));
  color: var(--text);
  min-height: 100vh;
}

header {
  background-color: var(--header-bg);
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--header-text);
}

main {
  padding: 30px 15px;
  margin-top: 100px;
}

.titulo {
  text-align: center;
  font-size: 2rem;
  margin: 30px 0;
  color: var(--text);
}

.contenedor {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.clase {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clase a {
  text-decoration: none;
}

a > .meet-button {
  text-decoration: none;
}


.clase:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.miniatura {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clase h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

.descripcion {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.fecha {
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 5px 0 8px;
}

button {
  background-color: var(--button);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: var(--button-hover);
}

/* Modal para el video */
#video-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#video-container {
  width: 90%;
  height: 90%;
  max-width: 960px;
  position: relative;
}

#iframe-modal {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #dc2626; /* rojo fuerte */
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10000;
}

.cerrar:hover {
  background-color: #b91c1c; /* rojo más oscuro al pasar el mouse */
}


@keyframes parpadeo {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.5; transform: translateX(3px); }
}

.mensaje-sonido {
  color: yellow;
  text-align: center;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 500;
  animation: parpadeo 1.2s infinite;
}

.meet-button {
  background-color: #4285f4; /* azul Google Meet */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.meet-button:hover {
  background-color: #3367d6;
}

.meet-icon {
  width: 20px;
  height: 20px;
}



/* Responsive */
@media (max-width: 768px) {
  .contenedor {
    grid-template-columns: 1fr;
  }

  .titulo {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .clase h2 {
    font-size: 1rem;
  }

  .descripcion {
    font-size: 0.9rem;
  }

  button {
    font-size: 13px;
  }

  #video-container {
    width: 100%;
    height: 100%;
  }
}
