/* agenda.css */

/* ===============================
   AGENDA – PÁGINA
   =============================== */

.agenda-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 4% 80px;
}

/* ===============================
   LISTADO
   =============================== */

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* =========================
   CONTROLES / FILTROS AGENDA
   ========================= */

.controles-agenda {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 25px auto 35px;
  max-width: 900px;
}

.controles-agenda input,
.controles-agenda select {
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 6px;
  outline: none;
  height: 42px;
  font-family: "Inconsolata", monospace;
}

.controles-agenda input {
  flex: 1;
  min-width: 380px;
}

.controles-agenda select {
  flex: 0 0 280px;
  cursor: pointer;
}

.controles-agenda input::placeholder {
  color: #aaa;
}

.controles-agenda input:focus,
.controles-agenda select:focus {
  border-color: rgb(232, 73, 0);
}

/* ===============================
   EVENTOS PRÓXIMOS (7 DÍAS)
   =============================== */

.agenda-item.agenda-proximo {
  border-color: rgba(232, 73, 0, 0.284);
  background: linear-gradient(
    90deg,
    rgba(232, 73, 0, 0.05),
    rgba(255, 255, 255, 0.03)
  );
}

.agenda-item.agenda-proximo .agenda-fecha {
  background: rgba(232, 73, 0, 0.25);
}

/* ===============================
   ITEM
   =============================== */

.agenda-item {
  display: grid;
  grid-template-columns: 90px 1fr 100px; /* fecha | info | flyer */
  gap: 22px;
  align-items: center;

  padding: 22px 26px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.agenda-item.agenda-destacado {
  transform: scale(1.02);
  border: 2px solid rgba(232, 73, 0, 0.736);
}

.agenda-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* ===============================
   FECHA
   =============================== */

.agenda-fecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 1;

  background: rgba(232, 73, 0, 0.12);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.agenda-fecha .dia {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: rgb(232, 73, 0);
}

.agenda-fecha .mes {
  font-size: 14px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
}

.agenda-fecha .anio {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 2px;
}

/* ===============================
   INFO
   =============================== */

.agenda-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 2;
  align-self: center;
}

.agenda-evento {
  font-family: "Big Shoulders", sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: #fff;
}

/* Artistas */

.agenda-artistas {
  font-size: 15px;
  line-height: 1.4;
}

.agenda-artistas strong {
  color: rgb(232, 73, 0);
  font-weight: 600;
}

/* Lugar */

.agenda-lugar {
  font-size: 14px;
  opacity: 0.85;
}

.agenda-lugar strong {
  color: rgb(232, 73, 0);
  font-weight: 600;
}

/* ===============================
   LINK EXTERNO
   =============================== */

.agenda-link {
  margin-top: 6px;
  font-size: 14px;
}

.agenda-link a {
  color: rgb(232, 135, 0);
}

.agenda-link a:hover {
  text-decoration: underline;
}

/* ===============================
   FLYER EN LISTADO
   =============================== */

.agenda-flyer {
  width: 90px;
  display: flex;
  align-items: stretch; /* ocupa el alto del item */
  cursor: pointer;
  grid-column: 3;
}

.agenda-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta sin deformar */
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.agenda-flyer img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ===============================
   POPUP FLYER
   =============================== */

#flyerPopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.flyer-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.flyer-popup-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 10px;
}

.flyer-download {
  display: inline-block;
  margin-top: 14px;
  color: rgb(232, 135, 0);
  font-size: 15px;
}

.flyer-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 26px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 600px) {
  /* ===============================
     CONTROLES (FILTROS)
     =============================== */

  .controles-agenda {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .controles-agenda input,
  .controles-agenda select {
    width: 100%;
    min-width: unset;
    height: auto;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.3;
  }

  .controles-agenda select {
    -webkit-appearance: none;
    appearance: none;

    background-image:
      linear-gradient(45deg, transparent 50%, #fff 50%),
      linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position:
      calc(100% - 18px) 50%,
      calc(100% - 12px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;

    padding-right: 36px;
  }

  /* ===============================
     ITEM AGENDA – NUEVO LAYOUT
     =============================== */

  .agenda-item {
    display: grid;
    grid-template-columns: 1fr 120px;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 14px 16px;

    padding: 18px;
  }

  .agenda-evento {
    line-height: 1.1;
  }

  /* FECHA*/
  .agenda-fecha {
    grid-column: 1;
    grid-row: 1;

    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;

    padding: 8px 10px;
  }

  .agenda-fecha .dia {
    font-size: 24px;
  }

  .agenda-fecha .mes,
  .agenda-fecha .anio {
    font-size: 12px;
  }

  /* FLYER */
  .agenda-flyer {
    grid-column: 2;
    grid-row: 1 / span 2;

    width: 100%;
    align-self: start;
  }

  .agenda-flyer img {
    height: 100%;
    min-height: 140px;
    max-height: 180px;
    object-fit: cover;
  }

  /* TEXTO */
  .agenda-info {
    grid-column: 1;
    grid-row: 2;

    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }

  .agenda-evento {
    font-size: 22px;
  }

  .agenda-artistas,
  .agenda-lugar {
    font-size: 14px;
  }
}
