/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
  /* Colors */
  --clr-primary: #cd372f; /* Rojo solicitado */
  --clr-primary-dark: #a12921;
  --clr-accent: #f2cf13; /* Amarillo solicitado */

  --clr-bg-light: #ebe6da; /* Fondo beige solicitado */
  --clr-surface: #ffffff; /* Tarjetas */

  --clr-text-main: #363533; /* Gris oscuro solicitado */
  --clr-text-muted: #64748b;
  --clr-text-light: #f8fafc;

  /* Typography */
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;

  /* Shadows */
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container-width: 1200px;
  --spacing-section: 6rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--clr-text-main);
  background-color: var(--clr-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: normal;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--clr-text-main);
}

/* ==========================================================================
   Page Hero (Parallax para páginas internas)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 80px;
  background-image: url("../assets/images/hero.png");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1rem;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    text-shadow 0.4s ease;
}

.page-hero h1:hover {
  transform: scale(1.02);
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.page-hero .badge {
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: default;
}

.page-hero .badge:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-hero .btn {
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease,
    background-color 0.3s ease;
}

.page-hero .btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 50px; /* Redondeado tipo píldora para aspecto más moderno */
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.btn.sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--clr-primary),
    var(--clr-primary-dark)
  ); /* Gradiente sutil */
  color: var(--clr-text-light);
  box-shadow: 0 4px 15px rgba(205, 55, 47, 0.25); /* Sombra suave para dar volumen */
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 55, 47, 0.4);
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--clr-text-light);
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--clr-text-main);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.btn-outline:hover {
  background-color: var(--clr-primary);
  color: white;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.badge-dark {
  background-color: rgba(54, 53, 51, 0.05); /* clr-text-main alpha */
  color: var(--clr-primary);
  border-color: rgba(205, 55, 47, 0.2); /* clr-primary alpha */
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
  content: url("../assets/images/logo_rojo.png");
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.navbar.scrolled .nav-link {
  color: var(--clr-text-muted);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--clr-text-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--clr-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  position: absolute;
  left: 0;
  transition: var(--transition-fast);
}

.navbar.scrolled .mobile-menu-btn span {
  background-color: var(--clr-text-main);
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}
.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.mobile-menu-btn span:nth-child(3) {
  bottom: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-pan-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/interior-360.jpg');
  background-size: 250% auto;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  animation: heroPan 40s ease-in-out infinite alternate;
  will-change: background-position;
}

@keyframes heroPan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pan-bg {
    animation: none;
    background-position: 40% 50%;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding-top: 4rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: white;
}

.hero-desc {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.scroll-indicator {
  position: fixed;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none; /* Let clicks pass through if needed, though usually just visual */
}

/* Class toggled by JS to hide it when scrolling down */
.scroll-indicator.hidden-scroll {
  opacity: 0;
  transform: translate(-50%, 20px);
}

.mouse {
  width: 30px;
  height: 48px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: white;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 18px;
    opacity: 0;
  }
}

/* ==========================================================================
   Quick Info Section
   ========================================================================== */
.quick-info {
  position: relative;
  margin-top: -4rem; /* Overlap hero */
  z-index: 10;
  padding-bottom: 4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  position: relative;
  background: #fffdf9;
  padding: 3rem 2.5rem 2.5rem;
  border-radius: 2px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Marco doble victoriano: borde interior cobre → gap blanco → borde exterior bronce */
  box-shadow:
    0 0 0 2px #c09a3e,
    0 0 0 9px #fffdf9,
    0 0 0 11px #8b6d1f,
    0 20px 50px rgba(100, 75, 10, 0.18);
}

.info-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 2px #d4af50,
    0 0 0 9px #fffdf9,
    0 0 0 11px #a07830,
    0 28px 60px rgba(100, 75, 10, 0.25);
}

/* Marco interior con esquinas en L estilo victoriano */
.info-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(192, 154, 62, 0.4);
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(#c09a3e, #c09a3e) top    left  / 20px 2px no-repeat,
    linear-gradient(#c09a3e, #c09a3e) top    left  / 2px 20px no-repeat,
    linear-gradient(#c09a3e, #c09a3e) top    right / 20px 2px no-repeat,
    linear-gradient(#c09a3e, #c09a3e) top    right / 2px 20px no-repeat,
    linear-gradient(#c09a3e, #c09a3e) bottom left  / 20px 2px no-repeat,
    linear-gradient(#c09a3e, #c09a3e) bottom left  / 2px 20px no-repeat,
    linear-gradient(#c09a3e, #c09a3e) bottom right / 20px 2px no-repeat,
    linear-gradient(#c09a3e, #c09a3e) bottom right / 2px 20px no-repeat;
}

/* Diamante ornamental centrado arriba (entre el marco exterior e interior) */
.info-card::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  font-size: 9px;
  color: #c09a3e;
  line-height: 1;
  pointer-events: none;
}

.info-card .icon,
.ubi-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--clr-primary);
  transition:
    transform 0.4s ease,
    text-shadow 0.4s ease;
}

.info-card:hover .icon {
  transform: rotate(10deg) scale(1.15);
  text-shadow: 0 0 15px rgba(164, 107, 90, 0.4);
}

.ubi-icon {
  font-size: 1.5rem;
  background: rgba(164, 107, 90, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.ubicacion-lista li:hover .ubi-icon {
  transform: rotate(-10deg) scale(1.1);
  background: var(--clr-primary);
  color: white;
  box-shadow: 0 0 15px rgba(164, 107, 90, 0.4);
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.8;
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.link-arrow:hover {
  color: var(--clr-primary-dark);
  transform: translateX(5px);
}

/* ==========================================================================
   Locales Section (Grid)
   ========================================================================== */
.section {
  padding: var(--spacing-section) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--clr-text-muted);
  font-size: 1.125rem;
}

.locales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.local-card {
  background: var(--clr-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.local-card:hover {
  box-shadow: 0 20px 40px rgba(164, 107, 90, 0.15);
  transform: translateY(-10px) scale(1.02);
}

.card-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: var(--clr-accent);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #94a3b8;
  font-weight: 500;
}

.local-card:hover .card-img {
  transform: scale(1.08);
}

.card-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-transform: uppercase;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-excerpt {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.center-action {
  text-align: center;
  margin-top: 3rem;
}

/* ==========================================================================
   Secciones Nuevas (Historia, Novedades, Ubicación)
   ========================================================================== */
.bg-light-alt {
  background-color: #f1f5f9;
}

/* Historia */
.historia-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.historia-content p {
  color: var(--clr-text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.historia-image-wrapper {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

.historia-image-inner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.historia-image-inner:hover {
  transform: translateY(-10px) rotate(1deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(164, 107, 90, 0.2);
}

.historia-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.placeholder-img-bg {
  background: var(--clr-accent);
  display: block;
}

.historia-badge {
  position: absolute;
  bottom: 0px;
  left: 0px;
  background: var(--clr-primary);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.historia-badge .year {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

.historia-badge .text {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

/* Novedades */
.novedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.novedad-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  gap: 1.5rem;
}

.novedad-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(164, 107, 90, 0.15);
}

.novedad-date {
  text-align: center;
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  min-width: 60px;
}

.novedad-date span {
  display: block;
  font-size: 2rem;
  font-family: var(--font-serif);
  color: var(--clr-text-main);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.novedad-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.novedad-content p {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* Ubicación */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.ubicacion-desc {
  color: var(--clr-text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.ubicacion-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ubicacion-lista li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ubi-icon {
  font-size: 1.5rem;
  background: rgba(164, 107, 90, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--clr-text-main);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-col .logo {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.brand-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 600;
}

.social-links a:hover .social-icon {
  background: var(--clr-primary);
  transform: translateY(-3px);
}

.footer-links-col h4,
.footer-contact-col h4,
.footer-news-col h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links-col ul,
.footer-contact-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a,
.footer-contact-col li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-col .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.footer-contact-col .footer-icon {
  flex: 0 0 auto;
  width: 1.25em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-col .footer-no-wrap {
  white-space: nowrap;
}

/* ==========================================================================
   Photo Lightbox
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10000;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  width: 100%;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.02);
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(205, 55, 47, 0.8);
  border-color: rgba(205, 55, 47, 0.9);
}

.footer-links-col a:hover {
  color: var(--clr-primary);
  padding-left: 4px;
}

.footer-news-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: var(--font-sans);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--clr-primary);
}

.btn-icon {
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: white;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in.active {
  opacity: 1;
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}

/* ==========================================================================
   Music Player Widget
   ========================================================================== */
.music-player-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 15px;
}

.music-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(164, 107, 90, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.music-btn:hover {
  transform: scale(1.1);
  background: var(--clr-primary-dark);
}

.music-btn-small {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--clr-surface);
  color: var(--clr-text-main);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 1;
}

.music-btn-small:hover {
  transform: scale(1.1);
  background: var(--clr-background);
  color: var(--clr-primary);
}

.music-btn.playing {
  animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
  0% {
    box-shadow: 0 0 0 0 rgba(164, 107, 90, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(164, 107, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(164, 107, 90, 0);
  }
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.music-waves.active {
  opacity: 1;
  visibility: visible;
}

.music-waves span {
  display: block;
  width: 5px;
  height: 100%;
  background: linear-gradient(to top, #007bff, #74ebd5);
  border-radius: 3px;
  animation: wave 1.2s ease-in-out infinite;
}

.music-waves span:nth-child(2) {
  animation-delay: 0.2s;
}

.music-waves span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 100%;
  }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--clr-surface);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Para navbar con fondo oscuro cuando está abierto */
  .navbar.scrolled .nav-links {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }

  .nav-link {
    color: var(--clr-text-main);
    font-size: 1.125rem;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--clr-primary);
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1000;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .quick-info {
    margin-top: -2rem;
  }

  .historia-container,
  .ubicacion-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .locales-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .historia-image-wrapper {
    padding-left: 1rem;
    padding-bottom: 1rem;
    max-width: 80%;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links-col ul,
  .footer-contact-col ul {
    align-items: center;
  }

  /* Center contact info items on mobile */
  .footer-contact-col li {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .locales-grid {
    grid-template-columns: 1fr;
  }

  .music-player-widget {
    bottom: 20px;
    left: 20px;
  }
}
