/* Reset mínimo */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0a3559;
}

/* Fondo fijo con 10% de transparencia */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../img/bg-reforest.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.1;
  pointer-events: none;
}

/* Layout general */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 78px 56px 90px;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 84px;
}

.logo {
  display: block;
  width: 560px;
  max-width: 100%;
  height: auto;
}

/* Contenedor de cards */
.events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

/* Card estilo Passline */
.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

/* Imagen superior */
.event-image-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #d8d8d8;
}

.event-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Contenido blanco inferior */
.event-info {
  display: flex;
  flex-direction: column;
  padding: 13px 13px 15px;
  min-height: 142px;
}

/* Ubicación */
.event-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 9px;
  color: #9b9b9b;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
}

.location-icon {
  font-size: 12px;
  line-height: 1;
  color: #b0b0b0;
}

/* Título */
.event-title {
  margin: 0;
  min-height: 38px;
  color: #111111;
  font-size: 12.5px;
  line-height: 1.18;
  font-weight: 800;
}

/* Fecha / hora */
.event-schedule {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  color: #000000;
}

.event-date,
.event-time {
  display: flex;
  align-items: flex-end;
}

.event-day,
.event-hour {
  display: block;
  font-size: 34px;
  line-height: 0.85;
  font-weight: 900;
  letter-spacing: -1.8px;
}

.event-month-year,
.event-minutes {
  display: flex;
  flex-direction: column;
  margin-left: 4px;
  padding-bottom: 1px;
  font-size: 9px;
  line-height: 0.95;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-divider {
  width: 2px;
  height: 36px;
  margin: 0 11px;
  background-color: #000000;
  opacity: 0.55;
}

/* Tablet */
@media (max-width: 1024px) {
  .page {
    padding: 60px 30px 80px;
  }

  .events {
    grid-template-columns: repeat(2, 1fr);
    max-width: 540px;
    gap: 26px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body::before {
    background-position: center center;
    background-size: cover;
  }

  .page {
    padding: 42px 24px 72px;
  }

  .header {
    margin-bottom: 52px;
  }

  .logo {
    width: 315px;
  }

  .events {
    grid-template-columns: 1fr;
    max-width: 345px;
    gap: 38px;
  }

  .event-info {
    padding: 15px 15px 17px;
    min-height: 150px;
  }

  .event-location {
    font-size: 11px;
  }

  .event-title {
    font-size: 14px;
    min-height: 40px;
  }

  .event-day,
  .event-hour {
    font-size: 40px;
  }

  .event-month-year,
  .event-minutes {
    font-size: 10px;
  }

  .schedule-divider {
    height: 42px;
    margin: 0 14px;
  }
}