/* Leo Silva — Ruta Valparaíso · landing temporal
   Sin dependencias externas. Todo el CSS vive en este archivo. */

:root {
  --bg: #10131a;
  --bg-2: #161a23;
  --bg-3: #1d222d;
  --ink: #ece9e3;
  --ink-soft: #b9bec8;
  --ink-mute: #878d99;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --sun: #f2811d;
  --rose: #d94f6a;
  --gold: #e2b845;
  --ta: #34e0a1;
  --wa: #25d366;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand b { font-weight: 600; }

.brand span {
  color: var(--ink-mute);
  font-size: 14px;
  font-family: var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 10px;
}

.langs { display: flex; gap: 4px; align-items: center; }

.langs a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.langs a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.langs a[aria-current] { color: var(--gold); }

/* ---------- Hero ---------- */

/* El fondo va en el propio elemento, en capas: los degradados encima y la foto
   debajo. Un ::before con z-index negativo no llega a pintarse (verificado en
   Chrome real 2026-09-09); esto sí, y además es menos CSS. */

.hero {
  position: relative;
  margin-top: -74px;
  padding: 168px 0 88px;
  background-image:
    linear-gradient(90deg, rgba(16, 19, 26, 0.88) 0%, rgba(16, 19, 26, 0.55) 46%, rgba(16, 19, 26, 0.18) 78%),
    linear-gradient(180deg, rgba(16, 19, 26, 0.72) 0%, rgba(16, 19, 26, 0.30) 34%, rgba(16, 19, 26, 0.86) 84%, var(--bg) 100%),
    url("/assets/img/hero-cerros.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 42%;
  background-repeat: no-repeat;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.3rem);
  line-height: 1.02;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero .kicker {
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: #dfe2e8;
  max-width: 33ch;
  margin: 0 0 28px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

/* ---------- Rating ---------- */

.rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  padding: 14px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rating .score {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ta);
}

.rating .stars { color: var(--ta); font-size: 15px; letter-spacing: 2px; }
.rating .meta { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.rating .meta b { color: var(--ink); font-weight: 600; }
.rating .divider { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Buttons ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.btn-wa { background: var(--wa); color: #04220f; }
.btn-ta { background: var(--ta); color: #05261a; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

/* ---------- Sections ---------- */

section { padding: 74px 0; }
section + section { padding-top: 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 12px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; }
.prose { max-width: 60ch; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Recorridos ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 34px;
}

.card {
  background: var(--bg-2);
  padding: 28px 24px 30px;
  position: relative;
}

.card .num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 14px;
}

.card p { color: var(--ink-mute); font-size: 15px; margin: 0; }

.card .dur {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-mute);
}

/* ---------- Galería ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; height: 210px; object-fit: cover; }

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 11px;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 12, 0.88));
}

/* ---------- Banda atardecer ---------- */

.band {
  position: relative;
  margin: 74px 0 0;
  padding: 104px 0;
  background-image:
    linear-gradient(90deg, rgba(16, 19, 26, 0.86) 0%, rgba(16, 19, 26, 0.48) 52%, rgba(16, 19, 26, 0.12) 84%),
    linear-gradient(180deg, var(--bg) 0%, rgba(16, 19, 26, 0.38) 24%, rgba(16, 19, 26, 0.45) 74%, var(--bg) 100%),
    url("/assets/img/atardecer.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 38%;
  background-repeat: no-repeat;
}

.band blockquote {
  margin: 0;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
  max-width: 40ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.7vw, 1.5rem);
  line-height: 1.5;
}

.band .sig {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Opiniones ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.quote {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
}

.quote .stars { color: var(--ta); letter-spacing: 2px; font-size: 14px; margin-bottom: 12px; }
.quote p { font-size: 15.5px; color: var(--ink-soft); font-style: italic; }
.quote cite { font-style: normal; font-size: 13px; color: var(--ink-mute); }
.quote cite b { color: var(--ink); font-weight: 600; font-style: normal; }

.quotes-cta { margin-top: 30px; }

/* ---------- Contacto ---------- */

.contact {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
  margin-top: 30px;
}

.contact dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 7px;
}

.contact dd { margin: 0 0 22px; font-size: 16.5px; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact dd a:hover { border-color: var(--sun); color: var(--sun); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 30px 0 34px;
  font-size: 13.5px;
  color: var(--ink-mute);
}

.foot-row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Barra fija móvil ---------- */

.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.sticky a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.sticky svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Router de idioma ---------- */

.router { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.router h1 { font-family: var(--serif); font-weight: 600; font-size: 2rem; margin: 0 0 10px; }
.router p { color: var(--ink-mute); margin-bottom: 30px; }
.router .cta-row { justify-content: center; }

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 116px 0 52px; }
  .band { padding: 72px 0; margin-top: 56px; }
  .gallery img { height: 180px; }
  .sticky { display: flex; }
  footer { padding-bottom: 104px; }
  .brand span { display: none; }
  .topbar { padding: 16px 20px; }
  .wrap { padding: 0 20px; }
  .rating { gap: 0 14px; padding: 12px 16px; }
  .rating .divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
