/* ============================================
   WAROMA ECO TOURS PERÚ — Feuille de style commune
   Palette, typographie et composants partagés
   entre toutes les pages (Inicio, Treks, etc.)
   ============================================ */

:root{
  --ink:#14211C;
  --glacier-deep:#0B2E48;
  --glacier:#1E76B4;
  --glacier-bright:#5EB3E8;
  --eco:#2E8B47;
  --eco-deep:#1B5C30;
  --stone:#ECE6D8;
  --stone-light:#F7F4EC;
  --paper:#FBF9F4;
  --line: rgba(20,33,28,0.14);
  --line-light: rgba(255,255,255,0.28);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Work Sans', sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{ font:inherit; background:none; border:none; cursor:pointer; color:inherit; }
:focus-visible{ outline:2px solid var(--glacier-bright); outline-offset:3px; }

.h-display{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:1.06;
}
.mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.03em; }
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:500;
}
.wrap{ max-width:1180px; margin:0 auto; padding:0 40px; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px;
  font-family:'IBM Plex Mono', monospace;
  font-size:13px; letter-spacing:0.06em; text-transform:uppercase; font-weight:500;
  border-radius:2px; border:1px solid transparent;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-eco{ background:var(--eco); color:#F7F4EC; }
.btn-eco:hover{ background:var(--eco-deep); }
.btn-outline{ border-color:var(--line-light); color:#F7F4EC; }
.btn-outline:hover{ border-color:#fff; background:rgba(255,255,255,0.08); }
.btn-dark{ border-color:var(--ink); color:var(--ink); }
.btn-dark:hover{ background:var(--ink); color:var(--stone-light); }

/* ===== HEADER (partagé sur toutes les pages) ===== */
/* backdrop-filter sur `header` créerait un containing block CSS pour ses
   descendants position:fixed (le tiroir mobile nav.primary/.nav-backdrop),
   ce qui casse le tiroir mobile — flou posé sur header::before à la place,
   aucune différence visuelle, juste une correction structurelle. */
header{
  position:sticky; top:0; z-index:50;
  border-bottom:2px solid var(--glacier-bright);
}
header::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:rgba(8,34,54,0.94);
  backdrop-filter:blur(10px);
}
.nav-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 40px; max-width:1180px; margin:0 auto; }
.logo-mark{ display:flex; align-items:center; gap:12px; background:var(--stone-light); padding:8px 16px; border-radius:6px; }
.logo-mark img{ height:36px; width:auto; }
nav.primary ul{ display:flex; gap:30px; }
nav.primary li{ position:relative; }
nav.primary a{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase; font-weight:600;
  color:#F7FBFD; opacity:0.92; position:relative; padding-bottom:4px;
}
nav.primary a:hover{ opacity:1; color:var(--glacier-bright); }
nav.primary a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:0; height:1px; background:var(--glacier-bright);
  transition:width .2s ease;
}
nav.primary a:hover::after{ width:100%; }

/* ===== DROPDOWN "Servicios" (Trekking / Climbing / Day Trip) ===== */
nav.primary li.has-dropdown > a::before{
  content:""; display:inline-block; width:5px; height:5px;
  border-right:1px solid currentColor; border-bottom:1px solid currentColor;
  transform:rotate(45deg); margin-left:7px; margin-bottom:1px; opacity:0.7;
}
nav.primary .dropdown{
  position:absolute; top:100%; left:50%; transform:translate(-50%, -6px);
  min-width:190px;
  background:var(--glacier-deep); border:1px solid rgba(255,255,255,0.14);
  padding:14px 0 8px; display:flex; flex-direction:column; gap:0;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:60;
}
nav.primary li.has-dropdown:hover .dropdown,
nav.primary li.has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%, 0);
}
nav.primary .dropdown a{
  display:block; padding:10px 18px; font-size:11.5px; opacity:0.85;
}
nav.primary .dropdown a::after{ display:none; }
nav.primary .dropdown a:hover{ opacity:1; background:rgba(255,255,255,0.07); }
.header-actions{ display:flex; align-items:center; gap:18px; }
.header-actions a.btn{ padding:10px 18px; }

/* ===== BOUTON HAMBURGER + TIROIR MOBILE (< 900px) ===== */
/* En desktop, ce wrapper doit rester invisible dans la boîte (display:contents)
   pour que le lien "Servicios" garde exactement le même alignement vertical
   que les autres <a> de nav.primary — display:flex le "blockifierait" et
   décalerait son texte de quelques pixels. Devient un vrai flex row
   uniquement en mobile (voir media query), où il porte le bouton accordéon. */
.nav-link-row{ display:contents; }
.dropdown-toggle{ display:none; background:none; border:none; padding:0; cursor:pointer; }
.nav-mobile-actions{ display:none; }
.menu-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:34px; height:34px; padding:0; flex-shrink:0;
}
.menu-toggle span{
  display:block; width:100%; height:2px; background:#F7F4EC;
  transition:transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-backdrop{
  position:fixed; inset:0; z-index:98; background:rgba(11,14,13,0.55);
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
}
.nav-backdrop.is-open{ opacity:1; visibility:visible; }

/* ===== LANGUE SWITCHER ===== */
.lang-switch{ display:flex; gap:6px; font-family:'IBM Plex Mono', monospace; font-size:11px; }
.lang-switch a{ padding:4px 7px; color:#BFD9EA; opacity:0.7; }
.lang-switch a.active{ opacity:1; color:#fff; border:1px solid rgba(255,255,255,0.3); border-radius:2px; }
.lang-switch a:hover{ opacity:1; }

/* ===== FOOTER (partagé) ===== */
/* ===== FOOTER (partagé) ===== */
footer{ background:var(--ink); color:#DCE4DE; }
.footer-top{ display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:50px; padding:90px 0 60px; }
.footer-top h3{ font-family:'Big Shoulders Display', sans-serif; font-weight:900; text-transform:uppercase; font-size:38px; color:#F7F4EC; margin-bottom:16px; line-height:1; }
.footer-top p{ color:#9BA69E; font-size:14px; max-width:280px; margin-bottom:22px; }
.footer-col h4{ font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.1em; text-transform:uppercase; color:#6F7A72; margin-bottom:18px; }
.footer-col li{ margin-bottom:11px; font-size:14.5px; color:#D3DAD3; }
.footer-col a:hover{ color:var(--glacier-bright); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.1); padding:24px 74px 24px 0; display:flex; justify-content:space-between; align-items:center; font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:#6F7A72; flex-wrap:wrap; gap:12px; }
.footer-bottom .socials{ display:flex; gap:18px; }
.footer-bottom a:hover{ color:#F7F4EC; }
.footer-credit{ font-size:14.5px; color:#B9C4BC; }
.footer-credit a{ color:var(--glacier-bright); font-weight:600; text-decoration:underline; text-decoration-color:rgba(94,179,232,0.45); text-underline-offset:3px; }
.footer-credit a:hover{ color:#fff; }

/* ===== WHATSAPP FLOTTANT (fixe, sur toutes les pages) ===== */
.social-float{
  position:fixed; right:24px; bottom:24px; z-index:90;
  display:flex; flex-direction:column; align-items:center; gap:14px;
}
.social-float-btn{
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 22px rgba(20,33,28,0.32);
  transition:transform .18s ease, box-shadow .18s ease;
}
.social-float-btn:hover{ transform:translateY(-3px) scale(1.06); box-shadow:0 12px 28px rgba(20,33,28,0.4); }
.social-float-btn svg{ width:24px; height:24px; fill:#fff; }
.social-float-btn.whatsapp{ background:#25D366; width:58px; height:58px; }
.social-float-btn.whatsapp svg{ width:29px; height:29px; }
.social-float-btn.instagram{ background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-float-btn.facebook{ background:#1877F2; }
@media (max-width: 620px){
  .social-float{ right:16px; bottom:16px; gap:10px; }
  .social-float-btn{ width:46px; height:46px; }
  .social-float-btn svg{ width:21px; height:21px; }
  .social-float-btn.whatsapp{ width:52px; height:52px; }
  .social-float-btn.whatsapp svg{ width:26px; height:26px; }
}

/* Variante courte utilisée sur les pages treks (pas de colonnes) */
.footer-cta{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:24px; padding:56px 0 34px; border-bottom:1px solid rgba(255,255,255,0.1); }
.footer-cta h3{ font-family:'Big Shoulders Display', sans-serif; font-weight:800; text-transform:uppercase; font-size:28px; color:#F7F4EC; }

/* ===== SECTIONS génériques ===== */
.section{ padding:110px 0; }
.section.tight{ padding:90px 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:56px; flex-wrap:wrap; }
.section-head .eyebrow{ color:var(--eco-deep); margin-bottom:14px; }
.section-head h2{ font-size:clamp(34px, 4.4vw, 56px); color:var(--ink); max-width:640px; }
.section-head p{ max-width:340px; color:#4B564F; font-size:15px; padding-bottom:6px; }

@media (max-width: 900px){
  .header-actions .lang-switch, .header-actions > a.btn{ display:none; }
  .menu-toggle{ display:flex; }

  nav.primary{
    display:block; position:fixed; top:0; right:0; z-index:99;
    height:100vh; width:min(320px, 86vw);
    background:var(--glacier-deep);
    padding:100px 28px 40px; overflow-y:auto;
    transform:translateX(100%); transition:transform .3s ease;
  }
  nav.primary.is-open{ transform:translateX(0); }
  nav.primary ul{ display:flex; flex-direction:column; gap:0; }
  nav.primary li{ border-bottom:1px solid rgba(255,255,255,0.12); }
  nav.primary a{ display:block; padding:16px 0; font-size:14px; opacity:1; }
  nav.primary a::after{ display:none; }
  nav.primary .nav-link-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
  nav.primary .nav-link-row a{ padding:16px 0; flex:1; }

  .dropdown-toggle{
    display:flex; align-items:center; justify-content:center;
    width:36px; height:36px; flex-shrink:0;
  }
  .dropdown-toggle::before{
    content:""; width:8px; height:8px;
    border-right:1px solid #fff; border-bottom:1px solid #fff;
    transform:rotate(45deg); transition:transform .2s ease;
  }
  li.has-dropdown.is-open .dropdown-toggle::before{ transform:rotate(-135deg); }

  nav.primary .dropdown{
    position:static; opacity:1; visibility:visible; pointer-events:auto;
    transform:none; background:transparent; border:none; padding:0;
    max-height:0; overflow:hidden; transition:max-height .25s ease;
    min-width:0;
  }
  li.has-dropdown.is-open .dropdown{ max-height:220px; padding-bottom:12px; }
  nav.primary .dropdown a{ display:block; padding:10px 0 10px 16px; font-size:13px; opacity:0.82; }
  nav.primary .dropdown a:hover{ background:transparent; opacity:1; }

  nav.primary .nav-mobile-actions{
    display:flex; flex-direction:column; gap:14px; margin-top:28px;
  }
  nav.primary .nav-mobile-actions .lang-switch{ font-size:12px; }

  body.nav-open{ overflow:hidden; }

  /* Footer allégé sur mobile : on garde "Planeemos tu ruta" (sans le
     bouton e-mail, déjà sur contacto.html + WhatsApp flottant) et
     "Experiencias" ; on masque Oficina, Huayhuash et les réseaux sociaux
     pour éviter la grille 2 colonnes surchargée. */
  .footer-top{ grid-template-columns:1fr; gap:36px; padding:60px 0 40px; }
  .footer-top > div:first-child a.btn{ display:none; }
  .footer-top > div:nth-child(2), .footer-top > div:nth-child(4){ display:none; }
  .footer-bottom{ padding-right:0; }
  .footer-bottom .socials{ display:none; }
}
@media (max-width: 620px){
  .wrap{ padding-left:20px; padding-right:20px; }
  .nav-row{ padding:14px 20px; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}
