/* Despeñaperros.com · Landing Factory V1 */
:root {
  --bg: #f5efe3;
  --bg-soft: #efe5d2;
  --bg-card: #fffaf0;
  --ink: #1d2019;
  --muted: #5e6659;
  --green: #2f3b2f;
  --green-2: #465741;
  --stone: #8d7056;
  --clay: #b9673d;
  --sand: #e7d6b8;
  --line: rgba(29, 32, 25, .14);
  --line-dark: rgba(245, 239, 227, .22);
  --shadow: 0 24px 60px rgba(47, 59, 47, .16);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--clay); }
button { font: inherit; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section-pad { padding: 84px 0; }
.content-narrow { max-width: 820px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--muted); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.04; margin: 0 0 18px; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 7.4vw, 6.5rem); max-width: 980px; }
h2 { font-size: clamp(2rem, 4.6vw, 4.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.72rem); }
p { margin: 0 0 18px; }

.skip-link {
  position: absolute;
  z-index: 99;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  background: rgba(245, 239, 227, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(29, 32, 25, .08);
}
.site-header.compact { position: static; }
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}
.brand.standalone { margin-bottom: 46px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--stone));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(47, 59, 47, .2);
}
.brand-text { letter-spacing: -.03em; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 750;
}
.main-nav a { text-decoration: none; }
.main-nav a:hover, .main-nav a.is-active { color: var(--green); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(185, 103, 61, .14), transparent 30%),
    radial-gradient(circle at 15% 12%, rgba(70, 87, 65, .18), transparent 26%),
    linear-gradient(180deg, #fbf4e7 0%, var(--bg) 78%);
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto auto -11% -7%;
  width: 58vw;
  height: 32vw;
  min-width: 520px;
  min-height: 260px;
  background: linear-gradient(135deg, rgba(47, 59, 47, .18), rgba(185, 103, 61, .12));
  border-radius: 52% 48% 0 0;
  transform: rotate(-5deg);
}
.hero-bg::after {
  inset: auto -8% -15% auto;
  background: linear-gradient(135deg, rgba(141, 112, 86, .18), rgba(47, 59, 47, .12));
  transform: rotate(8deg);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 48px;
}
.hero-lead { font-size: clamp(1.12rem, 2.2vw, 1.42rem); max-width: 760px; color: #3c443a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
}
.button-primary { background: var(--green); color: #fff; box-shadow: 0 18px 40px rgba(47, 59, 47, .22); }
.button-primary:hover { color: #fff; background: #1f281f; }
.button-secondary { border-color: var(--line); background: rgba(255, 250, 240, .72); color: var(--green); }
.button-secondary:hover { color: var(--green); border-color: rgba(47, 59, 47, .34); }
.notice {
  max-width: 720px;
  padding: 14px 16px;
  color: #4e4b3f;
  background: rgba(255, 250, 240, .74);
  border: 1px solid rgba(141, 112, 86, .2);
  border-radius: var(--radius-md);
}
.hero-card {
  padding: 22px;
  background: rgba(255, 250, 240, .78);
  border: 1px solid rgba(255, 250, 240, .72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.map-card {
  position: relative;
  height: 310px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(47, 59, 47, .9), rgba(70, 87, 65, .82)),
    radial-gradient(circle at 50% 60%, rgba(185, 103, 61, .5), transparent 36%);
  border-radius: 24px;
  isolation: isolate;
}
.map-card::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(245, 239, 227, .18);
  border-radius: 20px;
}
.map-line {
  position: absolute;
  left: -12%;
  right: -12%;
  height: 3px;
  background: rgba(245, 239, 227, .34);
  transform-origin: left;
}
.map-line-a { top: 48%; transform: rotate(-23deg); }
.map-line-b { top: 55%; transform: rotate(18deg); }
.map-point {
  position: absolute;
  padding: 8px 10px;
  color: #fff;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 850;
}
.point-north { top: 26px; left: 28px; }
.point-center { top: 46%; left: 50%; transform: translate(-50%, -50%); }
.point-south { bottom: 28px; right: 28px; }
.quick-facts { list-style: none; margin: 18px 0 0; padding: 0; }
.quick-facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.quick-facts li:last-child { border-bottom: 0; }

.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.align-start { align-items: start; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choice-card, .feature-card, .tips-grid article, .road-cards article, .highlight-panel, .editorial-contact, .legal-section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.choice-card { padding: 22px; min-height: 230px; }
.choice-kicker, .route-label, .timeline span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--clay);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.muted { background: var(--bg-soft); }
.section-head { max-width: 790px; margin-bottom: 34px; }
.section-head.inverse { color: #fff; }
.section-head.inverse p { color: rgba(255, 250, 240, .78); }
.cards { display: grid; gap: 18px; }
.cards-three { grid-template-columns: repeat(3, 1fr); }
.feature-card { position: relative; padding: 26px; min-height: 265px; overflow: hidden; }
.feature-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  background: rgba(185, 103, 61, .09);
  border-radius: 50%;
}
.card-number { display: inline-flex; margin-bottom: 28px; color: var(--stone); font-weight: 950; }
.dark { background: var(--green); color: #fff; }
.dark .eyebrow { color: #e5b18b; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card {
  padding: 24px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
}
.route-card p, .source-note { color: rgba(255, 250, 240, .78); }
.source-note { margin-top: 22px; }
.highlight-panel { padding: 28px; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--clay);
  border-radius: 50%;
}
.check-list li:last-child { border-bottom: 0; }
.timeline-wrap { max-width: 1040px; }
.timeline { display: grid; gap: 18px; }
.timeline article {
  position: relative;
  padding: 26px 26px 26px 34px;
  background: rgba(255, 250, 240, .66);
  border: 1px solid rgba(29, 32, 25, .1);
  border-radius: var(--radius-lg);
}
.timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 6px;
  background: var(--clay);
  border-radius: 0 99px 99px 0;
}
.nature-stack { display: grid; gap: 14px; }
.nature-stack div {
  padding: 22px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-lg);
}
.nature-stack span { display: block; color: rgba(255, 250, 240, .78); margin-top: 6px; }
.road {
  background:
    linear-gradient(120deg, rgba(29, 32, 25, .88), rgba(47, 59, 47, .9)),
    radial-gradient(circle at 80% 20%, rgba(185, 103, 61, .34), transparent 30%);
  color: #fff;
}
.road .eyebrow { color: #e5b18b; }
.road-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; }
.road-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.road-cards article { padding: 22px; color: var(--ink); background: rgba(255, 250, 240, .9); }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tips-grid article { padding: 22px; }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 52px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 900;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p { padding: 0 22px 20px; color: var(--muted); }
.sources { background: #fbf4e7; }
.source-list { margin: 0 0 24px; padding-left: 22px; }
.source-list li { margin: 8px 0; }
.editorial-contact { padding: 24px; }
.site-footer {
  padding: 42px 0;
  color: rgba(255, 250, 240, .78);
  background: #171a14;
}
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-brand { margin-bottom: 8px; color: #fff; font-weight: 950; letter-spacing: -.03em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #fff; }
.legal-page { background: var(--bg); }
.legal-section { padding: 28px; margin: 22px 0; }
.not-found { min-height: 100svh; display: grid; place-items: center; background: var(--bg-soft); }

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

@media (max-width: 980px) {
  .hero-grid, .two-col, .road-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { max-width: 520px; }
  .choice-grid, .cards-three, .route-grid, .road-cards, .tips-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section-pad { padding: 64px 0; }
  .container { width: min(100% - 24px, var(--max)); }
  .header-inner { min-height: 64px; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .nav-toggle-line,
  .nav-toggle-line::before,
  .nav-toggle-line::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    content: "";
    transition: transform .18s ease;
  }
  .nav-toggle-line::before { transform: translateY(-6px); }
  .nav-toggle-line::after { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-line { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-line::before { transform: rotate(90deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-line::after { transform: translateY(-2px) rotate(90deg); opacity: 0; }
  .main-nav:not(.always) {
    position: fixed;
    inset: 64px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .main-nav:not(.always).is-open { display: flex; }
  .main-nav:not(.always) a { padding: 12px; }
  .main-nav.always { gap: 12px; font-size: .9rem; }
  .choice-grid, .cards-three, .route-grid, .road-cards, .tips-grid { grid-template-columns: 1fr; }
  .choice-card, .feature-card { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.35rem, 15vw, 3.8rem); }
  .brand-text { font-size: .95rem; }
  .map-card { height: 250px; }
  .hero-card { padding: 14px; border-radius: 22px; }
  .main-nav.always { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
