*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #000; color: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.header { background: #02557f; padding: 15px 30px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.header h1 { font-size: 22px; text-transform: uppercase; letter-spacing: 2px; }

.section { padding: 40px 20px; position: relative; display: block; }
.section.visible { display: block; }
.section-title { font-size: 28px; text-transform: uppercase; text-align: center; margin-bottom: 30px; font-weight: 900; letter-spacing: 2px; }

/* === Carousel base (vanilla) === */
.carousel-container { position: relative; }
.carousel-track-wrap { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-track.dragging { transition: none; cursor: grabbing; }
.carousel-slide { flex: 0 0 auto; padding: 0 8px; }
.carousel-slide img { width: 100%; border-radius: 8px; user-select: none; }
.offer-img-wrap { width: 100%; aspect-ratio: 9/16; overflow: hidden; border-radius: 10px; }
.offer-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.carousel-arrow:hover { background: rgba(0,0,0,0.8); }
.carousel-arrow.prev { left: -6px; }
.carousel-arrow.next { right: -6px; }
.carousel-arrow:disabled { opacity: 0.25; cursor: default; }

/* === 1. HERO CAROUSEL === */
.hero-carousel {}
.hero-slide { position: relative; height: 500px; overflow: hidden; border-radius: 12px; }
.hero-slide video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; pointer-events: none; }
.hero-slide .hero-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }
.hero-info h3 { font-size: 22px; margin-bottom: 5px; }
.hero-info .meta { font-size: 14px; opacity: 0.8; margin-bottom: 8px; }
.hero-info .price { font-size: 28px; font-weight: 900; color: #fecf34; }
.hero-info .price small { font-size: 14px; font-weight: 400; color: #ccc; }
.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fecf34; border-color: #fecf34; }

/* === 2-5. Offer cards === */
.section-ofertas { background: #02557f; }
.section-favoritos { background: #1a1a2e; }
.section-temporada { background: #16213e; }
.section-bloqueos { background: #0f3460; }
.oferta-card { text-align: center; }
.oferta-card img { width: 100%; border-radius: 10px; }
.oferta-card .oferta-name { font-size: 14px; font-weight: 700; margin-top: 8px; }
.oferta-card .oferta-price { font-size: 20px; font-weight: 900; color: #fecf34; }

/* === 6. MEGA TRAVELER === */
.section-traveler { background: #451316; padding: 50px 30px; }
.traveler-wrap { display: flex; align-items: center; gap: 40px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.traveler-info { flex: 1; min-width: 280px; }
.traveler-info h2 { font-size: 32px; text-transform: uppercase; margin-bottom: 10px; }
.traveler-info .date { color: #fecf34; font-weight: 700; margin-bottom: 15px; }
.traveler-info p { font-size: 15px; line-height: 1.6; margin-bottom: 20px; opacity: 0.9; }
.traveler-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.traveler-btn { background: #fecf34; color: #000; padding: 12px 28px; font-weight: 900; text-transform: uppercase; font-size: 16px; border: none; cursor: pointer; border-radius: 4px; transition: transform .2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.traveler-btn:hover { transform: scale(1.05); }
.traveler-img { flex: 0 0 280px; }

/* === 7. MEGA TV (PRIORIDAD) === */
.section-megatv { background: #1a1a2e; }
.megatv-slide { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.megatv-slide img { width: 100%; transition: transform .4s; }
.megatv-slide:hover img { transform: scale(1.05); }
.megatv-slide .megatv-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; transition: background .3s; }
.megatv-slide:hover .megatv-overlay { background: rgba(0,0,0,0.5); }
.megatv-overlay .play-icon { font-size: 60px; color: #fff; opacity: 0.9; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.megatv-slide .megatv-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); font-size: 14px; font-weight: 700; text-align: center; }
.megatv-social { display: flex; justify-content: center; gap: 8px; padding: 8px 0; }
.megatv-social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.15); font-size: 14px; transition: background .2s; text-decoration: none; }
.megatv-social a:hover { background: #fecf34; color: #000; }

/* Video modal */
.video-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; }
.video-modal.active { display: flex; }
.video-modal iframe { width: 90%; max-width: 800px; aspect-ratio: 16/9; border: none; border-radius: 8px; }
.video-modal .close-modal { position: absolute; top: 20px; right: 30px; font-size: 40px; color: #fff; cursor: pointer; background: none; border: none; }

/* === 8. #quieroviajar === */
.section-quiero { background: #000; text-align: center; }
.section-quiero .video-title { font-size: 36px; text-transform: uppercase; margin-bottom: 25px; color: #fecf34; }
.section-quiero .video-link { display: inline-block; position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; }
.section-quiero .video-link img { max-width: 100%; border-radius: 16px; }
.section-quiero .play-btn-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 72px; color: #fff; opacity: 0.85; text-shadow: 0 4px 20px rgba(0,0,0,0.6); pointer-events: none; }

/* === 9. IFRAMES === */
.section-iframes { background: #fff; color: #000; }
.iframe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.iframe-grid iframe { width: 100%; height: 400px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }

/* === 10. TOURS OAXACA === */
.tours-oaxaca-wrap { max-width: 900px; margin: 0 auto; }
.tours-oaxaca-wrap iframe { width: 100%; height: 630px; border: none; border-radius: 8px; background: #fff; }

@media (max-width: 768px) {
  .hero-slide { height: 300px; }
  .hero-info h3 { font-size: 16px; }
  .hero-info .price { font-size: 20px; }
  .traveler-wrap { flex-direction: column; text-align: center; }
  .traveler-btns { justify-content: center; }
  .section-title { font-size: 22px; }
  .iframe-grid { grid-template-columns: 1fr; }
}

