﻿/* ===================================================
   FIESTA DEL TAMBERO â€“ Navarro 2026
   Paleta: #00D4FF (celeste elÃ©ctrico), #00E87A (verde elÃ©ctrico),
           #FFFFFF (blanco), #0D1A1F (oscuro)
   TipografÃ­a: Encode Sans
=================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #00C8F0;
  --teal-dark:  #009EC0;
  --teal-light: #E6FAFF;
  --teal-elec:  #00D4FF;
  --green:      #00D46A;
  --green-dark: #00A854;
  --green-light:#E6FFF3;
  --green-elec: #00E87A;
  --gold:       #C88C20;
  --gold-light: #FDF3DC;
  --dark:       #1A1A1A;
  --dark2:      #0D1A1F;
  --mid:        #4A6070;
  --light:      #F0FEFF;
  --white:      #FFFFFF;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 8px 32px rgba(0,212,255,.15);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.12);
  --font-head:  'Encode Sans', system-ui, sans-serif;
  --font-body:  'Encode Sans', system-ui, sans-serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  /* overflow-x: hidden movido a html para no romper transform: scale() en cards */
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---------- UTILITY ---------- */
.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}
.section { padding: 96px 0; }
.section--dark { background: var(--dark2); }

/* Galería con fondo claro */
.section--gallery { background: #F7FAFB; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-elec);
  color: #fff;
  border-color: var(--teal-elec);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,255,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}
.btn-white-solid {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  font-weight: 800;
}
.btn-white-solid:hover {
  background: var(--teal-elec);
  border-color: var(--teal-elec);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,255,.4);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
  font-weight: 700;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .6rem 0;
  transition: var(--transition);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  padding: .4rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav-inner {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Wrapper que recorta el whitespace del PNG cuadrado 1080x1080 */
.nav-logo-wrap {
  width: 320px;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  width: auto;
  height: 210px;
  object-fit: contain;
  filter: none;
  transition: filter var(--transition);
  flex-shrink: 0;
  margin-left: -10px;
}
.navbar.scrolled .nav-logo-img { filter: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}
.nav-links a {
  color: var(--dark);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--dark); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--teal-elec);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--teal-dark); }
.navbar.scrolled .nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background: var(--dark2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1) 0%,
    rgba(0,0,0,.08) 60%,
    rgba(0,0,0,.35) 100%
  );
  z-index: 1;
}
.hero-content {
  display: none; /* video speaks for itself */
}
.hero-logo-wrap { display: none; }
.hero-logo-img  { display: none; }
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ---------- LIVE WIDGET – barra fija bajo navbar ---------- */
.live-widget {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid #e8edf0;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: top var(--transition);
}
.live-widget.live-widget--hidden { display: none; }

.live-widget-inner {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem 0;
  min-height: 32px;
  overflow: hidden;
}

/* Píldora EN VIVO / PRÓXIMO */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: .22rem .55rem;
  flex-shrink: 0;
  line-height: 1;
}
.live-pill--on {
  background: #d0001f;
  color: #fff;
}
.live-pill--next {
  background: var(--teal-elec);
  color: #fff;
}
.live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%       { opacity: .3; transform: scale(.65); }
}

/* Bloque de contenido (texto scrolleable) */
.live-text-area {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.live-text-track {
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  width: max-content;
}

/* Marquee — idéntico al .strip-inner.running */
.live-text-track.live-marquee {
  animation: liveMarquee 20s linear infinite;
}
@keyframes liveMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.live-sep-dot {
  color: var(--teal);
  font-size: .75rem;
  flex-shrink: 0;
}

.live-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.live-label--now  { color: #d0001f; }
.live-label--next { color: var(--teal-dark); }

.live-hora {
  font-size: .82rem;
  font-weight: 800;
  color: var(--teal-dark);
  flex-shrink: 0;
}

.live-titulo {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
}

/* Reloj — extremo derecho */
.live-clock {
  font-size: .72rem;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: .04em;
  margin-left: auto;
  flex-shrink: 0;
  padding-left: .4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .live-widget-inner { gap: .45rem; }
}
@media (max-width: 480px) {
  .live-pill { font-size: .55rem; padding: .18rem .42rem; }
  .live-titulo { font-size: .8rem; }
  .live-clock { display: none; }
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,.5);
  border-bottom: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- STRIP ---------- */
.strip {
  background: linear-gradient(90deg, var(--teal-elec) 0%, var(--green-elec) 50%, var(--teal-elec) 100%);
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
  overflow: hidden;
  padding: .9rem 0;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.strip-inner {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  width: max-content;
}
/* El JS duplica los items y aplica la animaciÃ³n al wrapper */
.strip-inner.running {
  animation: marquee 24s linear infinite;
}
.strip-inner span {
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  letter-spacing: .04em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- INTRO SECTION (post-hero) ---------- */
.intro-section {
  background: linear-gradient(135deg, #007A94 0%, #00C8F0 45%, #00E87A 100%);
  padding: 80px 0;
  overflow: hidden;
}
.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.intro-text { color: var(--white); }
.section-tag--white {
  background: rgba(255,255,255,.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.intro-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 1rem 0 1.2rem;
  color: var(--white);
}
.intro-title strong {
  font-weight: 900;
  display: block;
}
.intro-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.intro-badges {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.intro-badge {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  padding: .5rem 1rem;
  border-radius: 50px;
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
}
.intro-badge-icon { font-size: 1rem; }
.intro-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* CÃ³mo llegar dentro de intro */
.intro-directions { margin-top: .5rem; }
.intro-dir-title {
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.intro-dir-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.intro-dir-list li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.intro-dir-list .dir-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .05rem; }
.intro-dir-list strong {
  display: block;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .15rem;
}
.intro-dir-list div { font-size: .92rem; color: rgba(255,255,255,.78); line-height: 1.5; }

/* Mapa card dentro de intro */
.intro-img-col { position: relative; }
.intro-img-col[style*="display:none"] { display: none !important; }

/* Cuando no hay columna derecha, el texto ocupa todo el ancho */
.intro-inner:has(.intro-img-col[style*="display:none"]) {
  grid-template-columns: 1fr;
  max-width: 720px;
}

/* Logo columna derecha en intro */
.intro-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-logo-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,.3)) drop-shadow(0 0 40px rgba(0,232,122,.25));
  animation: logoFloat 4s ease-in-out infinite, logoGlow 6s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0)    rotate(-1deg) scale(1);    }
  30%       { transform: translateY(-14px) rotate(1deg)  scale(1.03); }
  60%       { transform: translateY(-8px)  rotate(-0.5deg) scale(1.01); }
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 16px 48px rgba(0,0,0,.3)) drop-shadow(0 0 30px rgba(0,232,122,.2)); }
  50%       { filter: drop-shadow(0 20px 56px rgba(0,0,0,.35)) drop-shadow(0 0 60px rgba(0,212,255,.45)); }
}

.intro-map-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  background: var(--white);
}
.intro-map-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.intro-map-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--white);
}
.intro-map-label span { font-size: 1.4rem; flex-shrink: 0; }
.intro-map-label strong { display: block; font-size: .95rem; font-weight: 700; color: var(--dark); }
.intro-map-label small { display: block; font-size: .8rem; color: var(--mid); margin-top: .1rem; }

/* ---------- MAP SECTION (standalone) ---------- */
.map-section {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.map-section iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.map-float-card {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 1.1rem 1.6rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  white-space: nowrap;
  z-index: 10;
}
.map-float-icon { font-size: 1.5rem; flex-shrink: 0; }
.map-float-info strong { display: block; font-size: .95rem; font-weight: 700; color: var(--dark); }
.map-float-info small  { display: block; font-size: .78rem; color: var(--mid); margin-top: .1rem; }
.map-float-btn {
  padding: .55rem 1.2rem !important;
  font-size: .85rem !important;
  flex-shrink: 0;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-tag--light {
  color: var(--teal-elec);
  background: rgba(0,212,255,.15);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: .8rem;
}
.section-title--light { color: var(--white); }
.section-desc {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ---------- CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card--teal  { background: var(--teal-light);  border-color: rgba(0,212,255,.2); }
.card--green { background: var(--green-light); border-color: rgba(0,232,122,.2); }
.card--gold  { background: var(--gold-light);  border-color: rgba(200,140,32,.15); }
.card-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: .6rem;
  color: var(--dark);
}
.card p { font-size: .95rem; color: var(--mid); line-height: 1.6; }

/* ---------- INFO CARDS (New Design) ---------- */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  overflow: visible;   /* permite que scale() en hover no se recorte */
  padding: 1rem 0.5rem; /* espacio para que el scale tenga room visual */
}
.info-card {
  padding: 2rem 1.8rem 2.2rem;
  border-radius: var(--radius);
  transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s cubic-bezier(.4,0,.2,1), border-color .28s ease;
  border: 1px solid transparent;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 56px rgba(0,0,0,.13);
}
.info-card--teal  { border-color: rgba(0,212,255,.15); }
.info-card--green { border-color: rgba(0,232,122,.15); }
.info-card--gold  { border-color: rgba(200,140,32,.1); }

.info-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2);
  padding: .5rem 1rem;
  border-radius: 50px;
  width: fit-content;
}
.info-card--teal .info-card-badge {
  background: rgba(0,212,255,.08);
  border-color: rgba(0,212,255,.2);
}
.info-card--green .info-card-badge {
  background: rgba(0,232,122,.08);
  border-color: rgba(0,232,122,.2);
}
.info-card--gold .info-card-badge {
  background: rgba(200,140,32,.08);
  border-color: rgba(200,140,32,.2);
}

.info-card-badge-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.info-card-badge-text {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--dark);
}

.info-card-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin: 0;
}

.info-card-desc {
  font-size: .95rem;
  color: var(--mid);
  line-height: 1.65;
  margin: 0;
}

/* ---------- CAROUSEL ---------- */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 3rem;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 500px;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--teal-elec);
  border-color: var(--teal-elec);
  color: var(--dark);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn--prev {
  left: 1.5rem;
}

.carousel-btn--next {
  right: 1.5rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: 2rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-indicator.active {
  background: var(--teal-dark);
  width: 32px;
  border-radius: 5px;
}

.carousel-indicator:hover {
  background: rgba(0,0,0,.35);
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}
.gallery-item--large,
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,212,255,.65), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.lightbox.active { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10000;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--teal-elec); color: var(--dark); }
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, #00C8F0, #00D4FF, #00E87A);
  padding: 100px 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-shape-1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.cta-shape-2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 1rem;
}
.cta-inner p {
  font-size: 1.1rem;
  color: rgba(0,0,0,.7);
  margin-bottom: 2.5rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #525252;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 260px;
  gap: 2.5rem;
  padding: 56px 0 40px;
  align-items: start;
}
.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
/* Wrapper footer logo */
.footer-logo-wrap {
  width: 220px;
  height: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.footer-logo-img {
  width: auto;
  height: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
  flex-shrink: 0;
  margin-left: -14px;
}
.footer-social {
  display: flex;
  gap: .7rem;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: var(--teal-elec); color: var(--dark); border-color: var(--teal-elec); }

.footer-col-title {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  font-weight: 400;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-elec); }

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.footer-contact-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.footer-contact-icon { font-size: 1.1rem; margin-top: .1rem; flex-shrink: 0; }
.footer-contact-list small {
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-elec);
  font-weight: 700;
  margin-bottom: .2rem;
}
.footer-contact-list span {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  line-height: 1.5;
}

.footer-col--map iframe {
  border-radius: var(--radius-sm);
  filter: grayscale(.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  color: rgba(255,255,255,.35);
  font-size: .82rem;
}
.footer-url-tag {
  color: var(--teal-elec);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.25);
  font-size: .75rem;
  letter-spacing: .03em;
}
.visit-counter svg { opacity: .5; flex-shrink: 0; }

/* ---------- DIRECTIONS SECTION (Cómo llegar) ---------- */
.directions-section {
  background: var(--white);
}
.directions-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.directions-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.dir-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--teal-light);
  border: 1px solid rgba(0,212,255,.18);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: var(--transition);
}
.dir-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.dir-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}
.dir-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .35rem;
}
.dir-card-body p {
  font-size: .92rem;
  color: var(--mid);
  line-height: 1.55;
}
.dir-maps-btn {
  margin-top: .4rem;
  align-self: flex-start;
}
.directions-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
  background: var(--dark);
}
.directions-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  min-height: 420px;
}

/* ---------- PLANO SECTION ---------- */
.section--light-gray {
  background: #F4F7F8;
}
.plano-section .section-header {
  margin-bottom: 2.5rem;
}

/* Viewer container */
.plano-viewer {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  height: 580px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #E8EDF0;
  box-shadow: var(--shadow-lg);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.plano-viewer.dragging { cursor: grabbing; }
.plano-viewer.is-fullscreen {
  position: fixed;
  inset: 0;
  max-width: none;
  height: 100dvh;
  border-radius: 0;
  z-index: 9998;
}

/* Canvas (la imagen se transforma aquí) */
.plano-canvas {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  transform-origin: 0 0;
}
.plano-canvas img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  pointer-events: none;
  border-radius: 4px;
}

/* Controles flotantes */
.plano-controls {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: .5rem .4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  z-index: 10;
}
.plano-ctrl-btn {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: background var(--transition), color var(--transition);
}
.plano-ctrl-btn:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.plano-zoom-level {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  color: var(--mid);
  text-align: center;
  min-width: 36px;
  letter-spacing: .02em;
}
.plano-ctrl-sep {
  width: 24px;
  height: 1px;
  background: rgba(0,0,0,.1);
  margin: .1rem 0;
}

/* Hint */
.plano-hint {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 50px;
  pointer-events: none;
  z-index: 10;
  transition: opacity .5s ease;
  white-space: nowrap;
}
.plano-hint.hidden { opacity: 0; }

/* Responsive */
@media (max-width: 768px) {
  .plano-viewer { height: 420px; }
}
@media (max-width: 480px) {
  .plano-viewer { height: 320px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--map { grid-column: span 2; }
}

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 2; }
  .intro-inner { grid-template-columns: 1fr; }
  .intro-logo-col { display: none; }
  .intro-map-img { height: 280px; }
  .carousel-track { height: 400px; }
  .directions-grid { grid-template-columns: 1fr; }
  .directions-map { min-height: 340px; }
  .directions-map iframe { min-height: 340px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .intro-section { padding: 60px 0; }

  /* Hero mobile — proporción 16:9 horizontal, sin barras negras */
  .hero {
    min-height: unset;
    height: 56.25vw; /* 16:9 */
    max-height: 100svh;
  }
  .hero-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right var(--transition);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.2rem; color: var(--dark) !important; }

  .nav-logo-wrap { width: 240px; height: 48px; }
  .nav-logo-img { height: 165px; margin-left: -8px; }

  .cards-grid { grid-template-columns: 1fr; }
  .info-cards-grid { grid-template-columns: 1fr; }

  .carousel-track { height: 300px; }
  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
  .carousel-btn--prev { left: 0.5rem; }
  .carousel-btn--next { right: 0.5rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }

  .map-section { height: 380px; }
  .map-float-card {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    white-space: normal;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
  }

  .directions-map { min-height: 280px; }
  .directions-map iframe { min-height: 280px; }
  .dir-maps-btn { width: 100%; justify-content: center; }

  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 40px 0 24px; }
  .footer-col--map { display: none; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .map-section { height: 300px; }
  .map-float-card { padding: .8rem 1rem; gap: .6rem; }

  .intro-badges { flex-direction: column; }
  .intro-cta-group { flex-direction: column; }
  
  .carousel-track { height: 240px; }
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide,
  .gallery-item--tall { grid-column: span 1; grid-row: span 1; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Las info-cards tienen su propio hover transform — override del reveal */
.info-card.reveal.visible {
  transform: translateY(0);
  transition: opacity .7s ease, transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s cubic-bezier(.4,0,.2,1);
}
.info-card.reveal.visible:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,.13);
}

/* ============================================================
   CRONOGRAMA
============================================================ */
.cronograma-section {
  background: linear-gradient(135deg, #007A94 0%, #00C8F0 45%, #00E87A 100%);
  position: relative;
  overflow: hidden;
}
.cronograma-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 10% 20%, rgba(255,255,255,.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(255,255,255,.09) 0%, transparent 60%);
  pointer-events: none;
}
.crono-desc {
  color: rgba(255,255,255,.88) !important;
}

/* Grid de dos columnas (días) */
.cronograma-dias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.8rem;
}

/* Tarjeta de cada día */
.crono-dia {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* Encabezado del día */
.crono-dia-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255,255,255,.20);
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.crono-dia-num {
  background: rgba(255,255,255,.95);
  color: #007A94;
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: .35rem .95rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.crono-dia-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}
.crono-dia-fecha {
  color: rgba(255,255,255,.80);
  font-size: .82rem;
  font-weight: 500;
  margin: .2rem 0 0;
}

/* Lista de ítems */
.crono-items {
  padding: .6rem 0;
}
.crono-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .2s ease;
}
.crono-item:last-child { border-bottom: none; }
.crono-item:hover {
  background: rgba(255,255,255,.10);
}

/* Ítem destacado (show nocturno) */
.crono-item--highlight {
  background: rgba(255,255,255,.14);
  border-bottom: none !important;
}
.crono-item--highlight:hover {
  background: rgba(255,255,255,.22);
}
.crono-item--highlight .crono-hora {
  color: var(--white);
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
}
.crono-item--highlight strong {
  font-size: 1rem;
}

.crono-hora {
  flex-shrink: 0;
  min-width: 54px;
  text-align: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.30);
  color: rgba(255,255,255,.95);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 8px;
  padding: .35rem .3rem;
  margin-top: .1rem;
}

.crono-content {
  display: flex;
  align-items: flex-start;
  flex: 1;
}
.crono-content strong {
  display: block;
  color: var(--white);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
}
.crono-content p {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  line-height: 1.4;
  margin: .2rem 0 0;
}

/* Nota al pie */
.crono-nota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 2rem;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  text-align: center;
}
.crono-nota svg { flex-shrink: 0; opacity: .8; }
.crono-nota a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crono-nota a:hover { opacity: .85; }

/* Responsive */
@media (max-width: 900px) {
  .cronograma-dias {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 480px) {
  .crono-dia-header { padding: 1rem 1.1rem; }
  .crono-item       { padding: .75rem 1.1rem; gap: .65rem; }
  .crono-hora       { min-width: 48px; font-size: .72rem; }
  .crono-content strong { font-size: .88rem; }
}

/* ============================================================
   ORGANIZA
============================================================ */
.organiza-section {
  background: var(--white);
  padding: 72px 0;
}
.organiza-inner .section-header {
  margin-bottom: 2.2rem;
}
.organiza-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.organiza-img {
  max-width: 680px;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .organiza-img { max-width: 100%; }
}
