/* ===== Maratones – base + Halloween ===== */
.page-maratones {
  --maraton-accent: #ff6b35;
  --maraton-accent-2: #9b2226;
  --maraton-glow: rgba(255, 107, 53, 0.25);
}

.page-maratones.tema-halloween {
  --maraton-accent: #ff6b35;
  --maraton-accent-2: #7b2cbf;
  --maraton-glow: rgba(255, 107, 53, 0.3);
}

.page-maratones.tema-muertos {
  --maraton-accent: #f4a261;
  --maraton-accent-2: #e76f51;
  --maraton-glow: rgba(244, 162, 97, 0.25);
}

.page-maratones.tema-navidad {
  --maraton-accent: #2a9d8f;
  --maraton-accent-2: #e63946;
  --maraton-glow: rgba(42, 157, 143, 0.25);
}

.page-maratones.tema-sanvalentin {
  --maraton-accent: #e63946;
  --maraton-accent-2: #9b2226;
  --maraton-glow: rgba(230, 57, 70, 0.25);
}

.maratones-page { padding-bottom: 100px; }

.maraton-hero {
  position: relative;
  padding: 72px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.1));
  overflow: hidden;
}

.maraton-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, var(--maraton-glow), transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(123, 44, 191, 0.15), transparent 50%);
  pointer-events: none;
}

.maraton-hero-inner {
  position: relative;
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
}

.maraton-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 12px 0;
  letter-spacing: -0.03em;
}

.maraton-hero p {
  color: var(--muted, #9a9aa6);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.maraton-tabs {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.maraton-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: #16161c;
  color: #e8e8ec;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.maraton-tab.active {
  background: linear-gradient(135deg, var(--maraton-accent), var(--maraton-accent-2));
  border-color: transparent;
  color: #fff;
}

.maraton-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.maraton-tab .soon {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-left: 4px;
}

html[data-theme="light"] .maraton-tab {
  background: #fff;
  border-color: rgba(0,0,0,.12);
  color: #2a2a32;
}

.maraton-toolbar {
  width: min(1100px, calc(100% - 32px));
  margin: 16px auto 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.maraton-count {
  font-size: 0.9rem;
  color: var(--muted, #9a9aa6);
}

.maraton-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted, #9a9aa6);
}

.maraton-filter-label select {
  appearance: none;
  background: var(--surface, #121218);
  color: var(--text, #e8e8ec);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 999px;
  padding: 8px 32px 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

.maraton-grid {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

.maraton-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  background: var(--surface, #121218);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.maraton-card:hover {
  transform: translateY(-4px);
  border-color: var(--maraton-accent);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.maraton-card.is-disabled { cursor: default; }
.maraton-card.is-disabled:hover {
  transform: none;
  border-color: var(--border, rgba(255,255,255,.1));
  box-shadow: none;
}

.maraton-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0a0a0e;
}

.maraton-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.maraton-num {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.75);
  color: var(--maraton-accent);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maraton-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.maraton-body h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  font-family: 'Playfair Display', Georgia, serif;
}

.maraton-meta {
  font-size: 0.75rem;
  color: var(--muted, #9a9aa6);
}

.maraton-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--maraton-accent);
}

.maraton-nota {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted, #9a9aa6);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.maraton-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--maraton-accent);
}

.maraton-card.is-disabled .maraton-cta {
  color: var(--muted, #9a9aa6);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.maraton-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted, #9a9aa6);
}

html[data-theme="light"] .maraton-card {
  background: #fff;
  border-color: rgba(0,0,0,.1);
}

html[data-theme="light"] .maraton-body h2 { color: #121214; }

@media (max-width: 480px) {
  .maraton-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Countdown */
.maraton-countdown {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--maraton-accent, #ff6b35);
}

/* Sticky filters */
.maraton-filters-sticky {
  position: sticky;
  top: 64px; /* altura de tu header */
  z-index: 40;
  background: rgba(10, 5, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 0;
}

html[data-theme="light"] .maraton-filters-sticky {
  background: rgba(245, 245, 247, 0.94);
  border-bottom-color: rgba(0,0,0,.08);
}

.maraton-filters-inner {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

.maraton-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.maraton-filters-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted, #9a9aa6);
}

.maraton-filters-row select {
  appearance: none;
  background: var(--surface, #16161c);
  color: var(--text, #e8e8ec);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 28px 7px 12px;
  font-size: 0.8rem;
}

html[data-theme="light"] .maraton-filters-row select {
  background: #fff;
  color: #1a1a1a;
  border-color: rgba(0,0,0,.12);
}

.check-label { cursor: pointer; }

.btn-ghost {
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--text, #e8e8ec);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--maraton-accent); color: var(--maraton-accent); }

html[data-theme="light"] .btn-ghost {
  border-color: rgba(0,0,0,.15);
  color: #2a2a32;
}

/* Empieza aquí */
.maraton-empieza,
.maraton-noches,
.maraton-parejas {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto;
}

.maraton-empieza h2,
.maraton-parejas h2,
.maraton-grid-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 14px;
}

.maraton-empieza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

/* Noches */
.noche-block {
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,107,53,.2);
  background: rgba(255,107,53,.04);
}
.noche-block h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--maraton-accent);
}
.noche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

/* Parejas */
.pareja-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 10px;
  background: var(--surface, #121218);
  font-size: 0.9rem;
}
.pareja-item strong { color: var(--maraton-accent); }
.pareja-arrow { opacity: 0.5; }

html[data-theme="light"] .pareja-item {
  background: #fff;
  border-color: rgba(0,0,0,.1);
}

/* Cards – badges */
.badge-int {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.badge-int.suave { background: #1b5e20; color: #c8e6c9; }
.badge-int.medio { background: #e65100; color: #fff3e0; }
.badge-int.extremo { background: #b71c1c; color: #ffebee; }

.badge-cine {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
}

.maraton-duracion {
  font-size: 0.72rem;
  color: var(--muted, #9a9aa6);
}

/* Hover póster */
.maraton-poster-wrap {
  overflow: hidden;
}
.maraton-poster-wrap img {
  transition: transform .35s ease, filter .35s ease;
}
.maraton-card:hover .maraton-poster-wrap img {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.maraton-card:hover {
  box-shadow: 0 12px 32px var(--maraton-glow, rgba(255,107,53,.3));
}

/* Skeleton */
.maraton-skel {
  aspect-ratio: 2/3;
  border-radius: 14px;
  background: linear-gradient(90deg, #1a1218 25%, #2a1a22 50%, #1a1218 75%);
  background-size: 200% 100%;
  animation: maraton-shine 1.3s ease-in-out infinite;
}
@keyframes maraton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
html[data-theme="light"] .maraton-skel {
  background: linear-gradient(90deg, #e8e8ec 25%, #f4f4f6 50%, #e8e8ec 75%);
  background-size: 200% 100%;
}

/* CTA store */
.maraton-cta-store {
  width: min(900px, calc(100% - 32px));
  margin: 48px auto 20px;
  padding: 32px 24px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255,107,53,.25);
  background: linear-gradient(135deg, rgba(255,107,53,.08), rgba(123,44,191,.1));
}
.maraton-cta-store h2 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 8px 0 10px;
}
.maraton-cta-store p {
  color: var(--muted, #9a9aa6);
  margin: 0 0 18px;
}

/* Botón calabaza */
.btn-top--pumpkin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #ff6b35, #c41e3a);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 6px 20px rgba(255,107,53,.4);
}
.btn-top--pumpkin.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.btn-top--pumpkin:hover { filter: brightness(1.1); }

/* Tags legibles en claro */
html[data-theme="light"] .maraton-tag { color: #c41e3a; }
html[data-theme="light"] .maraton-num {
  background: rgba(255,255,255,.9);
  color: #c41e3a;
}

@media (max-width: 600px) {
  .maraton-filters-row { gap: 8px; }
  .maraton-filters-sticky { top: 56px; }
}

.maraton-card.maraton-flash {
  outline: 2px solid var(--maraton-accent, #ff6b35);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.35);
  transition: outline 0.2s, box-shadow 0.2s;
}