/* ================================
   EVENTS – FULL BLEED NO GAPS
   ================================ */

/* Contenedor principal de eventos */
body.page-eventos .events-page {
  margin: 0;
  padding: 0;
}

/* Grid de eventos */
body.page-eventos .events-screen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* Cada tarjeta */
body.page-eventos .event-tile {
  margin: 0;
  padding: 0;
  border-radius: 0;
  height: 100vh; /* fuerza continuidad vertical */
}

/* Overlay no afecta layout */
body.page-eventos .event-overlay {
  border-radius: 0;
}

/* Quita espacio ENTRE bloques de eventos */
body.page-eventos .events-screen + .events-screen {
  margin-top: 0;
}

/* Quita espacio con la sección siguiente */
body.page-eventos .events-page + section,
body.page-eventos .events-screen:last-child {
  margin-bottom: 200px;
  padding-bottom: 180px;
}

/* Seguridad extra: siguiente sección no empuja */
body.page-eventos section:not(.events-page) {
  margin-top: 0;
  padding-top: 0;
}

/* ============================================
   MOBILE: EVENTOS VERTICAL LAYOUT
   ============================================ */
@media (max-width: 768px) {
  /* Stack events in a single column */
  body.page-eventos .events-screen {
    grid-template-columns: 1fr;
  }

  /* Taller cards that feel immersive but allow peeking at next event */
  body.page-eventos .event-tile {
    height: min(65vh, 520px);
  }

  /* Scale title down for full-width mobile cards */
  body.page-eventos .event-title {
    font-size: clamp(3rem, 11vw, 5rem);
  }

  /* Always show CTA on mobile — no hover on touch */
  body.page-eventos .event-cta {
    opacity: 1;
    transform: translateY(0);
  }

  /* Comfortable padding inside cards */
  body.page-eventos .event-content {
    left: 28px;
    bottom: 40px;
  }

  /* Kill the massive 380px void after last events section */
  body.page-eventos .events-screen:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Panamericanos CTA — center everything on mobile */
  .panamericanos-cta .cta-content {
    text-align: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(70px, 14vh, 120px) 6%;
  }

  .panamericanos-cta .cta-title {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    letter-spacing: 0.08em;
  }

  .panamericanos-cta .cta-description {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  /* Keep the underline visible on mobile (no hover) */
  .panamericanos-cta .cta-button::after {
    transform: scaleX(1);
  }
}

@media (max-width: 400px) {
  body.page-eventos .event-tile {
    height: min(60vh, 460px);
  }

  body.page-eventos .event-title {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  body.page-eventos .event-content {
    left: 22px;
    bottom: 32px;
  }

  .panamericanos-cta .cta-title {
    font-size: clamp(1.8rem, 7.5vw, 2.2rem);
  }

  .panamericanos-cta .cta-description {
    font-size: 0.95rem;
  }
}

/* Transition section */
.events-to-pan-transition {
  height: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 100%);
  position: relative;
  overflow: hidden;
}

.events-to-pan-transition .transition-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,0,0,0.1) 50%, transparent 70%);
  animation: transition-flow 4s ease-in-out infinite;
}

@keyframes transition-flow {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Panamericanos CTA */
.panamericanos-cta {
  position: relative;
  padding: 140px 0 140px;
  margin-top: -10px !important;
  border-top: 6px solid #ff0000;
  background-image: url("../../images/events/Panamericanos/m1.jpg");
  background-size: cover;
  background-position: center;
}

.panamericanos-cta .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(5, 5, 5, 0.8) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.88) 100%);
  z-index: 1;
}

.panamericanos-cta .cta-content {
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(90px, 16vh, 150px) 6%;
  max-width: 760px;
  margin-left: clamp(6%, 10vw, 14%);
  margin-right: 0;
}

.panamericanos-cta .cta-title {
  margin: 0;
  font-family: "Big Shoulders Display", "Impact", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 900;
  color: #ffffff;
}

.panamericanos-cta .cta-description {
  margin: 0;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  line-height: 1.6;
}

.panamericanos-cta .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  box-shadow: none;
  transition: color 0.2s ease;
  text-decoration: none;
  position: relative;
}

.panamericanos-cta .cta-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #ff0000;
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.panamericanos-cta .cta-button:hover,
.panamericanos-cta .cta-button:focus-visible {
  color: #ffffff;
}

.panamericanos-cta .cta-button:hover::after,
.panamericanos-cta .cta-button:focus-visible::after {
  transform: scaleX(1);
}

