/* ==========================================================================
   AGENCIA DE VIAJES & TURISMO - STYLESHEET (styles.css)
   Clean, modern, responsive travel UI with warm tropical & azure tones
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #ffedd5;
  --success: #10b981;
  --success-bg: #d1fae5;
  --bg-main: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #38bdf8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 72px; /* space for mobile fixed bottom nav */
}

/* Base Container & Grid */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

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

.nav-links {
  display: none; /* Desktop only */
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.nav-cta-btn {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background: var(--primary-dark);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #0f172a 100%);
  color: white;
  padding: 48px 16px 56px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-title span {
  color: #38bdf8;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #e0f2fe;
  max-width: 580px;
  margin: 0 auto 24px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Feature Perks Strip */
.perks-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.perk-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #bae6fd;
}

/* Section Common Header */
.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 6px auto 0;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 16px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.package-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.package-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-media {
  position: relative;
  height: 190px;
  background: #0f172a;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.package-card:hover .card-media img {
  transform: scale(1.04);
}

.tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.card-inclusions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.inclusion-pill {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.price-val span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.deposit-notice {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.btn-card-action {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #bae6fd;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-action:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Cotizador Section */
.cotizador-section {
  padding: 48px 0;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 40px;
}

.cotizador-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  justify-content: space-between;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: #fff;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.addons-group {
  margin: 20px 0;
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
  user-select: none;
}

.addon-item:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.addon-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

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

/* Quote Live Result Box */
.quote-summary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.quote-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}

.quote-line {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
}

.quote-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.total-full {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
}

.total-sena {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.sena-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fdba74;
}

.sena-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent);
}

/* Modal / Booking Form with Seña */
.booking-section {
  padding: 48px 0;
}

.booking-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.booking-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.step-indicator.active .step-num {
  background: var(--primary);
  color: white;
}

.step-indicator.completed .step-num {
  background: var(--success);
  color: white;
}

.step-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Payment Gateway Simulation */
.payment-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

.payment-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.payment-opt:hover {
  border-color: var(--primary);
  background: #f0f9ff;
}

.payment-opt.selected {
  border-color: var(--primary);
  background: #f0f9ff;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Success Confirmation Screen */
.booking-success-box {
  display: none;
  text-align: center;
  padding: 32px 16px;
  background: #f0fdf4;
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.receipt-card {
  background: white;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: left;
  max-width: 440px;
  margin: 20px auto;
  font-size: 0.88rem;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Bottom Navigation Bar for Mobile */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 40;
  padding: 0 8px;
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.mob-nav-item svg {
  width: 20px;
  height: 20px;
}

.mob-nav-item.active, .mob-nav-item:hover {
  color: var(--primary);
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 16px 20px;
  font-size: 0.85rem;
  text-align: center;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .payment-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
  .mobile-bottom-nav {
    display: none;
  }
  .nav-links {
    display: flex;
  }
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-row.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}
