/* ==========================================================
   Senderismo Pisando Fuerte — estilos
   ========================================================== */

:root {
  --green-900: #18241e;   /* pie */
  --green-800: #1f3a30;   /* cabecera, hero, banda oscura */
  --green-700: #2a4a3c;
  --green-600: #2f5545;
  --green-card: #2b4c3e;  /* tarjetas sobre fondo oscuro */
  --orange: #e8873a;
  --orange-dark: #c9692a;
  --orange-text: #c45f1c; /* naranja legible sobre fondo claro */
  --bg: #eff0eb;
  --surface: #ffffff;
  --ink: #1b2a23;
  --ink-soft: #4a5751;
  --line: #d6d9d2;
  --wa: #25d366;
  --wa-dark: #1fb457;

  --lvl-easy: #3d8b5a;
  --lvl-mid: #b8561a;
  --lvl-hard: #a83a3a;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(24, 36, 30, .08), 0 2px 6px rgba(24, 36, 30, .05);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { margin: 0; }
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--green-800);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--green-900);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.eyebrow-light { color: var(--orange); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-orange { background: var(--orange); color: var(--green-900); }
.btn-orange:hover { background: #f09a52; }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-wa { background: var(--wa); color: var(--green-900); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: var(--green-800); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-800);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--orange); flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav-list a:not(.btn) {
  display: inline-flex; align-items: center; gap: 4px;
  color: #fff; text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 0;
}
.nav-list a:not(.btn):hover { color: var(--orange); }
.chev { width: 12px; height: 12px; }

.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; left: -16px; min-width: 220px;
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub a { display: block; color: var(--ink); padding: 10px 12px; border-radius: 8px; }
.nav-list .sub a:hover { background: var(--bg); color: var(--green-800); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--green-800); border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px 16px 24px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a:not(.btn) { padding: 14px 4px; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .chev { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0 0 0 16px; min-width: 0; }
  .nav-list .sub a { color: rgba(255,255,255,.75); padding: 12px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-list .sub a:hover { background: none; color: var(--orange); }
  .nav-list .btn { margin-top: 20px; width: 100%; min-height: 48px; }
}
@media (max-width: 420px) { .brand-name { font-size: 1.1rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--green-800);
  color: #fff;
  padding: clamp(64px, 10vw, 128px) 0 clamp(100px, 14vw, 180px);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10,18,14,.62) 0%, rgba(10,18,14,.38) 50%, rgba(10,18,14,.08) 100%);
}
@media (max-width: 700px) { .hero::after { background: rgba(10,18,14,.5); } }
.hero-title, .hero-lead, .hero .eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-ground { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%; height: clamp(36px, 6vw, 90px); fill: var(--bg); }
.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6.4rem); line-height: .9;
  text-transform: uppercase; letter-spacing: .005em;
  color: #fff; max-width: 12ch;
}
.hero-lead { margin: 24px 0 0; max-width: 470px; font-size: clamp(1rem, 1.6vw, 1.12rem); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-tight { padding-top: 0; }
.section-tight-top { padding-top: 0; }
.section-head { margin-bottom: 36px; }
.section-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-note { margin: 0; max-width: 340px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Próximas salidas (tarjetas) ---------- */
#salidas { padding-top: clamp(40px, 6vw, 72px); }
.section-head .section-note { margin-top: 16px; max-width: 520px; font-size: 1rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.route { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.route-media { position: relative; aspect-ratio: 16 / 9; background: var(--green-600); }
.route-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.route-date {
  position: absolute; top: 12px; left: 12px;
  display: grid; justify-items: center; min-width: 50px; padding: 6px 9px 5px;
  background: #fff; border-radius: 8px; color: var(--green-800); line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.route-date b { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; }
.route-date-wide b { font-size: 1.25rem; }
.route-date small { font-size: .64rem; font-weight: 700; letter-spacing: .08em; margin-top: 3px; color: var(--orange-text); }
.route-media .level { position: absolute; top: 12px; right: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

.route-body { padding: 22px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.route-body h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; line-height: 1;
  text-transform: uppercase; color: var(--green-800);
}
.route-desc { margin: 12px 0 20px; font-size: .92rem; color: var(--ink-soft); }
.route-body .btn { margin-top: auto; }

.level {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; line-height: 1.2; color: #fff;
}
.level-easy { background: var(--lvl-easy); }
.level-mid { background: var(--lvl-mid); }
.level-hard { background: var(--lvl-hard); }

/* ---------- Pasos ---------- */
#como-inscribirse h2 { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 22px 26px; }
.step-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--orange); }
.step h3 { margin-top: 12px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.step p { margin: 8px 0 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: #c8d3ca; aspect-ratio: 3 / 2; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 20px; }
.about-text p:not(.eyebrow) { margin: 0 0 14px; color: var(--ink-soft); }
.about-text strong { color: var(--ink); font-weight: 600; }
.about-text p.about-claim { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.15; color: var(--orange-text); }

/* ---------- Galería ---------- */
#galeria h2 { margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  margin: 0; background: #c8d3ca;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- CTA ---------- */
.cta { background: var(--orange); color: var(--green-900); padding: clamp(40px, 6vw, 56px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--green-900); }
.cta p { margin: 8px 0 0; }
@media (max-width: 600px) { .cta .btn { width: 100%; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.7); padding: 28px 0; font-size: .82rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; color: #fff; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.footer-social a:hover { background: var(--orange); color: var(--green-900); }
.footer-social svg { width: 18px; height: 18px; }
.footer-credits { flex-basis: 100%; font-size: .72rem; color: rgba(255,255,255,.45); }
#quienes-somos { padding-top: 0; }
