/* ===== Design Tokens ===== */
:root {
  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  /* Colors: warm coffee + energetic running accent */
  --color-bg: #fdf8f3;
  --color-bg-alt: #f3e9dd;
  --color-surface: #ffffff;
  --color-text: #2c1e14;
  --color-text-muted: #6b5645;
  --color-coffee: #4a2c1d;
  --color-coffee-dark: #2c1a10;
  --color-accent: #e8622c;
  --color-accent-dark: #c94f1f;
  --color-cream: #f6e3c5;
  --color-border: #e6d7c3;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(74, 44, 29, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

/* Ensure the hidden attribute always wins over display rules */
[hidden] {
  display: none !important;
}

html {
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 98, 44, 0.06), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(74, 44, 29, 0.07), transparent 45%),
    var(--color-bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: transparent;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Imagen de fondo fija a baja opacidad para toda la página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("images/web/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

/* ===== Fondo dinámico: partículas de colores ===== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.5;
  filter: blur(1px);
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.6);
  will-change: transform, opacity;
  animation: sparkleDrift 9s ease-in-out infinite;
}

.particle-1  { top: 10%; left: 8%;  width: 8px;  height: 8px;  animation-delay: 0s; }
.particle-2  { top: 22%; left: 82%; width: 6px;  height: 6px;  animation-delay: -1.5s; }
.particle-3  { top: 62%; left: 14%; width: 5px;  height: 5px;  animation-delay: -3s; }
.particle-4  { top: 78%; left: 74%; width: 9px;  height: 9px;  animation-delay: -4.5s; }
.particle-5  { top: 45%; left: 48%; width: 6px;  height: 6px;  animation-delay: -6s; }
.particle-6  { top: 6%;  left: 55%; width: 7px;  height: 7px;  animation-delay: -2.5s; }
.particle-7  { top: 88%; left: 34%; width: 5px;  height: 5px;  animation-delay: -4s; }
.particle-8  { top: 52%; left: 90%; width: 8px;  height: 8px;  animation-delay: -7s; }
.particle-9  { top: 34%; left: 4%;  width: 4px;  height: 4px;  animation-delay: -1s; }
.particle-10 { top: 68%; left: 60%; width: 6px;  height: 6px;  animation-delay: -5s; }
.particle-11 { top: 14%; left: 40%; width: 5px;  height: 5px;  animation-delay: -8s; }
.particle-12 { top: 92%; left: 12%; width: 7px;  height: 7px;  animation-delay: -3.5s; }

@keyframes sparkleDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50%      { transform: translate(8px, -12px) scale(1.4); opacity: 0.7; }
}

/* Mantener el contenido por encima del fondo */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .particle {
    animation: none;
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-coffee-dark);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-coffee-dark);
}

.brand-mark {
  font-size: 1.4rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.primary-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-accent-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-coffee-dark);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 0.25rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-coffee);
  margin-bottom: 1.25rem;
}

.hero-copy {
  max-width: 46ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 2px solid var(--color-coffee);
  color: var(--color-coffee-dark);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--color-coffee);
  color: #fff;
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.hero-blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cream), var(--color-accent));
  opacity: 0.35;
  filter: blur(10px);
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 260px;
  max-width: 80%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(74, 44, 29, 0.25));
  animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
  }
}

/* ===== Sections ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background: rgba(243, 233, 221, 0.82);
  max-width: 100%;
  border-radius: 0;
}

.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-lead {
  font-size: 1.05rem;
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

/* ===== Feature grid (About) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* 2x2 en desktop/tablet, 1x1 en mobile */
.feature-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 520px) {
  .feature-grid-4 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-icon {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.feature-icon-photo {
  height: 140px;
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.feature-icon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== Evento destacado ===== */
.event-feature {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.event-feature-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-feature:hover .event-feature-media img {
  transform: scale(1.04);
}

.event-feature-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--color-coffee-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.event-feature-badge .day {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.event-feature-badge .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-tag-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  background: var(--color-accent);
  color: #fff;
}

.event-feature-body {
  padding: 2rem;
}

.event-feature-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 520px) {
  .event-feature-body {
    padding: 1.25rem;
  }

  .event-feature-body h3 {
    font-size: 1.25rem;
  }

  .btn-strava {
    width: 100%;
    justify-content: center;
  }
}

/* Botón Strava grande */
.btn-strava {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  background: linear-gradient(135deg, #fc5200, #e34402);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(252, 82, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-strava:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(252, 82, 0, 0.45);
}

.btn-strava:active {
  transform: translateY(-1px);
}

.strava-icon {
  width: 22px;
  height: 22px;
}

/* ===== Events ===== */
.event-grid {
  display: grid;
  gap: 1.25rem;
}

.event-card {
  display: flex;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.event-date {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--color-coffee);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-tag {
  display: inline-block;
  background: var(--color-cream);
  color: var(--color-coffee-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.event-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.event-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.event-list li {
  margin-bottom: 0.4rem;
}

/* Contenido colapsable del evento destacado */
.event-collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.event-collapsible.is-open {
  max-height: 600px;
  opacity: 1;
}

.event-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
  cursor: pointer;
}

.event-toggle:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.event-toggle .arrow {
  transition: transform 0.25s ease;
}

.event-toggle.is-open .arrow {
  transform: rotate(180deg);
}

.event-link {
  display: inline-block;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-top: 0.25rem;
}

.event-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.event-meta {
  font-weight: 600;
  color: var(--color-accent-dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.event-body p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== Videos ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.video-card {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-coffee-dark);
  box-shadow: var(--shadow);
}

.video-card iframe,
.video-card video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: var(--color-coffee-dark);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-cream);
}

.video-placeholder span {
  font-size: 2rem;
}

.video-placeholder p {
  color: var(--color-cream);
  margin: 0;
  font-size: 0.85rem;
}

/* ===== Galeria (collage estilo polaroid, aleatorio y animado) ===== */
.gallery-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 1.25rem;
  padding: 1rem 0.5rem;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, z-index 0.01s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Inclinación aleatoria tipo polaroid */
.tilt-1 { transform: rotate(-3deg); }
.tilt-2 { transform: rotate(2.5deg); }
.tilt-3 { transform: rotate(-1.5deg); }
.tilt-4 { transform: rotate(3deg); }
.tilt-5 { transform: rotate(-2deg); }
.tilt-6 { transform: rotate(1.5deg); }

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 20px 40px rgba(74, 44, 29, 0.28);
  z-index: 5;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-big {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 860px) {
  .gallery-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}

@media (max-width: 520px) {
  .gallery-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 110px;
    gap: 1rem;
  }

  .gallery-item-big {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img {
    transition: none;
  }
}

/* ===== Lightbox de la galería ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 8, 0.9);
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.2s ease;
}

.lightbox-overlay img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalPopIn 0.25s ease;
}

.lightbox-overlay .modal-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }
}

/* ===== Instagram ===== */
/* Botón Instagram moderno */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5);
  background-size: 200% 200%;
  box-shadow: 0 10px 24px rgba(214, 41, 118, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.6s ease;
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(214, 41, 118, 0.42);
  background-position: 100% 100%;
}

.btn-instagram:active {
  transform: translateY(-1px);
}

.ig-icon {
  width: 22px;
  height: 22px;
}

/* ===== Tienda ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Etiqueta de oferta en la esquina superior del producto */
.sale-corner-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(232, 98, 44, 0.35);
}

.product-image {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.product-image-photo {
  font-size: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-photo img {
  transform: scale(1.05);
}

.product-variant {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* ===== Carrusel de producto ===== */
.carousel {
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-coffee-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 44, 29, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(74, 44, 29, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ===== Modal de producto ===== */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(44, 26, 16, 0.55);
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: modalPopIn 0.25s ease;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-coffee-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.2s ease;
}

.modal-close:hover {
  background: #fff;
  transform: scale(1.08);
}

.modal-media {
  position: relative;
  background: var(--color-bg-alt);
}

.modal-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.modal-fallback {
  font-size: 5rem;
}

.modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.modal-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.modal-variant {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.modal-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.modal-body .btn-instagram {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }

  .modal-image-wrap {
    min-height: 220px;
  }
}

.product-status {
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-coffee-dark);
  margin-bottom: 0.25rem;
}

/* Precio de oferta: tachado arriba, precio final abajo, todo centrado */
.product-price-sale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.price-old {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-weight: 500;
  font-size: 0.95rem;
}

.price-sale {
  color: var(--color-accent-dark);
}

.price-badge {
  display: inline-block;
  margin-top: 0.3rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* Precio de oferta en el modal */
.modal-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.modal-price .price-old {
  font-size: 1.1rem;
}

.modal-price .price-badge {
  font-size: 0.72rem;
}

.product-details-btn {
  display: inline-block;
  border: 2px solid var(--color-coffee);
  background: transparent;
  color: var(--color-coffee-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.product-details-btn:hover {
  background: var(--color-coffee);
  color: #fff;
  transform: translateY(-2px);
}

.product-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
}

.product-image {
  cursor: pointer;
}

/* ===== Sponsors ===== */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.sponsor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.sponsor-logo {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  background: var(--color-coffee-dark);
  max-width: 100%;
  border-radius: 0;
  padding: 5rem 1.5rem;
}

.cta-section h2,
.cta-section p {
  color: #fff;
}

.cta-section .hero-actions {
  justify-content: center;
}

.cta-section .btn-ghost {
  border-color: #fff;
  color: #fff;
}

.cta-section .btn-ghost:hover {
  background: #fff;
  color: var(--color-coffee-dark);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(243, 233, 221, 0.82);
  border-top: 1px solid var(--color-border);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-coffee-dark);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1rem 0;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-copy {
    margin: 0 auto 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }

  .primary-nav.open {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .event-card {
    flex-direction: column;
  }

  .event-date {
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
    height: auto;
    padding: 0.6rem;
  }
}
