/* ===================================================
   MEGAFRESH - Estilos principales del sitio público
   =================================================== */

/* Variables de color */
:root {
  --rojo: #c8102e;
  --rojo-oscuro: #a50d24;
  --rojo-claro: #e8374f;
  --verde: #4caf50;
  --verde-lima: #8bc34a;
  --verde-oscuro: #388e3c;
  --amarillo: #ffc107;
  --amarillo-oscuro: #f9a825;
  --gris-oscuro: #2d2d2d;
  --gris: #666;
  --gris-claro: #f5f5f5;
  --fondo-cat: #eddac9;
  --blanco: #ffffff;
  --negro: #111;
  --sombra: 0 4px 20px rgba(0,0,0,0.12);
  --sombra-hover: 0 8px 30px rgba(0,0,0,0.2);
  --border-radius: 16px;
  --transicion: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--gris-oscuro);
  background: var(--blanco);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 20px 20px;
  background: linear-gradient(to bottom, white 55%, rgba(255,255,255,0) 100%);
}
.navbar::after {
  content: none;
}
.navbar-inner {
  background: var(--rojo);
  border-radius: 50px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}
.navbar-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-links a {
  color: var(--blanco);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 24px;
  transition: background var(--transicion);
  white-space: nowrap;
}
.navbar-links a:hover,
.navbar-links a.active {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
}
.navbar-links a.active {
  border: 2px solid var(--blanco);
}
.navbar-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-icon-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background var(--transicion);
  text-decoration: none;
}
.navbar-icon-btn:hover { background: rgba(255,255,255,0.3); }
.navbar-icon-btn svg { width: 22px; height: 22px; }
.navbar-hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.4rem;
  transition: transform 0.3s ease;
}
.navbar-hamburger:active {
  transform: scale(0.9);
}
.navbar-hamburger svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}
.navbar-hamburger.active svg {
  transform: rotate(90deg);
}

/* Mobile Nav */
.navbar-mobile {
  display: flex;
  background: var(--rojo-oscuro);
  padding: 0 2rem;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0 0 22px 22px;
  margin: -6px 20px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease-in-out,
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-mobile.open {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  padding: 1rem 2rem;
}
.navbar-mobile a {
  color: white;
  font-size: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-20px);
  transition: color 0.2s ease, padding-left 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
}
.navbar-mobile.open a {
  opacity: 1;
  transform: translateX(0);
}
.navbar-mobile.open a:nth-child(1) { transition-delay: 0.05s; }
.navbar-mobile.open a:nth-child(2) { transition-delay: 0.1s; }
.navbar-mobile.open a:nth-child(3) { transition-delay: 0.15s; }
.navbar-mobile.open a:nth-child(4) { transition-delay: 0.2s; }
.navbar-mobile.open a:nth-child(5) { transition-delay: 0.25s; }
.navbar-mobile a:hover {
  color: var(--verde-lima);
  padding-left: 0.5rem;
}

/* ===================================================
   HERO BANNER
   =================================================== */
.hero {
  max-width: 1280px;
  width: calc(100% - 40px);
  margin: 1.75rem auto 0.75rem;
  border-radius: 22px;
  overflow: hidden;
  line-height: 0;
  padding: 0;
}
.hero-img-desktop {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}
.hero-img-mobile {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 22px;
}
/* ===================================================
   HERO SLIDER
   =================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  line-height: 0;
}

/* Cada slide */
.hero-slide {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* El slide activo ocupa espacio (define altura del contenedor) */
.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide.active img {
  height: auto;
}

/* ---- Transición: FADE (default) ---- */
.hero-slide[data-transicion="fade"] { opacity: 0; transform: none; }
.hero-slide[data-transicion="fade"].active { opacity: 1; transform: none; }

/* ---- Transición: SLIDE ---- */
.hero-slide[data-transicion="slide"] { opacity: 0; transform: translateX(60px); }
.hero-slide[data-transicion="slide"].slide-from-left { transform: translateX(-60px); }
.hero-slide[data-transicion="slide"].active { opacity: 1; transform: translateX(0); }

/* ---- Transición: ZOOM ---- */
.hero-slide[data-transicion="zoom"] { opacity: 0; transform: scale(1.07); }
.hero-slide[data-transicion="zoom"].active { opacity: 1; transform: scale(1); }

/* Flechas */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transicion);
}
.hero-arrow:hover { background: rgba(255,255,255,0.45); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background var(--transicion), transform var(--transicion);
  padding: 0;
}
.hero-dot.active {
  background: white;
  transform: scale(1.3);
}

/* Fallback imágenes estáticas */
.hero-img-desktop { display: block; width: 100%; height: auto; border-radius: 22px; }
.hero-img-mobile  { display: none;  width: 100%; height: auto; border-radius: 22px; }

/* ===================================================
   SECCIONES GENERALES
   =================================================== */
section { 
  padding: 4rem 0;
  scroll-margin-top: 100px;
}
#categorias { padding-top: 2rem; }
.container {
  max-width: 1280px;
  width: calc(100% - 40px);
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  width: 100%;
}
.section-title .label {
  font-family: 'Dancing Script', cursive;
  font-size: 2.6rem;
  font-weight: 700;
  font-style: normal;
  color: var(--gris-oscuro);
  display: inline-block;
  background: white;
  border: 3px solid var(--rojo);
  border-radius: 50px;
  padding: 0.34rem 1.9rem 0.42rem;
  transform: rotate(-4deg);
  position: relative;
  z-index: 2;
  margin-bottom: -0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  letter-spacing: 0.02em;
}
.section-title h2 {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--rojo);
  line-height: 1;
  display: block;
  position: relative;
  z-index: 1;
}
.section-title.blanco h2 { color: white; }
.section-title.blanco .label { color: var(--gris-oscuro); }
.section-title .label-abajo {
  margin-bottom: 0;
  margin-top: -0.5rem;
  font-size: 3.2rem;
  padding: 0.4rem 2.5rem 0.5rem;
}

/* Título en banner rojo */
.banner-titulo {
  background: var(--rojo);
  border-radius: 40px;
  padding: 1.25rem 3rem;
  margin: 0 auto 3rem;
  max-width: 700px;
  text-align: center;
  color: white;
}
.banner-titulo-full {
  max-width: 1280px;
  margin-bottom: 0;
  padding: 0.6rem 3rem;
}
.shopper-titulo {
  margin-bottom: 3rem;
}
.shopper-titulo .banner-titulo-full h2 {
  color: white;
  font-size: 2.8rem;
  letter-spacing: 2px;
}
.label-shopper {
  background: var(--rojo) !important;
  color: white !important;
  border: 3px solid white !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-top: -1.2rem !important;
  font-size: 3rem !important;
  line-height: 1.05;
}
.banner-titulo h2 {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}
.banner-titulo .cursiva {
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
}

/* ===================================================
   CATEGORÍAS
   =================================================== */
#categorias { background: white; }
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.categoria-card {
  background: var(--fondo-cat);
  border-radius: var(--border-radius);
  padding: 1.25rem 0.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transicion);
  box-shadow: var(--sombra);
}
.categoria-card:hover {
  background: var(--rojo);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}
.categoria-card:hover span {
  color: white;
}
.categoria-card img {
  width: 90px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}
.categoria-card span {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  line-height: 1.3;
}

/* ===================================================
   CARDS DOBLES (SHOPPER + TIENDAS / VIDEOS + EVENTOS)
   =================================================== */
.cards-dobles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 0 3rem;
}
.card-promo {
  border-radius: var(--border-radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-promo-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 50%;
  object-fit: cover;
  object-position: center;
}
.card-promo-contenido { position: relative; z-index: 2; max-width: 55%; }
.card-promo h3 {
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
.card-promo p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.card-promo p strong { color: white; font-weight: 700; }
.card-promo .btn-ver-mas {
  display: inline-block;
  background: white;
  color: var(--gris-oscuro);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
  transition: all var(--transicion);
  border: none;
  cursor: pointer;
}
.card-promo .btn-ver-mas:hover {
  background: var(--gris-oscuro);
  color: white;
}
.card-shopper { background: linear-gradient(135deg, #FFD100 0%, #F5C000 100%); }
.card-tiendas { background: linear-gradient(135deg, #8ABA1E 0%, #6FA018 100%); }
.card-tiendas .card-promo-img { width: 80%; }
.card-tiendas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #7DC216 38%, rgba(125,194,22,0.85) 50%, rgba(125,194,22,0.4) 65%, rgba(125,194,22,0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Desktop: Shopper+Eventos anchos, Tiendas+Videos angostos */
@media (min-width: 768px) {
  .cards-dobles                  { grid-template-columns: 3fr 2fr; }
  .cards-dobles + .cards-dobles  { grid-template-columns: 2fr 3fr; }
}
.card-videos { background: linear-gradient(135deg, #444 0%, #666 100%); }
.card-videos .card-promo-img { width: 110%; object-position: center center; transform: translateX(20%); }
.card-videos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #555 38%, rgba(85,85,85,0.85) 50%, rgba(85,85,85,0.4) 65%, rgba(85,85,85,0) 100%);
  z-index: 1;
  pointer-events: none;
}
.card-eventos {
  background: #CC0000;
  padding: 0;
  min-height: 240px;
}
/* Franja blanca diagonal */
.card-eventos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  clip-path: polygon(55% 0, 58% 0, 70% 100%, 67% 100%);
  z-index: 2;
  pointer-events: none;
}
/* Panel gris */
.card-eventos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #6e6e6e;
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 70% 100%);
  z-index: 1;
  pointer-events: none;
}
/* Contenido izquierdo (rojo) */
.card-eventos-izq {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 60%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem 0.5rem 1.8rem 2.5rem;
}
.card-eventos-top { flex: 1; max-width: 70%; }
.card-eventos-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}
.eventos-logo-golf {
  height: 85px;
  object-fit: contain;
  margin-left: auto;
}
/* Contenido derecho (gris) */
.card-eventos-der {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 43%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem 1.5rem 5rem;
}
.eventos-logo-expo {
  height: 85px;
  object-fit: contain;
}
.card-eventos .btn-inscribete {
  background: white;
  color: var(--rojo);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: all var(--transicion);
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}
.card-eventos-der .btn-inscribete {
  color: #6e6e6e;
}
.card-eventos .btn-inscribete:hover { background: var(--rojo-oscuro); color: white; }

/* ===================================================
   SECCIÓN: TU SUPERMERCADO DE COMUNIDAD
   =================================================== */
#comunidad {
  background: white;
  padding: 4rem 0;
}
.comunidad-titulo {
  text-align: center;
  margin-bottom: 2rem;
}
.comunidad-titulo h2 {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--rojo);
  line-height: 1.2;
}
.comunidad-titulo .cursiva {
  display: inline-block;
  background: white;
  border: 2px solid var(--rojo);
  border-radius: 30px;
  padding: 0.2rem 1.2rem;
  font-style: italic;
  color: var(--rojo);
  font-size: 1.4rem;
  margin-top: 0.25rem;
}
.comunidad-desc {
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.75;
  color: #555555;
}
.comunidad-desc strong { color: #555555; }
.comunidad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature-card {
  background: var(--rojo);
  border-radius: 16px;
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
}
.feature-card svg {
  width: 50px; height: 50px;
  margin: 0 auto 0.3rem;
  opacity: 0.95;
}
.feature-card h4 {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.feature-card p {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-top: 0;
  line-height: 1.3;
}
.feature-card .numero {
  font-size: 1.4rem;
  font-weight: 900;
}
.comunidad-texto h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--negro);
}
.comunidad-texto p {
  font-size: 1.15rem;
  line-height: 1.45;
  color: #555555;
  margin-bottom: 1.4rem;
}
.comunidad-texto strong { color: #555555; font-weight: 700; }
.comunidad-logo img {
  max-width: 380px;
  width: 100%;
  margin: 1.5rem auto 0;
  display: block;
}

/* ===================================================
   SECCIÓN: SHOPPER — VISOR REVISTA 3D
   =================================================== */
#shopper {
  background: white;
  padding: 0 0 4rem;
  position: relative;
  overflow: hidden;
}
#shopper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/logo.png') center/contain no-repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
#shopper > * {
  position: relative;
  z-index: 1;
}

.revista-viewer {
  max-width: 680px;
  width: calc(100% - 40px);
  margin: 0 auto 1.5rem;
}

.revista-track-wrap {
  position: relative;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  cursor: grab;
  user-select: none;
}
.revista-track-wrap.rv-dragging { cursor: grabbing; }

.revista-track {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  perspective: 900px;
}

.revista-pagina {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.revista-pagina.rv-activa {
  position: relative;
  opacity: 1;
  pointer-events: all;
  z-index: 2;
}

.revista-pagina.rv-under {
  position: absolute;
  opacity: 1;
  z-index: 1;
}

.revista-pagina img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.rv-fold-fwd, .rv-fold-bck {
  z-index: 3;
  will-change: transform;
}
.rv-fold-fwd::after, .rv-fold-bck::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--fold-shadow, 0);
  transition: opacity 0.08s linear;
}
.rv-fold-fwd::after {
  background: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
}
.rv-fold-bck::after {
  background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
}

/* Layout: prev lateral | flipbook | next lateral */
.revista-flipbook-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Barra de contador bajo el visor */
.revista-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

/* Botones laterales (izq/der del libro) */
.revista-btn-lateral {
  background: white;
  border: 2px solid var(--rojo);
  color: var(--rojo);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transicion);
  flex-shrink: 0;
}
.revista-btn-lateral:hover:not(:disabled) { background: var(--rojo); color: white; }
.revista-btn-lateral:disabled { opacity: 0.25; cursor: not-allowed; border-color: #bbb; color: #bbb; }

/* Botón pantalla completa (esquina superior derecha del libro) */
.revista-btn {
  background: rgba(255,255,255,0.88);
  border: 2px solid var(--rojo);
  color: var(--rojo);
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transicion);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.revista-btn:hover { background: var(--rojo); color: white; }
.revista-btn:hover svg { stroke: white; }
.revista-btn-full {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  border-radius: 20px;
  width: auto;
  height: auto;
  padding: 5px 10px;
  gap: 5px;
  font-size: 0.76rem;
}
.revista-counter {
  font-size: 0.9rem;
  color: var(--gris);
  min-width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Modal pantalla completa */
.revista-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.revista-modal.open {
  opacity: 1;
  pointer-events: all;
}
.revista-modal-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);
}
.revista-modal-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
  user-select: none;
  -webkit-user-drag: none;
}
.revista-modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.revista-modal-close:hover { background: var(--rojo); }
.revista-modal-nav {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 3rem;
  line-height: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  margin: 0 10px;
}
.revista-modal-nav:hover { background: var(--rojo); }
.revista-modal-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 600px) {
  .revista-modal-img-wrap { max-width: 100vw; }
  .revista-modal-nav { width: 40px; height: 40px; font-size: 2rem; margin: 0 4px; }
}

.btn-descargar-shopper {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: white;
  color: var(--rojo);
  border: 2px solid var(--rojo);
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transicion);
  text-align: center;
}
.btn-descargar-shopper:hover { background: var(--rojo); color: white; }

/* ===================================================
   SECCIÓN: VIDEOS
   =================================================== */
#videos {
  background: white;
  padding: 0 0 4rem;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.video-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  cursor: pointer;
  transition: transform var(--transicion), box-shadow var(--transicion);
  position: relative;
  display: flex;
  flex-direction: column;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #222;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transicion);
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
}
.video-play svg {
  width: 56px; height: 56px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.video-caption {
  background: var(--rojo);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card.video-hidden { display: none; }
.btn-ver-mas-videos {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: var(--rojo);
  color: white;
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--transicion);
  text-align: center;
}
.btn-ver-mas-videos:hover { background: var(--rojo-oscuro); }

.videos-page-hero,
.videos-page {
  background: white;
}
.videos-page-hero {
  padding: 2rem 0 1rem;
}
.videos-page-shell {
  max-width: 1280px;
  width: calc(100% - 40px);
  margin: 0 auto;
}
.videos-page-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--gris);
  font-size: 1.05rem;
  line-height: 1.7;
}
.video-category-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 auto 2.5rem;
}
.video-category-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.video-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}
.video-category-card-media {
  aspect-ratio: 16/9;
  background: #f3f3f3;
  overflow: hidden;
}
.video-category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-category-card-body {
  padding: 1rem 1.1rem 1.15rem;
}
.video-category-card-body h3 {
  margin: 0 0 0.35rem;
  color: var(--rojo);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}
.video-category-card-body span {
  color: var(--gris);
  font-size: 0.9rem;
  font-weight: 600;
}
.video-category-section {
  margin-bottom: 3rem;
}
.video-category-header {
  margin-bottom: 1.4rem;
}
.video-category-header-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--sombra);
}
.video-category-header-media {
  min-height: 180px;
}
.video-category-header-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-category-header-copy {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-category-kicker {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.7rem;
  color: white;
  background: var(--rojo);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.video-category-header-copy h2 {
  margin: 0 0 0.35rem;
  color: var(--rojo);
  font-size: 2.1rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
}
.video-category-header-copy p {
  margin: 0;
  color: var(--gris);
  font-size: 1rem;
  font-weight: 600;
}
.video-category-grid {
  max-width: none;
  margin-bottom: 0;
}
.video-page-empty {
  background: white;
  border-radius: 22px;
  box-shadow: var(--sombra);
  padding: 3rem 2rem;
  text-align: center;
}
.video-page-empty h2 {
  margin: 0 0 0.6rem;
  color: var(--rojo);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}
.video-page-empty p {
  margin: 0;
  color: var(--gris);
  font-size: 1rem;
}

/* Modal de video */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: 80vw;
  max-width: 900px;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transicion);
}
.video-modal-close:hover { color: var(--rojo); }
.video-modal iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
}

/* ===================================================
   SECCIÓN: EVENTOS
   =================================================== */
#eventos {
  background: white;
  padding: 4rem 0;
}
.evento-bloque {
  margin: 0 0 4rem;
}
.evento-banner-full {
  width: 100%;
}
.evento-banner {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}
.evento-banner-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.evento-banner-placeholder .evento-logo-text {
  text-align: center;
  color: white;
}
.evento-banner-placeholder .evento-logo-text h2 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.evento-banner-placeholder .evento-logo-text h2 span {
  display: block;
  font-size: 4rem;
  color: #ccc;
}
.evento-banner-placeholder .evento-logo-text p {
  font-size: 1.5rem;
  font-style: italic;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.8);
}
.formulario-inscripcion {
  max-width: 900px;
  width: calc(100% - 40px);
  margin: 2rem auto 0;
  position: relative;
  padding-bottom: 1.5rem;
}
.formulario-inscripcion .form-titulo {
  text-align: center;
  position: relative;
  z-index: 2;
}
.formulario-inscripcion .form-titulo h3 {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--rojo);
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.2;
}
.formulario-inscripcion .form-titulo h3 span {
  background: white;
  padding: 0 0.5rem;
}
.formulario-inscripcion .form-titulo .cursiva {
  display: inline-block;
  font-family: 'Dancing Script', cursive;
  font-size: 1.85rem;
  font-weight: 700;
  font-style: normal;
  color: var(--gris-oscuro);
  background: white;
  border: 3px solid var(--rojo);
  border-radius: 50px;
  padding: 0.2rem 1.5rem 0.3rem;
  transform: rotate(-4deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  letter-spacing: 0.02em;
  margin-top: -0.2rem;
  position: relative;
  z-index: 3;
}
.form-caja {
  border: 2px solid #222;
  border-radius: var(--border-radius);
  padding: 7rem 2.5rem 0;
  margin-top: -4.2rem;
  background: white;
  position: relative;
  overflow: visible;
}
.form-submit {
  text-align: center;
  position: relative;
  z-index: 2;
  transform: translateY(50%);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.form-group label {
  display: inline-block;
  background: var(--rojo);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid #ccc;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transicion);
  font-family: inherit;
  color: var(--gris-oscuro);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--rojo); }
.form-group.radio-group {
  display: flex;
  flex-direction: column;
}
.radio-options {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  align-items: center;
}
.radio-options label {
  background: none;
  color: var(--gris-oscuro);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
}
.radio-options input[type="radio"] { width: auto; border: none; }
.form-submit button {
  background: var(--rojo);
  color: white;
  border: 6px solid white;
  padding: 0.75rem 3rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transicion);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 0px white;
}
.form-submit button:hover { background: var(--rojo-oscuro); }

/* ===================================================
   SECCIÓN: CONTACTO
   =================================================== */
#contacto {
  background: white;
  padding: 4rem 0;
}
.contacto-titulo {
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 0 auto 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32%;
  box-sizing: border-box;
}
.contacto-titulo h2 {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--rojo);
  letter-spacing: 1px;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
}
.contacto-titulo .cursiva {
  display: inline-block;
  font-family: 'Dancing Script', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  font-style: normal;
  color: var(--rojo);
  background: white;
  border: 3px solid var(--rojo);
  border-radius: 50px;
  padding: 0.3rem 2rem 0.4rem;
  transform: rotate(-4deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  letter-spacing: 0.02em;
  margin-top: -0.7rem;
  position: relative;
  z-index: 2;
}
.contacto-interior {
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  gap: 0;
  position: relative;
  border-radius: 20px;
  background: var(--rojo);
}
.contacto-imagen {
  flex: 0 0 45%;
  position: relative;
  background: var(--verde-lima);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  border-radius: 20px 50% 0 20px;
  overflow: visible;
}
.contacto-imagen img {
  position: relative;
  z-index: 2;
  width: 150%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  margin-right: -60px;
  margin-top: -200px;
}
.contacto-form-area {
  flex: 1;
  background: transparent;
  padding: 2.5rem 2.5rem 2rem 3.5rem;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
}
.contacto-form-area form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.contacto-form-area .form-group label {
  display: inline-block;
  background: white;
  color: var(--rojo);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}
.contacto-form-area input,
.contacto-form-area textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  padding: 0.6rem 0;
  font-size: 1.05rem;
  outline: none;
  color: white;
  transition: border-color var(--transicion);
  font-family: inherit;
}
.contacto-form-area input::placeholder,
.contacto-form-area textarea::placeholder { color: rgba(255,255,255,0.6); }
.contacto-form-area input:focus,
.contacto-form-area textarea:focus { border-bottom-color: white; }
.contacto-form-area textarea { resize: vertical; min-height: 80px; }
.contacto-form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.contacto-form-area .btn-enviar {
  background: white;
  color: var(--rojo);
  border: none;
  padding: 0.7rem 2.5rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transicion);
}
.contacto-form-area .btn-enviar:hover { background: var(--gris-oscuro); color: white; }
.contacto-social {
  display: flex;
  gap: 0.75rem;
}
.contacto-social a {
  background: white;
  color: var(--rojo);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transicion);
}
.contacto-social a:hover { background: var(--gris-claro); }
.contacto-social svg { width: 20px; height: 20px; }
.contacto-info {
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 1.5rem auto 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contacto-info span {
  font-size: 1.05rem;
  color: var(--gris);
  font-weight: 600;
}
.contacto-info span strong { color: var(--gris-oscuro); }
.contacto-info a {
  color: var(--gris);
  text-decoration: none;
  transition: color var(--transicion);
}
.contacto-info a:hover {
  color: var(--rojo);
  text-decoration: underline;
}

/* ===================================================
   SECCIÓN: CALENDARIO
   =================================================== */
#calendario {
  background: white;
  padding: 0;
  overflow-x: hidden;
}
.calendario-bloque {
  margin: 0 0 4rem;
  overflow-x: hidden;
}
.calendario-banner-full {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.calendario-banner {
  width: 100%;
  height: auto;
  display: block;
}
.calendario-action {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}
.btn-descargar-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rojo);
  color: white;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transicion);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-descargar-cal:hover { 
  background: var(--rojo-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===================================================
   SECCIÓN: TIENDAS
   =================================================== */
#tiendas-mapa {
  background: white;
  padding: 0 0 4rem;
}
.tiendas-grid {
  column-count: 3;
  column-gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.ciudad-bloque {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 2rem;
  display: inline-block;
  width: 100%;
}
.ciudad-bloque h3 {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--negro);
  border-bottom: 3px solid var(--negro);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.ciudad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ciudad-toggle {
  display: none; /* Oculto por defecto (desktop) */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--negro);
  transition: transform 0.3s ease;
}
.ciudad-toggle svg {
  width: 24px;
  height: 24px;
}
.ciudad-bloque.collapsed .ciudad-toggle svg {
  transform: rotate(-90deg);
}
.ciudad-content {
  /* En desktop siempre visible */
}
.tienda-item {
  margin-bottom: 1rem;
}
.tienda-item h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--negro);
  margin-bottom: 0.2rem;
}
.tienda-item p {
  font-size: 0.82rem;
  color: var(--gris);
  line-height: 1.5;
}
.tienda-item .tel {
  font-weight: 700;
  color: var(--negro);
}
.tienda-item .direccion-link {
  color: var(--gris);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}
.tienda-item .direccion-link:hover {
  color: #4285f4;
  border-bottom-color: #4285f4;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--rojo);
  color: white;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.footer-logo img {
  height: 60px;
  margin: 0 auto 1.25rem;
  filter: brightness(0) invert(1);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.footer-social a {
  background: rgba(255,255,255,0.2);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transicion);
}
.footer-social a:hover { background: rgba(255,255,255,0.35); }
.footer-social svg { width: 18px; height: 18px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: color var(--transicion);
}
.footer-links a:hover { color: white; }
footer p.copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-legal {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-legal-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-link:hover { color: rgba(255,255,255,0.9); }
.footer-legal-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* ===================================================
   ALERTS / FLASH
   =================================================== */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===================================================
   BOTÓN SCROLL TOP
   =================================================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--rojo);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--sombra);
  z-index: 999;
  transition: background var(--transicion);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--rojo-oscuro); }
.scroll-top svg { width: 22px; height: 22px; }

/* ===================================================
   MODAL APP PRÓXIMAMENTE
   =================================================== */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.app-modal.active {
  opacity: 1;
  visibility: visible;
}
.app-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.app-modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.app-modal.active .app-modal-content {
  transform: scale(1) translateY(0);
}
.app-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
}
.app-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
  transform: rotate(90deg);
}
.app-modal-close svg {
  width: 20px;
  height: 20px;
}
.app-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--rojo), #e91e63);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: modalIconFloat 3s ease-in-out infinite;
}
.app-modal-icon svg {
  width: 48px;
  height: 48px;
}
@keyframes modalIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.app-modal-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.app-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--negro);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.app-modal-text {
  color: var(--gris);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.app-modal-stores {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.app-store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #111827;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: default;
  opacity: 0.6;
}
.app-store-badge svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.app-store-badge div {
  text-align: left;
}
.app-store-badge small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
  margin-bottom: 0.15rem;
}
.app-store-badge strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .app-modal-content {
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
  }
  .app-modal-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
  }
  .app-modal-icon svg {
    width: 42px;
    height: 42px;
  }
  .app-modal-title {
    font-size: 1.5rem;
  }
  .app-modal-text {
    font-size: 0.95rem;
  }
  .app-modal-stores {
    flex-direction: column;
  }
  .app-store-badge {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1100px) {
  .categorias-grid { grid-template-columns: repeat(3, 1fr); }
  .tiendas-grid { column-count: 2; column-gap: 2rem; }
  .video-category-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .cards-dobles { grid-template-columns: 1fr; }
  .comunidad-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .contacto-imagen { display: none; }
  .video-category-header-card { grid-template-columns: 1fr; }
  .video-category-header-media { min-height: 220px; }
}

@media (max-width: 768px) {
  .navbar-links, .navbar-icons { display: none; }
  .navbar-hamburger { display: flex; }
  .navbar { padding: 10px 12px; }
  section { scroll-margin-top: 80px; }
  .hero { width: calc(100% - 40px); }
  .hero-img-desktop { display: none; }
  .hero-img-mobile { display: block; }
  .categorias-grid { grid-template-columns: repeat(2, 1fr); }
  .tiendas-grid { column-count: 1; }
  
  /* Acordeón de ciudades en móvil */
  .ciudad-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ciudad-bloque {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  .ciudad-bloque h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }
  .ciudad-header {
    cursor: pointer;
    padding: 0.5rem 0;
    user-select: none;
  }
  .ciudad-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 1rem;
  }
  .ciudad-bloque.collapsed .ciudad-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }
  
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .formulario-inscripcion { padding: 1.5rem; }
  .video-category-nav { grid-template-columns: 1fr; }
  .video-category-header-copy {
    padding: 1.25rem 1.2rem 1.35rem;
    text-align: center;
    align-items: center;
  }
  .video-category-header-copy h2 {
    font-size: 1.7rem;
  }
  .video-category-header-copy p {
    font-size: 0.92rem;
  }
  .banner-titulo-full {
    max-width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1.5rem;
  }
  .shopper-titulo .banner-titulo-full h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  .label-shopper {
    font-size: 2.2rem !important;
    margin-top: -0.4rem !important;
  }
  .btn-descargar-cal {
    width: auto;
    max-width: calc(100% - 2rem);
    min-height: 0;
    padding: 0.72rem 1.1rem;
    font-size: 0.74rem;
    border-radius: 25px;
    white-space: nowrap;
  }
  .calendario-action {
    width: 100%;
    bottom: 1.5rem;
    padding: 0 0.9rem;
  }
  .calendario-banner-full {
    overflow: hidden;
    padding: 0.35rem 0 0.75rem;
    max-width: 100vw;
  }
  .calendario-banner {
    width: 146%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: center center;
    margin-left: -23%;
    transform: none;
  }
  .contacto-titulo {
    padding-left: 0;
    text-align: center;
  }
  .contacto-info {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }
  
  /* Reducir tamaño del logo MegaGolf en móvil */
  .eventos-logo-golf { height: 58px !important; }
}

@media (max-width: 480px) {
  section { 
    padding: 2.5rem 0;
    scroll-margin-top: 70px;
  }
  .cards-dobles { padding: 0 0 2rem; }
  .navbar { padding: 8px 10px; }
  .hero { width: calc(100% - 40px); }
  .videos-page-hero { padding-top: 1.4rem; }
  .videos-page-intro {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .video-category-card-body h3 {
    font-size: 1rem;
  }
  .video-category-header-media {
    min-height: 180px;
  }
  .video-category-header-copy h2 {
    font-size: 1.45rem;
  }
  .section-title .label {
    font-size: 2.2rem;
    padding: 0.26rem 1.45rem 0.34rem;
  }
  .banner-titulo h2 { font-size: 1.3rem; }
  .banner-titulo-full {
    max-width: calc(100% - 20px);
    padding: 0.4rem 1.2rem;
  }
  .shopper-titulo .banner-titulo-full h2 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }
  .label-shopper {
    font-size: 1.8rem !important;
    margin-top: -0.2rem !important;
  }
  .btn-descargar-cal {
    width: auto;
    max-width: calc(100% - 1.6rem);
    min-height: 0;
    padding: 0.66rem 0.95rem;
    font-size: 0.68rem;
    letter-spacing: 0.25px;
  }
  .calendario-action {
    bottom: 1.35rem;
    padding: 0 0.8rem;
  }
  .calendario-banner-full {
    overflow: hidden;
    padding: 0.3rem 0 0.7rem;
    max-width: 100vw;
  }
  .calendario-banner {
    width: 154%;
    max-width: none;
    height: auto;
    object-position: center center;
    margin-left: -27%;
    transform: none;
  }
  .contacto-titulo {
    padding-left: 0;
    text-align: center;
  }
  .contacto-titulo h2 {
    font-size: 2.5rem;
  }
  .contacto-titulo .cursiva {
    font-size: 1.8rem;
    padding: 0.2rem 1.5rem 0.3rem;
    margin-top: -0.3rem;
  }
  .contacto-info {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    text-align: center;
  }
  .contacto-info span {
    font-size: 0.9rem;
  }
  .categorias-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-eventos {
    min-height: 308px;
  }
  .card-eventos::before {
    clip-path: polygon(57% 0, 60% 0, 73% 100%, 70% 100%);
  }
  .card-eventos::after {
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 73% 100%);
  }
  .card-eventos-top {
    max-width: 92%;
    flex: 0 0 auto;
  }
  .card-eventos-izq {
    justify-content: flex-start;
    gap: 1.2rem;
    width: 61%;
    padding: 1.45rem 0.85rem 1.25rem 1.4rem;
  }
  .card-eventos-top h3 {
    font-size: 1.95rem;
    line-height: 1;
  }
  .card-eventos-top p {
    font-size: 0.98rem;
    line-height: 1.3;
    max-width: 92%;
  }
  .card-eventos-foot {
    margin-bottom: 0;
    align-items: flex-end;
    gap: 0.75rem;
  }
  .card-eventos .btn-inscribete {
    font-size: 0.78rem;
    padding: 0.52rem 1.15rem;
    border-radius: 22px;
  }
  .eventos-logo-golf {
    height: 72px;
    margin-left: 0;
    margin-right: -0.2rem;
    flex-shrink: 0;
  }
  .card-eventos-der {
    width: 40%;
    padding: 1.4rem 0.85rem 1.2rem 3rem;
    gap: 1.1rem;
    justify-content: center;
    align-items: center;
  }
  .card-eventos-der .btn-inscribete {
    align-self: center;
    text-align: center;
  }
  .eventos-logo-expo {
    height: 104px;
    max-width: 100%;
  }
}

/* ===================================================
   BENTO: PÁGINA /videos  (nuevo diseño "Explora y Disfruta")
   =================================================== */
.vbento-section {
  background: #ffffff;
  padding: 3.5rem 0 4rem;
}
.vbento-shell {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

/* ── Grid: col izq 37% + 2 cols iguales / 3 filas ── */
.vbento-grid {
  display: grid;
  grid-template-columns: 37% 4fr 3fr 7fr;
  grid-template-rows: 290px 215px 245px;
  gap: 22px;
}

/* ── Posición fija de cada tarjeta según la referencia ── */
/* 1. Encuéntranos — col izq, filas 1-2 */
.vbento-grid > .vbento-card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
/* 2. Cuídate con Sazón — col 2-3-4 ancho, fila 1 */
.vbento-grid > .vbento-card:nth-child(2) { grid-column: 2 / span 3; grid-row: 1; }
/* 3. Comerciales — col 2+3, fila 2 (igual ancho que Novedades) */
.vbento-grid > .vbento-card:nth-child(3) { grid-column: 2 / span 2; grid-row: 2; }
/* 4. Novedades — col 4, fila 2 (igual ancho que Comerciales) */
.vbento-grid > .vbento-card:nth-child(4) { grid-column: 4; grid-row: 2; }
/* 5. Sabores de la Casa — col 1-2, fila 3 */
.vbento-grid > .vbento-card:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
/* 6. Un Chin de Todo — col 3-4, fila 3 (más ancho que Novedades) */
.vbento-grid > .vbento-card:nth-child(6) { grid-column: 3 / span 2; grid-row: 3; }

/* ── Tarjeta base ── */
.vbento-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.vbento-card:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 10px 36px rgba(0,0,0,0.20);
}

/* ── Imagen de fondo ── */
.vbento-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.42s ease;
}
.vbento-card:hover .vbento-card__img { transform: scale(1.05); }

/* ── Overlay degradado hacia abajo ── */
.vbento-card__overlay {
  position: absolute;
  inset: 0;
  background: none;
}

/* ── Cuerpo de texto en la parte inferior ── */
.vbento-card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem 1.5rem 1.55rem;
}
.vbento-card__title {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
/* Tarjeta 1 (alta) y tarjeta 2 (ancha) — título más grande */
.vbento-grid > .vbento-card:nth-child(1) .vbento-card__title { font-size: 2.8rem; }
.vbento-grid > .vbento-card:nth-child(2) .vbento-card__title { font-size: 2.5rem; }
.vbento-grid > .vbento-card:nth-child(5) .vbento-card__title { font-size: 2.4rem; }

/* Cuídate con Sazón y Sabores de la Casa — contenido centrado verticalmente */
.vbento-grid > .vbento-card:nth-child(2) .vbento-card__body,
.vbento-grid > .vbento-card:nth-child(5) .vbento-card__body {
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.vbento-card__desc {
  margin: 0;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  max-width: 380px;
}

/* ── Colores de fondo (cuando no hay imagen) ── */
.vbento-card--red      { background: #CC1F2D; }
.vbento-card--green    { background: #5fa400; }
.vbento-card--yellow   { background: #c9930a; }
.vbento-card--dark     { background: #222; }
.vbento-card--wine     { background: #7a1728; }
.vbento-card--charcoal { background: #2d2d2d; }

/* ── Wrapper con posicionamiento relativo para los decos ── */
.vbento-grid-wrap {
  position: relative;
}

/* ── Imágenes decorativas flotantes entre las tarjetas ──
   Layout desktop:
   Cols:  [  37%  ] [   1fr   ] [   1fr   ]  gap:22px
   Rows:  290px | 215px | 245px              gap:22px
   Centro del gap row1/row2 → top: 301px  (290 + 22/2)
   Centro del gap row2/row3 → top: 538px  (290+22+215 + 22/2)
   Unión col1/col2           → left: 37%
   Unión col2/col3           → left: ~68.5%
   Centro col1               → left: 18.5%
   Centro col3               → left: ~84%
─────────────────────────────────────────────────────── */
.vbento-deco {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.22));
}

/* Arvejas — entre Encuéntranos, Cuídate con Sazón y Comerciales
   (unión col1/col2, entre fila 1 y fila 2)                     */
.vbento-deco--arvejas {
  width: clamp(88px, 9.5vw, 130px);
  left: 44%;
  top: 301px;
}

/* Limones — entre Cuídate con Sazón y Novedades
   (col3, unión fila 1 y fila 2)                                 */
.vbento-deco--limones {
  width: clamp(100px, 11vw, 148px);
  left: 97%;
  top: 301px;
}

/* Fresas — entre Encuéntranos y Sabores de la Casa
   (col1, unión fila 2 y fila 3)                                 */
.vbento-deco--fresas {
  width: clamp(120px, 14vw, 185px);
  left: 30%;
  top: 538px;
}

/* Tubérculos — entre Novedades, Comerciales y Un Chin de Todo
   (unión col2/col3, entre fila 2 y fila 3)                      */
.vbento-deco--tuberculos {
  width: clamp(95px, 10vw, 150px);
  left: 67%;
  top: 538px;
}

/* ===================================================
   PÁGINA DE CATEGORÍA DE VIDEOS  /videos/:slug
   =================================================== */
.vcat-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.vcat-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: blur(2px);
}
.vcat-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.70) 100%);
}
.vcat-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 20px 2.5rem;
}
.vcat-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.vcat-back:hover { color: #fff; }
.vcat-hero__title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.vcat-hero__desc {
  margin: 0 0 0.7rem;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.55;
}
.vcat-hero__count {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}

.vcat-content {
  background: #f5f5f7;
  padding: 3rem 0 4rem;
}
.vcat-shell {
  max-width: 1180px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

/* Grid de videos en la página de categoría */
.vcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vcat-video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vcat-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
}
.vcat-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.vcat-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.vcat-video-card:hover .vcat-video-thumb img { transform: scale(1.05); }
.vcat-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.28);
  transition: background 0.2s;
}
.vcat-video-card:hover .vcat-play-btn { background: rgba(204,31,45,0.55); }
.vcat-play-btn svg {
  width: 52px;
  height: 52px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.vcat-video-placeholder {
  width: 100%;
  height: 100%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}
.vcat-video-caption {
  padding: 0.85rem 1rem 0.9rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

/* Responsive bento */
@media (max-width: 900px) {
  .vbento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 200px 200px auto;
    gap: 18px;
  }
  /* En tablet: Encuéntranos ocupa todo el ancho arriba */
  .vbento-grid > .vbento-card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
  .vbento-grid > .vbento-card:nth-child(2) { grid-column: 1 / span 2; grid-row: 2; }
  .vbento-grid > .vbento-card:nth-child(3) { grid-column: 1; grid-row: 3; }
  .vbento-grid > .vbento-card:nth-child(4) { grid-column: 2; grid-row: 3; }
  .vbento-grid > .vbento-card:nth-child(5) { grid-column: 1 / span 2; grid-row: 4; min-height: 200px; }
  .vbento-grid > .vbento-card:nth-child(6) { grid-column: 1 / span 2; grid-row: 5; min-height: 180px; }
  .vcat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tablet: reposicionar decos según nueva estructura de filas
     gap row1/row2 → top: 260+9 = 269px
     gap row2/row3 → top: 260+18+200+9 = 487px
     gap row3/row4 → top: 260+18+200+18+200+9 = 705px */
  .vbento-deco--arvejas    { left: 50%; top: 269px; width: clamp(80px, 10vw, 130px); }
  .vbento-deco--limones    { left: 82%; top: 269px; width: clamp(70px,  9vw, 115px); }
  .vbento-deco--fresas     { left: 18%; top: 487px; width: clamp(80px, 10vw, 130px); }
  .vbento-deco--tuberculos { left: 75%; top: 705px; width: clamp(85px, 11vw, 140px); }
}
@media (max-width: 560px) {
  .vbento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }
  .vbento-grid > .vbento-card:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    min-height: 200px;
  }
  /* Degradado más oscuro en móvil para resaltar texto */
  .vbento-card__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.50) 50%, rgba(0,0,0,0.10) 100%);
  }
  /* Esconder decos en móvil — no hay gaps en layout de 1 col */
  .vbento-deco { display: none; }
  .vcat-grid { grid-template-columns: 1fr; }
  .vcat-hero { min-height: 260px; }
}
