/* Estilos globales para PROYECTO_PJA */

/* Tipografía: asegúrate de incluir el link de Google Fonts en cada página */

:root {
  --overlay: rgba(0, 0, 0, 0.6);
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-image: url("../imagenes/fondo.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Poppins", sans-serif;
}

/* Navegación */
.navbar-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Contenedores con fondo translúcido */
.contenido {
  background-color: var(--overlay);
  padding: 40px;
  border-radius: 10px;
  margin-top: 50px;
}

.card {
  background-color: var(--overlay);
  transition: transform 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.03);
}

.card h3 {
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
}

.card p,
.card li {
  font-weight: 500;
  font-size: 18px;
  color: #f8f9fa;
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Titulares de portada */
.titulo {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 50px;
  text-transform: uppercase;
  text-align: center;
}

.descripcion {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

/* Utilidades */
.img-fluid {
  max-width: 100%;
  height: auto;
}

footer {
  margin-top: 3rem;
}

/* ===================== */
/* Componentes de eventos */
/* ===================== */
.event-card {
  position: relative; /* requerido por .stretched-link */
  cursor: pointer;
}

/* Asegura que los CTAs encima del stretched-link sean clicables */
.event-cta {
  position: relative;
  z-index: 3;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 12px 14px;
  border-radius: 12px;
  /* Fondo oscuro translúcido para alto contraste en cualquier fondo */
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.5));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  backdrop-filter: saturate(120%) blur(2px);
}

.event-date .event-day {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
}

.event-date .event-month {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date .event-year {
  font-size: 0.8rem;
}

.event-date .event-time {
  margin-top: 6px;
  font-size: 0.9rem;
}
