/* =====================================================
   VIATOURS — GLOBAL.CSS
   Paleta de marca: #5E244E · #AA1C41 · #E68457 · #FFE8B4
   ===================================================== */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: var(--text-base);
  line-height: var(--leading-base);
  background: var(--cream); color: var(--ink);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* ── FOCUS VISIBLE (accesibilidad teclado) ── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}


/* ── SELECCIÓN DE TEXTO ── */
::selection { background: rgba(230,132,87,0.25); color: var(--ink); }
::-moz-selection { background: rgba(230,132,87,0.25); color: var(--ink); }

/* ── SCROLLBAR CUSTOM (webkit) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }


a { text-decoration: none; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); font-size: var(--text-base); } /* 16px mínimo — evita zoom en iOS */

/* ── VARIABLES DE MARCA ── */
:root {
  /* ══ TIPOGRAFÍA ══
     Dos familias con roles estrictos:
     · Playfair Display → headings editoriales (H1-H3 de sección, precios, stats)
     · DM Sans          → todo lo demás (UI, body, botones, labels, meta)
     Bebas Neue solo para contadores/números decorativos grandes.
  */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Bebas Neue', sans-serif; /* solo contadores/stats grandes */

  /* Escala de 8 pasos — mínimo 12px (WCAG AA), body 16px mínimo */
  --text-xs:   12px;   /* labels uppercase, badges, fine print        */
  --text-sm:   14px;   /* nav links, meta, captions, footer           */
  --text-base: 16px;   /* body copy, card descriptions, form fields   */
  --text-md:   18px;   /* lead text, card titles, sidebar items       */
  --text-lg:   21px;   /* subheadings de sección, precios destacados  */
  --text-xl:   26px;   /* h3 de sección, stat numbers medios          */
  --text-2xl:  34px;   /* h2 de sección desktop                       */
  --text-3xl:  46px;   /* h1 hero / display                           */

  /* Pesos canónicos por rol */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  /* Line-heights */
  --leading-tight:  1.2;   /* headings display                        */
  --leading-snug:   1.4;   /* card titles, subheadings                */
  --leading-base:   1.7;   /* body copy — mínimo WCAG recomendado     */
  --leading-loose:  1.8;   /* footer desc, párrafos largos            */

  /* Letter-spacing — solo 3 valores */
  --tracking-tight:  -0.01em;  /* headings grandes Playfair           */
  --tracking-normal:  0em;     /* body, botones                       */
  --tracking-wide:    0.08em;  /* labels uppercase (text-xs en caps)  */
  /* ── Colores principales ── */
  --purple:       #4B1426;   /* Burdeos principal — nav, sidebar, secciones  */
  --purple-dark:  #331019;   /* Hover/sombra sobre --purple                   */
  --purple-soft:  #6B2438;   /* Acento suave / iconos sobre fondo claro        */
  --red:          #17433F;   /* Verde selva — CTAs secundarios, badges         */
  --red-dark:     #0F2D2A;   /* Hover sobre --red                              */
  --orange:       #558467;   /* Verde sage — botones acción, énfasis           */
  --orange-dark:  #3D6350;   /* Hover sobre --orange                           */
  --gold:         #EFEABB;   /* Fondo claro / highlights / tags suaves         */
  --gold-dark:    #7A7A2A;   /* Texto sobre fondo claro que requiere contraste */
  --earth:        #7A4A2E;   /* Terracota cálido — gradientes y bordes         */

  /* ── Neutros ── */
  --ink:          #180D12;   /* Texto principal (oscuro cálido)                */
  --ink-mid:      #3A1E24;   /* Texto secundario sobre fondo claro             */
  --cream:        #FAFAF5;   /* Fondo base claro                               */
  --cream-dark:   #F0EFD8;   /* Fondo sección alternada                        */
  --white:        #FFFFFF;
  --gray-100:     #F2F0EC;
  --gray-200:     #DDD9C4;
  --gray-300:     #BCBAA0;   /* Bordes medios, estados hover sobre gris        */
  --gray-400:     #7A7A60;   /* ≥ 4.5:1 sobre blanco — WCAG AA ✓              */
  --gray-600:     #4A4A38;
  --gray-800:     #2A1E1E;

  /* ── Semánticos ── */
  --green:        #17433F;
  --green-light:  #E8F2F0;
  --orange-light: #EEF4F0;
  --red-light:    #E8EFEE;

  /* ── Layout ── */
  --nav-h:       58px;
  --nav2-h:      46px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 16px rgba(75,20,38,0.08);
  --shadow-lg:   0 8px 40px rgba(75,20,38,0.16);
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
  --max-w:       1200px;
  --section-pad: 72px;
}

/* ── NAV 1 ── */
.nav-1 {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--purple);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 40px; gap: 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.20);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: var(--fw-black);
  color: var(--gold); letter-spacing: var(--tracking-tight);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--white); }
.nav-search {
  flex: 1; max-width: 340px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0 14px; height: 34px; gap: 8px;
  transition: var(--transition); cursor: text;
}
.nav-search:focus-within { background: rgba(255,255,255,0.18); border-color: var(--orange); }
.nav-search input { background: transparent; border: none; outline: none; color: var(--white); font-size: var(--text-sm); width: 100%; }
.nav-search input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search .icon { color: rgba(255,255,255,0.55); flex-shrink: 0; }
.nav-1-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Botón Login */
.btn-login {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  padding: 7px 14px; border-radius: 8px;
  transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.btn-login:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.btn-ofertas {
  display: flex; align-items: center; gap: 6px;
  background: var(--red); color: var(--white);
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  padding: 7px 16px; border-radius: 8px; border: none;
  transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.btn-ofertas:hover { background: var(--red-dark); }
.btn-wsp {
  display: flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff;
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  padding: 7px 14px; border-radius: 8px; border: none;
  transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.btn-wsp:hover { background: #1eb85a; }
.lang-switcher { display: flex; gap: 3px; }
.lang-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.60); font-size: var(--text-xs); font-weight: var(--fw-bold);
  padding: 4px 8px; border-radius: 4px; cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.nav-cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; cursor: pointer; color: rgba(255,255,255,0.90);
  transition: var(--transition); flex-shrink: 0;
}
.nav-cart-btn:hover { background: rgba(255,255,255,0.20); border-color: var(--orange); }
.nav-cart-btn i { font-size: var(--text-base); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--orange); color: var(--white);
  font-size: var(--text-xs); font-weight: var(--fw-black);
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 36px; height: 36px; gap: 5px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; cursor: pointer; transition: var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.20); }
.hamburger span { display: block; width: 18px; height: 1.5px; background: rgba(255,255,255,0.90); border-radius: 2px; transition: var(--transition); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── NAV 2 ── */
.nav-2 {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: var(--white);
  height: var(--nav2-h);
  display: flex; align-items: center;
  padding: 0 40px;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(94,36,78,0.07);
}
.nav-2-items { display: flex; align-items: center; }
.nav-2-item {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  padding: 0 18px; height: var(--nav2-h);
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.nav-2-item:hover, .nav-2-item.active-nav { color: var(--purple); border-bottom-color: var(--red); }
.nav-2-item:hover .dropdown { display: block; }

/* ── DROPDOWN ── */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px 0; z-index: 100;
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--ink);
  transition: var(--transition);
}
.dropdown a:hover { background: var(--gold); color: var(--purple); padding-left: 20px; }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--purple-dark); z-index: 998; overflow-y: auto;
  padding: 12px 0 40px; transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-section { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-item {
  padding: 14px 24px;
  font-size: var(--text-base); font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.88); cursor: pointer; transition: var(--transition);
}
.mobile-nav-item:hover { color: var(--gold); padding-left: 30px; }
.mobile-submenu { display: none; background: rgba(0,0,0,0.20); }
.mobile-submenu.open { display: block; }
.mobile-submenu a {
  display: block; padding: 10px 24px 10px 36px;
  font-size: var(--text-sm); color: rgba(255,255,255,0.65); transition: var(--transition);
}
.mobile-submenu a:hover { color: var(--orange); }
.mobile-nav-ctas { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 0; }
.mobile-nav-ctas .btn-ofertas, .mobile-nav-ctas .btn-wsp, .mobile-nav-ctas .btn-login {
  width: 100%; justify-content: center; padding: 13px;
  font-size: var(--text-base); border-radius: 8px;
}
.mobile-nav-langs { display: flex; gap: 8px; padding: 16px 20px 0; }
.mobile-nav-langs .lang-btn { flex: 1; text-align: center; padding: 8px; font-size: var(--text-xs); }

/* ── WSP FLOAT ── */
.wsp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 22px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  border: none; cursor: pointer; transition: var(--transition);
}
.wsp-float:hover { background: #1eb85a; transform: scale(1.08); }

/* ── SECCIONES ── */
.section { padding: var(--section-pad) 0; }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.section-label {
  font-size: var(--text-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--orange); margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-2xl));
  font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight);
  color: var(--ink); line-height: var(--leading-tight);
}
.section-link {
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  color: var(--purple); display: flex; align-items: center; gap: 4px;
  transition: var(--transition); white-space: nowrap;
}
.section-link:hover { color: var(--red); gap: 8px; }
.page-content { padding-top: calc(var(--nav-h) + var(--nav2-h)); }

/* ── FOOTER ── */
footer { background: var(--purple-dark); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 56px 24px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-logo {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: var(--fw-black); letter-spacing: var(--tracking-tight);
  color: var(--gold); margin-bottom: 10px; cursor: pointer;
}
.footer-logo span { color: var(--white); }
.footer-desc {
  font-size: var(--text-sm); color: rgba(255,255,255,0.65);
  line-height: var(--leading-loose); margin-bottom: 18px;
}
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); font-size: var(--text-sm);
  cursor: pointer; transition: var(--transition);
}
.social-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.footer-col h4 {
  font-size: var(--text-sm); font-weight: var(--fw-bold);
  color: var(--orange); text-transform: uppercase;
  letter-spacing: var(--tracking-wide); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: var(--text-base); color: rgba(255,255,255,0.70); transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-newsletter p {
  font-size: var(--text-sm); color: rgba(255,255,255,0.65);
  margin-bottom: 14px; line-height: var(--leading-loose);
}
.newsletter-form { display: flex; gap: 6px; margin-bottom: 12px; }
.newsletter-input {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 9px 12px; color: var(--white);
  font-size: var(--text-sm);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { outline: none; border-color: var(--orange); }
.newsletter-btn {
  background: var(--orange); color: var(--white); font-weight: var(--fw-bold);
  padding: 9px 14px; border-radius: 6px; border: none; cursor: pointer;
  font-size: var(--text-sm); transition: var(--transition);
}
.newsletter-btn:hover { background: var(--orange-dark); }
.footer-apps { display: flex; gap: 6px; margin-top: 14px; }
.mini-app-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 6px 10px;
  font-size: var(--text-xs); color: rgba(255,255,255,0.65);
  cursor: pointer; transition: var(--transition);
}
.mini-app-btn:hover { border-color: var(--orange); color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--text-sm); color: rgba(255,255,255,0.55);
  gap: 16px; flex-wrap: wrap;
}
.footer-payments { display: flex; gap: 6px; }
.payment-icon {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 3px 7px;
  font-size: var(--text-xs); font-weight: var(--fw-bold); color: rgba(255,255,255,0.60);
}
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { color: rgba(255,255,255,0.50); transition: var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* ── RESPONSIVE GLOBAL ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav-search { display: none; }
  .hamburger { display: flex; }
  .nav-2 { display: none; }
  .mobile-nav { display: block; }
  .nav-1 { gap: 8px; }
  .lang-switcher { display: none; }
  .nav-cart-btn { display: flex; }
  .btn-login { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 52px; --nav2-h: 0px; --section-pad: 44px; }
  .nav-1 { padding: 0 16px; gap: 8px; }
  .nav-search, .btn-wsp, .lang-switcher, .btn-ofertas, .btn-login { display: none; }
  .hamburger { display: flex; }
  .nav-cart-btn { display: flex; }
  .mobile-nav { display: block; }
  .wsp-float { display: flex; bottom: 16px; right: 16px; width: 46px; height: 46px; }
  .page-content { padding-top: var(--nav-h); }
  .section { padding: 44px 0; }
  .section-inner { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .section-title { font-size: clamp(var(--text-xl), 5.5vw, var(--text-2xl)); }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-inner { padding: 36px 16px 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-payments { justify-content: center; }
  .footer-legal { justify-content: center; }
}
