/* ==========================================
 * CONTENEDOR PRINCIPAL
 * ========================================== */
#app-container {
    padding: 1.5rem 1rem;
    max-width: 600px;
    margin: 0 auto;
    /* Animación de entrada de vistas */
    animation: fade-in 0.4s ease forwards;
}

/* ==========================================
 * RESPONSIVE: DESKTOP (>= 768px)
 * ========================================== */
@media (min-width: 768px) {
    #app-container {
        max-width: 900px;
        padding: 2rem 2.5rem;
    }

    .top-nav {
        max-width: 900px;
    }

    .modal-content {
        max-width: 700px;
    }

    .floating-cart {
        max-width: 500px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .main-header {
        padding: 4rem 2rem 3rem;
    }

    .header-title {
        font-size: 3.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reviews-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
 * BARRA PEGAJOSA (STICKY CATEGORY NAV)
 * ========================================== */
.sticky-category-nav {
    position: sticky;
    top: 50px;
    z-index: 9000;
    background: rgba(244, 246, 248, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: -1.5rem -1rem 1rem -1rem;
    /* Contra restar padding del main container */
    padding: 15px 1rem;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    /* Comienza oculta o visible dependiente del diseño, default es visible pero la podemos esconder en app.js arriba. */
}

.sticky-category-nav::-webkit-scrollbar {
    display: none;
}

.sticky-category-nav.hidden-nav {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.category-pill {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-texto);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.category-pill.active {
    background: linear-gradient(45deg, var(--color-rojo), var(--color-naranja));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}

/* ==========================================
 * VISTA: MENÚ Y GRILLAS DE PRODUCTOS
 * ========================================== */
.section-heading {
    color: var(--color-rojo);
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--color-naranja);
    padding-bottom: 5px;
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 8px;
    /* Solo fallback, usamos img-wrapper en JS ahora */
}

/* Wrapper para overlays y badges */
.img-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Evitar desborde en móvil */
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    background-color: var(--color-crema);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    /* Obligatorio viewport movil */
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
}

/* Gradiente sutil debajo de la imagen para que el título contraste incluso con imágenes blancas */
.img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

/* Etiqueta de "Más Vendido" flotante */
.badge-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(45deg, var(--color-rojo), var(--color-naranja));
    color: white;
    font-size: 0.70rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-texto);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.product-desc {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-naranja);
    margin-bottom: 10px;
    display: block;
}

/* Controles de Cantidad */
.qty-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-crema);
    border-radius: 20px;
    padding: 2px;
}

.qty-btn {
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-rojo);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-display {
    font-weight: 800;
    font-size: 1.1rem;
}

/* Botón Añadir */
.btn-primary {
    background: linear-gradient(45deg, var(--color-naranja), var(--color-rojo));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, var(--transition-opacity);
}

.btn-primary:active,
.qty-btn:active {
    transform: scale(0.92);
}

.btn-secondary {
    background: transparent;
    color: var(--color-rojo);
    border: 2px solid var(--color-rojo);
    border-radius: 20px;
    padding: 10px 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
}

.btn-secondary:active {
    transform: scale(0.92);
}

/* ==========================================
 * TARJETAS ESTILO GLASS Y LAYOUT DE VISTAS
 * ========================================== */
.glass-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.border-top-primary {
    border-top: 4px solid var(--color-naranja);
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: var(--border-radius);
}

/* ==========================================
 * GALERÍA DE FOTOS (CONÓCENOS)
 * ========================================== */
.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item.gallery-featured {
    grid-column: 1 / -1;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item.gallery-featured img {
    aspect-ratio: 16 / 9;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .gallery-item img {
        height: 240px;
        aspect-ratio: auto;
    }
    .gallery-item.gallery-featured img {
        height: 320px;
        aspect-ratio: auto;
    }
}

/* ==========================================
 * IMÁGENES RESPONSIVAS
 * ========================================== */
.responsive-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

@media (min-width: 768px) {
    .responsive-img {
        max-height: 450px;
    }
}

/* ==========================================
 * BOTÓN FLOTANTE WHATSAPP
 * ========================================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9997;
    transition: transform 0.2s ease, box-shadow 0.2s;
    animation: wa-pulse 2s infinite;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Fix iOS Safari fixed positioning */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: scale(0.95) translateZ(0);
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ==========================================
 * ANIMACIONES DE SCROLL (REVEAL)
 * ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
 * HERO TEXT Y VALORES (CONÓCENOS / RESEÑAS)
 * ========================================== */
.hero-text h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: var(--color-naranja);
    line-height: 1.1;
    margin-bottom: 5px;
}

.hero-text p {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-texto);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.value-card {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-naranja);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-card i {
    font-size: 2rem;
    color: var(--color-naranja);
}

/* ==========================================
 * RESEÑAS
 * ========================================== */
.review-score {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
}

.review-stars {
    font-size: 1.5rem;
}

.review-count {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-texto);
    font-size: 0.9rem;
}

.input-group input[type="text"],
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    /* Prevent iOS auto-zoom on focus */
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--color-naranja);
}

input[type=range] {
    accent-color: var(--color-naranja);
}

.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    border-left: 4px solid var(--color-naranja);
    box-shadow: var(--shadow-soft);
}

.review-card .stars {
    color: var(--color-naranja);
    font-size: 1rem;
    margin-bottom: 5px;
}

.review-card .text {
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.review-card .author {
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================
 * BARRA DE NAVEGACIÓN SUPERIOR — MINIMALISTA
 * ========================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    height: 50px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    z-index: 9998;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s ease;
    color: #999;
    gap: 1px;
}

.nav-item i {
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.nav-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-item.active {
    color: var(--color-naranja);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--color-naranja), var(--color-rojo));
    border-radius: 2px 2px 0 0;
}

.nav-item:not(.active):hover {
    color: #555;
}

/* ==========================================
 * BOTÓN FLOTANTE DEL CARRITO (DELIVERY STYLE)
 * ========================================== */
.floating-cart {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(45deg, var(--color-naranja), var(--color-rojo));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    z-index: 9999;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Animación popup inicial */
    animation: pop-up 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.floating-cart:active {
    transform: translateX(-50%) scale(0.93) !important;
}

.floating-cart.hidden {
    display: none !important;
}

/* Animación de Shake Inteligente para feedback al añadir */
@keyframes shake-cart {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    25% {
        transform: translateX(-50%) rotate(-4deg);
    }

    50% {
        transform: translateX(-50%) rotate(4deg);
    }

    75% {
        transform: translateX(-50%) rotate(-4deg);
    }

    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

.cart-shake {
    animation: shake-cart 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

@keyframes pop-up {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cart-icon-wrapper {
    position: relative;
    font-size: 1.5rem;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: var(--color-rojo);
    font-size: 0.7rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-text {
    font-weight: 700;
    font-size: 1rem;
}

.cart-total {
    font-weight: 900;
    font-size: 1.1rem;
}

/* ==========================================
 * TOAST ALERTS SE HAN REGRESADO A LA PARTE SUPERIOR
 * ========================================== */

/* ==========================================
 * COMPONENTES HUD: SKELETON LOADING
 * ========================================== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-crema);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    padding-top: 70px;
}

.skeleton-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
}

.skeleton-header {
    width: 60%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    animation: shimmer 1.5s infinite;
}

.skeleton-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.skeleton-pill {
    width: 80px;
    height: 32px;
    background: #e0e0e0;
    border-radius: 16px;
    animation: shimmer 1.5s infinite;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.skeleton-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: var(--shadow-soft);
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    background: #e8e8e8;
    border-radius: 10px;
    margin-bottom: 10px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line {
    height: 12px;
    background: #e8e8e8;
    border-radius: 6px;
    margin-bottom: 8px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-40 { width: 40%; }

.skeleton-btn {
    width: 100%;
    height: 36px;
    background: linear-gradient(90deg, #f0d0b0, #f0c0a0);
    border-radius: 18px;
    margin-top: 8px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==========================================
 * MODAL DEL CARRITO
 * ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: var(--transition);
}

.modal-overlay.hidden {
    display: none !important;
    opacity: 0;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 24px 24px 0 0;
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slide-up 0.3s ease forwards;
}

@keyframes slide-up {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

.btn-circular-close {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    color: var(--color-texto);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
}

/* Fallback X visible cuando Phosphor no carga */
.close-fallback {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

/* Ocultar fallback cuando el ícono Phosphor sí carga */
.btn-circular-close .ph-bold.ph-x:not(:empty) ~ .close-fallback {
    display: none;
}

.btn-circular-close .ph-bold {
    display: inline-flex;
}

.btn-circular-close:active {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(0.92);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-texto);
    cursor: pointer;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    color: var(--color-texto);
    margin: 0;
}

.cart-item-price {
    color: var(--color-naranja);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty button {
    background: var(--color-blanco);
    border: 2px solid var(--color-crema);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-total-sect {
    text-align: right;
    margin-top: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

/* ==========================================
 * UP-SELL (VENTAS SUGERIDAS)
 * ========================================== */
.upsell-section {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.04), rgba(211, 47, 47, 0.04));
    border-radius: 16px;
    padding: 12px 15px;
    border: 1px dashed rgba(255, 107, 0, 0.4);
}

.upsell-title {
    font-family: 'Oswald', sans-serif;
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.upsell-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Firefox */
}

.upsell-items::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.upsell-card {
    min-width: 100px;
    max-width: 120px;
    flex-shrink: 0;
    /* IMPEDIR QUE SAFARI ROMPA EL CARRUSEL */
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.upsell-img-box {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    flex-shrink: 0;
    /* IMPEDIR QUE SAFARI CREZCA LA IMAGEN */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.upsell-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upsell-card-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1.1;
}

.upsell-card-price {
    font-size: 0.85rem;
    color: var(--color-rojo);
    font-weight: 800;
    margin: 0;
}

.upsell-btn {
    background: var(--color-crema);
    color: var(--color-naranja);
    border: none;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.upsell-btn:active {
    transform: scale(0.92);
    background: var(--color-naranja);
    color: white;
}

/* Info de transferencia en Modal */
.transfer-box {
    background: rgba(255, 107, 0, 0.1);
    border: 2px dashed var(--color-naranja);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.acc-number {
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--color-rojo);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

/* ==========================================
 * FOOTER
 * ========================================== */
#main-footer {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95)), url('imagenes/fondotacos.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 3rem 1.5rem 6rem;
    /* padding extra abajo por la navegación */
    border-top: 4px solid var(--color-naranja);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-naranja);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a i {
    font-size: 1.8rem;
}

.social-links a:hover {
    color: white;
    transform: scale(1.05);
}

.credits {
    color: #888;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 20px !important;
}

/* ==========================================
 * MODAL DE PRIVACIDAD (CONSENT BANNER)
 * ========================================== */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: privacy-fade-in 0.4s ease forwards;
}

.privacy-overlay.hidden {
    display: none !important;
}

.privacy-overlay.closing {
    animation: privacy-fade-out 0.4s ease forwards;
}

@keyframes privacy-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes privacy-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.privacy-modal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 28px 24px 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: privacy-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes privacy-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.privacy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.privacy-icon {
    font-size: 1.8rem;
    color: var(--color-naranja);
}

.privacy-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: var(--color-texto);
    margin: 0;
}

.privacy-summary {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.privacy-full-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.privacy-scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px 14px;
    background: var(--color-crema);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
}

.privacy-scrollable h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    color: var(--color-naranja);
    margin: 12px 0 6px 0;
}

.privacy-scrollable h4:first-child {
    margin-top: 0;
}

.privacy-scrollable p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.privacy-toggle-btn {
    background: none;
    border: none;
    color: var(--color-naranja);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    display: block;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.privacy-toggle-btn:hover {
    color: var(--color-rojo);
}

.privacy-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.privacy-btn-accept {
    background: linear-gradient(45deg, var(--color-naranja), var(--color-rojo));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 0;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s, box-shadow 0.2s;
}

.privacy-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
}

.privacy-btn-accept:active {
    transform: scale(0.96);
}

.privacy-btn-reject {
    background: transparent;
    color: #888;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s, background-color 0.2s, color 0.2s;
}

.privacy-btn-reject:hover {
    background: #f5f5f5;
    color: #555;
}

.privacy-btn-reject:active {
    transform: scale(0.96);
}

/* ==========================================
 * SCROLL ANIMATION (CONÓCENOS) - APPLE EXPERIENCIA
 * ========================================== */
.apple-scroll-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: transparent; /* Quitamos el fondo negro */
}

.apple-sticky {
    position: sticky;
    top: 50px; /* Debajo de nuestro nav superior */
    width: 100vw;
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px); /* Fallback dinámico para celulares */
    overflow: hidden;
    background: transparent;
    z-index: 1;
    /* Efecto de difuminado suave en los bordes para que se funda con la página */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

#frame-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Quitamos la opacidad que lo hacía oscuro y triste */
}

/* Contenedor superpuesto para los textos narrativos */
.scroll-content-overlay {
    position: relative;
    z-index: 2; /* Por encima del sticky stage */
    margin-top: calc(-100vh + 50px);
    margin-top: calc(-100dvh + 50px); /* Para celulares */
}

.scroll-slide {
    height: 100vh;
    height: 100dvh; /* Pantalla completa en móviles sin cortes de Safari/Chrome */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.scroll-slide-empty {
    height: 60vh; /* Un respiro antes de pasar a la galería */
}

.slide-card {
    max-width: 480px;
    padding: 40px 30px !important; /* Más respiro interno */
    background: rgba(255, 255, 255, 0.70) !important; /* Más translucido para lucir el video */
    backdrop-filter: blur(24px); /* Mayor desenfoque tipo iOS */
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px !important; /* Bordes muy suaves y redondos */
    border: 1px solid rgba(255, 255, 255, 0.6) !important; /* Borde blanco cristalino */
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important; /* Sombra levitante */
    text-align: center;
}

.slide-card h3 {
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px !important;
    color: var(--color-naranja) !important; /* Forzar títulos en color naranja siempre */
}

.slide-card p {
    color: #333333; /* Gris profundo hiper legible */
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

#scroll-hint {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 15;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: bounce-hint 2s infinite;
}

#scroll-hint.gone {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@keyframes bounce-hint {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==========================================
 * FIX Z-INDEX PARA SWEETALERT
 * ========================================== */
.swal2-container {
    z-index: 999999 !important; /* Asegurar que la alerta requerida salga por encima del modal de privacidad */
}