:root {
  /* Paleta (Cámara de Turismo Táchira) */
  --lime: #84C225;
  --lime-dark: #5E9A12;
  --navy: #0B1350;
  --navy-2: #121C66;
  --orange: #F26A21;
  --coral: #FF3D57;
  --cyan: #12C7D9;
  --white: #fff;

  --fg: #fff;
  --muted: rgba(255, 255, 255, .75);
  --gutter: clamp(16px, 6vw, 96px);
  --band: clamp(40px, 4.4vw, 64px);
  --radius: 22px;

  /* Fondos de respaldo por categoría (se ven cuando falta la foto) */
  --g-naturaleza: linear-gradient(160deg, #a6dc4a 0%, var(--lime) 40%, #2f6b10 100%);
  --g-lugares: linear-gradient(160deg, #6fe3ee 0%, var(--cyan) 35%, var(--navy) 100%);
  --g-fe: linear-gradient(160deg, #ffb07a 0%, var(--orange) 40%, #8a2410 100%);
  --g-orgullo: linear-gradient(160deg, #ff8a9a 0%, var(--coral) 40%, var(--navy) 100%);
  --g-tradicion: linear-gradient(160deg, #ffcf6b 0%, var(--orange) 45%, var(--coral) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--fg);
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Elementos de marca ---------- */
.geo {
  position: absolute; left: 0; right: 0; z-index: 1;
  height: var(--band);
  background: url("../img/patron.png") 0 bottom / auto 100% repeat-x;
  pointer-events: none;
}
.geo--top { top: 0; }
.geo--bottom { bottom: 0; }
.geo--flip { background-position: 37% bottom; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

.pill {
  display: inline-block;
  margin: 0;
  padding: .45em 1.5em;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
}

/* ---------- Fondos con foto + respaldo gráfico ---------- */
.media {
  position: relative;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Ccircle cx='300' cy='70' r='110' fill='%23fff' fill-opacity='.14'/%3E%3Cpath d='M0 260 L90 320 L0 380Z' fill='%230B1350' fill-opacity='.35'/%3E%3Cpath d='M180 400 A70 70 0 0 1 320 400Z' fill='%23fff' fill-opacity='.12'/%3E%3Crect x='30' y='40' width='46' height='46' fill='%230B1350' fill-opacity='.18'/%3E%3C/svg%3E") center / cover no-repeat,
    var(--g, var(--g-lugares));
}
.media--naturaleza { --g: var(--g-naturaleza); }
.media--lugares { --g: var(--g-lugares); }
.media--fe { --g: var(--g-fe); }
.media--orgullo { --g: var(--g-orgullo); }
.media--tradicion { --g: var(--g-tradicion); }
.media__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- ENTRADA (logo) ---------- */
.intro {
  position: relative; height: 100svh; min-height: 520px;
  display: grid; place-items: center;
  background: #050a2e; overflow: hidden; isolation: isolate;
  --p: 0; /* progreso de scroll 0→1 */
}
.intro__bg {
  position: absolute; inset: -40px; z-index: -3;
  background: url("../img/hero-3-sm.webp") center / cover no-repeat;
  filter: blur(10px) brightness(.28) saturate(.7);
  transform: scale(calc(1.15 + var(--p) * .15));
  opacity: 0; animation: introFade 3s ease .2s forwards;
}
.intro__glow {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(42% 38% at 50% 50%, rgba(132,194,37,.22), transparent 70%),
    radial-gradient(30% 30% at 22% 75%, rgba(18,199,217,.16), transparent 70%),
    radial-gradient(30% 30% at 80% 25%, rgba(255,61,87,.14), transparent 70%),
    linear-gradient(180deg, rgba(5,10,46,.4), rgba(5,10,46,.9));
  animation: glowPulse 7s ease-in-out infinite alternate;
}
.intro__stage {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 0 var(--gutter);
  transform: translateY(calc(var(--p) * -60px)) scale(calc(1 - var(--p) * .18));
  opacity: calc(1 - var(--p) * 1.3);
}
.intro__line {
  position: absolute; top: 50%; left: 50%; height: 2px; width: min(70vw, 760px);
  background: linear-gradient(90deg, transparent, var(--lime), var(--cyan), transparent);
  transform: translate(-50%, -50%) scaleX(0);
  animation: lineDraw 1.2s cubic-bezier(.7,0,.2,1) .3s forwards, lineOut .5s ease 1.5s forwards;
}
.intro__logo {
  width: min(78vw, 640px); height: auto; display: block;
  clip-path: inset(-50% 100% -50% -20%);
  filter: blur(14px) drop-shadow(0 0 0 rgba(132,194,37,0));
  transform: scale(1.12); opacity: 0;
  animation: logoIn 2s cubic-bezier(.2,.7,.1,1) 2.1s forwards, logoGlow 4s ease-in-out 4.3s infinite alternate;
}
.intro__kicker {
  margin: 0; font-size: clamp(12px, 1.3vw, 16px); font-weight: 500;
  letter-spacing: .5em; text-transform: uppercase; color: rgba(255,255,255,.75);
  padding-left: .5em; /* compensa el espaciado final para centrar */
  opacity: 0; animation: kickerIn 1.2s ease 3.7s forwards;
}
.intro__cue {
  position: absolute; bottom: calc(var(--band) + 28px); left: 0; right: 0; margin: 0 auto; width: max-content;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); white-space: nowrap; text-align: center;
  padding-left: .3em;
  opacity: 0; animation: kickerIn 1.2s ease 4.4s forwards;
}
.intro__cue i { width: 2px; height: 46px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; border-radius: 2px; }
.intro__cue i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--orange); animation: cueDrop 1.8s ease-in-out infinite; }
.intro__cue:hover { color: #fff; }
.intro__geo { transform: translateY(100%); animation: geoUp 1.2s cubic-bezier(.2,.7,.2,1) 4.1s forwards; }

@keyframes introFade { to { opacity: 1; } }
@keyframes glowPulse { from { opacity: .6; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
@keyframes lineDraw { to { transform: translate(-50%, -50%) scaleX(1); } }
@keyframes lineOut { to { opacity: 0; transform: translate(-50%, -50%) scaleX(1.4); } }
@keyframes logoIn {
  0% { clip-path: inset(-50% 100% -50% -20%); filter: blur(14px); transform: scale(1.12); opacity: 0; }
  40% { opacity: 1; }
  100% { clip-path: inset(-50% -20% -50% -20%); filter: blur(0); transform: scale(1); opacity: 1; }
}
@keyframes logoGlow { from { filter: drop-shadow(0 0 0 rgba(132,194,37,0)); } to { filter: drop-shadow(0 0 22px rgba(132,194,37,.45)); } }
@keyframes kickerIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cueDrop { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes geoUp { to { transform: none; } }

/* ---------- TÍTULO + RECUENTO (sección fija al hacer scroll) ---------- */
.montaje { position: relative; height: 340svh; background: #050a2e; --p: 0; }
.montaje__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; display: grid; place-items: center; }
.montaje__fondo {
  position: absolute; inset: -30px; z-index: -3;
  background-size: cover; background-position: center;
  filter: blur(6px) brightness(.45) saturate(1.1);
  transform: scale(calc(1.05 + var(--p) * .2));
  transition: background-image .4s ease;
}
.montaje__collage { position: absolute; inset: 0; z-index: -2; }
.foto-r {
  position: absolute; border-radius: 14px; overflow: hidden;
  background: var(--g, var(--g-lugares)) center / cover;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(.4);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2,.8,.2,1.2);
}
.foto-r span { position: absolute; inset: 0; background-size: cover; background-position: center; }
.foto-r.is-on { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
.montaje__velo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 50% 50%, rgba(5,10,46,.75), rgba(5,10,46,.25) 70%, rgba(5,10,46,.55)); }
.montaje__titulo {
  margin: 0; padding: 0 var(--gutter); text-align: center;
  display: flex; flex-direction: column; align-items: center;
  font-weight: 800; line-height: 1.08; letter-spacing: .02em;
  transform: scale(calc(1 + var(--p) * .12));
}
.montaje__aura {
  position: absolute; left: 50%; top: 50%; z-index: 0; pointer-events: none;
  width: clamp(340px, max(92vw, 72vh), 980px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(.9 + var(--p) * .25));
  background: radial-gradient(circle, rgba(11,19,80,.97) 0%, rgba(11,19,80,.9) 34%, rgba(11,19,80,.55) 56%, rgba(11,19,80,0) 72%);
  display: grid; place-items: center;
}
.montaje__mapa { width: 58%; height: auto; overflow: visible; transform: rotate(calc(var(--p) * 10deg)); }
.montaje__mapa path {
  fill: rgba(132,194,37,.07); stroke: var(--lime); stroke-width: 3; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .55;
  transition: stroke-dashoffset 3.5s cubic-bezier(.4,0,.2,1) .3s, fill 1.5s ease 2.5s;
  vector-effect: non-scaling-stroke;
}
.montaje.is-on .montaje__mapa path { stroke-dashoffset: 0; fill: rgba(132,194,37,.12); }
.montaje__titulo { position: relative; z-index: 1; }
.montaje__l1, .montaje__l2 { font-size: clamp(44px, 10vw, 150px); color: #fff; }
.montaje__l3 {
  margin-top: 14px; padding-top: 18px;
  font-size: clamp(20px, 3.4vw, 50px); color: var(--orange); letter-spacing: .06em;
  background: linear-gradient(90deg, rgba(132,194,37,0), var(--lime), rgba(132,194,37,0)) top center / 70% 5px no-repeat;
}
.letra {
  display: inline-block; white-space: pre;
  opacity: 0; transform: translateY(.6em) rotateX(-80deg); filter: blur(8px);
  transition: opacity .6s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .6s ease;
  transition-delay: calc(var(--i) * 45ms);
}
.montaje.is-on .letra { opacity: 1; transform: none; filter: blur(0); }
.montaje__azul { position: absolute; inset: 0; z-index: 2; background: var(--navy); opacity: var(--azul, 0); pointer-events: none; }

/* ---------- EXPLORA (naturaleza / lugares / tradición) ---------- */
.explora {
  position: relative; background: var(--navy); overflow: hidden;
  padding: 56px 0 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.explora__nav {
  align-self: stretch; margin: 0 var(--gutter);
  display: flex; justify-content: space-between; gap: 16px;
  padding: 0 clamp(0px, 4vw, 60px) 16px;
  border-bottom: 2px solid rgba(255,255,255,.9);
}
.explora__nav a { position: relative; font-weight: 600; font-size: clamp(15px, 1.5vw, 20px); color: #fff; padding: 4px 2px; transition: color .25s; }
.explora__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 4px; border-radius: 4px; background: var(--orange); transform: scaleX(0); transition: transform .3s ease; }
.explora__nav a:hover { color: var(--lime); }
.explora__nav a:hover::after { transform: scaleX(1); }
.explora__cita { margin: clamp(48px, 8vw, 96px) var(--gutter) 0; max-width: 1100px; }
.explora__cita blockquote {
  margin: 0; font-size: clamp(30px, 5.2vw, 76px); font-weight: 800; line-height: 1.12; letter-spacing: .005em; color: #fff;
}
.explora__cita figcaption { margin-top: 22px; font-size: clamp(14px, 1.4vw, 18px); font-weight: 500; font-style: italic; color: var(--lime); }

/* Pueblo animado */
.pueblo { align-self: stretch; margin-top: clamp(20px, 4vw, 50px); height: clamp(260px, 36vw, 520px); position: relative; }
.pueblo__svg { width: 100%; height: 100%; display: block; }
.p-estrella { fill: #fff; opacity: .2; animation: titila 3.2s ease-in-out infinite alternate; }
@keyframes titila { to { opacity: .9; } }
.p-halo { transform-origin: 1110px 190px; animation: halo 5s ease-in-out infinite alternate; }
@keyframes halo { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.12); opacity: 1; } }
.p-nube { fill: rgba(255,255,255,.14); animation: nube 80s linear infinite; }
@keyframes nube { from { transform: translateX(-260px); } to { transform: translateX(1700px); } }
.p-ventana { animation: ventana 2.6s ease-in-out infinite alternate; }
@keyframes ventana { 0% { fill: #ffd36b; } 60% { fill: #ffd36b; } 100% { fill: #f6a43a; } }
.p-luz { transform-box: fill-box; transform-origin: center; animation: farol 2.2s ease-in-out infinite alternate; }
@keyframes farol { from { opacity: .55; transform: scale(.85); } to { opacity: 1; transform: scale(1.15); } }
.p-ave { animation: vuelo 24s linear infinite; }
@keyframes vuelo { from { transform: translateX(-80px); } to { transform: translateX(1520px); } }
.p-ala { transform-box: fill-box; transform-origin: center; animation: aleteo .5s ease-in-out infinite alternate; }
@keyframes aleteo { to { transform: scaleY(-.6); } }
.p-arbol { transform-box: fill-box; transform-origin: bottom center; animation: brisa 4s ease-in-out infinite alternate; }
@keyframes brisa { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.p-casa, .p-iglesia { transform-box: fill-box; transform-origin: bottom center; opacity: 0; transform: translateY(30px) scaleY(.6); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1.3); transition-delay: calc(var(--i, 6) * 60ms); }
.pueblo.is-visible .p-casa, .pueblo.is-visible .p-iglesia { opacity: 1; transform: none; }


/* Pueblo: noche ↔ día al tocar */
.pueblo { cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.pueblo:focus-visible .pueblo__hint { box-shadow: 0 0 0 3px var(--lime); }
.pueblo__hint {
  position: absolute; z-index: 2; left: 50%; top: 6%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(11,19,80,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  transition: background .6s ease;
}
.pueblo__hint i { width: 22px; height: 22px; border-radius: 50%; background: #ffcf3a; box-shadow: 0 0 12px #ffcf3a; transition: background .6s, box-shadow .6s; }
.pueblo__hint-noche { display: none; }
.pueblo.is-dia .pueblo__hint { background: rgba(11,19,80,.75); }
.pueblo.is-dia .pueblo__hint i { background: #e8ecff; box-shadow: inset -6px -2px 0 #9aa4d6; }
.pueblo.is-dia .pueblo__hint-dia { display: none; }
.pueblo.is-dia .pueblo__hint-noche { display: inline; }
.pueblo:hover .pueblo__hint { background: rgba(242,106,33,.85); }

.pueblo__lugar {
  position: absolute; z-index: 2; right: var(--gutter); bottom: calc(var(--band) + 4px);
  text-shadow: 0 0 6px rgba(155,212,55,.9);
  font-size: clamp(9px, .8vw, 11px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); white-space: nowrap; pointer-events: none; opacity: .85;
}
.p-cielo { opacity: 0; transition: opacity 1.4s ease; }
.p-estrellas { transition: opacity 1.2s ease; }
.p-sol-mov { transition: transform 1.6s cubic-bezier(.3,.7,.2,1); }
.p-disco { transition: fill 1.4s ease; }
.p-m1, .p-m2, .p-col, .p-col2 { transition: fill 1.4s ease; }
.p-nube { transition: fill 1.4s ease; }
.p-ventana { transition: opacity 1s ease; }
.p-farol .p-luz { transition: opacity 1s ease; }

.pueblo.is-dia .p-cielo { opacity: 1; }
.pueblo.is-dia .p-estrellas { opacity: 0; }
.pueblo.is-dia .p-sol-mov { transform: translate(-160px, -120px); }
.pueblo.is-dia .p-disco { fill: #ffcf3a; }
.pueblo.is-dia .p-halo { opacity: .45 !important; }
.pueblo.is-dia .p-m1 { fill: #6c8fd0; }
.pueblo.is-dia .p-m2 { fill: #4f78c4; }
.pueblo.is-dia .p-col { fill: #5fa71c; }
.pueblo.is-dia .p-col2 { fill: #9bd437; }
.pueblo.is-dia .p-nube { fill: rgba(255,255,255,.9); }
.pueblo.is-dia .p-ventana { animation: none; opacity: .25; }
.pueblo.is-dia .p-farol .p-luz { opacity: 0 !important; animation: none; }

/* ---------- RECOMENDACIONES ---------- */
.recos { position: relative; padding: clamp(56px, 7vw, 96px) 0 64px; background: var(--navy); overflow: hidden; }
.recos::before {
  content: ""; position: absolute; right: -12vw; top: -14vw; width: 42vw; height: 42vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,199,217,.16), transparent 65%); pointer-events: none;
}
.recos__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); }
.recos__head h2 { margin: 18px 0 10px; max-width: 18em; font-size: clamp(28px, 3.8vw, 54px); font-weight: 800; letter-spacing: .005em; line-height: 1.1; }
.recos__head h2 em { font-style: normal; color: var(--lime); }
.recos__titulo { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px !important; }
.recos__pre { font-size: clamp(16px, 1.7vw, 24px); font-weight: 600; line-height: 1.4; color: rgba(255,255,255,.8); max-width: 30em; }
.recos__big {
  display: inline-block; align-self: flex-start; white-space: nowrap;
  font-size: clamp(34px, 7vw, 108px); font-weight: 800; line-height: 1; letter-spacing: 0;
  color: var(--lime); text-transform: uppercase;
}
.recos__big b { color: #fff; font-weight: 800; font-style: italic; position: relative; display: inline-block; padding-right: .06em; }
.recos__big b::after {
  content: ""; position: absolute; left: 2%; right: 0; bottom: -.12em; height: .1em; border-radius: 1em;
  background: linear-gradient(90deg, var(--orange), var(--coral));
  transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1) .5s;
}
.recos__head.is-visible .recos__big b::after { transform: scaleX(1); }
.recos__sub { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.6; color: var(--muted); }
.recos__ctrl { display: flex; align-items: center; gap: 14px; margin: 8px var(--gutter) 0; }
.recos__count { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.recos__count b { color: #fff; font-size: 22px; font-weight: 800; margin-right: 4px; }

.tabs {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin: 32px 0 30px; padding: 4px var(--gutter);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 9px 12px 9px 18px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.3);
  transition: background .25s, border-color .25s, color .25s;
}
.tabs button small { font-size: 12px; font-weight: 700; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.14); }
.tabs button:hover { border-color: var(--cyan); color: var(--cyan); }
.tabs button[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.tabs button[aria-selected="true"] small { background: var(--navy); color: #fff; }

.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 22vw, 320px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px var(--gutter) 34px;
  scroll-padding: 0 var(--gutter);
  overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none; cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-drag .card { pointer-events: none; }
.card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; text-align: left;
  opacity: 0; transform: translateY(48px) scale(.96);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.card.is-visible { opacity: 1; transform: none; }
.card .media {
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.card.is-visible:hover .media, .card:focus-visible .media { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(0,0,0,.5), 0 0 0 3px var(--lime); }
.card:hover .media__photo, .card:focus-visible .media__photo { transform: scale(1.07); }
.card .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,19,80,.25) 0%, transparent 28%, transparent 48%, rgba(11,19,80,.92) 100%);
}
.card__chip {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 11px; border-radius: 999px; color: #fff; background: var(--chip, var(--orange));
}
.card__chip--naturaleza { --chip: #4f8a12; }
.card__chip--lugares { --chip: #0e8fa0; }
.card__chip--fe { --chip: var(--orange); }
.card__chip--orgullo { --chip: var(--coral); }
.card__chip--tradicion { --chip: #b5531f; }
.card__body { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.card__name { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.2; }
.card__place { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.8); }
.card__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 13px; font-weight: 600; color: var(--lime);
}
.card__more::after { content: "→"; transition: transform .3s ease; }
.card:hover .card__more::after { transform: translateX(5px); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.carousel__arrow {
  width: 50px; height: 50px; border-radius: 50%;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5);
  font-size: 28px; line-height: 1;
  display: grid; place-items: center;
  transition: background .25s, border-color .25s;
}
.carousel__arrow:hover { background: var(--orange); border-color: var(--orange); }

.recos__progress { flex: 1; margin-right: 10px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.recos__progress span { display: block; height: 100%; width: 20%; border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--lime)); transform-origin: left; transition: width .2s linear, margin-left .2s linear; }

/* ---------- CIERRE ---------- */
.outro { position: relative; padding: 72px var(--gutter) calc(var(--band) + 28px); isolation: isolate; min-height: 90svh; display: flex; flex-direction: column; background: var(--navy); color: #fff; overflow: hidden; }
.outro__slides { position: absolute; inset: 0; z-index: -2; }
.outro__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.outro__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,19,80,.85) 0%, rgba(11,19,80,.5) 50%, rgba(11,19,80,.2) 100%),
    linear-gradient(180deg, rgba(11,19,80,.5) 0%, rgba(11,19,80,0) 35%, rgba(11,19,80,.6) 100%);
}
.outro__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.outro__title { grid-column: 1; margin: 0; font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.1; letter-spacing: .015em; color: #fff; }
.outro__play { grid-column: 1; display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 17px; color: #fff; align-self: start; }
.play { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); position: relative; flex: none; transition: background .25s; }
.play::after {
  content: ""; position: absolute; left: 15px; top: 12px;
  border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.outro__play:hover .play { background: var(--coral); }
.outro__text { margin: 0; font-size: clamp(15px, 1.4vw, 18px); font-weight: 500; line-height: 1.65; max-width: 36em; }
.outro__tiles { grid-column: 2; grid-row: 3; align-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile { aspect-ratio: 16 / 10; display: grid; place-items: end start; padding: 16px; border-radius: var(--radius); }
.tile span:last-child {
  position: relative; z-index: 1; font-weight: 600; font-size: 15px; color: #fff;
  padding: 8px 18px; background: var(--orange); border-radius: 999px;
  transition: background .3s;
}
.tile:hover span:last-child { background: var(--coral); }
.tile:hover .media__photo { transform: scale(1.06); }
.outro__foot { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-top: 48px; }
.outro__foot img { height: clamp(56px, 6vw, 88px); width: auto; display: block; }
.outro__ig {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 600; font-size: 16px;
  transition: background .25s;
}
.outro__ig:hover { background: var(--coral); }
.outro__tag { font-size: 13px; font-weight: 700; color: var(--lime); }

/* ---------- FICHA (MODAL) ---------- */
.modal {
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--navy);
  display: grid; grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
}
.modal:not([open]) { display: none; }
.modal::backdrop { background: rgba(11,19,80,.8); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .35s both; }
.modal__media { min-height: 100%; }
.modal__body { padding: 44px 38px 36px; overflow-y: auto; max-height: calc(100svh - 32px); border-top: 8px solid var(--lime); }
.modal__cat {
  display: inline-block; margin: 0;
  padding: 5px 16px; border-radius: 999px;
  background: var(--orange); color: #fff;
  font-size: 13px; font-weight: 500;
}
.modal__title { margin: 16px 0 4px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.modal__place { margin: 0 0 18px; font-size: 15px; font-style: italic; color: var(--orange); }
.modal__text { padding-top: 18px; background: linear-gradient(90deg, var(--orange), rgba(242,106,33,0)) top left / 60% 4px no-repeat; }
.modal__text p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: #2a3170; }
.modal__credit { margin: 6px 0 0; font-size: 12px; color: #6b70a0; }
.modal__credit a { color: var(--orange); text-decoration: underline; }
.modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; font-size: 28px; line-height: 1;
  background: var(--navy); color: #fff;
  transition: background .25s;
}
.modal__close:hover { background: var(--coral); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .outro__inner { grid-template-columns: 1fr; grid-template-rows: none; }
  .outro__tiles { grid-column: 1; grid-row: auto; gap: 14px; background: var(--navy); padding: 14px; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .modal { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__media { aspect-ratio: 16 / 10; min-height: 0; }
  .modal__body { max-height: none; padding: 28px 22px 28px; }
}
@media (max-width: 560px) {
  .explora__cita br { display: none; }
  .carousel__track { grid-auto-columns: 70vw; }
  .outro__tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .montaje__mapa path, .p-casa, .p-iglesia, .letra, .foto-r, .reveal, .card, .intro__logo, .intro__kicker, .intro__cue, .intro__bg, .intro__geo { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .intro__line { display: none; }
  html { scroll-behavior: auto; }
}
