/**
 * ONA Fitness Club — Refresh layer
 * Capa de estilos para componentes propios de cada flujo
 * (notificaciones, menú, calendario, blog, galería, shop, ...)
 *
 * Este archivo se carga DESPUÉS del resto para anular cualquier
 * residuo del diseño antiguo y garantizar coherencia visual.
 */

/* ============================
   BOTÓN ICONO CÁPSULA
   ============================ */
.btn-icon-pill {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    color: var(--color-primary-darker);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-icon-pill:hover { background: var(--bg-card-hover); }
.btn-icon-pill:active { transform: scale(0.92); }

.profile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0 var(--space-lg);
}
.profile-nav__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    font-weight: 500;
}

/* ============================
   NOTIFICATIONS PANEL
   ============================ */
.notif-panel {
    position: fixed;
    z-index: var(--z-modal);
    width: min(380px, calc(100vw - 28px));
    max-height: 70vh;
    background: rgba(253, 250, 246, 0.92);
    backdrop-filter: var(--blur-lg) saturate(160%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(160%);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: notifIn 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-panel--sheet {
    width: 100%;
    max-width: none;
    max-height: 80vh;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    border-bottom: 0;
    animation: slideInUp 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-panel--sheet::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-strong);
    border-radius: 2px;
    margin: 10px auto 0;
    opacity: 0.5;
}

.notif-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border-light);
}
.notif-panel__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}
.notif-panel__list {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
}
.notif-panel__empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
}
.notif-panel__empty svg {
    color: var(--color-primary);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background var(--transition-fast);
    position: relative;
    border-bottom: 1px solid var(--border-light);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: rgba(186, 166, 142, 0.08); }
.notif-item:active { background: rgba(186, 166, 142, 0.14); }

.notif-item--unread {
    background: rgba(186, 166, 142, 0.06);
}

.notif-item__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary-darker) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item__content { flex: 1; min-width: 0; }
.notif-item__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
}
.notif-item__msg {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
}
.notif-item__time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    flex-shrink: 0;
    margin-top: 6px;
}

/* Notif prompt floating */
.notif-prompt {
    background: var(--bg-warm-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
}
.notif-prompt__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-prompt__body { flex: 1; }
.notif-prompt__body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 2px;
}
.notif-prompt__body small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

/* ============================
   MENU GRID + MENU CARD (más)
   ============================ */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}
@media (min-width: 720px) {
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xs);
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-bounce);
    cursor: pointer;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--card-delay, 0s);
    min-height: 120px;
    position: relative;
}
.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.menu-card:active { transform: scale(0.98); }

.menu-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.menu-card__icon svg { width: 22px; height: 22px; stroke-width: 1.7; }

.menu-card__content { flex: 1; min-width: 0; }
.menu-card__content h3 {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    letter-spacing: -0.01em;
}
.menu-card__content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
    line-height: 1.3;
}

.menu-card__arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    opacity: 0.6;
}
.menu-card:hover .menu-card__arrow { transform: translateX(3px); color: var(--color-primary-dark); opacity: 1; }

.menu-card--highlight {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-accent-rgb), 0.08));
    border-color: rgba(var(--color-primary-rgb), 0.30);
}
.menu-card--highlight .menu-card__icon {
    background: var(--color-primary-dark);
    color: #fff;
}

/* ============================
   CLASS CARD (calendario)
   ============================ */
.class-card {
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: var(--border-radius-lg);
}
.class-card::before { display: none; }
.class-card__image {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.class-card__image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42,30,20,0.0) 35%, rgba(42,30,20,0.80) 100%);
}
.class-card__image-content {
    position: absolute;
    left: 16px;
    bottom: 12px;
    right: 16px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.class-card__image-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.class-card__image-meta {
    font-size: 12.5px;
    opacity: 0.94;
    margin-top: 3px;
    font-weight: 500;
}
.class-card__main {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
}
.class-card__header h3 { display: none; }
.class-card__time-block {
    border: none;
    padding-right: var(--space-md);
}
.class-card__hour {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-primary-darker);
    font-weight: 500;
}
.class-card__duration {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.class-card__seats-bar {
    background: var(--bg-cream-deep);
    height: 6px;
    border-radius: var(--border-radius-full);
}
.class-card__seats-fill {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--border-radius-full);
}
.class-card__seats-fill.warning { background: var(--color-warning); }
.class-card__seats-fill.full    { background: var(--color-error); }

.class-card--reserved {
    border: 1px solid rgba(107, 155, 120, 0.40);
    background: linear-gradient(145deg, var(--bg-card), rgba(107, 155, 120, 0.05));
}
.class-card--cancelled .class-card__image { filter: grayscale(0.6) brightness(0.85); }

/* ============================
   CLASS FILTER + ZONE FILTER
   ============================ */
.class-filter,
#zone-filter,
#class-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-md);
}

/* ============================
   QR DISPLAY
   ============================ */
.qr-display {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(145deg, var(--bg-card), var(--bg-cream-soft));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}
.qr-display__label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: var(--space-md);
}
.qr-display__code {
    display: inline-block;
    padding: 12px;
    background: var(--bg-warm-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
}
.qr-display__code img,
.qr-display__code canvas {
    display: block;
    margin: 0 auto;
}

/* ============================
   ORDER TIMELINE (bonos, shop)
   ============================ */
.order-timeline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-sm);
}
.order-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 60px;
}
.order-timeline__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-cream-deep);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}
.order-timeline__step.done .order-timeline__dot {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.30);
}
.order-timeline__step.active .order-timeline__dot {
    transform: scale(1.12);
}
.order-timeline__label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.order-timeline__step.done .order-timeline__label {
    color: var(--text-secondary);
}
.order-timeline__line {
    flex: 1;
    height: 2px;
    background: var(--bg-cream-deep);
    border-radius: 1px;
    margin-bottom: 14px;
    transition: background var(--transition-base);
}
.order-timeline__line.done {
    background: var(--color-primary-dark);
}

/* ============================
   BONO CARD STRIP (línea decorativa)
   ============================ */
.bono-card-strip {
    height: 6px;
    width: 100%;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.bono-card-strip.bono-card--presencial { background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-darker)); }
.bono-card-strip.bono-card--online     { background: linear-gradient(90deg, #7d96a8, #4f6878); }
.bono-card-strip.bono-card--mixto      { background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark)); }
.bono-card-strip.bono-card--trimestral { background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary)); }
.bono-card-strip.bono-card--ilimitado  { background: linear-gradient(90deg, #9d8aaa, #6e5d80); }
.bono-card-strip.bono-card--default    { background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-darker)); }

/* Progress bar antiguo */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-cream-deep);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--border-radius-full);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Override de title antiguo */
.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: var(--space-lg) 0 var(--space-sm);
}

/* List item generic */
.list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-md);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    box-shadow: var(--shadow-xs);
}
.list-item__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}
.list-item__body { flex: 1; min-width: 0; }
.list-item__title {
    font-size: 14px;
    color: var(--text-heading);
    font-weight: 600;
}
.list-item__subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.list-item--active {
    background: rgba(var(--color-primary-rgb), 0.10);
    border: 1px solid rgba(var(--color-primary-rgb), 0.30);
}

/* ============================
   BLOG
   ============================ */
.blog-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 var(--space-md);
    scrollbar-width: none;
    margin-bottom: var(--space-sm);
}
.blog-categories::-webkit-scrollbar { display: none; }

.blog-cat-chip {
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}
.blog-cat-chip:hover { border-color: var(--color-primary); }
.blog-cat-chip--active {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-darker);
    box-shadow: 0 6px 14px rgba(var(--color-primary-rgb), 0.30);
}

.blog-featured {
    display: block;
    margin-bottom: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.blog-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-featured__img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.blog-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.blog-featured:hover .blog-featured__img { transform: scale(1.05); }
.blog-featured__body {
    padding: var(--space-lg);
}
.blog-featured__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    color: var(--text-heading);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 500;
    margin: 8px 0 10px;
}
.blog-featured__excerpt {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
@media (min-width: 600px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.blog-card:hover .blog-card__img { transform: scale(1.04); }
.blog-card__img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
}
.blog-card__body {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}
.blog-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 6px 0 6px;
}
.blog-card__excerpt {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    background: rgba(var(--color-primary-rgb), 0.18);
    color: var(--color-primary-darker);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.blog-tag--sm { font-size: 10px; padding: 3px 8px; }

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.blog-meta--sm { font-size: 10.5px; }
.blog-meta__dot { color: var(--text-muted); opacity: 0.6; }
.blog-meta svg { vertical-align: middle; }

/* Blog detail */
.blog-detail-nav { padding: var(--space-md) 0 var(--space-sm); }
.blog-detail-hero {
    margin: 0 calc(-1 * var(--space-md)) var(--space-lg);
    height: 50vh;
    max-height: 420px;
    overflow: hidden;
}
.blog-detail-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-detail__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.blog-detail__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 2.6rem);
    color: var(--text-heading);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
    margin: var(--space-md) 0 var(--space-sm);
}
.blog-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-primary);
}
.blog-content p { margin-bottom: var(--space-md); }
.blog-content h2,
.blog-content h3 {
    font-family: var(--font-display);
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin: var(--space-xl) 0 var(--space-sm);
    font-weight: 500;
}
.blog-content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-md);
}
.blog-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Like button */
.blog-like-section {
    text-align: center;
    margin: var(--space-2xl) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.blog-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--color-primary-darker);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--space-sm);
}
.blog-like-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.blog-like-btn--active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-color: var(--color-accent-dark);
    color: #fff;
}
@keyframes blogLikePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.blog-like-btn--pop { animation: blogLikePop 0.4s ease; }

/* Blog comments */
.blog-comments-section { margin-top: var(--space-xl); }
.blog-comments-section__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
}
.blog-comment-form { margin-bottom: var(--space-xl); }
.blog-comment {
    display: flex;
    gap: 12px;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}
.blog-comment:last-child { border-bottom: none; }
.blog-comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.blog-comment__body { flex: 1; min-width: 0; }
.blog-comment__header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.blog-comment__name {
    color: var(--text-heading);
    font-size: 13px;
    font-weight: 600;
}
.blog-comment__date {
    font-size: 11px;
    color: var(--text-muted);
}
.blog-comment__text {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.55;
    margin: 0;
}

/* ============================
   GALLERY
   ============================ */
.gallery-cat-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
.gallery-cat-pill {
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}
.gallery-cat-pill:hover { border-color: var(--color-primary); }
.gallery-cat-pill--active {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-darker);
}

.gallery-month-group { margin-bottom: var(--space-xl); }
.gallery-month-label {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
    text-transform: capitalize;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}
.gallery-grid__item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    background: var(--bg-cream-deep);
    transition: transform var(--transition-bounce);
}
.gallery-grid__item:hover { transform: scale(1.02); }
.gallery-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.gallery-grid__item:hover .gallery-grid__img { transform: scale(1.08); }
.gallery-grid__cat {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: var(--blur-sm);
    color: var(--text-heading);
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    letter-spacing: 0.02em;
}

/* ============================
   GALERÍA · Colecciones de eventos (estilo web pública)
   ============================ */
.gallery-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
@media (min-width: 720px) {
    .gallery-events { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
}
.gallery-event-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-cream-deep);
    box-shadow: 0 8px 24px rgba(94, 79, 63, 0.10);
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}
.gallery-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(94, 79, 63, 0.16);
}
.gallery-event-card__cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.gallery-event-card:hover .gallery-event-card__cover { transform: scale(1.06); }
.gallery-event-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(15,10,5,0.78) 100%);
}
.gallery-event-card__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: var(--space-md);
    color: #fff;
}
.gallery-event-card__count {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    margin-bottom: 8px;
}
.gallery-event-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 500;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.gallery-event-card__date {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-transform: capitalize;
}

.gallery-event-detail__head {
    margin-bottom: var(--space-lg);
}
.gallery-event-detail__title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
}
.gallery-event-detail__date {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
    text-transform: capitalize;
}
.gallery-event-detail__desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-top: var(--space-sm);
}
.gallery-event-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: var(--space-md);
    transition: color var(--transition-fast);
}
.gallery-event-back:hover { color: var(--text-heading); }

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 8, 0.92);
    backdrop-filter: blur(8px);
}
.gallery-lightbox__img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 2;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.gallery-lightbox__close { top: max(20px, env(safe-area-inset-top)); right: 20px; }
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.gallery-lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__footer {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
}
.gallery-lightbox__download {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}
.gallery-lightbox__counter {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ============================
   PRODUCT CAROUSEL (shop)
   ============================ */
.product-carousel {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) 0;
    background: var(--bg-cream-deep);
}
.product-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    aspect-ratio: 4 / 5;
}
.product-carousel__track::-webkit-scrollbar { display: none; }
.product-carousel__track img {
    flex: 0 0 100%;
    scroll-snap-align: center;
    object-fit: cover;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--color-primary-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 4;
    transition: all var(--transition-fast);
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow--left { left: 12px; }
.carousel-arrow--right { right: 12px; }

.carousel-dot {
    transition: all var(--transition-fast);
}
.carousel-dot.active {
    background: rgba(255,255,255,0.95) !important;
    width: 22px !important;
    border-radius: 4px !important;
}

.color-swatch {
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.selected {
    border-color: #595959 !important;
    box-shadow: 0 0 0 3px rgb(122 122 122 / 44%);
}

/* ============================
   POINTS / ENGAGEMENT
   ============================ */
.points-tile {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
    color: #fff;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.points-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 55%);
    pointer-events: none;
}
.points-tile__label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.85;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
}
.points-tile__value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    position: relative;
}
.points-tile__hint {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 6px;
    position: relative;
}

/* ============================
   ENGAGEMENT POPUP MICRO-CARDS
   ============================ */
.engagement-pop {
    background: var(--bg-warm-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

/* ============================
   AVATAR UPLOAD WRAPPER
   ============================ */
.avatar-upload-wrapper .avatar--xl {
    border: 3px solid var(--bg-warm-white);
    box-shadow: var(--shadow-md);
}
.avatar-upload-icon {
    background: var(--color-primary-dark) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ============================
   STAT CARD (calendar detail)
   ============================ */
.stat-card {
    background: var(--bg-warm-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

/* ============================
   COOKIES BANNER refresh
   ============================ */
.cookies-banner,
#cookies-banner {
    background: rgba(253, 250, 246, 0.96) !important;
    backdrop-filter: var(--blur-lg) saturate(160%) !important;
    -webkit-backdrop-filter: var(--blur-lg) saturate(160%) !important;
    border-top: 1px solid var(--border-light) !important;
    box-shadow: 0 -20px 50px rgba(94, 79, 63, 0.10) !important;
    color: var(--text-primary) !important;
}

/* ============================
   PAGE--HERO RECONSTRUIDA
   Asegura content padding correcto
   ============================ */
.page--hero > .page-hero + .page-content { padding-top: var(--space-md); }

/* Si una página usa hero pero seguía sin page-content envolvente */
.page--hero > #home-engagement,
.page--hero > #home-stats,
.page--hero > #home-bono-status,
.page--hero > #home-available,
.page--hero > #home-notifications,
.page--hero > #home-shop {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================
   TABS active (fix nomenclatura tab--active alias)
   ============================ */
.tab--active {
    color: var(--text-on-primary);
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-sm);
}

/* ============================
   BOTTOM-NAV body spacer
   ============================ */
body.has-bottom-nav #app-content {
    padding-bottom: calc(var(--bottom-nav-height) + 32px + env(safe-area-inset-bottom, 0px));
}

/* ============================
   PAGE HEADER (general)
   ============================ */
.page-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

/* ============================
   FORM-OPTION-GRID adjustments
   ============================ */
.form-options-grid .form-option {
    border-radius: var(--border-radius);
}

/* ============================================================
   v3 — HERO COMPACTO + ANIMACIÓN DE SCROLL
   ============================================================ */

/* Reducimos altura: dejamos ~26vh para que el contenido aparezca sin scroll */
.page--hero .page-hero--compact {
    min-height: 26vh;
    max-height: 210px;
}

/* Variante mini para shop/more/gallery/reservas: ocupa lo mínimo para que
   se vea el título y deja todo el contenido visible sin scroll. */
.page--hero .page-hero--mini {
    min-height: 26vh;
    max-height: 210px;
}
@media (max-width: 480px) {
    .page--hero .page-hero--mini {
        min-height: 24vh;
        max-height: 190px;
    }
}

/* Scale + parallax al hacer scroll (controlado por JS hero scroll engine) */
.page-hero {
    transform-origin: top center;
    will-change: transform, border-radius;
}
.page-hero__bg {
    will-change: transform;
}
.page-hero__bg--video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 2.4s cubic-bezier(.2,.7,.2,1);
}

/* En móvil, hero un pelín más alto para mantener título legible */
@media (max-width: 480px) {
    .page--hero .page-hero--compact {
        min-height: 24vh;
        max-height: 380px;
    }
}

/* is-collapsed: ya no se usa — el cambio de altura provocaba layout shift
   en scroll y saltos al llegar al final de la página. Lo dejamos como no-op
   para no romper el JS que puede aplicarlo. */

/* ============================================================
   v3 — CLASS CARD GRANDE (foto-first, sin duplicaciones)
   ============================================================ */
.class-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 0;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}
.class-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.class-card::before { display: none !important; }

.class-card__image {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.class-card:hover .class-card__image { transform: scale(1.04); }

.class-card__image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(15,10,5,0.50) 70%, rgba(15,10,5,0.85) 100%);
}
.class-card__image-content {
    position: absolute;
    left: var(--space-lg);
    right: var(--space-lg);
    bottom: var(--space-lg);
    color: #fff;
    z-index: 2;
}
.class-card__image-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.5vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.50);
    margin-bottom: 6px;
}
.class-card__image-meta {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.class-card__image-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Hora flotante (cápsula) arriba a la izquierda de la imagen */
.class-card__time-pill {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border-radius: var(--border-radius-full);
    color: var(--color-primary-darker);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
}
.class-card__time-pill small {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 10px;
    opacity: 0.65;
    margin-left: 6px;
    letter-spacing: 0.02em;
}

/* Estado: badge arriba a la derecha */
.class-card__status {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 3;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    box-shadow: var(--shadow-sm);
}
.class-card__status--reserved {
    background: rgba(107, 155, 120, 0.92);
    color: #fff;
}
.class-card__status--full {
    background: rgba(180, 102, 92, 0.92);
    color: #fff;
}
.class-card__status--avail {
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-primary-darker);
}

/* Footer minimal de la tarjeta: solo plazas + acción */
.class-card__footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
}
.class-card__seats-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
}
.class-card__seats-mini-bar {
    width: 60px;
    height: 4px;
    background: var(--bg-cream-deep);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}
.class-card__seats-mini-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--border-radius-full);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.class-card__seats-mini-bar span.warn { background: var(--color-warning); }
.class-card__seats-mini-bar span.full { background: var(--color-error); }

.class-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--border-radius-full);
    background: var(--color-primary-dark);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}
.class-card__cta:hover { background: var(--color-primary-darker); transform: translateY(-1px); }
.class-card__cta--ghost {
    background: transparent;
    color: var(--color-primary-darker);
    border: 1px solid var(--border-color);
}

/* Cancelada → grayscale */
.class-card--cancelled .class-card__image { filter: grayscale(0.65) brightness(0.85); }

/* ============================================================
   v3 — FAB QR sobre Bonos
   ============================================================ */
.fab-qr {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 26px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    z-index: 250;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 14px 16px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
    color: #fff;
    box-shadow: 0 16px 36px rgba(94, 79, 63, 0.40);
    border: 2px solid rgba(255, 255, 255, 0.20);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform var(--transition-bounce);
    animation: fabPulse 4s ease-in-out infinite;
}
.fab-qr:hover { transform: scale(1.04); }
.fab-qr:active { transform: scale(0.96); }
.fab-qr svg { width: 22px; height: 22px; }

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 16px 36px rgba(94, 79, 63, 0.40); }
    50%      { box-shadow: 0 18px 44px rgba(94, 79, 63, 0.55), 0 0 0 6px rgba(186, 166, 142, 0.18); }
}

/* QR full-screen overlay (lo abre el FAB) */
.qr-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(30, 22, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    animation: fadeIn 0.4s ease;
}
.qr-fullscreen__card {
    background: var(--bg-warm-white);
    padding: var(--space-xl);
    border-radius: var(--border-radius-2xl);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.40);
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.qr-fullscreen__label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: var(--space-md);
}
.qr-fullscreen__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-heading);
    font-weight: 500;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}
.qr-fullscreen__close {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 18px);
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.qr-fullscreen__close:hover { background: rgba(255,255,255,0.30); }
.qr-fullscreen__code canvas,
.qr-fullscreen__code img {
    margin: 0 auto;
    border-radius: var(--border-radius);
}

/* ============================================================
   v3 — SHOP PRODUCT MODAL: imágenes completas + reserva siempre visible
   ============================================================ */
.modal-overlay.shop-product-modal {
    align-items: flex-end;
}
@media (min-width: 640px) {
    .modal-overlay.shop-product-modal { align-items: center; }
}
.modal-overlay.shop-product-modal .modal {
    max-width: 520px;
    width: 100%;
    height: 98vh;
    max-height: 98vh;
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
    padding: 0;
}
.modal-overlay.shop-product-modal .modal__body {
    flex: 1 1 auto;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 !important;
    min-height: 0;
}
.modal-overlay.shop-product-modal .modal__footer {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.06);
    padding: var(--space-md) var(--space-lg) calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}
.shop-product-modal__media {
    position: relative;
    background: var(--bg-cream-deep);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.shop-product-modal__media-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.shop-product-modal__media-track::-webkit-scrollbar { display: none; }
.shop-product-modal__media-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: center;
    background: var(--bg-cream-soft);
}
.shop-product-modal__info {
    padding: var(--space-lg);
}
.shop-product-modal__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: var(--space-sm);
}
.shop-product-modal__price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-primary-darker);
    font-weight: 600;
}
.shop-product-modal__price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 10px;
    font-weight: 500;
    vertical-align: middle;
}

/* Footer del modal de producto: precio + CTA en la misma línea, compacto.
   Antes el botón ocupaba toda la fila + nota debajo → forzaba scroll. */
.shop-product-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
}
.shop-product-modal__footer .shop-product-modal__price-block {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}
.shop-product-modal__footer .btn {
    flex-shrink: 0;
    padding: 12px 22px;
    font-size: 14px;
}

/* ============================================================
   TIENDA · hero compacto + buscador
   ============================================================ */


.shop-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    padding: 4px 12px 4px 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.shop-search-wrap:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.12);
}
.shop-search-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.shop-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    -webkit-appearance: none;
}
.shop-search-input::placeholder { color: var(--text-muted); }
.shop-search-clear {
    background: rgba(0,0,0,0.06);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.shop-search-clear:hover { background: rgba(0,0,0,0.10); }

/* ============================================================
   v3 — VIDEO SUPPORT EN class-card
   ============================================================ */
.class-card__image-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   v3 — MICRO-INTERACTIONS PREMIUM (pulse al tap, ondas, fade)
   ============================================================ */
.tap-ripple {
    position: relative;
    overflow: hidden;
}
.tap-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--tap-x, 50%) var(--tap-y, 50%), rgba(186, 166, 142, 0.30), transparent 50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.tap-ripple.tapped::after { opacity: 1; }

/* Parallax scroll para fondo de heroes */
.parallax-bg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   v3 — PUBLIC GALLERY (cinematográfico crema, logo nuevo)
   ============================================================ */

/* ============================================================
   v3 — CLASS DETAIL MODAL (foto-led, sin duplicados)
   ============================================================ */
.modal-overlay.class-detail-modal .modal {
    padding: 0 !important;
    overflow: hidden !important;
    max-width: 540px;
    width: 100%;
    height: 92vh;
    max-height: 92vh;
    display: flex !important;
    flex-direction: column;
}
.modal-overlay.class-detail-modal .modal__header { display: none; }
.modal-overlay.class-detail-modal .modal__body {
    padding: 0 !important;
    flex: 1 1 auto;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}
.modal-overlay.class-detail-modal .modal__footer {
    flex-shrink: 0;
    padding: var(--space-md) var(--space-lg) calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    background: var(--bg-warm-white);
    border-top: 1px solid var(--border-light);
}

.class-detail {
    background: var(--bg-warm-white);
}
.class-detail__hero {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.class-detail__hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(15,10,5,0.55) 70%, rgba(15,10,5,0.85) 100%);
}
.class-detail__hero-time {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: rgba(255,255,255,0.95);
    backdrop-filter: var(--blur-sm);
    color: var(--color-primary-darker);
    padding: 8px 14px;
    border-radius: var(--border-radius-full);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
}
.class-detail__hero-time small {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 10px;
    opacity: 0.65;
    margin-left: 4px;
}
.class-detail__hero-content {
    position: absolute;
    left: var(--space-lg);
    right: var(--space-lg);
    bottom: var(--space-lg);
    color: #fff;
    z-index: 2;
}
.class-detail__date {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.class-detail__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
    color: #fff;
    margin: 0;
}

.class-detail__body {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
}
.class-detail__alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-warning-bg);
    color: var(--color-accent-dark);
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.class-detail__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: var(--space-md);
}
.class-detail__stat {
    background: var(--bg-cream-soft);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    text-align: center;
}
.class-detail__stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}
.class-detail__stat-label {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 6px;
}

.class-detail__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}
.class-detail__row:last-of-type { border-bottom: 0; }
.class-detail__row-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.class-detail__row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--bg-warm-white);
    box-shadow: var(--shadow-xs);
}
.class-detail__row-title {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 14px;
}
.class-detail__row-sub {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.class-detail__desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

/* Aplica clase a clasdetail modal automáticamente */
.modal-overlay:has(.class-detail) .modal,
.modal:has(.class-detail) {
    padding: 0 !important;
}

/* ============================================================
   v3 — VIDEO HERO SCROLL: cuando el hero es video y scrolleamos,
        se sigue oyendo nada (mute siempre) y se queda en loop.
   ============================================================ */
.page-hero__bg--video { z-index: 0; }

/* En modo collapsed, el video ralentiza el motion natural */
.page-hero.is-collapsed .page-hero__bg--video {
    filter: brightness(0.9);
}

/* ============================================================
   v3 — RECOMMENDATION CARD refinada
   ============================================================ */
.recommendation-card {
    background: linear-gradient(145deg, rgba(var(--color-primary-rgb), 0.08), var(--bg-warm-white));
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}
.recommendation-card__label {
    font-size: 10px;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

/* ============================================================
   v3 — NEXT-CLASS BANNER refinado
   ============================================================ */
.next-class-banner {
    background: linear-gradient(145deg, var(--bg-warm-white), rgba(var(--color-primary-rgb), 0.06));
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.next-class-banner__label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 8px;
    font-weight: 700;
}
.next-class-banner__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: var(--space-md);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Floating close para modales con hideHeader */
.modal__close--floating {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    transition: all var(--transition-fast);
}
.modal__close--floating:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: scale(1.05);
}

/* ============================================================
   v4 — CALENDAR redesign
   ============================================================ */

/* Tabs principales como pill switcher elegante */
.tabs.tabs--main {
    background: var(--bg-cream-deep);
    padding: 4px;
    border-radius: var(--border-radius-full);
    display: inline-flex;
    gap: 0;
    width: 100%;
    overflow: hidden;
}
.tabs.tabs--main .tab {
    flex: 1;
    padding: 11px 14px;
    border-radius: var(--border-radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tabs.tabs--main .tab.tab--active {
    background: var(--bg-warm-white);
    color: var(--color-primary-darker);
    box-shadow: var(--shadow-sm);
}

/* Header del calendario (nombre del mes + flechas) */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--space-md) 0 12px;
}
.cal-header__label {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}
.cal-nav-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--color-primary-darker);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.cal-nav-btn:hover { background: var(--bg-card-hover); }
.cal-nav-btn:active { transform: scale(0.92); }

/* Toggle vista (Semana / Mes) */
.cal-view-toggle {
    display: inline-flex;
    background: var(--bg-cream-deep);
    border-radius: var(--border-radius-full);
    padding: 3px;
    margin-bottom: var(--space-md);
}
.cal-view-btn {
    padding: 7px 16px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.cal-view-btn.is-active {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.30);
}

/* Semana: 7 días en línea */
.cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: var(--space-lg);
}
.cal-day {
    /* Grid de 3 filas fijas: nombre / número / badge
       Así el número siempre cae en la misma posición vertical y la
       presencia del badge de clases NO desalinea las celdas. */
    display: grid;
    grid-template-rows: 14px 28px 20px;
    align-items: center;
    justify-items: center;
    row-gap: 4px;
    padding: 10px 4px;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-xs);
}
.cal-day:hover { transform: translateY(-2px); }
.cal-day:active { transform: scale(0.95); }
.cal-day__name {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cal-day__num {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1;
}
.cal-day__count {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary-darker);
    background: rgba(var(--color-primary-rgb), 0.18);
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}
.cal-day__count--empty {
    background: transparent;
    color: transparent;
    visibility: hidden;
}
.cal-day.is-today { border-color: var(--color-primary); }
.cal-day.is-active {
    background: linear-gradient(180deg, var(--color-primary-dark), var(--color-primary-darker));
    border-color: var(--color-primary-darker);
    box-shadow: 0 12px 24px rgba(var(--color-primary-rgb), 0.35);
    transform: translateY(-2px);
}
.cal-day.is-active .cal-day__name,
.cal-day.is-active .cal-day__num {
    color: #fff;
}
.cal-day.is-active .cal-day__count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Mes: grid limpio */
.cal-month {
    margin-bottom: var(--space-lg);
}
.cal-month__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}
.cal-month__weekday {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 0;
}
.cal-month__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-month__cell {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    /* Grid de 2 filas FIJAS: el número siempre en el centro de su fila,
       y la fila del badge siempre reservada (vacía si no hay clases),
       para que no se desalineen los días. */
    display: grid;
    grid-template-rows: 1fr 16px;
    align-items: center;
    justify-items: center;
    padding: 4px 2px 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-heading);
    position: relative;
}
.cal-month__cell .cal-month__num { grid-row: 1; align-self: center; }
.cal-month__count { grid-row: 2; align-self: end; }
.cal-month__cell:not(.cal-month__cell--empty):hover { transform: translateY(-2px); box-shadow: var(--shadow-xs); }
.cal-month__cell.cal-month__cell--empty {
    background: transparent;
    border: 0;
    cursor: default;
}
.cal-month__num {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
}
.cal-month__count {
    font-size: 9px;
    background: rgba(var(--color-primary-rgb), 0.18);
    color: var(--color-primary-darker);
    padding: 1px 5px;
    border-radius: 999px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}
.cal-month__cell.is-today {
    border-color: var(--color-primary);
}
.cal-month__cell.is-today .cal-month__num {
    color: var(--color-primary-dark);
}
.cal-month__cell.has-classes {
    background: linear-gradient(180deg, var(--bg-card) 70%, rgba(var(--color-primary-rgb), 0.10));
}
.cal-month__cell.is-active {
    background: linear-gradient(180deg, var(--color-primary-dark), var(--color-primary-darker));
    border-color: var(--color-primary-darker);
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.35);
}
.cal-month__cell.is-active .cal-month__num,
.cal-month__cell.is-active .cal-month__count {
    color: #fff;
}
.cal-month__cell.is-active .cal-month__count {
    background: rgba(255,255,255,0.25);
}
.cal-month__cell.is-holiday::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-error);
}

/* ============================================================
   v4 — NEXT-UP banner (próxima clase fotomática)
   ============================================================ */
.next-up {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    height: 200px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    margin-bottom: var(--space-lg);
}
.next-up:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.next-up__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.next-up:hover .next-up__media { transform: scale(1.05); }
.next-up__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,12,6,0.78) 0%, rgba(20,12,6,0.35) 50%, rgba(20,12,6,0.20) 100%);
}
.next-up__content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.next-up__label {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.92;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.next-up__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
.next-up__meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
    flex-wrap: wrap;
}
.next-up__meta span { display: inline-flex; align-items: center; gap: 5px; }
.next-up__countdown {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    opacity: 0.85;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

/* ============================================================
   v4 — RECO RAIL (recomendaciones horizontal scroll)
   ============================================================ */
.reco-section {
    margin: var(--space-2xl) calc(-1 * var(--space-md)) 0;
    padding: 0 var(--space-md);
}
.reco-section__head {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-md);
}
.reco-section__eyebrow {
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 4px;
}
.reco-section__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
}
.reco-section__title em { font-style: italic; color: var(--color-primary-dark); font-weight: 400; }

.reco-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 12px;
    margin: 0 calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.reco-rail::-webkit-scrollbar { display: none; }

.reco-card {
    position: relative;
    flex: 0 0 240px;
    height: 320px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    transition: transform var(--transition-bounce);
}
.reco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.reco-card:active { transform: scale(0.98); }
.reco-card__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.reco-card:hover .reco-card__media { transform: scale(1.05); }
.reco-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(15,10,5,0.85) 100%);
}
.reco-card__time-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.95);
    color: var(--color-primary-darker);
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
}
.reco-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    color: #fff;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.reco-card__day {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.92;
    font-weight: 700;
    margin-bottom: 4px;
}
.reco-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}
.reco-card__meta {
    font-size: 11.5px;
    opacity: 0.92;
    margin-top: 4px;
}

/* ============================================================
   v4 — MIS RESERVAS
   ============================================================ */
.my-res-filter {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.my-res-filter::-webkit-scrollbar { display: none; }

.my-res-chip {
    padding: 9px 16px;
    border-radius: var(--border-radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}
.my-res-chip:hover { border-color: var(--color-primary); }
.my-res-chip.is-active {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-darker);
    box-shadow: 0 6px 14px rgba(var(--color-primary-rgb), 0.30);
}

/* ============================
   Listado de clases: hero + grid 2x2 para el resto
   ============================ */
.class-hero-card { margin-bottom: var(--space-md); }
.class-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
@media (min-width: 720px) {
    .class-list-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Admin galería: eventos 2 columnas en móvil, 3 en tablet, 4 en desktop */
.admin-gallery-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
@media (min-width: 720px) {
    .admin-gallery-events { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
}
@media (min-width: 1024px) {
    .admin-gallery-events { grid-template-columns: repeat(4, 1fr); }
}

/* ============================
   Carruseles globales: padding lateral para que la última card respire
   ============================ */
.mag-grid,
[class*="carousel"],
[class*="rail"] {
    scroll-padding-right: var(--space-md);
}
/* En móvil, asegurar que el padding-right del scroll horizontal se respeta */
@media (max-width: 480px) {
    .reco-rail,
    .mag-grid {
        scroll-padding-inline: var(--space-md);
    }
}

/* ============================
   Modal "Reservar clase" sin bono: catálogo embebido
   ============================ */
/* Highlight temporal al llegar desde notificación push con deep-link.
   Aplica un anillo/glow pulsante durante ~2.6s. */
.bono-card--highlight,
.bono-hero.bono-card--highlight {
    animation: bonoHighlight 2.6s cubic-bezier(.4, 0, .2, 1) 1;
    will-change: transform, box-shadow;
}
@keyframes bonoHighlight {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.0); }
    18%  { transform: scale(1.025); box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0.40); }
    55%  { transform: scale(1.01);  box-shadow: 0 0 0 14px rgba(var(--color-primary-rgb), 0.18); }
    100% { transform: scale(1);     box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.0); }
}

.reserve-no-bono { text-align: center; margin-bottom: var(--space-md); }
.reserve-no-bono__icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary-darker);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-sm);
}
.reserve-no-bono__title {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 500;
    color: var(--text-heading);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.reserve-no-bono__sub {
    font-size: 13px; color: var(--text-secondary);
    margin: 0 0 var(--space-md); line-height: 1.5;
}
.reserve-bono-grid {
    display: grid; gap: 8px;
    margin-bottom: var(--space-md);
}
.reserve-bono-card {
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    display: flex; flex-direction: column; gap: 4px;
}
.reserve-bono-card:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.04);
    transform: translateY(-1px);
}
.reserve-bono-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.reserve-bono-card__name {
    font-weight: 600; color: var(--text-heading); font-size: 14px;
}
.reserve-bono-card__badge {
    font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--bg-cream-deep); color: var(--text-secondary);
    padding: 3px 8px; border-radius: 99px; font-weight: 700;
}
.reserve-bono-card__badge.is-monthly {
    background: var(--color-primary); color: #fff;
}
.reserve-bono-card__meta { font-size: 11.5px; color: var(--text-muted); }
.reserve-bono-card__price {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 600;
    color: var(--color-primary-darker);
    margin-top: 2px;
}
.reserve-no-bono__more { margin-top: 4px; }
.reserve-terms {
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--border-radius);
    font-size: 13px;
    color: var(--text-secondary);
}
.reserve-terms strong { color: var(--text-heading); display: block; margin-bottom: 6px; }
.reserve-terms ul { margin: 0; padding-left: var(--space-md); line-height: 1.7; }

.reservas-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.reservas-hero {
    margin-bottom: var(--space-md);
}
.reservas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
@media (min-width: 720px) {
    .reservas-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Compact: misma estética que la hero pero más baja para grid 2x2.
   Sin time-pill (la hora va dentro del meta) y sin footer-bar. */
.class-card--compact .class-card__image {
    height: 170px;
}
.class-card--compact .class-card__image-content {
    left: 12px;
    right: 12px;
    bottom: 10px;
}
.class-card--compact .class-card__image-title {
    font-size: 1.05rem;
    line-height: 1.1;
}
.class-card--compact .class-card__image-meta {
    font-size: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.class-card--compact .class-card__image-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.class-card--compact .class-card__status {
    font-size: 9.5px;
    padding: 3px 8px;
    top: 10px;
    right: 10px;
}
.reservation-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}
.reservation-flag--error { color: var(--color-error); font-weight: 600; }

.class-card--past .class-card__image { filter: grayscale(0.3) brightness(0.92); }

/* Empty state con foto */
.empty-state--photo {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding: 0;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}
.empty-state--photo .empty-state__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,10,5,0.20) 0%, rgba(15,10,5,0.75) 100%);
}
.empty-state--photo .empty-state__inner {
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.empty-state--photo .empty-state__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 6px;
}
.empty-state--photo .empty-state__text {
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-md);
}

/* ============================================================
   v4 — VIDEO SECTION (autoplay loop, pantalla completa)
   ============================================================ */
.video-feature {
    position: relative;
    margin: var(--space-2xl) calc(-1 * var(--space-md));
    height: 100vh;
}
.video-feature__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    border-radius: 0;
    /* Promover a capa propia para que las transforms internas no provoquen
       repaints fuera de la sección. */
    will-change: transform;
    transform: translateZ(0);
}
.video-feature__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}
.video-feature__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15,10,5,0.20) 0%, rgba(15,10,5,0.50) 45%, rgba(15,10,5,0.80) 80%, rgba(15,10,5,0.92) 100%),
        radial-gradient(ellipse 70% 55% at 50% 80%, rgba(0,0,0,0.45), transparent 70%);
}
.video-feature__content {
    position: absolute;
    left: 0;
    right: 0;
    /* Subimos el contenido por encima del bottom-nav flotante */
    bottom: calc(var(--bottom-nav-height) + 28px + env(safe-area-inset-bottom, 0px));
    padding: var(--space-lg) var(--space-lg);
    color: #fff;
    z-index: 2;
    text-align: center;
}
.video-feature__content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 80% at 50% 70%, rgba(10,6,3,0.55), transparent 75%);
    pointer-events: none;
    z-index: -1;
}
.video-feature__eyebrow {
    font-size: 11px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    opacity: 0.90;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.70);
}
.video-feature__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.2rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.70), 0 6px 22px rgba(0,0,0,0.55), 0 14px 40px rgba(0,0,0,0.40);
    paint-order: stroke fill;
    -webkit-text-stroke: 0.4px rgba(0,0,0,0.20);
}
.video-feature__title em { font-style: italic; color: #efe4d2; font-weight: 400; }
.video-feature__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: var(--color-primary-darker);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.30);
    cursor: pointer;
    transition: all 0.25s ease;
}
.video-feature__cta:hover {
    transform: translateY(-2px);
    background: #fff;
}

/* Body cuando scroll-locked por modal */
body[style*="position: fixed"] {
    width: 100% !important;
}

/* Padding extra al info de shop modal para que no quede tapado por footer */
.modal-overlay.shop-product-modal .shop-product-modal__info {
    padding-bottom: var(--space-2xl);
}

/* ============================================================
   v5 — BONO HERO CARD (foto-led, visual)
   ============================================================ */
.bono-hero {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-height: 28vh;
    margin-bottom: var(--space-lg);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-bounce), box-shadow var(--transition-base);
    color: #fff;
    display: block;
}
.bono-hero:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.bono-hero:active { transform: scale(0.99); }

.bono-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 2s cubic-bezier(.2,.7,.2,1);
}
.bono-hero:hover .bono-hero__media { transform: scale(1.04); }

.bono-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15,10,5,0.35) 0%, rgba(15,10,5,0.10) 30%, rgba(15,10,5,0.55) 65%, rgba(15,10,5,0.88) 100%),
        radial-gradient(ellipse 80% 60% at 25% 95%, rgba(0,0,0,0.55), transparent 75%);
}

.bono-hero__state {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.bono-hero__top {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    right: 120px;
    z-index: 2;
}
.bono-hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.92;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.bono-hero__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

.bono-hero__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    z-index: 2;
}
.bono-hero__big {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: var(--space-md);
}
.bono-hero__big-value {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.bono-hero__big-value small {
    font-size: 0.5em;
    opacity: 0.7;
    font-weight: 400;
}
.bono-hero__big-label {
    font-size: 11px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    opacity: 0.92;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

.bono-hero__hearts {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: var(--space-md);
}
.bono-hero__heart {
    color: rgba(255,255,255,0.30);
    transition: color var(--transition-fast);
}
.bono-hero__heart.is-on { color: #efb89a; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.40)); }

.bono-hero__progress {
    height: 5px;
    background: rgba(255,255,255,0.22);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}
.bono-hero__progress-fill {
    height: 100%;
    background: #fff;
    border-radius: var(--border-radius-full);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bono-hero__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}
.bono-hero__sub {
    opacity: 0.85;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.bono-hero__qr-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px 11px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 11px;
}
.bono-hero__urgency {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 11px;
}
.bono-hero__urgency--ok       { background: rgba(107,155,120,0.92); color: #fff; }
.bono-hero__urgency--warning  { background: rgba(200,153,114,0.95); color: #fff; }
.bono-hero__urgency--critical { background: rgba(220,80,68,0.95);   color: #fff; animation: criticalPulse 1.5s ease-in-out infinite; }

@keyframes criticalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,80,68,0.50); }
    50%      { box-shadow: 0 0 0 8px rgba(220,80,68,0); }
}

/* ============================================================
   v5 — UNIVERSAL TEXT-ON-IMAGE LEGIBILITY
   Aplica una capa de protección bajo cualquier título sobre foto.
   Si la foto debajo es muy clara, este overlay sigue siendo legible.
   ============================================================ */
.class-card__image-content,
.next-up__content,
.bono-hero__top,
.bono-hero__bottom,
.reco-card__body,
.event-card__info-overlay {
    /* Cualquier texto descendiente con color claro/blanco asume que tiene
       text-shadow y, encima, una capa radial detrás que oscurece la foto. */
}

/* Pseudo-elemento de protección bajo el texto blanco en photo cards */
.class-card__image-content::before,
.next-up__content::before,
.reco-card__body::before {
    content: '';
    position: absolute;
    inset: -10px -16px -16px -16px;
    background: radial-gradient(ellipse 90% 80% at 30% 80%, rgba(10,6,3,0.55), transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.class-card__image-content,
.next-up__content,
.reco-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.class-card__image-content,
.reco-card__body {
    isolation: isolate;
}
.next-up__content {
    isolation: isolate;
    position: relative; /* tiene height:100% */
}

/* Forzar paint-order stroke en TODOS los títulos sobre foto para asegurar
   contraste mínimo incluso sobre fotos muy claras */
.class-card__image-title,
.next-up__title,
.bono-hero__name,
.bono-hero__big-value,
.reco-card__title,
.video-feature__title,
.page-hero__title,
.class-detail__title {
    color: #fff;
    paint-order: stroke fill;
    -webkit-text-stroke: 0.4px rgba(0,0,0,0.20);
}
.class-card__image-title,
.next-up__title,
.bono-hero__name,
.reco-card__title {
    text-shadow: 0 1px 4px rgba(0,0,0,0.65), 0 4px 16px rgba(0,0,0,0.45);
}

/* Class card image content sombra reforzada */
.class-card__image-content,
.class-card__image-meta,
.reco-card__body {
    text-shadow: 0 1px 4px rgba(0,0,0,0.60);
}

/* ============================================================
   v6 — ADMIN media library + product card buttons + agotado
   ============================================================ */
.media-lib-item:hover { transform: scale(0.97); }
.media-lib-item__del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all .15s ease;
    z-index: 2;
}
.media-lib-item:hover .media-lib-item__del { opacity: 1; }
.media-lib-item__del:hover { background: var(--color-error); }

/* Card de producto en tienda cuando está agotado */
.card.card--out {
    position: relative;
}
.card.card--out::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
}

/* ============================================================
   v7 — BONO CARD (catálogo) con foto opcional
   ============================================================ */
.bono-card.bono-card--photo {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
    color: #fff !important;
}
.bono-card.bono-card--photo .bono-card__title,
.bono-card.bono-card--photo .bono-card__meta,
.bono-card.bono-card--photo .bono-card__price,
.bono-card.bono-card--photo .bono-card__badge {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.40);
}
.bono-card.bono-card--photo .bono-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15,10,5,0.45) 0%, rgba(15,10,5,0.18) 50%, rgba(15,10,5,0.08) 100%),
        linear-gradient(180deg, transparent 35%, rgba(15,10,5,0.65) 100%);
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
}
/* Anular las pseudos base de bono-card */
.bono-card.bono-card--photo::before,
.bono-card.bono-card--photo::after { display: none !important; }
