﻿/* ⚡ ULTRA PERFORMANCE - TODO OPTIMIZADO */
:root {
    --webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -webkit-backface-visibility: hidden;
}

/* ============================================
   PILLS Y MENU ITEMS - SIN ANIMACIONES
============================================ */
.pill {
    display: inline-flex;
    align-items: center;
    margin: 5px;
    padding: 10px 16px;
    min-height: 44px; /* tap target accesible */
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .92);
    border: 1px solid rgba(17, 24, 39, .10);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    contain: layout style;
    transition: box-shadow .15s cubic-bezier(.4,0,.2,1), border-color .15s cubic-bezier(.4,0,.2,1), transform .15s cubic-bezier(.4,0,.2,1);
}

    .pill:hover {
        border-color: var(--color-iconos-descripcion-umedida, #2563eb);
        box-shadow: 0 3px 10px rgba(16, 24, 40, .12);
        transform: translateY(-1px);
    }

    .pill:active {
        transform: translateY(0) scale(.97);
    }

    .pill.active {
        background-color: #111827;
        border-color: #111827;
        color: white;
    }

    .pill i {
        font-size: 14px;
        color: var(--color-iconos-descripcion-umedida, #2563eb);
    }

    .pill.active i {
        color: white;
    }

.menu-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
    contain: layout style;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px rgba(16, 24, 40, 0.06);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}

/* Hover solo en lista (la grilla tiene su propio lift); en touch no aplica */
@media (hover: hover) {
    .menu-item:not(.product-card):not(.disabled):hover {
        box-shadow: 0 3px 8px rgba(16, 24, 40, 0.09), 0 10px 24px rgba(16, 24, 40, 0.10);
        transform: translateY(-2px);
    }
}

    .menu-item.disabled {
        opacity: 0.6;
    }

    .menu-item.selected {
        background-color: #d4edda;
        border-color: #c3e6cb;
    }

.price-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 10px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .quantity-control input {
        width: 60px;
        text-align: center;
        font-weight: bold;
    }

    .quantity-control button {
        font-weight: bold;
        transition: opacity 0.2s;
    }

        .quantity-control button:hover {
            opacity: 0.8;
        }

/* ============================================
   INDICADORES Y BOTONES FIJOS
============================================ */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: red;
    margin-right: 5px;
    vertical-align: middle;
}

.floating-button {
    position: fixed;
    bottom: 16px;
    right: 2px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    user-select: none;
    transition: background-color 0.2s;
}

    .floating-button span {
        font-size: 14px;
        margin-left: 5px;
    }

    .floating-button:hover {
        background-color: #1da851;
    }

/* 🎟️ Badge de producto digital (catálogo): discreto, junto al nombre. */
.dtp-badge-digital {
    display: inline-block;
    margin-inline-start: 6px;
    font-size: .85em;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

/* Con un modal de SweetAlert abierto (resumen del carrito, checkout, pantalla
   final) los botones flotantes se esconden: quedaban ENCIMA del popup y
   tapaban el contenido. CSS puro sobre la clase swal2-shown del <body>. */
body.swal2-shown .floating-button,
body.swal2-shown .scroll-top-button,
body.swal2-shown .cart-button {
    opacity: 0;
    pointer-events: none;
}

.scroll-top-button {
    position: fixed;
    bottom: 145px;
    right: 8px;
    background: rgba(17, 24, 39, .88);
    color: white;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(16, 24, 40, .12), 0 8px 20px rgba(16, 24, 40, .22);
    display: none;
    z-index: 1051;
    transition: background-color .15s, transform .15s, box-shadow .15s;
}

    .scroll-top-button:hover {
        background: rgba(17, 24, 39, .98);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(16, 24, 40, .14), 0 12px 26px rgba(16, 24, 40, .28);
    }

    .scroll-top-button:active {
        transform: translateY(0) scale(.94);
    }

/* ============================================
   BANNER SOCIAL - OPTIMIZADO CON BARRIDO
============================================ */
.social-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 10px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

    /* ✨ BARRIDO OPTIMIZADO - SOLO TRANSFORM */
    .social-banner::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
        animation: barrido 6s infinite ease-in-out;
        pointer-events: none;
        z-index: 0;
        will-change: transform;
    }

@keyframes barrido {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(200%);
    }
}

/* Los dos barridos son decoración pura y corren en bucle infinito. Con
   tema activo los apaga el bloque de movimiento reducido de
   `dtp-tema.css`; en modo clásico no los apagaba nadie. Este corte no
   cambia nada para quien no pidió menos movimiento. */
@media (prefers-reduced-motion: reduce) {
    .social-banner::after,
    .futuristic-header::after {
        animation: none !important;
    }

    /* `html { scroll-behavior: smooth }` (arriba, linea 7) hace que TODO
       desplazamiento programatico o de teclado se deslice. Medido en la
       tienda: un salto de 700 px tarda 424 ms en quedar quieto contra
       9,9 ms sin el. Bajo tema ya lo apagaba el bloque de movimiento
       reducido de `dtp-tema.css`; en modo clasico no lo apagaba nadie.
       Solo afecta a quien pidio menos movimiento. */
    html {
        scroll-behavior: auto !important;
    }
}

.social-banner a {
    text-decoration: none;
    color: #0095ff;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    position: relative;
    z-index: 5;
}

    .social-banner a:hover {
        color: #0056b3;
    }

/* ============================================
   STATUS BUTTON - SIMPLIFICADO
============================================ */
.status-button {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.2s;
    position: relative;
    z-index: 2;
    contain: layout style paint;
}

    .status-button:hover {
        box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
    }

    .status-button.closed {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    }

        .status-button.closed:hover {
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
        }

/* ============================================
   BOTONES GENERALES
============================================ */
.map-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    margin: 20px auto;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

    .map-button:hover {
        background-color: #0056b3;
    }

/* ============================================
   COMENTARIOS
============================================ */
.comment-icon {
    font-size: 1.2em;
    margin-right: 5px;
    flex-shrink: 0;
    margin-top: 1px;
    min-width: 18px;
    min-height: 18px;
    display: flex;
    align-items: flex-start;
    contain: layout style;
}

.comment-text {
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
    font-family: Georgia, serif;
    font-style: italic;
}

.border-bottom {
    border-bottom: 0 !important;
}

.comment-button {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px;
    width: 100%;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    margin-left: 0 !important;
    padding-left: 0 !important;
    cursor: pointer;
    color: var(--color-iconos-descripcion-umedida);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ============================================
   PANTALLA DE CARGA - SIMPLIFICADA
============================================ */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa, #e0e0e0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, .14);
    border-top: 4px solid #ffb300;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    animation: spin .8s linear infinite;
    will-change: transform;
}

#loadingScreen.hidden {
    opacity: 0;
    visibility: hidden;
}

p {
    font-size: 16px;
    color: #007bff;
    font-weight: bold;
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-text::after {
    content: '';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    33% {
        content: '.';
    }

    66% {
        content: '..';
    }

    100% {
        content: '...';
    }
}

/* ============================================
   STOCK STATUS - SIMPLE
============================================ */
.stock-status {
    color: red;
    font-weight: bold;
    font-size: 1.1em;
    opacity: 0.8;
}

/* ============================================
   IMÁGENES
============================================ */
.img-thumbnail {
    padding: 0 !important;
    border: none !important;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

.swal2-html-container {
    max-height: 70vh;
    overflow-y: auto;
}

.increase {
    margin-left: 0 !important;
}

/* Superficie premium 2026 de todos los diálogos del catálogo:
   dark slate neutro (reemplaza el gradiente azul clásico). Los popups
   con tema propio (popup-neon, dtpc-*) lo pisan con su especificidad. */
.swal2-popup {
    background: linear-gradient(165deg, #111827 0%, #1f2937 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 28px 70px rgba(0, 0, 0, 0.5) !important;
}

.swal2-title {
    color: #f9fafb !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}

/* ============================================
   HEADER - SIMPLIFICADO CON BARRIDO
============================================ */
.futuristic-header {
    color: #ffffff;
    border-radius: 10px;
    padding: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--rgb-iconos-desc, 0,123,255), 0.05) 0%, transparent 50%, rgba(var(--rgb-iconos-desc, 0,123,255), 0.03) 100%);
    border: 1px solid rgba(var(--rgb-iconos-desc, 0,123,255), 0.2);
}

    /* ✨ BARRIDO SUAVE EN HEADER */
    .futuristic-header::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -100%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
        animation: barrido-header 8s infinite ease-in-out;
        pointer-events: none;
        z-index: 1;
        will-change: transform;
    }

@keyframes barrido-header {
    0%, 100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(50%, 0);
    }
}

.futuristic-header .title-header {
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
}

.title-header {
    max-width: 90%;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

/* ============================================
   GRID DE PRODUCTOS - ULTRA OPTIMIZADO
============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin: 0;
    /* Sin grid-auto-rows:1fr — igualaba todas las filas a la más alta
       de la categoría y generaba espacios muertos enormes en el medio
       de las cards. Cada fila se alinea a su propio máximo. */
}

@media(min-width:576px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media(min-width:768px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media(min-width:992px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media(min-width:1400px) {
    .card-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

.card-grid .quantity-control {
    justify-content: center !important;
    width: 100%;
}

@media (max-width: 575px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

        .card-grid .product-card:last-child:nth-child(odd) {
            grid-column: 1 / span 2;
        }

        .card-grid .product-card:only-child {
            grid-column: 1 / -1 !important;
        }
}

/* ============================================
   TARJETAS DE PRODUCTO - OPTIMIZADAS
============================================ */
.product-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    user-select: none;
    position: relative;
    align-self: start;
    min-width: 0;
    overflow-wrap: anywhere;
    height: 100%;
    justify-content: flex-start;
    contain: content;
}

    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .product-card.disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

        .product-card.disabled:hover {
            transform: none;
        }

    .product-card img {
        display: block;
        margin: 0 auto 10px auto;
        border-radius: 10px;
        background: #faf6fb;
        box-shadow: 0 2px 16px #0001;
    }

.imagen-producto-fija {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: #faf6fb;
    border-radius: 10px;
    overflow: hidden;
}

    .imagen-producto-fija img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center;
        display: block;
        margin: 0 auto;
        border-radius: 10px;
    }

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.product-card .price-tag {
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-iconos-descripcion-umedida);
    margin-bottom: 10px;
}

.product-card .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.product-card .quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .product-card .quantity-control input {
        width: 50px;
        text-align: center;
        font-weight: bold;
        border: 1px solid #ccc;
        border-radius: 5px;
        height: 32px;
    }

    .product-card .quantity-control button {
        font-weight: bold;
        height: 32px;
        line-height: 1;
        padding: 0 8px;
        transition: opacity 0.2s;
    }

        .product-card .quantity-control button:hover {
            opacity: 0.8;
        }

.vertical-option {
    flex-direction: column;
    align-items: stretch;
}

    .vertical-option .price-tag {
        display: block;
        text-align: center;
        word-wrap: break-word;
        font-size: 0.95rem;
    }

    .vertical-option .unidad {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }

.price-option.vertical-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
}

    .price-option.vertical-option .quantity-control {
        width: 100%;
        justify-content: center;
    }

.card-footer {
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

    .card-footer .quantity-control {
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }

        .card-footer .quantity-control input {
            max-width: 60px;
            text-align: center;
        }

.product-card .precio-monto {
    color: black;
    font-weight: bold;
}

.zoomable-image {
    cursor: pointer;
}

.price-option .precio-monto {
    border: none !important;
    padding: 0;
    background: none;
}

.price-option span {
    position: relative;
    padding: 5px 12px;
    border-radius: 12px;
    background-color: #f8f9fa;
    border: 2px solid #ff5722;
    color: black;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 4px rgba(255, 87, 34, 0.25);
}

/* ============================================
   INFO PRODUCTO
============================================ */
.info-titulo-desc {
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 0px;
    overflow: hidden;
}

/* El clamp vive en el elemento INTERNO (<b>/<span>, sin padding): con el
   clamp en el elemento con padding-chip, WebKit deja ver fragmentos de las
   líneas ocultas en la zona de padding. */
.titulo-producto {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.13;
    margin-bottom: 0px;
    color: #212121;
}

    .titulo-producto > b {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.descripcion-producto {
    font-size: 1rem;
    color: #b71c8e;
    margin-bottom: 0px;
    line-height: 1.2;
}

    .descripcion-producto > span {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.card-grid .product-card:only-child .info-titulo-desc {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* ============================================
   PASOS DTP - ULTRA OPTIMIZADO
============================================ */
/*.pasos-dtp {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    gap: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    position: relative;
    font-size: 11px;
    contain: layout style;
}*/

/* ============================================
   PASOS DTP - MÁXIMA VELOCIDAD (SIN ANIMACIONES)
============================================ */
.pasos-dtp {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 10px;
    /*    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 50%, var(--color-iconos-descripcion-umedida) 100%);*/
    background: linear-gradient( 315deg, var(--color-iconos-descripcion-umedida) 0%, rgba(0,0,0,0.88) 60%, rgba(0,0,0,0.92) 100% );
    /*  background: linear-gradient( 315deg, var(--color-iconos-descripcion-umedida) 0%, rgba(0,0,0,0.92) 45%, rgba(0,0,0,0.92) 55%, var(--color-iconos-descripcion-umedida) 100% );*/
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    gap: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    position: relative;
    font-size: 11px;
    contain: layout style paint;
}

.paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.6;
}

    .paso .icono {
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.8rem;
        background: #222;
        color: #888;
        border-radius: 50%;
        margin-bottom: 5px;
        transition: all 0.3s;
        contain: layout style paint;
    }

    .paso.activo,
    .paso:hover {
        color: #fff;
        opacity: 1;
    }

        .paso.activo .icono,
        .paso:hover .icono {
            background: linear-gradient(135deg, #00bfff, #ff6a00);
            color: #fff;
            box-shadow: 0 0 12px rgba(255, 106, 0, 0.6);
        }

/* ============================================
   POPUP IMAGEN - SIMPLIFICADO
============================================ */
.popup-neon {
    position: relative;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #0d1f33, #112e4d) !important;
    border: 2px solid #00eaff;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 0 18px #00eaff55;
    contain: layout style paint;
}

/*.imagen-glow {
    border-radius: 12px;
    box-shadow: 0 3px 20px #00eaff33;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 70vh;
    object-fit: contain;
    margin: 20px auto 12px auto;
    display: block;
}*/

.imagen-glow {
    border-radius: 12px;
    box-shadow: 0 3px 20px #00eaff33;
    width: auto !important;
    max-width: 95vw !important;
    height: auto !important;
    max-height: 85vh !important;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    margin: 20px auto 12px auto;
    display: block;
}

@media (max-width: 768px) {
    .imagen-glow {
        max-height: 60vh;
        margin: 10px auto 8px auto;
    }
}

.popup-neon .swal2-html-container {
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 10px !important;
}

@media (max-width: 768px) {
    .popup-neon .swal2-html-container {
        max-height: 70vh !important;
        padding: 5px !important;
    }
}

.popup-neon {
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .popup-neon {
        max-width: 98vw !important;
        max-height: 85vh !important;
    }
}

.titulo-glow {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #5fe1ff 0%, #6089ff 45%, #c67cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.boton-glow {
    font-size: 1.05rem !important;
    background: linear-gradient(90deg, #0099ff 0%, #80d0ff 100%) !important;
    color: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 0 10px #0099ff66;
    padding: 10px 24px !important;
    transition: transform 0.2s;
}

    .boton-glow:hover {
        transform: scale(1.05);
    }

.close-button-glow {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    right: 10px !important;
    top: 10px !important;
    text-shadow: 0 0 6px #00d1ff;
}

/* ============================================
   CARDS EN GRID - OPTIMIZADAS
============================================ */
.card-grid .product-card {
    background: var(--color-default-panel, #fff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    transition: all .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    contain: layout style paint;
}

    .card-grid .product-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
        transform: translateY(-2px);
    }

    .card-grid .product-card.disabled {
        opacity: .6;
        cursor: not-allowed;
    }

        .card-grid .product-card.disabled:hover {
            transform: none;
        }

/*Metodo de pago*/
/* 🚀 CHECKOUT MODERNO - 100% RESPONSIVE SIN SCROLLS */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    padding: 0 5px;
}

    .checkout-steps::before {
        content: '';
        position: absolute;
        top: 18px;
        left: 25%;
        right: 25%;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
        z-index: 0;
    }

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.step.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.step.completed .step-circle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 6px;
    font-weight: 600;
    line-height: 1.1;
}

.step.active .step-label {
    color: white;
    font-weight: 700;
}

/* CONTENIDO DEL PASO - SIN SCROLL */
.step-content {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 18px 15px;
    max-height: calc(80vh - 150px);
    overflow-y: auto;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: -0.3px;
}

.step-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.3;
}

/* TARJETAS DE OPCIONES - MÁS COMPACTAS */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.option-card {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .option-card:hover {
        transform: translateY(-3px);
        border-color: rgba(102,126,234,0.6);
        box-shadow: 0 6px 18px rgba(102,126,234,0.3);
    }

    .option-card.selected {
        background: linear-gradient(135deg, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.25) 100%);
        border-color: #667eea;
        box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    }

        .option-card.selected::after {
            content: '✓';
            position: absolute;
            top: 6px;
            right: 6px;
            background: #28a745;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.8rem;
        }

    .option-card i {
        font-size: 2rem;
        margin-bottom: 8px;
        display: block;
        color: rgba(255,255,255,0.75);
        transition: all 0.3s ease;
    }

    .option-card:hover i,
    .option-card.selected i {
        color: #667eea;
        transform: scale(1.05);
    }

.option-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-top: 6px;
    line-height: 1.2;
}

/* FORMULARIOS */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 15px 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-field label {
        color: rgba(255,255,255,0.9);
        font-size: 0.85rem;
        font-weight: 600;
        margin-left: 2px;
    }

    .form-field small {
        color: rgba(255,255,255,0.5);
        font-size: 0.75rem;
        margin-left: 2px;
    }

    .form-field input {
        background: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.2);
        border-radius: 10px;
        padding: 11px 13px;
        color: white;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        outline: none;
    }

        .form-field input:focus {
            background: rgba(255,255,255,0.15);
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
        }

        .form-field input::placeholder {
            color: rgba(255,255,255,0.4);
        }

    /* Datos del cliente: textarea de comentario + badge "(opcional)" */
    .form-field textarea {
        width: 100%;
        box-sizing: border-box;
        background: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.2);
        border-radius: 10px;
        padding: 11px 13px;
        color: #fff;
        font-size: 0.9rem;
        font-family: inherit;
        line-height: 1.4;
        resize: vertical;
        min-height: 46px;
        outline: none;
        transition: all 0.3s ease;
    }
        .form-field textarea:focus {
            background: rgba(255,255,255,0.15);
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
        }
        .form-field textarea::placeholder { color: rgba(255,255,255,0.4); }

    .form-field .field-opt {
        font-weight: 500;
        font-size: 0.78rem;
        color: rgba(255,255,255,0.5);
    }

/* BOTONES — barra sticky: nunca quedan fuera de pantalla aunque el
   contenido del paso crezca (ej: detalle de transferencia expandido) */
.step-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    position: sticky;
    bottom: -18px; /* compensa el padding inferior de .step-content */
    z-index: 5;
    padding: 12px 10px;
    margin-left: -10px;
    margin-right: -10px;
    background: rgba(17, 24, 39, 0.92);
    border-radius: 14px;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.38);
}

.btn-step {
    flex: 1;
    max-width: 180px;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .btn-step:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-back {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

    .btn-back:hover:not(:disabled) {
        background: rgba(255,255,255,0.25);
    }

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(102,126,234,0.4);
}

    .btn-next:hover:not(:disabled) {
        box-shadow: 0 5px 18px rgba(102,126,234,0.6);
        transform: translateY(-2px);
    }

.btn-finish {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(40,167,69,0.4);
}

    .btn-finish:hover:not(:disabled) {
        box-shadow: 0 5px 18px rgba(40,167,69,0.6);
        transform: scale(1.03);
    }

/* INFO CARDS */
.info-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .info-card i {
        font-size: 1.3rem;
        color: #667eea;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .info-card p {
        margin: 0;
        color: rgba(255,255,255,0.85);
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .info-card strong {
        display: block;
        margin-bottom: 4px;
    }

/* RESPONSIVE */
@media (max-width: 576px) {
    .checkout-steps::before {
        display: none;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .step-content {
        padding: 15px 12px;
    }

    .step-buttons {
        bottom: -15px; /* padding inferior mobile de .step-content */
        margin-left: -8px;
        margin-right: -8px;
        padding: 10px 8px;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .step-subtitle {
        font-size: 0.8rem;
    }

    .option-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .option-card i {
        font-size: 1.8rem;
    }

    .option-card-title {
        font-size: 0.85rem;
    }

    .btn-step {
        max-width: none;
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    .form-field input {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* OCULTAR SCROLLBAR PERO PERMITIR SCROLL */
.step-content::-webkit-scrollbar {
    width: 4px;
}

.step-content::-webkit-scrollbar-track {
    background: transparent;
}

.step-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

    .step-content::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.3);
    }
/*Fin Metodo de pago*/


/* =====================================================================
   "MI PEDIDO" — cápsula flotante (mobile y desktop)
   Una sola superficie: pill oscuro neutro (independiente del tema del
   tenant) + una única sombra + hairline. Adentro, dos elementos y un
   solo color saturado (esmeralda) en el contador y el chevron.
   Ancho = contenido; nunca barra de sistema.
   El JS la muestra con display:flex y le pone .item-added cuando el pedido
   sube: ambos comportamientos quedan intactos, no se tocó una línea de JS.
   Animaciones: solo transform/opacity, y ninguna permanente.
   ===================================================================== */
.cart-button {
    position: fixed;
    left: 50%;
    /* Safe-area: no queda detrás de la barra de gestos de iOS/Android */
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    /* Ancho = contenido, con un piso para que un importe corto no la achique
       hasta parecer un chip, y un techo para que nunca sea una barra. */
    min-width: 190px;
    max-width: calc(100% - 32px);
    height: 56px;
    display: none;
    align-items: center;
    gap: 11px;
    padding: 0 8px 0 17px;
    /* El piso del degradado queda por ENCIMA del gris del footer (#070b16):
       así la cápsula se despega sola cuando queda sobre el pie oscuro, sin
       agregar capas ni filtros. */
    background: linear-gradient(180deg, #1f2b3e 0%, #121b29 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 1050;
    overflow: hidden; /* recorta el destello a la cápsula */
    /* Safari/iOS viejos a veces no aplican el redondeo al recortar un hijo
       animado dentro de un elemento con transform. Aislar el contexto lo
       resuelve sin filtros ni will-change (costo cero). */
    isolation: isolate;
    /* Un solo highlight interno + una sola sombra exterior. Nada más. */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 12px 30px -8px rgba(3, 7, 18, .62);
    transition: transform .18s cubic-bezier(.4,0,.2,1), border-color .18s cubic-bezier(.4,0,.2,1);
    animation: cartSlideIn .32s cubic-bezier(.32, .72, .33, 1);
}

    /* DESTELLO — en reposo NO existe: el pseudo-elemento está en opacity 0 y
       sin animación, así que no pinta ni consume nada.
       Corre una única pasada cada vez que el JS pone .item-added (una clase
       que ya existía). Al cambiar el animation-name de `none` a `cartShine`
       el navegador re-arranca la animación: por eso vuelve a destellar en
       cada actualización del pedido, sin timers ni JS nuevo.
       Dura 500 ms — menos que los 600 ms que la clase permanece puesta — para
       terminar SIEMPRE antes de que se la saquen (nunca se corta a la mitad). */
    .cart-button::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: -42%;
        width: 38%;
        background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .28) 50%, transparent 100%);
        pointer-events: none;
        opacity: 0;
        animation: none;
    }

    .cart-button.item-added::before {
        animation: cartShine .5s cubic-bezier(.35, .5, .3, 1) both;
    }

@keyframes cartShine {
    from {
        transform: translateX(0) skewX(-16deg);
        opacity: 0;
    }

    22% {
        opacity: 1;
    }

    to {
        transform: translateX(390%) skewX(-16deg);
        opacity: 0;
    }
}

@keyframes cartSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

    .cart-button:active {
        transform: translateX(-50%) scale(.97);
    }

    .cart-button:focus-visible {
        outline: 2px solid #4ade80;
        outline-offset: 3px;
    }

/* Ícono suelto (sin chip): una capa menos, lectura más limpia.
   Blanco puro + una sombra mínima que lo despega de la superficie. */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    font-size: 21px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(2, 6, 15, .5);
}

/* CONTADOR — acompaña, no compite: apenas más chico, borde más fino y un
   verde un punto menos eléctrico. El ícono pasa a ser lo primero que se lee. */
.cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: #2eb862;
    color: #042a11;
    border-radius: 999px;
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    padding: 0 5px;
    border: 1.5px solid #1a2434;
}

/* Etiqueta "Mi pedido" */
.cart-label {
    min-width: 0;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .005em;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* IMPORTE — superficie diferenciada pero del MISMO material que la cápsula
   (translúcida, mismo radio): se lee como parte del componente, no como un
   bloque pegado. El chevron lleva el acento y anuncia "tocá para abrir". */
.cart-total {
    flex-shrink: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .97rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    white-space: nowrap;
    background: rgba(255, 255, 255, .10);
    border-radius: 999px;
    padding: 9px 12px 9px 14px;
}

    /* Chevron dibujado con bordes: cero assets, cero requests */
    .cart-total::after {
        content: '';
        width: 6px;
        height: 6px;
        flex-shrink: 0;
        border-right: 2px solid #4ade80;
        border-bottom: 2px solid #4ade80;
        transform: rotate(-45deg);
    }

/* FEEDBACK AL AGREGAR ITEM — bump del ÍCONO + pop del contador.
   IMPORTANTE: NO animamos el .cart-button en sí. Si lo hiciéramos, al sacar
   la clase `item-added` el navegador reinicia `cartSlideIn` del selector base
   y la barra "se vuelve a abrir" (bug de doble apertura). Animando un hijo,
   la animación de entrada del botón queda intacta. */
.cart-button.item-added .cart-icon-wrapper {
    animation: cartIconPop .45s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes cartIconPop {
    0%, 100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.18);
    }
}

.cart-button.item-added .cart-badge {
    animation: badgePop .45s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes badgePop {
    0%, 100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.35);
    }
}

/* MÓVILES CHICOS (hasta 360px): la cápsula se ajusta, no cambia de forma */
@media (max-width: 360px) {
    .cart-button {
        height: 52px;
        gap: 9px;
        padding: 0 7px 0 15px;
    }

    .cart-label {
        font-size: .88rem;
    }

    .cart-total {
        font-size: .9rem;
        gap: 7px;
        padding: 8px 11px 8px 12px;
    }
}

/* ESCRITORIO: misma cápsula, apenas más aire y feedback de hover */
@media (min-width: 768px) {
    .cart-button {
        bottom: 22px;
        height: 58px;
        gap: 13px;
        padding: 0 9px 0 19px;
        min-width: 212px;
    }

        .cart-button:hover {
            transform: translateX(-50%) translateY(-2px);
            border-color: rgba(255, 255, 255, .3);
        }

    .cart-label {
        font-size: 1rem;
    }

    .cart-total {
        font-size: 1rem;
    }
}

/* Sin movimiento: nada de entrada, nada de destello, nada de rebotes.
   El pseudo-elemento del destello queda invisible en cualquier estado. */
@media (prefers-reduced-motion: reduce) {
    .cart-button,
    .cart-button::before,
    .cart-button.item-added::before,
    .cart-button.item-added .cart-icon-wrapper,
    .cart-button.item-added .cart-badge {
        animation: none;
    }

    .cart-button::before,
    .cart-button.item-added::before {
        opacity: 0;
    }
}

/* La barra es fija: mientras está visible, el footer reserva su alto para que
   nunca tape la línea legal/versión. Sin :has() simplemente no reserva
   (comportamiento actual), así que degrada sin romper nada. */
body:has(#cartButton[style*="flex"]) .dtp-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

/* ============================================
   AJUSTES PARA OTROS BOTONES FIJOS
============================================ */

/* Subir el botón de scroll para que no tape el carrito */
.scroll-top-button {
    bottom: 80px; /* Antes: 145px - Ahora más arriba */
}

/* Ajustar botón de WhatsApp flotante si existe */
.floating-button {
    bottom: 80px; /* Antes: 16px - Ahora más arriba */
}

/*Estilos turnos*/

@property --a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.turnos-banner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0 14px 0;
}

/* ---------------------------------------------------------------------
   ACCESOS PRINCIPALES — grupo de acciones tipo app en UNA sola fila.
   Objetivo: mínima altura vertical, máxima claridad, identidad premium.
   Jerarquía: "Mis Compras" (personal) y "Reservas" son protagonistas;
   "Conócenos" es secundario/discreto. Cada chip lleva su propio fondo
   claro => legible sobre cualquier hero. Sin animaciones permanentes ni
   filtros (perf a escala): solo transform/box-shadow en hover.
   ------------------------------------------------------------------- */
.dtp-acciones {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: 620px;
    margin: 14px auto 16px;
    padding: 0 12px;
}

.dtp-acc {
    position: relative;
    flex: 1 1 auto; /* ancho según contenido => la etiqueta larga no se recorta */
    min-width: 0;
    max-width: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 8px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .2px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 3px 12px rgba(16, 24, 40, .14);
    transition: transform .18s ease, box-shadow .18s ease;
    color: #1e1b4b;
}

    .dtp-acc:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16, 24, 40, .22); }
    .dtp-acc:active { transform: scale(.99); }

    .dtp-acc__ic {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        flex-shrink: 0;
        font-size: 1rem;
        color: #fff;
    }

    .dtp-acc__tx {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .94rem;
    }

/* Mis Compras: protagonista personal (avatar indigo + glow) */
.dtp-acc--primary { border-color: rgba(124, 58, 237, .26); box-shadow: 0 4px 14px rgba(79, 70, 229, .26); }
    .dtp-acc--primary .dtp-acc__ic {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        box-shadow: 0 3px 8px rgba(79, 70, 229, .4);
    }
    /* Punto "tenés historial acá" (solo si ya compró en el dispositivo) */
    .dtp-acc--primary.has-historial .dtp-acc__ic::after {
        content: "";
        position: absolute;
        top: 7px;
        inset-inline-start: 30px;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #22c55e;
        border: 2px solid #fff;
    }

/* Reservas: protagonista (avatar azul) */
.dtp-acc--reservas .dtp-acc__ic { background: linear-gradient(135deg, #0ea5e9, #2563eb); box-shadow: 0 3px 8px rgba(37, 99, 235, .34); }

/* Conócenos: secundario/discreto (más chico, sin acento fuerte, gris) */
.dtp-acc--ghost {
    flex: 0 1 auto;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .1);
    font-weight: 700;
}
    .dtp-acc--ghost .dtp-acc__ic { background: #eef2f7; color: #64748b; }
    .dtp-acc--ghost .dtp-acc__tx { color: #64748b; font-size: .88rem; }

@media (max-width: 576px) {
    .dtp-acciones { gap: 7px; padding: 0 10px; }
    .dtp-acc { min-height: 46px; padding: 7px 10px; gap: 7px; }
        .dtp-acc__ic { width: 28px; height: 28px; font-size: .92rem; }
        .dtp-acc__tx { font-size: .84rem; }
}

/* En pantallas muy chicas, "Conócenos" queda solo con ícono (secundario)
   para garantizar que los tres accesos entren en una sola línea. */
@media (max-width: 400px) {
    .dtp-acc--ghost { padding: 7px 9px; }
        .dtp-acc--ghost .dtp-acc__tx { display: none; }
}

.turnos-banner-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, rgba(18,24,38,.96), rgba(30,41,59,.96));
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
    justify-content: center;
}

    .turnos-banner-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1.5px;
        background: conic-gradient( from var(--a), transparent 0%, transparent 55%, #22d3ee 72%, #3b82f6 82%, #8b5cf6 90%, transparent 100% );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        animation: borderSpin 3.5s linear infinite;
    }

    .turnos-banner-btn i {
        font-size: 1rem;
        color: #7dd3fc;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .turnos-banner-btn span {
        position: relative;
        z-index: 1;
        white-space: nowrap;
    }

    .turnos-banner-btn:hover {
        transform: translateY(-1px) scale(1.015);
        box-shadow: 0 8px 20px rgba(59,130,246,.25);
    }

    .turnos-banner-btn:active {
        transform: scale(0.99);
    }

@keyframes borderSpin {
    to {
        --a: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .turnos-banner-btn::before {
        animation: none;
    }
}

@media (max-width: 576px) {
    .turnos-banner-wrap {
        margin: 10px 0 12px 0;
    }

    .turnos-banner-btn {
        min-height: 48px;
        padding: 0 20px;
        font-size: 0.88rem;
        gap: 8px;
    }

        .turnos-banner-btn span {
            white-space: normal;
            text-align: center;
            line-height: 1.15;
        }
}


/* =================================================================
   LANDING TOP — REFACTOR VISUAL (FINAL DEFINITIVO)
   -----------------------------------------------------------------
   Solo CSS. NO toca HTML, NO toca JS, NO usa :has().
   Cero blur, cero filtros caros, cero animaciones costosas.
   Hosting compartido friendly. Cero impacto en productos/carrito.
   ================================================================= */


/* ---------- 1) HERO CARTILLA ---------- */

.hero-cartilla {
    --hero-radius: 18px;
    --hero-radius-mobile: 14px;
    --hero-shadow: 0 8px 28px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .10);
    --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .35) 100%);
    --hero-stage-bg: rgba(0, 0, 0, .04);
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 8px auto 14px auto;
    isolation: isolate;
}

    .hero-cartilla.hero-empty:not(.hero-with-novedades) {
        margin: 0 auto;
        padding: 0;
        height: 0;
        border: 0;
        overflow: hidden;
    }

.hero-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: var(--hero-radius);
    overflow: hidden;
    box-shadow: var(--hero-shadow);
    background: var(--hero-stage-bg);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    pointer-events: none;
    z-index: 1;
}

.hero-image-failed .hero-image-overlay {
    display: none;
}

.hero-text-only .hero-stage {
    aspect-ratio: 21 / 7;
    background: linear-gradient(135deg, var(--color-iconos-descripcion-umedida, #6366f1) 0%, rgba(0, 0, 0, .85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 28px;
}

.hero-title-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.hero-title {
    margin: 0;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 0 1px rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .hero-cartilla {
        margin: 6px auto 10px auto;
    }

    .hero-stage {
        aspect-ratio: 16 / 9;
        border-radius: var(--hero-radius-mobile);
    }

    .hero-text-only .hero-stage {
        aspect-ratio: 16 / 8;
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .hero-stage {
        aspect-ratio: 4 / 3;
    }
}

.hero-novedades-slot {
    margin-top: 12px;
}

    .hero-novedades-slot .novedades-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: 0 8px 28px rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .08);
    }


/* ---------- 2) SOCIAL BANNER PREMIUM ---------- */

.social-banner .banner-grid {
    display: grid !important;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.social-banner .banner-status,
.social-banner .banner-redes,
.social-banner .banner-ruleta {
    display: flex;
    align-items: center;
    min-width: 0;
}

.social-banner .banner-status {
    justify-content: center;
}

.social-banner .banner-redes {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.social-banner .banner-ruleta {
    justify-content: flex-end;
}

.social-banner .banner-grid > .banner-status:empty {
    width: 0;
    padding: 0;
    margin: 0;
}

.social-banner .status-button {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
    border: 2px solid rgba(255, 255, 255, .25) !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, .4), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 4px rgba(0, 0, 0, .15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    user-select: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .social-banner .status-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(34, 197, 94, .55), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
    }

    .social-banner .status-button.closed {
        background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
        box-shadow: 0 4px 14px rgba(239, 68, 68, .4), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 4px rgba(0, 0, 0, .15) !important;
    }

.social-banner .status-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1;
    color: #fff;
}

.social-banner .status-icon {
    font-size: 22px;
    line-height: 1;
}

.social-banner .status-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-top: 2px;
    color: #fff;
}

.social-banner .banner-redes a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    text-decoration: none;
}

    .social-banner .banner-redes a:hover {
        background: rgba(255, 255, 255, .14);
        border-color: rgba(255, 255, 255, .25);
        transform: translateY(-2px);
    }

    .social-banner .banner-redes a i {
        font-size: 1.15rem !important;
        line-height: 1;
    }

.social-banner .btn-ruleta-float {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1f1300 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 9px 16px !important;
    font-weight: 800 !important;
    font-size: .85rem !important;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .5), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}

.social-banner .banner-grid > .banner-ruleta:empty {
    display: none;
}

@media (max-width: 480px) {
    .social-banner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

        .social-banner .banner-grid {
            grid-template-columns: 60px 1fr auto;
            gap: 8px;
        }

        .social-banner .status-button {
            width: 56px !important;
            height: 56px !important;
        }

        .social-banner .banner-redes {
            gap: 6px;
        }

            .social-banner .banner-redes a {
                width: 38px;
                height: 38px;
            }

                .social-banner .banner-redes a i {
                    font-size: 1.05rem !important;
                }

        .social-banner .btn-ruleta-float {
            padding: 7px 12px !important;
            font-size: .78rem !important;
        }

            .social-banner .btn-ruleta-float .texto-ruleta {
                display: none;
            }
}

@media (max-width: 360px) {
    .social-banner .banner-grid {
        grid-template-columns: 52px 1fr auto;
        gap: 6px;
    }

    .social-banner .status-button {
        width: 50px !important;
        height: 50px !important;
    }

    .social-banner .banner-redes a {
        width: 34px;
        height: 34px;
    }
}


/* ---------- 3) PASOS DTP ---------- */

.pasos-dtp {
    background: linear-gradient(135deg, rgba(0, 0, 0, .92) 0%, rgba(20, 20, 30, .88) 50%, var(--color-iconos-descripcion-umedida, #6366f1) 100%) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 14px !important;
    padding: 14px 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    gap: 8px !important;
    font-size: 12px !important;
}

    .pasos-dtp .paso {
        flex: 1;
        min-width: 0;
        text-align: center;
        padding: 4px 6px;
        border-radius: 10px;
        transition: opacity .2s ease, transform .15s ease;
        cursor: pointer;
    }

        .pasos-dtp .paso:hover {
            opacity: 1;
            transform: translateY(-1px);
        }

        .pasos-dtp .paso .icono {
            width: 48px !important;
            height: 48px !important;
            background: rgba(255, 255, 255, .06) !important;
            border: 1.5px solid rgba(255, 255, 255, .12) !important;
            color: rgba(255, 255, 255, .55) !important;
            font-size: 1.4rem !important;
            margin: 0 auto 6px auto !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
            transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
        }

        .pasos-dtp .paso.activo .icono,
        .pasos-dtp .paso:hover .icono {
            background: linear-gradient(135deg, var(--color-iconos-descripcion-umedida, #6366f1) 0%, rgba(255, 255, 255, .15) 100%) !important;
            border-color: rgba(255, 255, 255, .35) !important;
            color: #fff !important;
            box-shadow: 0 4px 14px rgba(99, 102, 241, .35), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
        }

        .pasos-dtp .paso span {
            display: block;
            font-weight: 600;
            color: #d4d4d8;
            line-height: 1.25;
            font-size: .78rem;
            letter-spacing: .2px;
        }

        .pasos-dtp .paso.activo span,
        .pasos-dtp .paso:hover span {
            color: #fff;
            font-weight: 700;
        }

@media (max-width: 480px) {
    .pasos-dtp {
        padding: 10px 8px !important;
        gap: 6px !important;
        border-radius: 12px !important;
    }

        .pasos-dtp .paso .icono {
            width: 42px !important;
            height: 42px !important;
            font-size: 1.2rem !important;
        }

        .pasos-dtp .paso span {
            font-size: .72rem;
        }
}


/* ---------- 4) ACCESIBILIDAD ---------- */

@media (prefers-reduced-motion: reduce) {
    .hero-cartilla *,
    .social-banner *,
    .pasos-dtp * {
        transition: none !important;
        animation: none !important;
    }
}


/*Inicio Buscador dinamico*/

/* ===== BUSCADOR PRINCIPAL CARTILLA — v10 ===== */
/* Scope total: .cart-search-* — no toca .sticky-search-* ni .form-control */
/* Sin :has(), sin contain, sin filtros caros */

.cart-search-container {
    width: 100%;
    max-width: 640px;
    margin: 14px auto 18px auto;
    padding: 0 4px;
}

.cart-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.78) 0%, rgba(15, 15, 22, 0.88) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .cart-search-wrap:hover {
        border-color: rgba(255, 255, 255, 0.22);
    }

    .cart-search-wrap:focus-within {
        border-color: var(--color-iconos-descripcion-umedida, #667eea);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22), 0 0 0 3px var(--color-iconos-descripcion-umedida, #667eea), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        background: linear-gradient(135deg, rgba(25, 25, 36, 0.85) 0%, rgba(18, 18, 26, 0.92) 100%);
    }

@supports (color: color-mix(in srgb, red 20%, transparent)) {
    .cart-search-wrap:focus-within {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22), 0 0 0 3px color-mix(in srgb, var(--color-iconos-descripcion-umedida, #667eea) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

.cart-search-wrap[data-state="typing"] {
    border-color: var(--color-iconos-descripcion-umedida, #667eea);
}

.cart-search-wrap[data-state="no-results"] {
    border-color: rgba(251, 146, 60, 0.55);
}

    .cart-search-wrap[data-state="no-results"]:focus-within {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(251, 146, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

.cart-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    transition: color 0.18s ease, transform 0.18s ease;
    z-index: 1;
}

.cart-search-wrap:focus-within .cart-search-icon {
    color: var(--color-iconos-descripcion-umedida, #667eea);
}

.cart-search-wrap[data-state="typing"] .cart-search-icon {
    transform: translateY(-50%) scale(0.92);
}

.cart-search-input {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 0 88px 0 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.1px;
    outline: none;
    border-radius: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

    .cart-search-input::placeholder {
        color: rgba(255, 255, 255, 0.42);
        font-weight: 400;
        letter-spacing: 0.2px;
    }

    .cart-search-input::-webkit-search-decoration,
    .cart-search-input::-webkit-search-cancel-button,
    .cart-search-input::-webkit-search-results-button,
    .cart-search-input::-webkit-search-results-decoration {
        -webkit-appearance: none;
        display: none;
    }

    .cart-search-input:disabled {
        cursor: progress;
        color: rgba(255, 255, 255, 0.55);
    }

.cart-search-count {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    letter-spacing: 0.3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    z-index: 1;
}

.cart-search-wrap[data-state="has-results"] .cart-search-count {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.cart-search-wrap[data-state="no-results"] .cart-search-count {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    background: rgba(251, 146, 60, 0.16);
    border-color: rgba(251, 146, 60, 0.4);
    color: #fdba74;
}

.cart-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}

    .cart-search-clear.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(-50%) scale(1);
    }

    .cart-search-clear:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    .cart-search-clear:active {
        background: rgba(255, 255, 255, 0.16);
    }

.cart-search-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cart-search-empty {
    margin: 22px auto 16px auto;
    padding: 18px 20px;
    max-width: 480px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(251, 146, 60, 0.04) 100%);
    border: 1px solid rgba(251, 146, 60, 0.28);
    color: #fdba74;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.cart-search-empty-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #fdba74;
    opacity: 0.9;
}

@media (max-width: 576px) {
    .cart-search-container {
        margin: 10px auto 14px auto;
        padding: 0 2px;
    }

    .cart-search-wrap {
        height: 46px;
        border-radius: 12px;
    }

    .cart-search-input {
        font-size: 16px;
        padding: 0 84px 0 42px;
    }

    .cart-search-icon {
        left: 14px;
        font-size: 1rem;
    }

    .cart-search-clear {
        right: 8px;
        width: 32px;
        height: 32px;
    }

    .cart-search-count {
        right: 46px;
        font-size: 0.68rem;
        height: 20px;
        line-height: 20px;
        min-width: 20px;
    }

    .cart-search-empty {
        margin: 16px auto 12px auto;
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .cart-search-container {
        max-width: 720px;
        margin: 18px auto 22px auto;
    }

    .cart-search-wrap {
        height: 52px;
    }

    .cart-search-input {
        font-size: 1rem;
        padding: 0 92px 0 48px;
    }

    .cart-search-icon {
        left: 18px;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-search-wrap,
    .cart-search-clear,
    .cart-search-icon,
    .cart-search-count {
        transition: none !important;
    }
}

/*Fin Buscador dinamico*/

/* =====================================================================
   CARRITO 2026 — items, stepper y total (popup .dtp-cart-popup)
   ---------------------------------------------------------------------
   El JS del carrito conserva sus selectores funcionales intactos:
   [data-cart-index], .quantity-control[data-index], .increase-cart,
   .decrease-cart, .cart-quantity-input, .cart-price, .total-price.
   Solo transform/opacity en animaciones (hosting compartido friendly).
   ===================================================================== */
.dtp-cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.dtp-cart-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
}

.dtp-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dtp-cart-item-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.dtp-cart-item-name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dtp-cart-item-unit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.dtp-cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

    .dtp-cart-item-actions .cart-price {
        font-size: 1.08rem;
        font-weight: 800;
        white-space: nowrap;
        color: #fbbf24; /* mismo ámbar del botón de carrito */
    }

/* Stepper segmentado tipo app */
.dtp-cart-stepper {
    display: inline-flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    overflow: hidden;
}

    .dtp-cart-stepper button {
        appearance: none;
        -webkit-appearance: none;
        border: none;
        background: transparent;
        color: #fff;
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color .12s;
    }

    .dtp-cart-stepper .decrease-cart {
        color: #fca5a5;
    }

    .dtp-cart-stepper .increase-cart {
        color: #6ee7b7;
    }

    .dtp-cart-stepper button:active {
        background: rgba(255, 255, 255, 0.12);
    }

    .dtp-cart-stepper .cart-quantity-input {
        width: 46px;
        border: none;
        background: transparent;
        color: #fff;
        font-weight: 800;
        font-size: 1.02rem;
        text-align: center;
        padding: 0;
        -moz-appearance: textfield;
        pointer-events: none;
    }

        .dtp-cart-stepper .cart-quantity-input::-webkit-outer-spin-button,
        .dtp-cart-stepper .cart-quantity-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

.dtp-cart-item-comment {
    margin: 0;
    font-size: 0.85rem;
    color: #fde68a;
    background: rgba(253, 230, 138, 0.10);
    border: 1px dashed rgba(253, 230, 138, 0.35);
    border-radius: 10px;
    padding: 7px 10px;
}

/* Barra de total: siempre clara y destacada */
.dtp-cart-totalbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-size: 1.12rem;
    color: #fbbf24;
}

    .dtp-cart-totalbar .total-price {
        color: #fde68a;
        font-weight: 900;
        letter-spacing: 0.01em;
    }

/* Popup del carrito en desktop: modal compacto SaaS */
.dtp-cart-popup {
    width: 480px !important;
    max-width: 94vw !important;
    padding-bottom: 14px !important;
}

/* =====================================================================
   BOTTOM SHEET MOBILE — contenedor .dtp-sheet
   En pantallas chicas el diálogo sube desde abajo, ocupa todo el ancho,
   con asa superior y esquinas redondeadas solo arriba: sensación app.
   ===================================================================== */
@media (max-width: 576px) {
    /* SweetAlert v11 posiciona con grid: lo pasamos a flex para anclar
       el diálogo al borde inferior (bottom sheet real) */
    .dtp-sheet.swal2-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        padding: 0 !important;
    }

        .dtp-sheet .swal2-popup:not(.swal2-toast) {
            width: 100vw !important;
            max-width: 100vw !important;
            margin: 0 !important;
            border-radius: 22px 22px 0 0 !important;
            border-left: none !important;
            border-right: none !important;
            border-bottom: none !important;
            padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
            position: relative;
        }

            /* Asa de arrastre (visual) */
            .dtp-sheet .swal2-popup:not(.swal2-toast)::before {
                content: "";
                position: absolute;
                top: 9px;
                left: 50%;
                transform: translateX(-50%);
                width: 42px;
                height: 4.5px;
                border-radius: 99px;
                background: rgba(255, 255, 255, 0.28);
            }

            /* Animación de entrada: sube desde abajo (solo transform/opacity) */
            .dtp-sheet .swal2-popup.swal2-show {
                animation: dtpSheetUp 0.3s cubic-bezier(0.32, 0.72, 0.33, 1) !important;
            }

            .dtp-sheet .swal2-popup.swal2-hide {
                animation: dtpSheetDown 0.22s ease-in forwards !important;
            }

    .dtp-sheet .swal2-html-container {
        max-height: min(62vh, 62dvh);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .dtp-sheet .swal2-actions {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        padding: 0 4px;
    }

        .dtp-sheet .swal2-actions .swal2-styled {
            flex: 1 1 0;
            min-height: 50px;
            font-size: 1rem;
        }
}

@keyframes dtpSheetUp {
    /* Offset chico a propósito: si un dispositivo lento se traba en el primer
       frame, el sheet queda apenas 24px corrido y los botones siguen a la
       vista (con 60px quedaban cortados en pantallas chicas). */
    from {
        transform: translateY(24px);
        opacity: 0.55;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes dtpSheetDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(70px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dtp-sheet .swal2-popup.swal2-show,
    .dtp-sheet .swal2-popup.swal2-hide {
        animation: none !important;
    }
}

/* =====================================================================
   CHECKOUT MOBILE-FIRST — un solo scroll + botones siempre visibles
   ---------------------------------------------------------------------
   Problema que corrige: el contenedor de SweetAlert (.swal2-html-container)
   y .step-content scrolleaban LOS DOS. Con campos obligatorios (email/
   celular/comentario) el paso crecía, tomaba el scroll externo y los
   botones "Cancelar/Siguiente" quedaban abajo, fuera de vista.
   Solución: cuando el popup está en modo checkout (clase .dtp-checkout,
   la agrega el JS al entrar al paso 1) el contenedor externo NO scrollea:
   scrollea SOLO .step-content y la barra de botones sticky queda clavada
   al borde visible. dvh => se recalcula cuando se abre el teclado.
   ===================================================================== */
.dtp-checkout .swal2-html-container {
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.dtp-checkout .step-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* fallback vh para navegadores sin dvh */
    max-height: calc(72vh - 130px);
    max-height: calc(72dvh - 130px);
}

    /* Al enfocar un input, el navegador lo trae a la vista DEJANDO lugar
       para la barra sticky de botones (no queda tapado por ella). */
    .dtp-checkout .step-content input,
    .dtp-checkout .step-content textarea,
    .dtp-checkout .step-content select {
        scroll-margin-block: 70px 90px;
    }

/* Barra de progreso liviana bajo el stepper (solo CSS, cero JS extra) */
.steps-progress {
    position: relative;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    margin: -8px 6px 14px;
}

.steps-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-progress-count {
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.55);
}

/* Mobile: bottom sheet en modo checkout */
@media (max-width: 576px) {
    /* El sheet del checkout puede usar casi toda la pantalla: el cuerpo
       scrollea y los botones quedan fijos. Con el teclado abierto los dvh
       se achican y la barra de botones sube con él. */
    .dtp-sheet .dtp-checkout .swal2-html-container {
        max-height: none;
        overflow: visible;
    }

    .dtp-checkout .step-content {
        max-height: calc(84vh - 150px);
        max-height: calc(84dvh - 150px);
    }

    /* Botones sticky: área táctil cómoda + safe-area de iPhone */
    .dtp-checkout .step-buttons {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .dtp-checkout .btn-step {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .steps-progress-fill {
        transition: none;
    }
}

/* Mensaje de validación del checkout: integrado al tema oscuro (el default
   de SweetAlert es una banda gris clara que desentona y se lee mal acá).
   Queda SIEMPRE visible: vive fuera del área scrolleable del paso. */
.dtp-checkout .swal2-validation-message {
    background: rgba(255, 59, 48, 0.14) !important;
    color: #ffb4ae !important;
    border: 1px solid rgba(255, 59, 48, 0.35);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 10px 14px 0 !important;
    padding: 10px 12px;
}

    .dtp-checkout .swal2-validation-message::before {
        background-color: #ff3b30;
    }
