/* Rediseño "Río y piedra" — Traslasierra */

:root {
  --arena: #f5f1ea;
  --arena-2: #ebe4d8;
  --piedra: #22282a;
  --piedra-2: #545d60;
  --piedra-3: #c9c3b8;
  --agua: #0d7377;
  --agua-deep: #0a3a3e;
  --agua-mid: #125c60;
  --agua-light: #d6ecea;
  --sol: #f0a04b;
  --sol-deep: #b55d12;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 28px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(20, 30, 32, 0.06), 0 12px 32px rgba(20, 30, 32, 0.08);
  --shadow-lift: 0 2px 4px rgba(20, 30, 32, 0.08), 0 24px 48px rgba(20, 30, 32, 0.16);
  --container: 1600px;
  --gutter: clamp(20px, 3vw, 48px);
  --font-display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--arena);
  color: var(--piedra);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.75rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

/* Two-tone ring: the dark outline shows on light backgrounds and the white
   inner ring shows on dark ones. */
:focus-visible {
  outline: 3px solid var(--agua-deep);
  outline-offset: 2px;
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 60;
  transform: translateY(-200%);
  border-radius: var(--pill);
  padding: 0.6rem 1rem;
  background: var(--piedra);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p:not(.tag) {
  color: var(--piedra-2);
  font-size: 1.125rem;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head-row .section-head {
  margin-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  width: fit-content;
  color: var(--agua);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag::before {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  padding: 0.75rem 1.35rem;
  font-size: 0.975rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-sol {
  background: var(--sol);
  color: var(--piedra);
}

.btn-sol:hover {
  background: #f5b36a;
}

.btn-glass {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-dark {
  background: var(--piedra);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--agua-deep);
}

.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--piedra-3);
  border-radius: var(--pill);
  padding: 0.5rem 0.95rem;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.pill-links a:hover {
  border-color: var(--agua);
  background: var(--agua-light);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 40, 42, 0.06);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  border-radius: var(--pill);
  padding: 0.5rem 0.9rem;
  color: var(--piedra-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.main-nav a:hover {
  background: var(--arena-2);
  color: var(--piedra);
}

.main-nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--piedra);
  color: var(--white);
}

.main-nav .nav-cta:hover {
  background: var(--agua-deep);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--pill);
  background: var(--piedra);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Hero */
.hero {
  padding-top: 12px;
}

.hero-wrap {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: min(90svh, 900px);
  overflow: hidden;
  align-items: end;
  border-radius: var(--radius-lg);
  background: var(--agua-deep);
  color: var(--white);
  isolation: isolate;
}

.hero-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 30, 33, 0.35) 0%, rgba(6, 30, 33, 0) 30%),
    linear-gradient(0deg, rgba(6, 30, 33, 0.92) 0%, rgba(6, 30, 33, 0.55) 45%, rgba(6, 30, 33, 0.05) 80%);
  content: "";
}

.hero-body {
  display: grid;
  gap: 1.25rem;
  max-width: 980px;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(7.5rem, 12vw, 9.5rem);
}

.hero-motto {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--pill);
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero-motto svg {
  width: 22px;
  height: 22px;
  color: var(--sol);
}

.hero h1 {
  display: grid;
  gap: 0.6rem;
}

.h1-main {
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.h1-sub {
  max-width: 640px;
  color: var(--agua-light);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-copy {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.075rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.trip-picker {
  position: absolute;
  left: clamp(1rem, 4vw, 4.5rem);
  right: clamp(1rem, 4vw, 4.5rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border-radius: 20px;
  padding: 0.7rem 0.7rem 0.7rem 1.25rem;
  background: rgba(245, 241, 234, 0.96);
  color: var(--piedra);
  box-shadow: var(--shadow-lift);
}

.trip-picker-label {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.trip-picker nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.trip-picker a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: var(--pill);
  padding: 0.55rem 1rem;
  background: var(--white);
  font-size: 0.925rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.trip-picker a svg {
  width: 18px;
  height: 18px;
  color: var(--agua);
}

.trip-picker a:hover {
  background: var(--agua);
  color: var(--white);
}

.trip-picker a:hover svg {
  color: var(--white);
}

/* Facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 20px;
  background: var(--piedra-3);
}

.facts > div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.35rem;
  background: var(--white);
}

.facts svg {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  padding: 7px;
  background: var(--agua-light);
  color: var(--agua);
}

.facts dt {
  color: var(--piedra-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.facts dd {
  font-weight: 700;
  line-height: 1.3;
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.intro-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.intro-statement em {
  color: var(--agua);
  font-style: normal;
}

.intro-side {
  display: grid;
  gap: 1.5rem;
  color: var(--piedra-2);
}

/* Towns */
.towns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.town {
  position: relative;
  min-height: clamp(460px, 32vw, 580px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--agua-deep);
  color: var(--white);
  isolation: isolate;
}

.town a {
  display: flex;
  height: 100%;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1.5rem;
  text-decoration: none;
}

.town img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.town::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(6, 30, 33, 0.9) 0%, rgba(6, 30, 33, 0.35) 50%, rgba(6, 30, 33, 0) 75%);
  content: "";
}

.town:hover img {
  transform: scale(1.06);
}

.town-num {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--piedra);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.town-badge {
  width: fit-content;
  border-radius: var(--pill);
  padding: 0.2rem 0.65rem;
  background: var(--sol);
  color: var(--piedra);
  font-size: 0.75rem;
  font-weight: 800;
}

.town h3 {
  font-size: 1.75rem;
}

.town p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.town-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-weight: 700;
}

.town-go svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.town:hover .town-go svg {
  transform: translateX(4px);
}

/* Bases (tabs) */
.bases {
  background: var(--white);
}

.base-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  border-radius: var(--pill);
  background: var(--arena);
  scrollbar-width: none;
  width: fit-content;
  max-width: 100%;
}

.base-tabs::-webkit-scrollbar {
  display: none;
}

.base-tabs button {
  flex: none;
  border: 0;
  border-radius: var(--pill);
  padding: 0.65rem 1.15rem;
  background: transparent;
  color: var(--piedra-2);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.base-tabs button:hover {
  color: var(--piedra);
}

.base-tabs button[aria-selected="true"] {
  background: var(--piedra);
  color: var(--white);
}

.base-panels {
  display: grid;
  gap: 1rem;
}

.js .base-panel[hidden] {
  display: none;
}

.base-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.base-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--agua-deep);
  color: var(--white);
}

.base-title h3 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.base-title p {
  color: rgba(255, 255, 255, 0.8);
}

.base-points {
  display: grid;
  gap: 0.75rem;
}

.base-point {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  background: var(--arena);
}

.base-point svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 9px;
}

.base-point.yes svg {
  background: var(--agua-light);
  color: var(--agua);
}

.base-point.no svg {
  background: #f6dccb;
  color: var(--sol-deep);
}

.base-point.tip svg {
  background: var(--arena-2);
  color: var(--piedra);
}

.base-point dt {
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.base-point dd {
  color: var(--piedra-2);
}

.note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background: #fbf3e4;
  color: var(--piedra-2);
  font-size: 0.95rem;
}

.note svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--sol-deep);
}

.note strong {
  color: var(--piedra);
}

.bases .pill-links {
  margin-top: 1.5rem;
}

/* Must-see bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, 15vw, 290px);
  gap: 1rem;
}

.spot {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--agua-deep);
  color: var(--white);
  isolation: isolate;
}

.spot.big {
  grid-column: span 2;
  grid-row: span 2;
}

.spot.wide {
  grid-column: span 2;
}

.spot img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.spot::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(6, 30, 33, 0.85), rgba(6, 30, 33, 0) 60%);
  content: "";
}

.spot:hover img {
  transform: scale(1.05);
}

.spot a,
.spot > div {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 1.25rem;
  text-decoration: none;
}

.spot small {
  color: var(--sol);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spot h3 {
  font-size: 1.35rem;
}

.spot.big h3 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.spot.big p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.85);
}

.spot-list {
  display: grid;
  grid-column: 1 / -1;
  align-content: center;
  border-radius: 22px;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.spot-list p {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.spot-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.spot-list li {
  border-radius: var(--pill);
  padding: 0.35rem 0.8rem;
  background: var(--arena);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Rivers */
.rivers {
  position: relative;
  color: var(--white);
}

.rivers-body {
  padding-block: clamp(40px, 6vw, 80px);
  background: var(--agua-deep);
}

.wave {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  color: var(--agua-deep);
}

.wave-top {
  margin-bottom: -1px;
}

.wave-bottom {
  margin-top: -1px;
  transform: rotate(180deg);
}

.rivers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.rivers .tag {
  color: var(--sol);
}

.rivers h2 {
  margin-block: 1rem;
}

.rivers-copy > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.criteria li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.criteria svg {
  width: 16px;
  height: 16px;
  color: var(--sol);
}

.river-list {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.river-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.river-list span {
  color: var(--sol);
  font-family: var(--font-display);
  font-weight: 700;
}

.river-list a {
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 0.2em;
}

.river-photo {
  position: relative;
}

.river-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 28px 28px;
  object-fit: cover;
}

.river-photo figcaption {
  position: absolute;
  left: -1rem;
  bottom: 2rem;
  max-width: 240px;
  border-radius: 18px;
  padding: 1rem 1.15rem;
  background: var(--arena);
  color: var(--piedra);
  box-shadow: var(--shadow-lift);
  font-size: 0.9rem;
  line-height: 1.45;
}

.river-photo figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* Travel styles */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.style-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 2px solid transparent;
  border-radius: 22px;
  padding: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: border-color 200ms ease, transform 200ms ease;
}

.style-card:target,
.style-card.is-highlighted {
  border-color: var(--agua);
  transform: translateY(-4px);
}

.style-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--agua-light);
  color: var(--agua);
}

.style-icon svg {
  width: 26px;
  height: 26px;
}

.style-card p {
  color: var(--piedra-2);
  font-size: 0.975rem;
}

.style-card .where {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0;
  list-style: none;
}

.style-card .where li {
  border-radius: var(--pill);
  padding: 0.25rem 0.65rem;
  background: var(--arena);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Stay feature */
.stay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--piedra);
  color: var(--white);
}

.stay-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.stay .tag {
  color: var(--sol);
}

.stay-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.stay-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.stay-compare li {
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  line-height: 1.35;
}

.stay-compare strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
}

.stay-compare li span {
  color: rgba(255, 255, 255, 0.7);
}

.stay-compare li.is-current {
  background: var(--agua);
}

.stay-compare li.is-current span {
  color: var(--agua-light);
}

.stay-copy .btn {
  align-self: flex-start;
}

.stay-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

/* Planning */
.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem;
}

.plan-access {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--agua-light);
}

.plan-access .road {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.road-sign {
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  background: var(--agua-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.plan-access p {
  color: var(--piedra-2);
}

.durations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.duration {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-radius: 22px;
  padding: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.duration-days {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.duration-days small {
  font-size: 1rem;
  letter-spacing: 0;
}

.duration p {
  color: var(--piedra-2);
  font-size: 0.95rem;
}

.seasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.season {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1.5px solid var(--piedra-3);
  border-radius: 22px;
  padding: 1.25rem 1.35rem;
}

.season svg {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--sol-deep);
}

.season h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.season p {
  color: var(--piedra-2);
  font-size: 0.95rem;
}

/* Route */
.route {
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  box-shadow: var(--shadow);
}

.route-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.route-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.route-head small {
  color: var(--piedra-2);
  font-size: 0.85rem;
}

.route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.route-line::before {
  position: absolute;
  top: 13px;
  left: 7%;
  right: 7%;
  height: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--agua) 0 14px, transparent 14px 22px);
  content: "";
}

.route-line li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

.route-dot {
  width: 30px;
  height: 30px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--piedra-3);
  box-shadow: 0 0 0 2px var(--piedra-3);
}

.route-line li.is-base .route-dot {
  background: var(--agua);
  box-shadow: 0 0 0 2px var(--agua);
}

.route-line li.is-pass .route-dot {
  border-radius: 8px;
  background: var(--sol);
  box-shadow: 0 0 0 2px var(--sol);
}

.route-line strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
}

.route-line a {
  text-decoration-color: var(--agua);
  text-underline-offset: 0.2em;
}

.route-line small {
  color: var(--piedra-2);
  font-size: 0.8rem;
  line-height: 1.3;
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  color: var(--piedra-2);
  font-size: 0.85rem;
}

.route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.route-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-grid .section-head {
  position: sticky;
  top: 100px;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-list details {
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--arena);
  content: "+";
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 200ms ease, background-color 200ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--agua-light);
}

.faq-list p {
  padding: 0 1.35rem 1.25rem;
  color: var(--piedra-2);
}

/* Footer */
.site-footer {
  margin-top: clamp(72px, 10vw, 128px);
  padding: 72px 0 32px;
  background: var(--piedra);
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.site-footer .brand {
  margin-bottom: 1rem;
  color: var(--white);
}

.site-footer p {
  max-width: 360px;
}

.footer-heading {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .towns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .town {
    min-height: 380px;
  }

  .styles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 16px;
  }

  .js .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--arena);
    border-bottom: 1px solid rgba(34, 40, 42, 0.08);
    box-shadow: 0 16px 32px rgba(20, 30, 32, 0.1);
  }

  /* Without JS the menu can't be toggled, so it stays open in the page flow. */
  html:not(.js) .header-inner {
    flex-wrap: wrap;
  }

  html:not(.js) .main-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 0 0.75rem;
    border: 0;
    background: none;
    box-shadow: none;
  }

  html:not(.js) .main-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
  }

  html:not(.js) .main-nav .nav-cta {
    margin: 0;
  }

  .js .main-nav {
    display: none;
  }

  .js .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .main-nav .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .facts,
  .intro-grid,
  .base-panel,
  .rivers-grid,
  .stay,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid .section-head {
    position: static;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .spot.big {
    grid-column: span 2;
  }

  .river-photo {
    max-width: 440px;
  }

  .river-photo figcaption {
    left: 1rem;
  }

  .stay-media {
    order: -1;
  }

  .stay-media img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .durations,
  .seasons {
    grid-template-columns: 1fr;
  }

  .route-line {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding-left: 0.25rem;
  }

  .route-line::before {
    top: 12px;
    bottom: 12px;
    left: 17px;
    right: auto;
    width: 4px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--agua) 0 14px, transparent 14px 22px);
  }

  .route-line li {
    grid-template-columns: 30px minmax(0, 1fr);
    justify-items: start;
    column-gap: 1rem;
    row-gap: 0.1rem;
    text-align: left;
  }

  .route-line .route-dot {
    grid-row: span 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 8px;
  }

  .hero-card {
    min-height: auto;
    border-radius: 22px;
  }

  .hero-body {
    padding: 5rem 1.25rem 1.5rem;
  }

  .trip-picker {
    position: static;
    margin: 0 0.75rem 0.75rem;
    padding: 1rem;
  }

  .trip-picker-label {
    width: 100%;
  }

  .trip-picker nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .trip-picker a {
    justify-content: flex-start;
    background: var(--arena-2);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .towns {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .towns::-webkit-scrollbar {
    display: none;
  }

  .town {
    flex: 0 0 82%;
    min-height: 420px;
    scroll-snap-align: start;
  }

  .styles-grid {
    grid-template-columns: 1fr;
  }

  .stay-compare li {
    padding: 0.65rem;
  }

  .stay-compare strong {
    font-size: 0.9rem;
  }

  .bento {
    grid-auto-rows: 160px;
    gap: 0.75rem;
  }

  .spot.wide {
    grid-column: span 2;
  }

  .spot h3 {
    font-size: 1.1rem;
  }

  .spot a,
  .spot > div {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================
   Páginas interiores
   Re-estilizan los bloques existentes de las guías con el
   sistema "Río y piedra", sin cambiar su marcado.
   ========================================================== */

/* Hero interior */
.hero.hero-compact {
  position: relative;
  display: grid;
  width: min(100% - var(--gutter) * 2, var(--container));
  min-height: min(72svh, 680px);
  margin: 12px auto 0;
  overflow: hidden;
  align-items: end;
  border-radius: var(--radius-lg);
  padding: 0;
  background-color: var(--agua-deep);
  background-image:
    linear-gradient(0deg, rgba(6, 30, 33, 0.94) 0%, rgba(6, 30, 33, 0.66) 50%, rgba(6, 30, 33, 0.38) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero.hero-compact > .container {
  display: grid;
  gap: 1.1rem;
  width: 100%;
  max-width: 1000px;
  margin: 0;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem);
}

.hero.hero-compact h1 {
  display: block;
  max-width: 900px;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--pill);
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumbs span::before {
  margin-right: 0.35rem;
  opacity: 0.6;
  content: "/";
}

.hero-kicker {
  color: var(--sol);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero.hero-compact .hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

/* Botones heredados */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  padding: 0.75rem 1.35rem;
  font-size: 0.975rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-secondary,
.button-primary {
  background: var(--sol);
  color: var(--piedra);
}

.button-secondary:hover,
.button-primary:hover {
  background: #f5b36a;
}

.button-light {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.button-light:hover {
  background: rgba(255, 255, 255, 0.24);
}

main .section .button-light {
  border-color: var(--piedra-3);
  background: var(--white);
  color: var(--piedra);
}

main .section .button-light:hover {
  border-color: var(--agua);
  background: var(--agua-light);
}

/* Secciones y encabezados */
.section-muted {
  background: var(--white);
}

.section-tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading.narrow {
  max-width: 680px;
}

.section-heading.centered {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--piedra-2);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0;
  color: var(--agua);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.eyebrow.light {
  color: var(--sol);
}

main .section p + p,
.prose-card p + p,
.decision-card p + p {
  margin-top: 0.9rem;
}

main .section h2 + p,
main .section h3 + p {
  margin-top: 0.6rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--agua);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.text-link::after {
  content: "\2192";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* Layouts */
.two-column,
.page-intro,
.guide-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.page-intro {
  align-items: start;
}

.two-column .section-heading,
.page-intro .section-heading,
.guide-intro-grid .section-heading {
  margin-bottom: 0;
}

.guide-intro-section {
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* Tarjetas */
.prose-card,
.decision-card,
.profile-card,
.fact,
.timeline article,
.locality-grid article,
.activity-grid article,
.midday-options article,
.night-options article {
  border: 0;
  border-radius: 22px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--white);
  box-shadow: var(--shadow);
}

.section-muted .prose-card,
.section-muted .decision-card,
.section-muted .profile-card,
.section-muted .fact,
.section-muted .timeline article,
.section-muted .locality-grid article,
.day-part:nth-child(even) .activity-grid article,
.day-part:nth-child(even) .midday-options article {
  background: var(--arena);
  box-shadow: none;
}

.prose-card p,
.decision-card p,
.profile-card p,
.fact p,
.timeline p,
.locality-grid p {
  color: var(--piedra-2);
}

.decision-grid,
.hub-grid,
.profile-grid,
.timeline,
.locality-grid,
.quick-facts,
.split-list,
.image-grid {
  display: grid;
  gap: 1rem;
}

.decision-grid,
.hub-grid,
.profile-grid,
.timeline,
.image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.locality-grid,
.quick-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decision-card,
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.decision-card span,
.profile-card span,
.timeline span,
.fact span,
.source-note span,
.alert-box span {
  display: block;
  width: fit-content;
  border-radius: var(--pill);
  padding: 0.2rem 0.65rem;
  background: var(--agua-light);
  color: var(--agua);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decision-card h3,
.profile-card h3,
.timeline h3 {
  margin: 0.25rem 0 0;
}

.decision-card strong {
  color: var(--piedra);
}

.decision-card .text-link {
  margin-top: auto;
  padding-top: 0.5rem;
}

.fact strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}

/* Hub cards (enlaces a guías) */
.hub-card {
  position: relative;
  border-radius: 22px;
  background: var(--arena);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.section:not(.section-muted) .hub-card {
  background: var(--white);
  box-shadow: var(--shadow);
}

.hub-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  text-decoration: none;
}

.hub-card:hover,
.hub-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.hub-card h3 {
  font-size: 1.5rem;
}

.hub-card p {
  color: var(--piedra-2);
}

.hub-card .card-kicker {
  border-radius: var(--pill);
  padding: 0.2rem 0.65rem;
  background: var(--agua-light);
  color: var(--agua);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--agua);
  font-weight: 700;
}

.hub-card .card-cta::after {
  content: "\2192";
  transition: transform 180ms ease;
}

.hub-card:hover .card-cta::after {
  transform: translateX(4px);
}

/* Enlaces internos como píldoras */
.internal-links,
.link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.internal-links a,
.link-strip a {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--piedra-3);
  border-radius: var(--pill);
  padding: 0.5rem 0.95rem;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.internal-links a:hover,
.link-strip a:hover {
  border-color: var(--agua);
  background: var(--agua-light);
}

/* Listas */
.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.2rem;
  display: grid;
  width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--agua-light);
  color: var(--agua);
  content: "\2713";
  font-size: 0.75rem;
  font-weight: 800;
}

/* Fotos */
.feature-photo {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.feature-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-photo figcaption,
.image-grid figcaption {
  padding: 0.85rem 1.1rem;
  background: var(--white);
  color: var(--piedra-2);
  font-size: 0.9rem;
}

.image-grid figure {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.image-grid figure:hover img {
  transform: scale(1.04);
}

/* Avisos y fuentes */
.alert-box,
.source-note {
  display: grid;
  gap: 0.5rem;
  border: 0;
  border-radius: 22px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: #fbf3e4;
}

.alert-box span,
.source-note span {
  background: #f6dccb;
  color: #8f4a0e;
}

.alert-box p,
.source-note p {
  color: var(--piedra-2);
}

.source-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.source-note a {
  color: var(--agua);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.source-note .review-date {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Tablas */
.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.section-muted .table-wrap {
  box-shadow: 0 0 0 1px var(--arena-2);
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--arena-2);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--agua-deep);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-table td {
  color: var(--piedra-2);
  font-size: 0.95rem;
}

.comparison-table td strong {
  color: var(--piedra);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.comparison-table tbody tr:hover td {
  background: var(--arena);
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

/* FAQ heredado */
.faq-section .faq-list {
  max-width: 860px;
  margin-inline: auto;
}

/* Banda de llamada a la acción */
.cta-band {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin: 0 auto clamp(48px, 6vw, 80px);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  background: var(--agua-deep);
  color: var(--white);
}

.cta-band .container {
  width: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band .eyebrow {
  color: var(--sol);
}

.cta-band h2 {
  max-width: 720px;
  margin-top: 0.5rem;
}

/* Pie heredado */
.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.footer-brand a::before {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: #0a3a3e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 25l8-11 5 6 4-5 11 10' fill='none' stroke='%23f0a04b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 31c3 0 3-2 6.5-2s3.5 2 6.5 2 3-2 6.5-2 3.5 2 6.5 2' fill='none' stroke='%23d6ecea' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  content: "";
}

.site-footer .footer-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
}

/* ---------- Guía de día completo (Mina Clavero: qué hacer) ---------- */
.day-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin: 2rem auto 0;
}

.day-nav a {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 22px;
  padding: 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.day-nav a:hover,
.day-nav a:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.day-nav span,
.day-nav small {
  color: var(--piedra-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.day-nav strong {
  margin: 0.2rem 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.day-part {
  padding-block: clamp(64px, 9vw, 112px);
  scroll-margin-top: 72px;
}

.day-part:nth-child(even) {
  background: var(--white);
}

.day-part-layout {
  display: grid;
  gap: 2.25rem;
}

.day-part-heading {
  display: grid;
  grid-template-columns: 88px minmax(0, 820px);
  gap: 1.25rem;
  align-items: start;
}

.day-number {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 24px;
  background: var(--agua-deep);
  color: var(--sol);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.day-part-heading p:last-child {
  color: var(--piedra-2);
}

.activity-feature,
.night-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--agua-deep);
  color: var(--white);
}

.activity-feature-reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.activity-feature-reverse figure {
  order: 2;
}

.activity-feature figure,
.night-feature-image {
  position: relative;
  min-height: 480px;
  margin: 0;
  overflow: hidden;
}

.activity-feature img,
.night-feature-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.night-feature-image figcaption,
.activity-feature figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.8rem;
}

.activity-copy,
.night-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
}

.activity-copy p,
.night-feature-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.activity-copy .text-link,
.night-feature-copy .text-link,
.midday-panel > div:first-child .text-link {
  color: var(--white);
}

.activity-label,
.activity-tag,
.midday-options span,
.night-options span {
  color: var(--sol);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.activity-grid .activity-tag,
.midday-options span,
.night-options span {
  color: var(--agua);
}

.activity-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.activity-facts div {
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.activity-facts dt {
  color: var(--sol);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.activity-facts dd {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
}

.activity-grid,
.midday-options,
.night-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.activity-grid p,
.midday-options p,
.night-options p {
  color: var(--piedra-2);
}

.midday-panel,
.night-grid,
.check-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: start;
}

.night-grid {
  grid-template-columns: 1fr;
}

.midday-panel > div:first-child {
  display: grid;
  gap: 0.75rem;
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--agua-deep);
  color: var(--white);
}

.midday-panel > div:first-child p {
  color: rgba(255, 255, 255, 0.82);
}

.travel-decisions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.planning-section .check-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.planning-section .check-list {
  margin: 0;
  border-radius: 22px;
  padding: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* Responsive interiores */
@media (max-width: 1080px) {
  .decision-grid,
  .hub-grid,
  .profile-grid,
  .timeline,
  .image-grid,
  .activity-grid,
  .travel-decisions,
  .day-nav,
  .locality-grid,
  .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .two-column,
  .page-intro,
  .guide-intro-grid,
  .activity-feature,
  .activity-feature-reverse,
  .night-feature,
  .midday-panel,
  .check-panel,
  .planning-section .check-panel {
    grid-template-columns: 1fr;
  }

  .activity-feature-reverse figure {
    order: 0;
  }

  .activity-feature figure,
  .night-feature-image {
    min-height: 300px;
  }

  .midday-options,
  .night-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero.hero-compact {
    width: calc(100% - var(--gutter) * 2);
    min-height: auto;
    margin-top: 8px;
    border-radius: 22px;
  }

  .hero.hero-compact > .container {
    padding: 4.5rem 1.25rem 1.5rem;
  }

  .hero.hero-compact .hero-actions .button {
    flex: 1 1 100%;
  }

  .decision-grid,
  .hub-grid,
  .profile-grid,
  .timeline,
  .image-grid,
  .locality-grid,
  .quick-facts,
  .split-list,
  .activity-grid,
  .travel-decisions,
  .day-nav {
    grid-template-columns: 1fr;
  }

  .day-nav a {
    min-height: auto;
  }

  .day-part-heading {
    grid-template-columns: 1fr;
  }

  .day-number {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .activity-facts {
    grid-template-columns: 1fr;
  }

  .cta-band {
    border-radius: 22px;
  }
}

.main-nav a[aria-current] {
  background: var(--agua-light);
  color: var(--agua-deep);
}

.site-footer h2 {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Panel de verificación con un solo bloque: lista a dos columnas. */
.check-panel:has(> .check-list:only-child) {
  grid-template-columns: 1fr;
}

.check-panel > .check-list:only-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
}

@media (max-width: 860px) {
  .check-panel > .check-list:only-child {
    grid-template-columns: 1fr;
  }
}

.section-heading.centered ~ .internal-links {
  justify-content: center;
}

:is(.decision-grid, .image-grid, .hub-grid, .profile-grid, .timeline, .locality-grid, .table-wrap, .quick-facts, .split-list)
  + :is(.decision-grid, .image-grid, .hub-grid, .profile-grid, .timeline, .locality-grid, .table-wrap, .quick-facts, .split-list, .alert-box) {
  margin-top: 1rem;
}

/* ---------- Cabañas propias: botones, acceso en el encabezado y bloque "Dónde dormir" ---------- */
.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button-wa {
  background: #187a42;
  color: var(--white);
}

.button-wa:hover {
  background: #125f33;
}

.button-outline,
main .section .button-outline {
  border-color: var(--piedra-3);
  background: var(--white);
  color: var(--piedra);
}

.button-outline:hover,
main .section .button-outline:hover {
  border-color: var(--agua);
  background: var(--agua-light);
}

.button-dark {
  background: var(--piedra);
  color: var(--white);
}

.button-dark:hover {
  background: var(--agua-deep);
}

.main-nav .nav-cta {
  background: var(--sol);
  color: var(--piedra);
}

.main-nav .nav-cta:hover {
  background: #f5b36a;
  color: var(--piedra);
}

.main-nav .nav-cta[aria-current] {
  background: var(--sol);
  color: var(--piedra);
}

.header-cta {
  display: none;
}

.stay-promo {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  border-radius: 22px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--agua-deep);
  color: var(--white);
}

.stay-promo img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}

.stay-promo-body {
  display: grid;
  gap: 0.6rem;
}

.stay-promo-kicker {
  color: var(--sol);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stay-promo-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stay-promo-body > p:not([class]) {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
}

.stay-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

main .section .stay-promo .button-light {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

main .section .stay-promo .button-light:hover {
  background: rgba(255, 255, 255, 0.24);
}

.site-footer .footer-wa {
  color: #7fd6a3;
  font-weight: 700;
}

@media (max-width: 860px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    border-radius: var(--pill);
    padding: 0.55rem 0.95rem;
    background: var(--sol);
    color: var(--piedra);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
  }

  .header-inner {
    gap: 0.6rem;
  }

  .site-header .brand-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .stay-promo {
    grid-template-columns: 1fr;
  }

  .stay-promo img {
    aspect-ratio: 16 / 9;
  }

  .stay-promo-actions .button {
    flex: 1 1 100%;
  }
}

@media (max-width: 400px) {
  .site-header .brand-text {
    font-size: 1.1rem;
  }

  .site-header .brand-mark {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Páginas de cabañas: fichas, galería con visor y botón flotante ---------- */
.cabin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.cabin-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--arena);
}

.cabin-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cabin-body {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.cabin-body > span {
  width: fit-content;
  border-radius: var(--pill);
  padding: 0.2rem 0.65rem;
  background: var(--agua-light);
  color: var(--agua);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#cabana-para-dos .cabin-body > span {
  background: #f6dccb;
  color: #8f4a0e;
}

.cabin-body h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
}

.cabin-body > p {
  color: var(--piedra-2);
}

.cabin-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0.5rem 0 0;
  border-top: 1px solid var(--arena-2);
  font-size: 0.97rem;
}

.cabin-specs dt,
.cabin-specs dd {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--arena-2);
}

.cabin-specs dt {
  padding-right: 1.25rem;
  color: var(--piedra-2);
  font-weight: 700;
}

.cabin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.cabin-note {
  color: var(--piedra-2);
  font-size: 0.9rem;
}

.real-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.real-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--piedra);
}

.real-gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.real-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.real-gallery figure:hover img {
  transform: scale(1.04);
}

.real-gallery .span-2 {
  grid-column: span 2;
}

.real-gallery .span-2 img {
  aspect-ratio: 2 / 1;
}

.gallery-subhead {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.real-gallery figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  border-radius: var(--pill);
  padding: 0.3rem 0.8rem;
  background: rgba(10, 58, 62, 0.82);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #187a42;
  color: var(--white);
  box-shadow: var(--shadow-lift);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
}

.floating-whatsapp:hover {
  background: #125f33;
}

.gallery-link {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.gallery-link:focus-visible {
  outline: 3px solid var(--sol);
  outline-offset: -3px;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: rgba(6, 30, 33, 0.96);
  color: var(--white);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(6, 30, 33, 0.6);
}

.lightbox-stage {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 4.5rem 5.5rem 2rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100svh - 10rem);
  border-radius: 18px;
  object-fit: contain;
  user-select: none;
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  font-weight: 700;
  text-align: center;
}

.lightbox-count {
  color: var(--agua-light);
  font-weight: 600;
}

.lightbox-btn {
  position: absolute;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 160ms ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-prev svg {
  transform: rotate(180deg);
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 860px) {
  .cabin-grid {
    grid-template-columns: 1fr;
  }

  .real-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cabin-actions .button {
    flex: 1 1 100%;
  }

  .lightbox-stage {
    padding: 4.5rem 0.75rem 6.5rem;
  }

  .lightbox-img {
    max-height: calc(100svh - 13rem);
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 64px);
  }

  .lightbox-next {
    right: calc(50% - 64px);
  }

  .real-gallery figcaption {
    left: 0.5rem;
    bottom: 0.5rem;
    font-size: 0.78rem;
  }
}

.floating-whatsapp svg {
  flex: none;
}

.cabin-card h3 a {
  text-decoration: none;
}

.cabin-card h3 a:hover {
  color: var(--agua);
}

.cabin-card > a img {
  transition: opacity 200ms ease;
}

.cabin-card > a:hover img {
  opacity: 0.9;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.steps li {
  position: relative;
  border-radius: 22px;
  padding: 3.4rem 1.4rem 1.4rem;
  background: var(--white);
  counter-increment: paso;
}

.section-muted .steps li {
  background: var(--arena);
}

.steps li::before {
  position: absolute;
  top: 1.2rem;
  left: 1.4rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--agua-deep);
  color: var(--white);
  content: counter(paso);
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.steps p {
  color: var(--piedra-2);
}

.direct-box {
  border-left: 6px solid #187a42;
  background: #e8f4ec;
}

.direct-box span {
  background: #cfe9d8;
  color: #125f33;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.main-nav a {
  white-space: nowrap;
}

@media (min-width: 861px) and (max-width: 1040px) {
  .main-nav {
    gap: 0.1rem;
  }

  .main-nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
  }

  .main-nav .nav-cta {
    margin-left: 0.25rem;
  }
}

@media (max-width: 1080px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .site-footer .footer-grid > nav:last-child {
    grid-column: 1 / -1;
  }
}

.text-link + .text-link {
  margin-left: 1.25rem;
}

/* ---------- Tarjetas con foto (zonas y guías relacionadas) ---------- */
.photo-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.section-muted .photo-card {
  background: var(--arena);
  box-shadow: none;
}

.photo-card:hover,
.photo-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.photo-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.15rem;
}

.photo-card-body .card-kicker {
  width: fit-content;
  border-radius: var(--pill);
  padding: 0.15rem 0.6rem;
  background: var(--agua-light);
  color: var(--agua-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.photo-card h3 {
  font-size: 1.25rem;
}

.photo-card p {
  color: var(--piedra-2);
  font-size: 0.95rem;
}

.photo-card p strong {
  color: var(--piedra);
}

.photo-card .card-go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.3rem;
  color: var(--agua);
  font-size: 0.92rem;
  font-weight: 800;
}

.photo-card .card-go::after {
  content: "→";
  transition: transform 160ms ease;
}

.photo-card:hover .card-go::after {
  transform: translateX(3px);
}

.photo-cards.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-cards.is-compact img {
  aspect-ratio: 16 / 9;
}

@media (max-width: 1080px) {
  .photo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .photo-cards {
    grid-template-columns: 1fr;
  }

  .photo-cards.is-compact {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  /* En celular, las guías relacionadas son filas con miniatura a la izquierda. */
  .photo-cards.is-compact .photo-card > a {
    flex-direction: row;
    align-items: center;
  }

  .photo-cards.is-compact img {
    width: 104px;
    height: 104px;
    flex: none;
    aspect-ratio: 1;
  }

  .photo-cards.is-compact .photo-card-body {
    padding: 0.7rem 0.9rem;
    gap: 0.2rem;
  }

  .photo-cards.is-compact p {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .photo-cards:not(.is-compact) img {
    aspect-ratio: 16 / 9;
  }
}

/* Tarjetas de texto con foto arriba */
.hub-card.has-photo {
  overflow: hidden;
}

.hub-card.has-photo a {
  padding-top: 0;
}

.hub-card.has-photo img {
  width: calc(100% + 2 * clamp(1.25rem, 2.5vw, 1.75rem));
  max-width: none;
  margin: 0 calc(-1 * clamp(1.25rem, 2.5vw, 1.75rem)) 0.35rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .photo-cards.three {
    grid-template-columns: 1fr;
  }
}

.photo-cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .photo-cards.two {
    grid-template-columns: 1fr;
  }
}
