/* =========================
   ACTIVIDADES
========================= */

.actividades-page {
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
  overflow-x: hidden;
}

.actividades-section {
  padding: 140px 4vw 60px;
}

/* TÍTULO */

.actividades-intro {
  text-align: center;
  margin-bottom: 50px;
}

.actividades-intro h1 {
  font-size: clamp(38px, 5vw, 44px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.1s;
}

/* LAYOUT DESKTOP */

.actividades-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  max-width: 1320px;
  margin: 0 auto;
}

/* IMAGEN IZQUIERDA */

.actividad-principal {
  position: relative;
  height: 560px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.actividad-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actividad-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px;
  color: white;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72),
    rgba(0,0,0,0.22),
    transparent
  );
}

.actividad-overlay h2 {
  font-size: 42px;
  margin-bottom: 12px;
  color: white;
}

.actividad-overlay p {
  font-family: "Acumin Pro Regular", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  color: white;
}

/* CARRUSEL DERECHA */

.actividades-derecha {
  height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.swipe-hint {
  height: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 8px 12px;
  font-family: "Acumin Pro Regular", Arial, sans-serif;
  font-size: 13px;
  opacity: 0.75;
}

.swipe-hint .arrow {
  display: inline-block;
}

.carteles-slider {
  height: calc(100% - 36px);
  display: flex;
  gap: 20px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  cursor: grab;
}

.carteles-slider:active {
  cursor: grabbing;
}

.carteles-slider::-webkit-scrollbar {
  height: 6px;
}

.carteles-slider::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.carteles-slider::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 999px;
}

.cartel-card {
  flex: 0 0 auto;
  height: 100%;
  width: auto;

  border-radius: 34px;
  overflow: hidden;
  scroll-snap-align: start;

  background: transparent;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.cartel-card img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
}

/* ANIMACIÓN */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   TABLET Y MÓVIL
========================= */

@media (max-width: 1024px) {

  .actividades-section {
    padding: 112px 20px 32px;
  }

  .actividades-intro {
    margin-bottom: 24px;
  }

  .actividades-intro h1 {
    font-size: 26px;
  }

  .actividades-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .actividad-principal {
    height: 420px;
    border-radius: 30px;
  }

  .actividad-overlay {
    padding: 26px;
  }

  .actividad-overlay h2 {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .actividad-overlay p {
    font-size: 14px;
  }

  .actividades-derecha {
    height: 420px;
  }

  .carteles-slider {
    height: calc(100% - 36px);
    gap: 16px;
    padding-bottom: 0;
  }

  .carteles-slider::-webkit-scrollbar {
    display: none;
  }

  .cartel-card {
    height: 100%;
    border-radius: 28px;
  }

  .cartel-card img {
    height: 100%;
    width: auto;
    object-fit: cover;
  }

  .mobile-header {
    position: fixed;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 430px !important;
    height: 62px !important;
    padding: 0 20px !important;
    border-radius: 50px !important;
    box-sizing: border-box !important;
    align-items: center;
    justify-content: space-between;
  }

  .header-logo img {
    width: 78px !important;
    height: auto !important;
  }

  .menu-toggle {
    width: 32px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 480px) {

  .actividad-principal {
    height: 390px;
  }

  .actividades-derecha {
    height: 390px;
  }

  .actividad-overlay h2 {
    font-size: 28px;
  }
}