/* ==========================================================================
   DANDO PEDAL - DESIGN SYSTEM (LUXURY MOUNTAIN BIKING & EXPEDITIONS)
   Colores: Carbon Obsidian, Ember Flame Orange, Titanium Gold & Trail Slate
   Filosofía: Mobile-Led 2026, Thumb-Zone Ergonomics & High Performance
   ========================================================================== */

:root {
  --bg-carbon: #0B0F13;
  --bg-surface: #121820;
  --bg-surface-elevated: #1A222C;
  --bg-surface-glass: rgba(18, 24, 32, 0.88);
  --border-carbon: rgba(255, 255, 255, 0.08);
  --border-carbon-focus: rgba(255, 85, 0, 0.4);
  
  --brand-orange: #FF5500;
  --brand-orange-dark: #D84800;
  --brand-orange-glow: rgba(255, 85, 0, 0.28);
  --brand-orange-light: #FF7733;
  
  --gold-accent: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --text-white: #FFFFFF;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Barlow', 'Montserrat', 'Inter', sans-serif;

  --vh-100: 100vh;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-carbon);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-carbon);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 85, 0, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 35%);
  padding-bottom: 72px; /* Space for mobile bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-carbon);
}
::-webkit-scrollbar-thumb {
  background: #232C37;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* Selection Color */
::selection {
  background-color: var(--brand-orange);
  color: #FFFFFF;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(11, 15, 19, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-carbon);
  transition: all 0.3s ease;
}

.glass-header.scrolled {
  background: rgba(11, 15, 19, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Surface Cards & Bento Grids */
.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-carbon);
  border-radius: 18px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(255, 85, 0, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.bento-card-luxury {
  background: linear-gradient(135deg, rgba(26, 34, 44, 0.9) 0%, rgba(18, 24, 32, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
}

.bento-card-luxury:hover {
  border-color: var(--gold-accent);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

/* Brand Button Styles */
.btn-primary-orange {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #E64500 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--brand-orange-glow);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.btn-primary-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.45);
  filter: brightness(1.08);
}

.btn-primary-orange:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary-carbon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-carbon);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary-carbon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-whatsapp-glow {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-whatsapp-glow:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-glow:active {
  transform: scale(0.98);
}

/* Header WhatsApp Pill (Proportionate Desktop & Tablet) */
.btn-whatsapp-header {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 12px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.22);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-whatsapp-header:hover {
  background: #20BD5A;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.btn-whatsapp-header:active {
  transform: scale(0.97);
}

/* Badge System */
.badge-orange {
  background: rgba(255, 85, 0, 0.15);
  color: #FF7733;
  border: 1px solid rgba(255, 85, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: #E5C07B;
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-carbon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-carbon);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* Mobile Thumb-Zone Bottom Navigation Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(11, 15, 19, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-carbon);
  padding: 8px 16px;
  padding-bottom: calc(8px + var(--safe-bottom));
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 60px;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--brand-orange);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

/* Slide-over Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-carbon);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.cart-drawer.open {
  transform: translateX(0);
}

/* Elevation Chart Interactive Container */
.elevation-chart-container {
  width: 100%;
  height: 180px;
  position: relative;
  background: #0E1318;
  border-radius: 12px;
  border: 1px solid var(--border-carbon);
  padding: 12px;
  overflow: hidden;
}

/* Map Container for Leaflet */
.leaflet-map-frame {
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-carbon);
  z-index: 10;
}

/* Modal Windows */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-carbon);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: 24px;
  }
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-carbon);
  border-left: 4px solid var(--brand-orange);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideToast 0.3s ease-out forwards;
  pointer-events: auto;
}

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

/* Pulse Animation for Live Elements */
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 85, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-orange);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

/* Custom Checkbox / Radio styling for Tour Calculator */
.custom-checkbox:checked + label {
  border-color: var(--brand-orange);
  background: rgba(255, 85, 0, 0.1);
}

/* Animations for Lead Magnet */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   PHOTO CAROUSEL & GALLERY STYLES
   ========================================================================== */
.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-card {
  flex: 0 0 85%;
  max-width: 85%;
  scroll-snap-align: center;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
@media (min-width: 640px) {
  .carousel-card {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    scroll-snap-align: start;
  }
}
@media (min-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc(25% - 0.95rem);
    max-width: calc(25% - 0.95rem);
    scroll-snap-align: start;
  }
}
.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 85, 0, 0.4);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER STYLES
   ========================================================================== */
#mobile-menu-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu-drawer.drawer-open {
  transform: translateX(0);
}
#mobile-menu-drawer.drawer-closed {
  transform: translateX(100%);
}
#mobile-menu-backdrop {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu-backdrop.backdrop-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#mobile-menu-backdrop.backdrop-closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   BACK TO TOP BUTTONS (SECTION & FLOATING)
   ========================================================================== */
.btn-volver-inicio {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}
.btn-volver-inicio:hover {
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.22);
}

#floating-back-to-top {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 45;
}
#floating-back-to-top:hover {
  box-shadow: 0 12px 35px rgba(255, 85, 0, 0.4);
}


