@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- TOURISM PRESETS --- */
:root {
  --primary: #0EA5E9; /* Azul Cielo */
  --primary-dark: #0369A1;
  --primary-light: #E0F2FE;
  
  --secondary: #38BDF8;
  --secondary-light: #F0F9FF;
  
  --accent: #F97316; /* Naranja Aventura */
  --accent-hover: #EA580C;
  --accent-light: #FFEDD5;
  
  --text-main: #0C4A6E; /* Azul Océano */
  --text-muted: #0284C7;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  
  --bg-main: #FFFFFF;
  --bg-alt: #F0F9FF;
  --bg-card: #FFFFFF;
  --bg-dark: #0B2535; /* Dark ocean blue for footer and mobile drawer */
  --border-color: #BAE6FD;
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 2px 4px rgba(12, 74, 110, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(12, 74, 110, 0.06), 0 4px 6px -2px rgba(12, 74, 110, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(12, 74, 110, 0.1), 0 10px 10px -5px rgba(12, 74, 110, 0.04);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-alt);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- STRUCTURE --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-headings);
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.25);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-white);
  box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.15);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.25);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* --- NAVIGATION NAVBAR --- */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

header.scrolled .navbar {
  padding: 16px 0;
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* --- VISUAL HEADER DIFFERENTIATIONS (BANNERS SUPERIORES) --- */

/* Style A: Aurora UI Mesh Gradient (index.html) */
.hero-travel-home {
  padding: 180px 0 120px 0;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #FFEDD5 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-travel-home::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-travel-home-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-travel-home-content h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-travel-home-content h1 span {
  background: linear-gradient(to right, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-travel-home-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* Style B: Asymmetric Collage (destinos.html) */
.hero-travel-destinations {
  background-color: var(--bg-main);
  padding: 160px 0 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-travel-destinations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-travel-destinations-title h1 {
  font-size: 3.5rem;
}

.hero-travel-destinations-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dest-collage-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--primary-light);
  box-shadow: var(--shadow-md);
}

.dest-collage-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Style C: Sunrise Mesh with floating activity badges (fulldays.html) */
.hero-travel-fulldays {
  padding: 160px 0 100px 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary-light) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-travel-fulldays-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-travel-fulldays-container h1 {
  font-size: 4rem;
  margin-bottom: 16px;
}

.floating-activity-badges {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.floating-badge {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}

.floating-badge:nth-child(2) { animation-delay: 2s; }
.floating-badge:nth-child(3) { animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Style D: Seamless Booking layout (reservar.html) */
.hero-travel-booking {
  display: none; /* No banner, blends right away into form */
}

.booking-direct-page {
  padding-top: 130px;
  background-color: var(--bg-alt);
  min-height: 100vh;
}

/* Style E: Acreditaciones MINCETUR (nosotros.html) */
.hero-travel-info {
  background-color: var(--text-main);
  color: var(--text-white);
  padding: 160px 0 80px 0;
  border-bottom: 6px solid var(--accent);
  text-align: center;
}

.hero-travel-info h1 {
  color: var(--text-white);
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.mincetur-logos-box {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
  align-items: center;
}

.mincetur-logo {
  background-color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #BE123C; /* Mincetur Red style */
  box-shadow: var(--shadow-md);
  border: 2px solid #E11D48;
}

.promperu-logo {
  background-color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #D97706; /* Promperu Warm Orange */
  box-shadow: var(--shadow-md);
  border: 2px solid var(--accent);
}

/* --- HOME PAGE QUICK SEARCH BAR --- */
.quick-search-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.quick-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.quick-search-form .form-group {
  margin-bottom: 0;
}

.quick-search-form label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quick-search-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: var(--bg-alt);
}

/* --- GRID CARDS FOR DESTINATIONS --- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.dest-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.dest-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.dest-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.dest-card:hover .dest-img-box img {
  transform: scale(1.05);
}

.dest-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent);
  color: var(--text-white);
}

.dest-body {
  padding: 24px;
}

.dest-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.dest-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.dest-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.dest-duration {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.dest-price {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-hover);
}

/* --- OFFICIAL ACCREDITATIONS DISPLAY --- */
.accreditations-block {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.accreditations-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.acc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 480px;
}

.acc-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- DESTINATIONS DETAIL PANELS (TABS & COLLAPSIBLE ITINERARY) --- */
.dest-tabs-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.dest-tab-btn {
  background: none;
  border: 2px solid var(--border-color);
  padding: 12px 24px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dest-tab-btn:hover {
  border-color: var(--primary);
}

.dest-tab-btn.active {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.dest-tab-panel {
  display: none;
}

.dest-tab-panel.active {
  display: block;
}

.destination-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

/* Itinerary Hour by Hour accordion */
.itinerary-timeline {
  border-left: 2px solid var(--border-color);
  padding-left: 24px;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.itinerary-step {
  position: relative;
}

.itinerary-step::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 4px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--primary);
}

.itinerary-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.itinerary-step-header h4 {
  font-size: 1.15rem;
}

.itinerary-step-header span {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
}

.itinerary-step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.itinerary-step.active .itinerary-step-body {
  max-height: 300px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.itinerary-step-body p {
  padding-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Include / Exclude panel */
.include-exclude-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.include-exclude-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.inc-list, .exc-list {
  list-style: none;
  margin-bottom: 24px;
}

.inc-list li, .exc-list li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.inc-list li::before {
  content: '✓';
  color: #10B981; /* Green check */
  font-weight: 800;
}

.exc-list li::before {
  content: '✗';
  color: #EF4444; /* Red cross */
  font-weight: 800;
}

/* --- RESERVATIONS PAGE (CALENDAR & PASARELA) --- */
.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.booking-panel-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.booking-panel-card h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.booking-panel-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Passenger data form inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--bg-alt);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  background-color: var(--bg-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Payment Gateway Tabs styling */
.payment-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.payment-tab-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.payment-tab-btn.active {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.payment-panel {
  display: none;
}

.payment-panel.active {
  display: block;
}

.culqi-logo-text {
  font-family: var(--font-headings);
  font-weight: 900;
  color: #E11D48; /* Culqi Red style */
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.paypal-logo-text {
  font-family: var(--font-headings);
  font-weight: 900;
  color: #2563EB; /* Paypal Blue style */
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- FOOTER --- */
footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-brand .logo {
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--text-white);
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.footer-contact span:first-child {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .hero-travel-home-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-travel-home {
    padding-bottom: 60px;
  }
  .hero-travel-destinations-grid {
    grid-template-columns: 1fr;
  }
  .quick-search-form {
    grid-template-columns: 1fr 1fr;
  }
  .quick-search-form .btn {
    grid-column: span 2;
  }
  .destination-detail-grid {
    grid-template-columns: 1fr;
  }
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .navbar {
    padding: 20px 0;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 24px;
    right: 24px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    width: 100%;
    text-align: center;
    display: block;
  }
  .nav-links a:hover {
    color: var(--text-white) !important;
  }
  .accreditations-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .dest-tabs-buttons {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-travel-home-content h1 {
    font-size: 2.5rem;
  }
  .quick-search-form {
    grid-template-columns: 1fr;
  }
  .quick-search-form .btn {
    grid-column: span 1;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .booking-panel-card {
    padding: 24px;
  }
}
