/* ========================================
   COUNTRY LANDING PREMIUM - Estilos Fintech
   Extraidos de /esim - Solo para pagina piloto
   Activar con clase .clp-premium en <main>
   ======================================== */

/* ========================================
   CSS VARIABLES - PALETA FINTECH
   ======================================== */
.clp-premium {
  --clp-primary: #1E3A8A;
  --clp-secondary: #22D3EE;
  --clp-accent: #FACC15;
  --clp-success: #10B981;
  --clp-surface: #FFFFFF;
  --clp-background: #F8FAFC;
  --clp-text-primary: #1F2937;
  --clp-text-secondary: #6B7280;
  --clp-border-light: #E5E7EB;
  --clp-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --clp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --clp-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --clp-gradient: linear-gradient(135deg, var(--clp-primary) 0%, var(--clp-secondary) 100%);
  --clp-gradient-accent: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  --clp-radius-sm: 8px;
  --clp-radius-md: 12px;
  --clp-radius-lg: 16px;
  --clp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   TYPOGRAPHY - CLAMP RESPONSIVE
   ======================================== */
.clp-premium h1 {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.clp-premium h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.clp-premium h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
  font-weight: 700;
  line-height: 1.3;
}

.clp-premium p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.7;
}

/* ========================================
   HERO SECTION - PREMIUM
   ======================================== */
.clp-premium .hero-section {
  background: var(--clp-gradient) !important;
  padding: clamp(60px, 10vw, 100px) 20px !important;
  position: relative;
  overflow: hidden;
}

.clp-premium .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.clp-premium .hero-section .container {
  position: relative;
  z-index: 1;
}

.clp-premium .hero-section h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.clp-premium .hero-section p {
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 700px;
  margin: 0 auto clamp(24px, 4vw, 36px);
}

/* Hero CTA Button - Premium */
.clp-premium .hero-section .btn-primary,
.clp-premium .hero-section a[style*="background: white"] {
  background: #ffffff !important;
  color: var(--clp-primary) !important;
  padding: 16px 40px !important;
  border-radius: var(--clp-radius-md) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--clp-transition);
  text-decoration: none !important;
  display: inline-block !important;
}

.clp-premium .hero-section .btn-primary:hover,
.clp-premium .hero-section a[style*="background: white"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CARDS - PREMIUM FINTECH
   ======================================== */
.clp-premium .route-card,
.clp-premium #vuelos-populares > div > div > div[style*="background"] {
  background: var(--clp-surface) !important;
  border-radius: var(--clp-radius-lg) !important;
  padding: clamp(20px, 4vw, 28px) !important;
  box-shadow: var(--clp-shadow-md) !important;
  border: 1px solid var(--clp-border-light) !important;
  transition: var(--clp-transition) !important;
  position: relative;
  overflow: hidden;
}

.clp-premium .route-card:hover,
.clp-premium #vuelos-populares > div > div > div[style*="background"]:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--clp-shadow-lg) !important;
  border-color: var(--clp-secondary) !important;
}

/* Card accent line */
.clp-premium .route-card::before,
.clp-premium #vuelos-populares > div > div > div[style*="background"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--clp-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clp-premium .route-card:hover::before,
.clp-premium #vuelos-populares > div > div > div[style*="background"]:hover::before {
  opacity: 1;
}

/* Price badge premium */
.clp-premium div[style*="background: #dbeafe"] {
  background: var(--clp-gradient) !important;
  color: #ffffff !important;
  border-radius: var(--clp-radius-sm) !important;
  padding: 10px 16px !important;
  font-weight: 700;
  box-shadow: var(--clp-shadow-sm);
}

/* Card CTA button */
.clp-premium a[style*="background: #1e3a8a"][style*="border-radius: 8px"] {
  background: var(--clp-gradient) !important;
  border-radius: var(--clp-radius-md) !important;
  padding: 14px 24px !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25);
  transition: var(--clp-transition);
}

.clp-premium a[style*="background: #1e3a8a"][style*="border-radius: 8px"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}

/* ========================================
   WHY CHOOSE SECTION - PREMIUM
   ======================================== */
.clp-premium #why-choose-rd {
  background: var(--clp-gradient-accent) !important;
  padding: clamp(40px, 6vw, 60px) 20px !important;
  border-bottom: none !important;
}

.clp-premium #why-choose-rd h2 {
  color: #1e40af !important;
  font-weight: 800 !important;
  margin-bottom: clamp(20px, 4vw, 32px) !important;
}

.clp-premium #why-choose-rd > div > div > div {
  background: var(--clp-surface) !important;
  border-radius: var(--clp-radius-lg) !important;
  padding: 18px 24px !important;
  box-shadow: var(--clp-shadow-md) !important;
  transition: var(--clp-transition) !important;
  border: 1px solid transparent;
}

.clp-premium #why-choose-rd > div > div > div:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: var(--clp-shadow-lg) !important;
  border-color: var(--clp-secondary);
}

/* ========================================
   CTA SECTION - PREMIUM GLOBAL
   ======================================== */
.clp-premium #cta-search-flights {
  background: var(--clp-background) !important;
  padding: clamp(50px, 8vw, 70px) 20px !important;
}

.clp-premium .btn-search-flights-cta {
  background: var(--clp-gradient) !important;
  padding: 18px 52px !important;
  border-radius: var(--clp-radius-md) !important;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3) !important;
  transition: var(--clp-transition) !important;
  position: relative;
  overflow: hidden;
}

.clp-premium .btn-search-flights-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.clp-premium .btn-search-flights-cta:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.4) !important;
}

.clp-premium .btn-search-flights-cta:hover::before {
  left: 100%;
}

/* Microcopy premium */
.clp-premium #cta-search-flights p[style*="color: #6b7280"] {
  color: var(--clp-text-secondary) !important;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ========================================
   DESTINOS RECOMENDADOS - PREMIUM
   ======================================== */
.clp-premium #destinos-recomendados {
  padding: clamp(50px, 8vw, 80px) 20px !important;
}

.clp-premium #destinos-recomendados h2 {
  color: var(--clp-primary) !important;
  margin-bottom: clamp(24px, 5vw, 40px) !important;
}

.clp-premium #destinos-recomendados > div > div {
  gap: clamp(16px, 3vw, 24px) !important;
}

/* Destination cards premium */
.clp-premium #destinos-recomendados > div > div > div[style*="background: white"] {
  border-radius: var(--clp-radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--clp-shadow-md) !important;
  transition: var(--clp-transition) !important;
  border: 1px solid var(--clp-border-light);
}

.clp-premium #destinos-recomendados > div > div > div[style*="background: white"]:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--clp-shadow-lg) !important;
  border-color: var(--clp-secondary);
}

.clp-premium #destinos-recomendados img {
  transition: transform 0.4s ease !important;
}

.clp-premium #destinos-recomendados > div > div > div:hover img {
  transform: scale(1.08) !important;
}

/* ========================================
   HOTEL SEARCH SECTION - PREMIUM
   ======================================== */
.clp-premium .hotel-search-section-clp {
  background: var(--clp-gradient) !important;
  padding: clamp(50px, 8vw, 70px) 20px !important;
  position: relative;
  overflow: hidden;
}

.clp-premium .hotel-search-section-clp::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.clp-premium .hotel-search-section-clp h2 {
  color: #ffffff !important;
}

.clp-premium .hotel-search-section-clp p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Hotel form premium */
.clp-premium .hotel-search-form-clp {
  background: var(--clp-surface) !important;
  border-radius: var(--clp-radius-lg) !important;
  padding: clamp(24px, 4vw, 32px) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.clp-premium .hotel-search-form-clp input,
.clp-premium .hotel-search-form-clp select {
  border-radius: var(--clp-radius-sm) !important;
  border: 2px solid var(--clp-border-light) !important;
  padding: 14px 16px !important;
  font-size: 1rem !important;
  transition: var(--clp-transition) !important;
}

.clp-premium .hotel-search-form-clp input:focus,
.clp-premium .hotel-search-form-clp select:focus {
  outline: none !important;
  border-color: var(--clp-secondary) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15) !important;
}

.clp-premium .hotel-search-form-clp button[type="submit"] {
  background: var(--clp-gradient) !important;
  border-radius: var(--clp-radius-md) !important;
  padding: 16px 32px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3) !important;
  transition: var(--clp-transition) !important;
  border: none !important;
}

.clp-premium .hotel-search-form-clp button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4) !important;
}

/* ========================================
   INTERNAL LINKS SECTION - PREMIUM
   ======================================== */
.clp-premium .internal-links-section {
  background: var(--clp-background) !important;
  padding: clamp(40px, 6vw, 60px) 20px !important;
}

.clp-premium .internal-links-section a {
  color: var(--clp-primary) !important;
  font-weight: 500;
  transition: var(--clp-transition) !important;
  position: relative;
}

.clp-premium .internal-links-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clp-secondary);
  transition: width 0.3s ease;
}

.clp-premium .internal-links-section a:hover {
  color: var(--clp-secondary) !important;
}

.clp-premium .internal-links-section a:hover::after {
  width: 100%;
}

/* ========================================
   FINAL CTA SECTION - PREMIUM
   ======================================== */
.clp-premium section[style*="linear-gradient"]:last-of-type {
  background: var(--clp-gradient) !important;
  position: relative;
  overflow: hidden;
}

.clp-premium section[style*="linear-gradient"]:last-of-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(250, 204, 21, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

/* ========================================
   STICKY CTA - PREMIUM MOBILE
   ======================================== */
.clp-premium .sticky-cta-mobile {
  background: var(--clp-surface) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12) !important;
  border-top: 1px solid var(--clp-border-light);
}

.clp-premium .sticky-cta-mobile a {
  background: var(--clp-gradient) !important;
  border-radius: var(--clp-radius-md) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3) !important;
}

/* ========================================
   BREADCRUMBS - PREMIUM
   ======================================== */
.clp-premium nav[aria-label="breadcrumb"] {
  background: var(--clp-surface) !important;
  border-bottom: 1px solid var(--clp-border-light) !important;
  padding: 16px 20px !important;
}

.clp-premium nav[aria-label="breadcrumb"] a {
  color: var(--clp-primary) !important;
  font-weight: 500;
  transition: color 0.2s ease !important;
}

.clp-premium nav[aria-label="breadcrumb"] a:hover {
  color: var(--clp-secondary) !important;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
  .clp-premium .hero-section {
    padding: clamp(50px, 8vw, 70px) 16px !important;
  }

  .clp-premium #vuelos-populares > div > div {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
  .clp-premium .hero-section {
    padding: 50px 16px !important;
  }

  .clp-premium .hero-section h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
  }

  .clp-premium .hero-section .btn-primary,
  .clp-premium .hero-section a[style*="background: white"] {
    padding: 14px 32px !important;
    font-size: 1rem !important;
    width: 100%;
    max-width: 280px;
  }

  .clp-premium .btn-search-flights-cta {
    padding: 16px 36px !important;
    font-size: 1.05rem !important;
  }

  .clp-premium #why-choose-rd > div > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .clp-premium #why-choose-rd > div > div > div {
    max-width: 100% !important;
  }

  .clp-premium .hotel-search-form-clp {
    padding: 20px !important;
  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
  .clp-premium h1 {
    font-size: 1.75rem !important;
  }

  .clp-premium h2 {
    font-size: 1.35rem !important;
  }

  .clp-premium .btn-search-flights-cta {
    width: 100% !important;
    padding: 14px 24px !important;
  }

  .clp-premium .route-card,
  .clp-premium #vuelos-populares > div > div > div[style*="background"] {
    padding: 18px !important;
  }
}

/* ========================================
   ANIMATIONS - PREMIUM EFFECTS
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .clp-premium .route-card,
  .clp-premium #destinos-recomendados > div > div > div,
  .clp-premium #why-choose-rd > div > div > div {
    animation: clp-fadeInUp 0.5s ease-out backwards;
  }

  .clp-premium .route-card:nth-child(1) { animation-delay: 0.1s; }
  .clp-premium .route-card:nth-child(2) { animation-delay: 0.2s; }
  .clp-premium .route-card:nth-child(3) { animation-delay: 0.3s; }
  .clp-premium .route-card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes clp-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   TRAVEL TIPS ENHANCED - PREMIUM
   ======================================== */
.clp-premium .travel-tips-enhanced {
  background: var(--clp-background) !important;
  padding: clamp(60px, 10vw, 100px) 20px !important;
}

.clp-premium .travel-tips-enhanced h2 {
  color: var(--clp-primary) !important;
}

.clp-premium .travel-tips-enhanced .tip-card {
  border-radius: var(--clp-radius-lg) !important;
  box-shadow: var(--clp-shadow-md) !important;
  transition: var(--clp-transition) !important;
}

.clp-premium .travel-tips-enhanced .tip-card:hover {
  transform: translateX(4px) !important;
  box-shadow: var(--clp-shadow-lg) !important;
}

.clp-premium .travel-tips-enhanced h3 {
  color: var(--clp-primary) !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .clp-premium .sticky-cta-mobile,
  .clp-premium .country-landing-lang-selector {
    display: none !important;
  }

  .clp-premium .hero-section,
  .clp-premium section[style*="linear-gradient"] {
    background: #1e3a8a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
