:root {
  --bg: #f4f5f4;
  --text: #121212;
  --muted: #343434;
  --primary: #101010;
  --accent: #4f6b50;
  --card: #ffffff;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  /* Barra bajo subtítulos (celeste suave, mismo criterio que Sobre) */
  --subtitle-accent-bar: linear-gradient(90deg, #8ec9e4 0%, #c5e6f5 100%);
  --subtitle-accent-width: 88px;
  --subtitle-accent-height: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}

/* Celular / tablet: el documento ocupa como mínimo todo el alto visible (barra URL dinámica, safe area) */
@media (max-width: 980px) {
  html {
    height: 100%;
  }

  body {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
  }
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

/* Hero — layout tipo referencia (marca, redes, título, CTA, ubicaciones, fotos, nav lateral) */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(rgba(12, 10, 8, 0.55), rgba(12, 10, 8, 0.45)),
    url("./assets/Otono/Otono%20maiten%203.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: overlay;
}

.hero.hero-indo {
  padding: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 85% 70% at 30% 45%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.hero-brand-block {
  position: absolute;
  z-index: 3;
  top: clamp(1.25rem, 4vw, 2.25rem);
  left: 25%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(110px, 16vw, 185px);
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-brand-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-social {
  position: absolute;
  z-index: 3;
  left: clamp(1.25rem, 4vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-social-line {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.55);
}

.hero-social-link {
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-social-link:hover {
  opacity: 1;
  transform: scale(1.06);
}

.hero-main {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 6vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(440px, 86vw);
}

h1.hero-title {
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.hero-about-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
}

.hero-about-line {
  flex: 0 0 2.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: #fff;
  color: #121212;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.hero-cta-arrow {
  font-size: 1rem;
  line-height: 1;
}

.hero-locations {
  position: absolute;
  z-index: 4;
  left: clamp(0.85rem, 3vw, 1.5rem);
  bottom: clamp(5.75rem, 12vh, 7.25rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  /* Mitad izquierda: no superpone la galería */
  max-width: min(480px, calc(50vw - 1.75rem));
  box-sizing: border-box;
}

.hero-loc {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 2.75rem;
  width: 100%;
  padding: 0.38rem 0.45rem;
  font-family: inherit;
  font-size: clamp(0.56rem, 0.78vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(6, 10, 8, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
  box-shadow: none;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hero-loc:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(10, 16, 12, 0.55);
  box-shadow: none;
  transform: translateY(-1px);
}

.hero-loc.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(18, 32, 24, 0.62);
  box-shadow: none;
  transform: translateY(-1px);
}

.hero-loc:active {
  transform: translateY(0);
}

.hero-loc:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.hero-loc-pin {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.hero-loc:not(.is-active) .hero-loc-pin {
  display: none;
}

.hero-photos {
  position: absolute;
  z-index: 3;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(5.5rem, 11vh, 6.5rem);
  text-align: right;
  width: 100%;
  max-width: min(620px, calc(50vw - 1.75rem));
  box-sizing: border-box;
  /* El hero tiene overflow:hidden; el carril debe caber siempre */
  overflow: visible;
}

.hero-photos-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.hero-photos-dash {
  width: 2.85rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-photos-slider {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-photos-arrow {
  flex: 0 0 auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 2.15rem;
  line-height: 1;
  cursor: pointer;
  text-shadow: none;
  transition: color 0.2s, opacity 0.2s, transform 0.15s;
}

.hero-photos-arrow:hover {
  color: #fff;
  opacity: 0.88;
}

.hero-photos-arrow:active {
  transform: scale(0.96);
}

.hero-photos-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-thumbs {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.4rem, 1.2vw, 0.7rem);
  align-items: stretch;
  padding-block: 0.25rem;
  /* Reparte el ancho disponible entre 5 miniaturas cuadradas (sin salirse) */
}

.hero-thumb {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  transition: opacity 0.2s;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-thumb:hover {
  opacity: 0.95;
}

.hero-thumb.is-active {
  box-shadow: none;
}

.hero-side-nav {
  position: absolute;
  z-index: 3;
  right: clamp(0.75rem, 3vw, 1.75rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

.hero-side-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
  text-align: right;
}

.hero-side-item {
  font-family: inherit;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0;
  letter-spacing: 0.04em;
  transition: color 0.2s, font-weight 0.2s;
}

.hero-side-item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.hero-side-item.is-active {
  font-weight: 800;
  color: #fff;
}

.hero-side-nav-slider {
  position: relative;
  width: 3px;
  min-height: 4.5rem;
  align-self: center;
}

.hero-side-nav-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

.hero-side-nav-thumb {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #fff;
  border-radius: 1px;
  transition: top 0.35s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-side-nav[data-side="0"] .hero-side-nav-thumb {
  top: 0;
}

.hero-side-nav[data-side="1"] .hero-side-nav-thumb {
  top: calc(100% - 10px);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(0.85rem, 2.5vh, 1.25rem);
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.about {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.about-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-bg-slide[data-about-slide="0"] {
  background-image: linear-gradient(rgba(244, 247, 244, 0.88), rgba(244, 247, 244, 0.9)),
    url("./assets/Vista%20del%20pueblo%20desde%20El%20cerro%20de%20la%20Cruz.jpg");
}

.about-bg-slide[data-about-slide="1"] {
  background-image: linear-gradient(rgba(244, 247, 244, 0.88), rgba(244, 247, 244, 0.9)),
    url("./assets/Vista%20del%20pueblo%20desde%20El%20cerro%20de%20la%20Cruz%202.jpg");
}

.about-bg-slide.is-active {
  opacity: 1;
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.18));
}

.about-intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.about-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1.45rem auto;
  position: relative;
}

.about-header h2 {
  margin-bottom: 0.9rem;
}

.about-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #dff3fb 0%, #eaf7fd 100%);
  color: #4a6d80;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid rgba(142, 198, 228, 0.35);
}

.about-header::after {
  content: "";
  display: block;
  width: var(--subtitle-accent-width);
  height: var(--subtitle-accent-height);
  border-radius: 999px;
  margin: 1rem auto 0 auto;
  background: var(--subtitle-accent-bar);
}

/* Sobre: la barra sigue al pie del bloque (kicker + título + intro), no duplicar bajo el h2 */
.about-header h2::after {
  content: none;
  display: none;
}

/* Resto de secciones: barra celeste bajo cada h2 de subtítulo */
main .section .container > .fx-stagger > h2::after,
main .section .season-text > h2::after,
main .section .events-header > h2::after,
main .section .map-info > h2::after {
  content: "";
  display: block;
  width: var(--subtitle-accent-width);
  height: var(--subtitle-accent-height);
  border-radius: 999px;
  margin-top: 0.75rem;
  margin-bottom: 0.15rem;
  background: var(--subtitle-accent-bar);
}

/* Barra centrada solo donde el bloque ya es centrado */
main .section .events-header > h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* Línea de tiempo: barra bajo el título de cada hito */
.timeline-content h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  margin-top: 0.4rem;
  background: var(--subtitle-accent-bar);
}

/* Contacto: formulario y horarios */
.contact-form-header h3::after,
.contact-hours h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  margin-top: 0.45rem;
  background: var(--subtitle-accent-bar);
}

/* Tarjetas de atracciones (título sobre la foto) */
.attraction-overlay h3::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, rgba(200, 235, 248, 0.92), rgba(232, 248, 255, 0.78));
}

/* Títulos de tickets de eventos */
.event-ticket__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  margin-top: 0.42rem;
  background: var(--subtitle-accent-bar);
}

.attractions-intro {
  max-width: 620px;
  margin: -0.35rem 0 1.2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.attractions {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(246, 252, 255, 0.94) 0%, rgba(246, 252, 255, 0.9) 100%),
    var(--attractions-bg, none);
  background-size: cover;
  background-position: center;
  transition: background-image 0.45s ease;
}

.attractions-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  grid-auto-rows: minmax(150px, auto);
  min-height: 320px;
}

.attractions-showcase > .attraction-card {
  min-height: 280px;
}

.attractions-showcase > .attraction-card:nth-child(1) {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
}

.attractions-showcase > .attraction-card:nth-child(2) {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.attractions-showcase > .attraction-card:nth-child(3) {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

.attractions-showcase > .attraction-card:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.attractions-showcase > .attraction-card:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

.attractions-showcase > .attraction-card:nth-child(6) {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
}

.attractions-showcase > .attraction-card:nth-child(7) {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
}

.attraction-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
  background: #cfd6cf;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attraction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14);
}

.attraction-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

.attraction-card img.is-fading {
  opacity: 0.22;
}

.attraction-card:hover img {
  transform: scale(1.04);
}

.attraction-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 0.75rem 0.85rem 0.85rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.08) 0%, rgba(7, 7, 7, 0.88) 62%);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.attraction-overlay span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9ee5fc;
}

.attraction-overlay h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
}

.attraction-overlay p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #edf2ed;
}

.attraction-card[data-gallery="caballos"] .attraction-overlay p {
  font-size: 0.76rem;
  line-height: 1.28;
}

.attraction-overlay a {
  color: #9ee5fc;
  font-weight: 700;
  text-decoration-color: rgba(158, 229, 252, 0.9);
}

.attraction-overlay a:hover {
  color: #d5f4ff;
}

.attraction-card--large {
  min-height: 345px;
}

@media (max-width: 980px) {
  .attractions-showcase {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .attractions-showcase > .attraction-card:nth-child(1),
  .attractions-showcase > .attraction-card:nth-child(2),
  .attractions-showcase > .attraction-card:nth-child(3),
  .attractions-showcase > .attraction-card:nth-child(4),
  .attractions-showcase > .attraction-card:nth-child(5),
  .attractions-showcase > .attraction-card:nth-child(6),
  .attractions-showcase > .attraction-card:nth-child(7) {
    grid-column: auto;
    grid-row: auto;
  }
}

.timeline-vertical {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 0.95rem;
}

.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, #9fd4ea 0%, #cfeaf7 100%);
  transform: translateX(-50%);
  border-radius: 999px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(200px, 38%) 1fr;
  gap: 0.75rem 0.9rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(142, 198, 228, 0.45);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.5rem 0.65rem;
  position: relative;
  width: calc(50% - 18px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  right: -41px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7ebdd8;
  box-shadow: 0 0 0 5px #e8f5fb;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
}

.timeline-item:nth-child(even)::before {
  right: auto;
  left: -41px;
}

.timeline-item img {
  width: 100%;
  height: 120px;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a8aa0;
  font-weight: 700;
}

.timeline-content h3 {
  margin-top: 0.08rem;
  margin-bottom: 0.2rem;
  color: #2a4555;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

/* Línea de tiempo: cada evento entra al entrar en el viewport (ver setupScrollReveal en script.js) */
.timeline-item.reveal-on-scroll {
  opacity: 0;
  --reveal-shift: 48px;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.reveal-on-scroll:nth-child(odd) {
  transform: translateX(calc(-1 * var(--reveal-shift))) translateY(16px);
}

.timeline-item.reveal-on-scroll:nth-child(even) {
  transform: translateX(var(--reveal-shift)) translateY(16px);
}

.timeline-item.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.card {
  background: var(--card);
  padding: 1.4rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.quote {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.season {
  background: #eef1ee;
}

.season-winter {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #c8d4e0 0%, #d8e2ec 40%, #e4edf5 100%);
}

.season-alt {
  background: #e6e9e6;
}

.season-autumn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f2ebe3 0%, #efe6d8 40%, #ebe2d4 100%);
}

.season-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.season .container {
  position: relative;
  z-index: 1;
}

/* Copos de nieve: 6 capas densas (detalle en scripts/season-decor-generated.css) */
.snow-layer {
  position: absolute;
  top: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: none;
  animation: snow-fall linear infinite;
  will-change: transform;
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -25vh, 0);
  }
  100% {
    transform: translate3d(32px, 125vh, 0);
  }
}

/* Hojas de otoño: 6 capas densas (mismo archivo generado) */
.leaf-layer {
  position: absolute;
  top: -18vh;
  border-radius: 0 80% 0 80%;
  animation: leaf-fall linear infinite;
  will-change: transform;
}

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-42px, 135vh, 0) rotate(300deg);
  }
}

.season-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.2rem;
  align-items: center;
}

.season-alt .season-layout {
  grid-template-columns: 1.15fr 1fr;
}

.season-text p {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.carousel {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #d9ded9;
  padding: 0.4rem;
}

.carousel-track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
}

.carousel[data-direction="left"] .carousel-track {
  animation: moveLeft 24s linear infinite;
}

.carousel[data-direction="right"] .carousel-track {
  animation: moveRight 24s linear infinite;
}

.carousel-item {
  width: clamp(170px, 25vw, 220px);
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  position: relative;
  background: #bec6be;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact {
  position: relative;
  overflow: hidden;
  background-color: #ece8e4;
}

.contact--with-bg {
  background: linear-gradient(130deg, #d9f1fb 0%, #cdebf9 34%, #edf5fa 34%, #f6fbfe 100%);
  position: relative;
  isolation: isolate;
}

.contact--with-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66%;
  background:
    linear-gradient(130deg, rgba(246, 251, 254, 0.28) 0%, rgba(246, 251, 254, 0.5) 100%),
    url("./assets/Vista%20del%20pueblo%20desde%20El%20cerro%20de%20la%20Cruz.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.52;
  z-index: 0;
  pointer-events: none;
}

.contact--with-bg .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.1rem;
  align-items: stretch;
}

.map-info {
  background: linear-gradient(165deg, #d5eefb 0%, #c6e8f8 100%);
  color: #2f4a5a;
  padding: 1.2rem 1.15rem;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(125, 184, 214, 0.28);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6ea8c6;
  font-weight: 700;
}

.map-info h2 {
  margin-bottom: 0.45rem;
  color: #2f4a5a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.05;
}

.contact-intro {
  margin: 0 0 0.8rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(47, 74, 90, 0.82);
}

.map-info iframe {
  width: 100%;
  height: 195px;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  margin-bottom: 0.7rem;
}

.contact-data {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-data li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #355264;
}

.contact-data__icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: linear-gradient(145deg, #e7f6fd, #d8eef9);
  color: #5d869d;
  box-shadow: 0 5px 12px rgba(159, 206, 228, 0.2);
}

.contact-data__icon svg {
  width: 1rem;
  height: 1rem;
}

.contact-hours {
  margin-top: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(125, 184, 214, 0.22);
  background: rgba(255, 255, 255, 0.4);
}

.contact-hours h3 {
  margin: 0 0 0.45rem;
  font-size: 0.96rem;
  color: #36586c;
  font-family: Georgia, "Times New Roman", serif;
}

.contact-hours ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.contact-hours li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.79rem;
  color: #4b6b7d;
}

.contact-hours li strong {
  color: #5d869d;
  font-weight: 700;
}

.contact-form {
  background: transparent;
  padding: 0.95rem 0.9rem;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
}

.contact-form-header {
  margin-bottom: 0.05rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e2e8e2;
}

.contact-form-header h3 {
  margin-bottom: 0.28rem;
  font-size: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.contact-form-lead {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: #b91c1c;
  font-weight: 700;
}

.form-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

input,
textarea,
select {
  font: inherit;
  padding: 0.5rem 0.62rem;
  border: 1px solid #3e5868;
  border-radius: 0;
  background: #f9f9f8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #9cb39c;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 107, 80, 0.2);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* Solo el CTA del formulario: no aplicar a .hero-loc ni .hero-photos-arrow */
.btn-wpp {
  font: inherit;
  background: #84d5f7;
  color: #fff;
  border: 2px solid #25495f;
  border-radius: 12px;
  padding: 0.58rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
  margin-top: 0.15rem;
  box-shadow: 0 3px 0 #25495f;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-wpp:hover {
  filter: brightness(0.96);
}

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  text-decoration: none;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.footer {
  background: linear-gradient(180deg, #dff3fd 0%, #d3edf9 100%);
  color: #25485d;
  padding: 1rem 0 0.55rem;
  border-top: 1px solid rgba(146, 200, 230, 0.32);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.footer-photo-credit {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: start;
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #5f8195;
}

.footer-photo-credit a {
  color: #3e6f89;
  font-weight: 600;
}

.footer-brand {
  grid-column: 1;
  grid-row: 1 / span 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand img {
  width: clamp(130px, 14vw, 170px);
  height: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 0.35rem;
  filter: none;
}

.footer-brand h4 {
  margin: 0 0 0.22rem;
  max-width: 33rem;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-family: Georgia, "Times New Roman", serif;
  color: #18384b;
  line-height: 1.2;
}

.footer-brand p {
  margin: 0 0 0.4rem;
  max-width: 34rem;
  color: #557486;
  font-size: 0.82rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  margin-bottom: 0.35rem;
  padding: 0.42rem 0.72rem;
  border-radius: 9px;
  border: 1px solid #9fd4ef;
  background: #dff2fc;
  color: #24556e;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
}

.footer-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
  justify-content: center;
}

.footer-contact-chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  background: #edf8ff;
  border: 1px solid #c6e8f8;
  color: #2f6079;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
}

.footer-contact-chips a:hover {
  background: #dff2fc;
}

.footer-links-group {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  row-gap: 0.2rem;
  justify-self: center;
  margin-top: -0.05rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
  text-align: left;
}

.footer-links-title {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6aa3bf;
  font-weight: 700;
}

.footer a {
  color: #426a80;
  text-decoration: none;
  font-size: 0.82rem;
}

.footer a:hover {
  color: #16384b;
}

.footer-bottom {
  margin-top: 0.35rem;
  padding-top: 0.42rem;
  border-top: 1px solid rgba(146, 200, 230, 0.3);
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: #6e8ea0;
}

.footer-dev-credit {
  margin-top: 0.2rem !important;
  font-size: 0.84rem !important;
  color: #7fa0b4 !important;
  font-weight: 600;
}

.footer-dev-credit a {
  color: #2f6079;
  font-weight: 800;
}

@keyframes moveLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes moveRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .snow-layer,
  .leaf-layer {
    animation: none;
  }

  .hero-loc:hover,
  .hero-loc.is-active {
    transform: none;
  }

  .timeline-item.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero {
    display: flex;
    flex-direction: column;
    /* Rellena el alto útil (barra dinámica / safe area) y evita franja vacía abajo */
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
  }

  /* Absorbe el espacio sobrante bajo el copyright: el fondo del hero sigue pintando hasta abajo */
  .hero::after {
    content: "";
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    pointer-events: none;
  }

  /* Fiesta del Tren a Vapor (foto en Eventos): en celu anclar la imagen hacia abajo */
  .hero.hero-bg--train-event {
    background-position: center, center bottom;
    background-size: cover, cover;
  }

  .attractions-showcase,
  .season-layout,
  .season-alt .season-layout,
  .contact-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-social {
    display: none;
  }

  .hero-side-nav {
    display: none;
  }

  /* Logo en flujo, alineado a la izquierda */
  .hero-brand-block {
    position: relative;
    left: 0;
    transform: none;
    top: auto;
    width: 100%;
    justify-content: flex-start;
    padding: clamp(0.5rem, 2vw, 0.85rem) 1rem 0 clamp(0.5rem, 2vw, 0.85rem) max(0.75rem, env(safe-area-inset-left));
    z-index: 3;
  }

  .hero-brand {
    width: clamp(92px, 36vw, 140px);
  }

  .hero-main {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: none;
    padding: clamp(0.35rem, 1.5vw, 0.65rem) 1.25rem 0;
  }

  h1.hero-title {
    font-size: clamp(2.1rem, 10vw, 3.25rem);
  }

  .hero-locations {
    position: relative;
    left: auto;
    bottom: auto;
    padding: 0.65rem 1rem 0;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 0.32rem;
  }

  .hero-loc {
    min-height: 0;
    padding: 0.42rem 0.55rem;
    font-size: clamp(0.62rem, 2.85vw, 0.78rem);
    letter-spacing: 0.07em;
    line-height: 1.2;
  }

  .hero-photos {
    position: relative;
    right: auto;
    bottom: auto;
    padding: 0.75rem 1rem 0;
    max-width: 100%;
    text-align: left;
  }

  .hero-photos-head {
    justify-content: flex-start;
  }

  .hero-photos-slider {
    max-width: 100%;
    justify-content: center;
    gap: 0.65rem;
  }

  .hero-photos-arrow {
    min-width: 2.85rem;
    min-height: 2.85rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 0;
    padding: 0.2rem;
  }

  .hero-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.35rem, 2.2vw, 0.55rem);
    overflow: visible;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
  }

  .hero-thumb {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1;
    height: auto;
  }

  .hero-copy {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    white-space: normal;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    margin-left: 40px;
    width: calc(100% - 40px);
    min-height: auto;
  }

  .timeline-item img {
    height: 200px;
    max-height: 46vw;
  }

  .timeline-vertical::before {
    left: 16px;
    transform: none;
  }

  .timeline-item::before {
    left: -31px;
    right: auto;
  }

  .timeline-item:nth-child(even) {
    margin-left: 40px;
  }

  .timeline-item:nth-child(even)::before {
    left: -31px;
    right: auto;
  }

  .timeline-item.reveal-on-scroll:nth-child(odd),
  .timeline-item.reveal-on-scroll:nth-child(even) {
    transform: translateY(28px);
  }

  .timeline-item.reveal-on-scroll.is-visible {
    transform: translateY(0);
  }

  .carousel-item {
    width: min(44vw, 240px);
  }

  .event-ticket {
    flex-direction: column;
  }

  .event-ticket__tear {
    flex-direction: row;
    width: 100%;
    min-height: 1.25rem;
    padding: 0 1rem;
  }

  .event-ticket__dash {
    width: auto;
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      rgba(60, 52, 44, 0.35) 0 8px,
      transparent 8px 14px
    );
  }

  .event-ticket__notch--top {
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent rgba(60, 52, 44, 0.2) transparent;
    margin: 0;
  }

  .event-ticket__notch--bottom {
    border-width: 8px 8px 0 8px;
    border-color: rgba(60, 52, 44, 0.2) transparent transparent transparent;
    margin: 0;
  }

  .event-ticket__stub {
    display: flex;
    flex-direction: column;
    border-left: none;
    border-top: 2px dashed rgba(60, 52, 44, 0.22);
    padding: 0.95rem 1rem max(1rem, env(safe-area-inset-bottom));
  }

  .event-ticket__stub-photo {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 120px;
    max-height: 180px;
    flex: 0 0 auto;
    padding: 0;
    clip-path: none;
    border-radius: 12px;
  }

  .event-ticket__stub-photo img {
    min-height: 0;
    max-height: 180px;
  }

  .event-ticket__stub-code {
    writing-mode: horizontal-tb;
    text-align: center;
    padding: 0.45rem 0 0.85rem;
    letter-spacing: 0.14em;
  }

  .footer-content {
    gap: 1.25rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-photo-credit {
    grid-column: auto;
    text-align: center;
    margin-top: -0.2rem;
  }

  .footer-brand img {
    width: 120px;
  }
}

/* —— Eventos: tickets estilo embarque —— */
.events {
  --events-celeste: #9ee5fc;
  --events-celeste-soft: rgba(180, 232, 255, 0.38);
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 3.5rem;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--events-celeste-soft), transparent 58%),
    linear-gradient(180deg, #e8f5fc 0%, #eef8fd 42%, #f4fbfe 100%);
}

.events .container {
  position: relative;
  z-index: 1;
}

/* Fondo: 2 de cada emoji (16), tono celeste, trayectorias distintas por ítem */
.events-emoji-field {
  position: absolute;
  inset: -8% -5%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.events-emoji {
  position: absolute;
  display: block;
  line-height: 1;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  user-select: none;
  opacity: 0.5;
  filter: sepia(0.32) saturate(1.75) hue-rotate(178deg) brightness(1.22)
    drop-shadow(0 0 14px rgba(158, 220, 252, 0.55));
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes events-move-1 {
  0% {
    transform: translate(0, 0) rotate(-6deg);
  }
  25% {
    transform: translate(28vw, 22vh) rotate(8deg);
  }
  50% {
    transform: translate(8vw, 48vh) rotate(-4deg);
  }
  75% {
    transform: translate(-22vw, 28vh) rotate(10deg);
  }
  100% {
    transform: translate(0, 0) rotate(-6deg);
  }
}

@keyframes events-move-2 {
  0% {
    transform: translate(0, 0) rotate(4deg);
  }
  25% {
    transform: translate(-32vw, 18vh) rotate(-10deg);
  }
  50% {
    transform: translate(-12vw, -12vh) rotate(6deg);
  }
  75% {
    transform: translate(24vw, 36vh) rotate(-5deg);
  }
  100% {
    transform: translate(0, 0) rotate(4deg);
  }
}

@keyframes events-move-3 {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(18vw, -16vh) rotate(12deg);
  }
  45% {
    transform: translate(-26vw, 8vh) rotate(-8deg);
  }
  70% {
    transform: translate(10vw, 42vh) rotate(5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes events-move-4 {
  0% {
    transform: translate(0, 0) rotate(-3deg);
  }
  30% {
    transform: translate(-18vw, 38vh) rotate(9deg);
  }
  55% {
    transform: translate(30vw, -8vh) rotate(-11deg);
  }
  80% {
    transform: translate(-8vw, -22vh) rotate(4deg);
  }
  100% {
    transform: translate(0, 0) rotate(-3deg);
  }
}

@keyframes events-move-5 {
  0% {
    transform: translate(0, 0) rotate(7deg);
  }
  22% {
    transform: translate(14vw, 32vh) rotate(-6deg);
  }
  48% {
    transform: translate(-20vw, 14vh) rotate(11deg);
  }
  74% {
    transform: translate(22vw, -18vh) rotate(-4deg);
  }
  100% {
    transform: translate(0, 0) rotate(7deg);
  }
}

@keyframes events-move-6 {
  0% {
    transform: translate(0, 0) rotate(-8deg);
  }
  28% {
    transform: translate(-24vw, -14vh) rotate(5deg);
  }
  52% {
    transform: translate(16vw, 26vh) rotate(-9deg);
  }
  76% {
    transform: translate(6vw, -30vh) rotate(7deg);
  }
  100% {
    transform: translate(0, 0) rotate(-8deg);
  }
}

@keyframes events-move-7 {
  0% {
    transform: translate(0, 0) rotate(2deg);
  }
  18% {
    transform: translate(-10vw, 40vh) rotate(-12deg);
  }
  42% {
    transform: translate(34vw, 6vh) rotate(8deg);
  }
  68% {
    transform: translate(-28vw, -20vh) rotate(-5deg);
  }
  100% {
    transform: translate(0, 0) rotate(2deg);
  }
}

@keyframes events-move-8 {
  0% {
    transform: translate(0, 0) rotate(-2deg);
  }
  35% {
    transform: translate(20vw, -24vh) rotate(14deg);
  }
  58% {
    transform: translate(-14vw, 30vh) rotate(-7deg);
  }
  82% {
    transform: translate(-30vw, 10vh) rotate(6deg);
  }
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }
}

.events-emoji:nth-child(1) {
  left: 8%;
  top: 14%;
  animation-name: events-move-1;
  animation-duration: 42s;
  animation-delay: -4s;
}

.events-emoji:nth-child(2) {
  left: 82%;
  top: 10%;
  animation-name: events-move-2;
  animation-duration: 48s;
  animation-delay: -12s;
}

.events-emoji:nth-child(3) {
  left: 18%;
  top: 62%;
  animation-name: events-move-3;
  animation-duration: 55s;
  animation-delay: -20s;
}

.events-emoji:nth-child(4) {
  left: 72%;
  top: 58%;
  animation-name: events-move-4;
  animation-duration: 38s;
  animation-delay: -6s;
}

.events-emoji:nth-child(5) {
  left: 44%;
  top: 8%;
  animation-name: events-move-5;
  animation-duration: 50s;
  animation-delay: -28s;
}

.events-emoji:nth-child(6) {
  left: 6%;
  top: 78%;
  animation-name: events-move-6;
  animation-duration: 44s;
  animation-delay: -14s;
}

.events-emoji:nth-child(7) {
  left: 90%;
  top: 72%;
  animation-name: events-move-7;
  animation-duration: 52s;
  animation-delay: -32s;
}

.events-emoji:nth-child(8) {
  left: 52%;
  top: 38%;
  animation-name: events-move-8;
  animation-duration: 46s;
  animation-delay: -9s;
}

.events-emoji:nth-child(9) {
  left: 34%;
  top: 46%;
  animation-name: events-move-3;
  animation-duration: 47s;
  animation-delay: -21s;
}

.events-emoji:nth-child(10) {
  left: 16%;
  top: 34%;
  animation-name: events-move-4;
  animation-duration: 41s;
  animation-delay: -7s;
}

.events-emoji:nth-child(11) {
  left: 66%;
  top: 24%;
  animation-name: events-move-2;
  animation-duration: 53s;
  animation-delay: -35s;
}

.events-emoji:nth-child(12) {
  left: 50%;
  top: 70%;
  animation-name: events-move-1;
  animation-duration: 49s;
  animation-delay: -15s;
}

.events-emoji:nth-child(13) {
  left: 28%;
  top: 86%;
  animation-name: events-move-7;
  animation-duration: 44s;
  animation-delay: -24s;
}

.events-emoji:nth-child(14) {
  left: 78%;
  top: 42%;
  animation-name: events-move-5;
  animation-duration: 56s;
  animation-delay: -11s;
}

.events-emoji:nth-child(15) {
  left: 60%;
  top: 14%;
  animation-name: events-move-8;
  animation-duration: 51s;
  animation-delay: -38s;
}

.events-emoji:nth-child(16) {
  left: 94%;
  top: 46%;
  animation-name: events-move-6;
  animation-duration: 43s;
  animation-delay: -3s;
}

.events-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.events-header h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.events-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.events-tickets {
  display: flex;
  flex-direction: column;
  gap: 2.35rem;
  max-width: 920px;
  margin: 0 auto;
}

/* Auspiciantes (debajo de los tickets de eventos) */
.events-sponsors {
  max-width: 920px;
  margin: 2.75rem auto 0;
  padding: 2rem 1.25rem 0.25rem;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(248, 252, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.42) 100%
  );
  box-shadow: 0 18px 40px rgba(30, 80, 110, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border: 1px solid rgba(158, 210, 240, 0.45);
}

.events-sponsors__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 1.5rem;
  max-width: 280px;
}

.events-sponsors__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 107, 80, 0.35), transparent);
}

.events-sponsors__divider-gem {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--events-celeste), rgba(79, 107, 80, 0.55));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 2px 8px rgba(79, 107, 80, 0.2);
}

.events-sponsors__header {
  margin-bottom: 1.35rem;
  padding: 0 0.5rem;
}

.events-sponsors__title {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

.events-sponsors__lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.events-sponsors__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 520px) {
  .events-sponsors__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .events-sponsors__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.events-sponsor-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px dashed rgba(79, 107, 80, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.events-sponsor-slot:hover {
  border-color: rgba(79, 107, 80, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 6px 16px rgba(30, 90, 120, 0.08);
  transform: translateY(-1px);
}

.events-sponsor-slot__frame {
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  pointer-events: none;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 5px,
    rgba(158, 229, 252, 0.12) 5px,
    rgba(158, 229, 252, 0.12) 6px
  );
  opacity: 0.85;
}

.events-sponsor-slot__hint {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(90, 100, 95, 0.45);
}

.events-sponsor-slot__logo {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.events-sponsors__note {
  margin: 1.25rem 0 0;
  padding: 0 0.75rem 0.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(52, 52, 52, 0.72);
}

.event-ticket {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  max-width: 100%;
  background: #f5f1ea;
  color: #1a1814;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  clip-path: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 14px),
    0 14px
  );
}

.event-ticket__body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1rem;
  padding: 1.15rem 1.1rem 1.15rem 1.2rem;
  align-items: stretch;
}

.event-ticket__visual {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  align-self: stretch;
  min-height: 140px;
}

.event-ticket__visual img {
  width: 100%;
  height: 100%;
  min-height: min(168px, 38vw);
  object-fit: cover;
  object-position: center;
  display: block;
}

.event-ticket__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding-right: 0.35rem;
}

.event-ticket__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--events-celeste);
}

.event-ticket__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.02em;
}

.event-ticket__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #3d3a35;
}

.event-ticket__route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(60, 52, 44, 0.12);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c564c;
}

.event-ticket__route-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(79, 107, 80, 0.55);
}

.event-ticket__tear {
  flex: 0 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04));
  position: relative;
}

.event-ticket__dash {
  flex: 1;
  width: 2px;
  min-height: 48px;
  background: repeating-linear-gradient(
    180deg,
    rgba(60, 52, 44, 0.35) 0 7px,
    transparent 7px 13px
  );
  border-radius: 1px;
}

.event-ticket__notch {
  width: 0;
  height: 0;
  border-style: solid;
}

.event-ticket__notch--top {
  border-width: 0 9px 10px 9px;
  border-color: transparent transparent rgba(60, 52, 44, 0.2) transparent;
  margin-bottom: 2px;
}

.event-ticket__notch--bottom {
  border-width: 10px 9px 0 9px;
  border-color: rgba(60, 52, 44, 0.2) transparent transparent transparent;
  margin-top: 2px;
}

.event-ticket__stub {
  padding: 1.05rem 0.95rem 1.05rem 1.05rem;
  background: linear-gradient(165deg, #ebe4d9 0%, #e2d9cc 100%);
  position: relative;
}

.event-ticket--mate .event-ticket__stub {
  background: linear-gradient(165deg, #efe6dc 0%, #e8ddd0 100%);
}

.event-ticket--reverse .event-ticket__body {
  grid-template-columns: 1fr minmax(120px, 180px);
  padding: 1.15rem 1.2rem 1.15rem 1.1rem;
}

.event-ticket--reverse .event-ticket__content {
  order: 1;
  text-align: right;
  align-items: flex-end;
}

.event-ticket--reverse .event-ticket__visual {
  order: 2;
}

.event-ticket--reverse .event-ticket__title::after {
  margin-left: auto;
}

.event-ticket--reverse .event-ticket__route {
  justify-content: flex-end;
}

/* Hueco del código: sin blanco extra; el blanco va solo en el marco ajustado al dibujo (aspect-ratio del SVG) */
.event-ticket__stub-photo {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 56px;
  min-height: 120px;
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
  clip-path: polygon(15% 0, 85% 0, 100% 12%, 100% 88%, 85% 100%, 15% 100%, 0 88%, 0 12%);
  box-shadow: none;
}

.event-ticket__stub-photo img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.event-ticket__stub-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
  min-width: 0;
  padding-right: 0;
  align-items: stretch;
  height: 100%;
}

.event-ticket__meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.event-ticket__meta div {
  margin: 0;
}

.event-ticket__meta dt {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6b6358;
  margin-bottom: 0.14rem;
}

.event-ticket__meta dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a2620;
  line-height: 1.3;
}

.event-ticket__wpp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  padding: 0.55rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  text-align: center;
  background: #25d366;
  border-radius: 8px;
  box-shadow: 0 3px 11px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  align-self: stretch;
}

.event-ticket__wpp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(37, 211, 102, 0.34);
}

/* MAITEN: blanco = proporción del arte (28×158); altura = talón → ancho se calcula solo (sin bandas blancas) */
.ticket-barcode--stub.ticket-barcode--vertical {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  max-height: 100%;
  align-self: stretch;
}

.ticket-barcode__frame--svg {
  position: relative;
  flex: 0 0 auto;
  display: block;
  height: clamp(8rem, 25vh, 11.5rem);
  width: auto;
  aspect-ratio: 28 / 158;
  max-width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
}

.ticket-barcode__svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.ticket-barcode__scan--vertical {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 26%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(34, 197, 94, 0.2) 45%,
    rgba(34, 197, 94, 0.38) 50%,
    rgba(34, 197, 94, 0.2) 55%,
    transparent 100%
  );
  animation: ticket-barcode-scan 2.6s linear infinite;
  pointer-events: none;
}

@keyframes ticket-barcode-scan {
  from {
    transform: translateY(-130%);
    opacity: 0.9;
  }
  to {
    transform: translateY(420%);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket-barcode__scan--vertical {
    animation: none;
    opacity: 0;
  }
}

@media (min-width: 981px) {
  .event-ticket__stub {
    flex: 0 0 min(300px, 36vw);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    column-gap: 0.7rem;
    row-gap: 0;
    align-items: stretch;
    min-height: 100%;
    border-left: 2px dashed rgba(60, 52, 44, 0.22);
  }

  .event-ticket__stub-inner {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
  }

  .event-ticket__stub-code {
    margin: 0;
    align-self: center;
    grid-column: 2;
    grid-row: 1;
    padding: 0 0.2rem;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7a7268;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
  }
}

/* Talón: en anchos medios la miniatura pasa a franja ancha (evita la “aguja” de 56px) */
@media (max-width: 1120px) and (min-width: 981px) {
  .event-ticket__stub {
    grid-template-columns: minmax(0, 1fr) min-content;
    grid-template-rows: minmax(0, 1fr);
    gap: 0 0.7rem;
    flex: 0 0 min(300px, 38vw);
    padding: 1rem 1rem 0.95rem;
  }

  .event-ticket__stub-inner {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
  }

  .event-ticket__stub-code {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
}

/* FAB en móvil pegado abajo para no invadir el contenido de tarjetas */
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    right: max(0.75rem, env(safe-area-inset-right));
    width: 3rem;
    height: 3rem;
  }

  .whatsapp-float svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .events-tickets {
    gap: 1.75rem;
  }
}

/*
 * Tickets en móvil/tablet: este bloque va AL FINAL del archivo a propósito.
 * Los estilos base (.event-ticket__body con grid) están más arriba y pisaban
 * el layout en pantallas chicas si solo se definía en el primer @media 980px.
 */
@media (max-width: 980px) {
  .event-ticket__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }

  .event-ticket__visual {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: min(58vw, 280px);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .event-ticket__visual img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .event-ticket__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1.15rem 0.5rem;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .event-ticket__tag,
  .event-ticket__title,
  .event-ticket__desc {
    width: 100%;
    max-width: 36rem;
    text-align: center;
  }

  .event-ticket__title {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }

  .event-ticket__title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .event-ticket__route {
    justify-content: center;
    width: 100%;
    max-width: 36rem;
    margin-top: 0.5rem;
    padding-top: 0.65rem;
  }

  .event-ticket__stub-inner {
    align-items: center;
    text-align: center;
  }

  .event-ticket__meta {
    align-items: center;
    width: 100%;
  }

  .event-ticket__meta div {
    text-align: center;
    width: 100%;
  }

  .event-ticket__meta dt,
  .event-ticket__meta dd {
    text-align: center;
  }

  .event-ticket__wpp {
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    max-width: 100%;
  }
}
