/* ==========================================================
   ZAS! SUPERMERCADO EXPRESS - SISTEMA DE DISEÑO SIMPLE & AMIGABLE
   Identidad: Interfaz Luminosa, Limpia, Cálida y sin Fricción
   ========================================================== */

:root {
    /* Paleta Oficial El Otro Súper (elotrosuper.com) */
    --brand-navy: #0a3a6b;
    --brand-navy-dark: #062342;
    --brand-navy-light: #edf6fd;
    --brand-sky: #0284c7;
    --brand-sky-light: #e0f2fe;
    --brand-green: #16a34a;
    --brand-green-hover: #15803d;
    --brand-green-light: #dcfce7;

    /* Primario: Azul Marino Corporativo del Logotipo */
    --primary: #0a3a6b;
    --primary-hover: #07284b;
    --primary-dark: #041b33;
    --primary-light: #edf6fd;
    --primary-subtle: #dbeafe;

    /* Acentos y Destacados: Azul Celeste del Logotipo (letra 'o') */
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-light: #e0f2fe;
    --accent-subtle: #f0f9ff;

    /* Neutros & Superficies */
    --dark: #0a2e50;
    --dark-muted: #1e3a5f;
    --light-bg: #f4f8fb;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-main: #0a2e50;
    --text-muted: #526b80;
    --text-light: #8499ab;

    /* Estados */
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --success: #16a34a;
    --success-light: #dcfce7;

    /* Geometría Amigable */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-card: 20px;
    --radius-pill: 9999px;

    /* Sombras Suaves */
    --shadow-sm: 0 2px 6px rgba(10, 58, 107, 0.04);
    --shadow-card: 0 4px 20px -2px rgba(10, 58, 107, 0.06), 0 2px 6px -1px rgba(10, 58, 107, 0.03);
    --shadow-hover: 0 14px 30px -4px rgba(10, 58, 107, 0.16), 0 6px 12px -2px rgba(10, 58, 107, 0.04);
    --shadow-drawer: -10px 0 35px rgba(10, 58, 107, 0.15);

    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
    font-family: inherit;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. BARRA SUPERIOR DE AVISOS --- */
.navbar-top {
    background-color: var(--dark);
    color: #f8fafc;
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.navbar-top-phone {
    font-weight: 600;
}

/* --- 2. CABECERA PRINCIPAL STICKY --- */
.main-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

/* Logo elotrosuper.com Oficial */
.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-brand img {
    height: 38px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-brand:hover img {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Buscador Amigable con Píldora */
.search-bar-wrap {
    flex: 1;
    max-width: 540px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 46px;
    padding: 10px 18px 10px 46px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-color);
    background: #f8fafc;
    color: var(--text-main);
    font-size: 14.5px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

/* Botón de Cesta en Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-subtle);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cart-btn-toggle:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(10, 58, 107, 0.25);
}

.cart-badge {
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn-toggle:hover .cart-badge {
    background: #ffffff;
    color: var(--primary);
}

/* --- 3. BANNER HERO CÁLIDO & LUMINOSO --- */
.hero-banner {
    margin: 24px 0 34px 0;
}

.hero-card {
    background: linear-gradient(135deg, #edf6fd 0%, #ffffff 50%, #f0fdf4 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 10px 30px -5px rgba(10, 58, 107, 0.06);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '🛵';
    position: absolute;
    right: 25px;
    bottom: -15px;
    font-size: 140px;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
}

.hero-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    color: var(--primary-dark);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(10, 58, 107, 0.08);
    margin-bottom: 14px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 16px;
    color: #475569;
    max-width: 620px;
    margin-bottom: 22px;
    line-height: 1.55;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark-muted);
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.hero-badge-item i {
    color: var(--primary);
}

/* ==========================================================
   DISEÑO HERO MINIMALISTA (ESTILO IDÉNTICO AL ANUNCIO OFICIAL)
   ========================================================== */
.hero-card-minimal {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 28px;
    padding: 42px 28px 36px 28px;
    box-shadow: 0 4px 24px -2px rgba(10, 58, 107, 0.05);
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-minimal-title {
    font-size: clamp(23px, 4vw, 35px);
    font-weight: 900;
    color: #0a2e50;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    line-height: 1.15;
    font-family: 'Outfit', -apple-system, sans-serif;
}

.hero-visual-wrapper {
    margin: 0 auto 24px auto;
    max-width: 580px;
    border-radius: 16px;
    overflow: hidden;
}

.hero-visual-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.hero-info-pills-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    padding: 10px 22px;
    box-shadow: 0 2px 8px rgba(10, 58, 107, 0.04);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hero-info-pill.linkable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 58, 107, 0.08);
    border-color: #22c55e;
}

.hero-info-pill .pill-icon {
    font-size: 20px;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-info-pill .pill-icon.wa {
    color: #25D366;
    font-size: 22px;
}

.hero-info-pill .pill-texts {
    text-align: left;
    line-height: 1.2;
}

.hero-info-pill .pill-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
}

.hero-info-pill .pill-val {
    font-size: 15px;
    font-weight: 900;
    color: #0a2e50;
    letter-spacing: -0.2px;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-hero-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, #0a3a6b 0%, #0a2e50 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 15px 36px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(10, 46, 80, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    max-width: 100%;
    cursor: pointer;
}

.btn-hero-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 46, 80, 0.45);
    background: linear-gradient(180deg, #0284c7 0%, #0a3a6b 100%);
}

.btn-hero-shop i {
    font-size: 19px;
}

.btn-minimal-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 15px 32px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.38);
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 100%;
}

.btn-minimal-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.48);
}

.btn-minimal-whatsapp i {
    font-size: 20px;
}

.hero-subtext {
    font-size: 13.5px;
    color: #64748b;
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* --- 4. BARRA DE CATEGORÍAS PÍLDORA STICKY --- */
.categories-nav-section {
    position: sticky;
    top: 74px;
    z-index: 95;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0 10px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.section-subtitle {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.categories-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.categories-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 4px 10px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    user-select: none;
    cursor: grab;
}

.categories-pills.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* Barra de desplazamiento sutil y moderna en PC */
@media (min-width: 769px) {
    .categories-pills {
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }
    .categories-pills::-webkit-scrollbar {
        height: 6px;
    }
    .categories-pills::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 9999px;
    }
    .categories-pills::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 9999px;
        transition: background 0.2s ease;
    }
    .categories-pills::-webkit-scrollbar-thumb:hover {
        background: var(--primary, #0a3a6b);
    }
}

@media (max-width: 768px) {
    .categories-pills {
        scrollbar-width: none;
    }
    .categories-pills::-webkit-scrollbar {
        display: none;
    }
}

/* Botones Flecha de Navegación para PC */
.cat-nav-arrow {
    position: absolute;
    top: calc(50% - 2px);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
    color: var(--dark, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.cat-nav-arrow.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cat-nav-arrow:hover {
    background: var(--dark, #0f172a);
    color: #ffffff;
    border-color: var(--dark, #0f172a);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.cat-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.cat-nav-arrow-left {
    left: -14px;
}

.cat-nav-arrow-right {
    right: -14px;
}

@media (max-width: 768px) {
    .cat-nav-arrow {
        display: none !important;
    }
}

.cat-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--dark-muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.cat-pill-btn i {
    color: var(--primary);
    font-size: 14px;
    transition: var(--transition);
}

.cat-pill-btn:hover {
    border-color: var(--primary-subtle);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.cat-pill-btn.active {
    background: var(--dark);
    color: #ffffff;
    border-color: var(--dark);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.cat-pill-btn.active i {
    color: #38bdf8;
}

/* --- 5. REJILLA Y TARJETAS DE PRODUCTO SIMPLES --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 70px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #38bdf8;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: #e0f2fe;
    color: #0284c7;
}

.badge-pack {
    background: #edf6fd;
    color: #0a3a6b;
    border: 1px solid #dbeafe;
}

.badge-general {
    background: #f1f5f9;
    color: #475569;
}

.badge-low-stock {
    background: #edf6fd;
    color: #0284c7;
}

.badge-out-of-stock {
    background: #f1f5f9;
    color: #94a3b8;
}

.product-img-wrap {
    height: 180px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
    overflow: hidden;
}

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

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat-name {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.35;
    min-height: 42px;
}

.product-unit {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-stock-notice {
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    width: fit-content;
}

.product-stock-notice.low-stock {
    background: #edf6fd;
    color: #0284c7;
}

.product-stock-notice.out-stock {
    background: #fef2f2;
    color: #ef4444;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.price-current {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary-dark);
}

.price-old {
    font-size: 13.5px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Botón Simple + Añadir */
.product-card-actions {
    width: 100%;
}

.btn-add-cart {
    width: 100%;
    padding: 10px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1.5px solid var(--primary-subtle);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(10, 58, 107, 0.25);
}

.btn-add-cart.disabled,
.btn-add-cart:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Stepper Dinámico en Tarjeta cuando ya está en Cesta */
.card-inline-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    border-radius: var(--radius-pill);
    height: 42px;
    padding: 3px 5px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(10, 58, 107, 0.25);
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-inline-stepper button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    line-height: 1;
}

.card-inline-stepper button:hover {
    background: rgba(255, 255, 255, 0.38);
}

.card-inline-stepper button:active {
    transform: scale(0.9);
}

.card-inline-stepper .step-qty-val {
    font-weight: 800;
    font-size: 16px;
    padding: 0 8px;
    color: #ffffff;
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Estado sin resultados */
.no-results-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results-state i {
    font-size: 42px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.no-results-state p {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

/* --- BOTÓN MOSTRAR MÁS PRODUCTOS (PAGINACIÓN PROGRESIVA) --- */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 35px auto 65px;
    text-align: center;
    gap: 14px;
    max-width: 420px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 34px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.32);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    font-family: inherit;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(22, 163, 74, 0.45);
    background: linear-gradient(135deg, #15803d, #166534);
}

.btn-load-more:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-load-more i {
    font-size: 17px;
    transition: transform 0.35s ease;
}

.btn-load-more:hover i {
    transform: rotate(90deg);
}

.load-more-counter {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    margin: 0;
}

.load-more-done {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.load-more-done i {
    color: #10b981;
    font-size: 15px;
}

/* Animación de entrada suave para tarjetas */
@keyframes cardPopIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card.animate-fade-in {
    animation: cardPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 6. BARRA FLOTANTE MÓVIL (STICKY BOTTOM BAR) --- */
.mobile-bottom-cart-bar {
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 995;
    display: none;
    animation: slideUpBottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-bottom-cart-inner {
    width: 100%;
    background: var(--dark);
    color: #ffffff;
    border-radius: var(--radius-pill);
    padding: 10px 14px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
    cursor: pointer;
}

.mobile-cart-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-cart-badge {
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-cart-texts {
    display: flex;
    flex-direction: column;
}

.mobile-cart-label {
    font-size: 10.5px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.mobile-cart-price {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.btn-mobile-view-cart {
    background: #ffffff;
    color: var(--dark);
    border: none;
    border-radius: var(--radius-pill);
    padding: 9px 16px;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

@keyframes slideUpBottom {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- 7. CARRITO LATERAL (DRAWER) LIMPIO --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: var(--card-bg);
    box-shadow: var(--shadow-drawer);
    z-index: 999;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.cart-drawer-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-close-btn:hover {
    background: #fee2e2;
    color: var(--danger);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 22px;
}

.cart-empty-state {
    text-align: center;
    padding: 60px 10px;
    color: var(--text-muted);
}

.cart-empty-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px auto;
}

.cart-empty-title {
    font-weight: 800;
    font-size: 17px;
    color: var(--dark);
    margin-bottom: 6px;
}

.cart-empty-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 260px;
    margin: 0 auto;
}

.cart-item-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item-img {
    width: 58px;
    height: 58px;
    background: #fafafa;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary-dark);
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: var(--radius-pill);
    overflow: hidden;
    height: 32px;
}

.cart-qty-btn {
    background: transparent;
    border: none;
    width: 28px;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: #e2e8f0;
}

.cart-qty-val {
    padding: 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--dark);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-drawer-footer {
    padding: 18px 22px;
    padding-bottom: max(22px, calc(16px + env(safe-area-inset-bottom, 20px)));
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1.5px dashed #cbd5e1;
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.btn-checkout-cta {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 15.5px;
    margin-top: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10, 58, 107, 0.28);
}

.btn-checkout-cta:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(10, 58, 107, 0.35);
}

/* --- 8. CHECKOUT LIMPIO & AMIGABLE --- */
.checkout-page-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
    margin: 35px 0 60px 0;
}

.checkout-box {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.checkout-step-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    font-size: 14.5px;
    outline: none;
    transition: var(--transition);
    background: #f8fafc;
}

.form-control:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Tarjetas selectoras de Zona de Entrega */
.zone-radio-card {
    border: 2px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}

.zone-radio-card:hover {
    border-color: var(--primary-subtle);
    background: var(--primary-light);
}

.zone-radio-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Métodos de Pago Amigables */
.payment-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.payment-radio-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: #ffffff;
}

.payment-radio-card:hover {
    border-color: var(--primary-subtle);
    background: var(--primary-light);
}

.payment-radio-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-radio-card input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Caja de Ticket Lateral */
.ticket-summary-box {
    background: #ffffff;
    border-radius: var(--radius-card);
    border: 1.5px dashed #cbd5e1;
    padding: 26px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 90px;
}

.ticket-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px dashed #cbd5e1;
    margin-bottom: 16px;
}

.ticket-brand {
    font-size: 18px;
    font-weight: 900;
    color: var(--dark);
}

.ticket-tagline {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* --- 9. TOASTS & NOTIFICACIONES --- */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--dark);
    color: #ffffff;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--accent);
}

@keyframes slideInToast {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- 10. BOTÓN FLOTANTE WHATSAPP RETRÁCTIL (CON BORDECITO VISIBLE) --- */
.whatsapp-float-tab {
    position: fixed;
    bottom: 30px;
    right: 0;
    z-index: 994;
    display: flex;
    align-items: center;
    background: #25D366;
    color: #ffffff;
    padding: 10px 18px 10px 14px;
    border-radius: 30px 0 0 30px;
    box-shadow: -3px 4px 16px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    text-decoration: none;
    /* Se esconde a la derecha dejando solo un bordecito/lengüeta visible de 15px */
    transform: translateX(calc(100% - 15px));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease;
}

/* Lengüeta / bordecito visible cuando está escondido */
.whatsapp-tab-peek {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 22px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.whatsapp-tab-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.whatsapp-float-icon {
    font-size: 26px;
}

.whatsapp-float-label {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

/* Al pasar el ratón o activarse, se desliza hacia fuera por completo */
.whatsapp-float-tab:hover,
.whatsapp-float-tab:focus-visible,
.whatsapp-float-tab.is-peek-expanded {
    transform: translateX(0);
    box-shadow: -5px 8px 24px rgba(37, 211, 102, 0.55);
    background: #22c35e;
}

/* --- 11. RESPONSIVE DESIGN MOBILE FIRST --- */
@media (max-width: 900px) {
    .hero-card {
        padding: 28px 22px;
    }
    .hero-title {
        font-size: 26px;
    }
    .checkout-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .categories-nav-section {
        top: 60px;
        padding: 8px 0 6px 0;
        margin-bottom: 18px;
    }

    /* Ocultar barra superior en móvil para dar espacio */
    .navbar-top {
        display: none !important;
    }

    /* Cabecera compacta y limpia */
    .nav-row {
        gap: 10px;
        padding: 10px 0;
    }

    .logo-brand img {
        height: 30px;
        max-width: 190px;
    }

    .search-bar-wrap {
        max-width: none;
    }

    .search-input {
        height: 40px;
        font-size: 13.5px;
        padding-left: 38px;
    }

    .search-icon {
        left: 14px;
        font-size: 14px;
    }

    .cart-btn-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }

    .cart-btn-text {
        display: none;
    }

    /* Hero compacto en móvil */
    .hero-banner {
        margin: 14px 0 24px 0;
    }

    .hero-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 21px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero-badge-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Grid de productos en 2 columnas en móvil */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 85px; /* Espacio para barra flotante */
    }

    .product-card {
        border-radius: 16px;
    }

    .product-img-wrap {
        height: 135px;
        padding: 10px;
    }

    .product-details {
        padding: 12px;
    }

    .product-title {
        font-size: 13.5px;
        min-height: 36px;
    }

    .price-current {
        font-size: 17px;
    }

    .btn-add-cart {
        padding: 8px 12px;
        font-size: 13px;
    }

    .card-inline-stepper {
        height: 38px;
    }

    .card-inline-stepper button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .card-inline-stepper .step-qty-val {
        font-size: 14.5px;
    }

    /* Ajustar WhatsApp tab retráctil sobre la barra móvil */
    .whatsapp-float-tab {
        bottom: 82px;
        padding: 8px 14px 8px 12px;
        transform: translateX(calc(100% - 14px));
    }

    .whatsapp-float-tab:hover,
    .whatsapp-float-tab.is-peek-expanded {
        transform: translateX(0);
    }

    .whatsapp-float-icon {
        font-size: 22px;
    }

    .whatsapp-float-label {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-img-wrap {
        height: 170px;
    }
}

/* ===================================================
   MODAL CONFIGURADOR DE PACKS PERSONALIZADOS
   =================================================== */
.btn-config-pack {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #0284c7, #0a3a6b);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: var(--transition);
}

.btn-config-pack:hover {
    background: linear-gradient(135deg, #0369a1, #062342);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.pack-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pack-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.pack-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    max-width: 680px;
    width: 94%;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pack-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.pack-modal-header {
    padding: 16px 22px;
    background: linear-gradient(135deg, #0a3a6b, #041b33);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0284c7;
}

.pack-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pack-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7, #0a3a6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.pack-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.pack-modal-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 2px;
}

.pack-modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pack-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pack-progress-wrap {
    padding: 10px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.pack-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 6px;
}

.pack-progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.pack-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7, #16a34a);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.pack-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
}

.pack-slot-block {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.pack-slot-block.is-completed {
    border-color: #10b981;
    background: #ffffff;
}

.pack-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.pack-slot-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pack-step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    text-transform: uppercase;
}

.pack-slot-block.is-completed .pack-step-badge {
    background: #d1fae5;
    color: #065f46;
}

.pack-slot-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.pack-slot-badge-status {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.pack-slot-badge-status.checked {
    color: #10b981;
}

.pack-slot-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 2px 0 12px 0;
}

.pack-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.pack-opt-card {
    display: block;
    cursor: pointer;
    user-select: none;
}

.pack-opt-radio {
    display: none;
}

.pack-opt-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.15s ease;
}

.pack-opt-card:hover .pack-opt-card-inner {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.pack-opt-radio:checked + .pack-opt-card-inner {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.pack-opt-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    color: transparent;
    transition: all 0.15s ease;
}

.pack-opt-radio:checked + .pack-opt-card-inner .pack-opt-indicator {
    border-color: #0284c7;
    background: #0284c7;
    color: #ffffff;
}

.pack-opt-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.pack-modal-footer {
    padding: 16px 22px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pack-footer-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pack-price-tag {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.pack-price-val {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.pack-price-old {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.pack-footer-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.btn-pack-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7, #0a3a6b);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
}

.btn-pack-add-to-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #0369a1, #062342);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-pack-add-to-cart:disabled,
.btn-pack-add-to-cart.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* Detalles del Pack dentro de la fila del Carrito */
.cart-pack-details {
    margin-top: 4px;
    padding: 5px 8px;
    background: #f8fafc;
    border-left: 2.5px solid #0284c7;
    border-radius: 4px;
    font-size: 11px;
    color: #475569;
    line-height: 1.45;
}

.cart-pack-details div {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

@media (max-width: 600px) {
    .pack-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-pack-add-to-cart {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   POP-UP & BANNER PERMANENTE DE PRÓXIMA APERTURA
   ========================================================================== */

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.opening-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.opening-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.opening-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    max-width: 560px;
    width: 92%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(2, 132, 199, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.opening-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.opening-modal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 28px 24px 22px;
    text-align: center;
    position: relative;
    border-bottom: 3px solid #0284c7;
}

.opening-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
}

.opening-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: rotate(90deg);
}

.opening-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.22);
    border: 1px solid rgba(56, 189, 248, 0.45);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #38bdf8;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.opening-pulse-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
}

.opening-pulse-dot.small {
    width: 7px;
    height: 7px;
}

.opening-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.4);
}

.opening-modal-title {
    font-size: 23px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.opening-modal-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

.opening-modal-body {
    padding: 22px 24px;
    overflow-y: auto;
}

.opening-modal-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    text-align: center;
    margin-bottom: 20px;
    white-space: pre-line;
}

.opening-highlights-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.opening-highlight-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.opening-hl-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.opening-highlight-item strong {
    display: block;
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
}

.opening-highlight-item small {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.opening-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-opening-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
    transition: all 0.2s ease;
}

.btn-opening-whatsapp:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
    color: #ffffff;
}

.btn-opening-explore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-opening-explore:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-opening-explore-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
}

.btn-opening-explore-primary:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    color: #ffffff;
}

.opening-strict-notice {
    background: #edf6fd;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
}

/* Pastilla flotante permanente (cuando se cierra el modal) */
.opening-permanent-pill {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9990;
    max-width: calc(100% - 120px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.opening-pill-content {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    user-select: none;
}

.opening-pill-content:hover {
    background: rgba(15, 23, 42, 1);
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.5);
}

.opening-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.35);
    color: #38bdf8;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.opening-pill-text {
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opening-pill-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .opening-permanent-pill {
        bottom: 78px;
        left: 12px;
        max-width: calc(100% - 90px);
    }
    .opening-pill-text {
        display: none;
    }
}

