
:root{
    --pd-card: #ffffff;
    --pd-bg-suave: #f7f5f8;
    --pd-borde: #ece7ee;
    --pd-texto: #1a1620;
    --pd-texto-suave: #8b8591;
    --pd-rojo-soft: #fff1f2;
    --pd-radius: 20px;
    --pd-shadow: 0 18px 40px -16px rgba(255,0,50,.22);
    --pd-shadow-suave: 0 4px 14px -6px rgba(0,0,0,.08);
}

/* -------- shells de los modales -------- */
.modal-preparacion,
.modal-config .card-config,
.modal-terminar .terminar-contenedor,
.modal-terminar .contenedor-pago-tarjeta,
.modal-checkout .card-checkout,
.modal-filtros .card-filtros,
.modal-manual .card-manual,
.modal-desglose .card-desglose,
.modal-scanner .card-scanner,
#modal-descrip .card-descrip{
    background-color: var(--pd-card) !important;
    border-radius: var(--pd-radius) var(--pd-radius) 0 0 !important;
    box-shadow: var(--pd-shadow) !important;
}
.modal-desglose .card-desglose,
.modal-scanner .card-scanner{
    border-radius: var(--pd-radius) !important;
}

/* -------- headers -------- */
.header-modal,
.header-modal-config,
.header-modal-card,
.card-header-scanner,
.card-header,
.card-header-desglose{
    background-color: var(--pd-card) !important;
    display: flex;
    align-items: center;
    padding: 20px 0 8px;
    border-radius: var(--pd-radius) var(--pd-radius) 0 0;
}

.h1{ width: 33.33%; padding-left: 18px; }
.h1 a{ text-decoration: none; display: inline-flex; }
.h1 i{
    font-size: 18px;
    background-color: var(--first-color);
    color: #fff !important;
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 22px -8px rgba(255,0,50,.55);
    transition: transform .15s ease;
}
.h1 i:active{ transform: scale(.9); }

.h2{
    width: 33.33%;
    justify-content: center;
    font-size: 16px;
    font-weight: 800 !important;
    color: var(--pd-texto) !important;
}

.h3{ width: 33.33%; justify-content: flex-end; padding-right: 18px; }
.h3 i, .h3 a i{
    font-size: 19px;
    color: var(--first-color) !important;
    cursor: pointer;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pd-rojo-soft) !important;
    transition: transform .15s ease;
}
.h3 i:active, .h3 a i:active{ transform: scale(.9); }

/* -------- título del paso (ej. "Prepara tu pedido") -------- */
#producto_titulo, #titulo-config{
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--pd-texto) !important;
}

/* -------- footers: botón(es) de acción -------- */
.footer-modal,
.footer-modal-terminar,
.footer-modal-card,
.footer-modal-checkout,
.footer-modal-tiket{
    background-color: var(--pd-card) !important;
    display: flex;
    gap: 10px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
}

.footer-modal button,
.footer-modal-terminar button,
.footer-modal-card button,
.footer-modal-checkout button,
.footer-modal-tiket button,
.btn-transparent,
.slide-button,
#btn-dir-envio{
    height: 52px;
    border: none !important;
    outline: none;
    border-radius: 999px !important;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-family: inherit; font-size: 15px; font-weight: 800 !important;
    cursor: pointer;
    background-color: var(--first-color) !important;
    color: #fff !important;
    box-shadow: var(--pd-shadow) !important;
    transition: background-color .2s ease, transform .15s ease;
}
.footer-modal button:active,
.footer-modal-terminar button:active,
.footer-modal-card button:active,
.footer-modal-checkout button:active,
.footer-modal-tiket button:active,
.btn-transparent:active,
.slide-button:active{ transform: scale(.97); }
.btn-transparent:hover,
.slide-button:hover{ background-color: #d40029 !important; }

/* -------- botones de opción (tipo entrega / destino / tabs) -------- */
.btn-tipo-entrega,
.btn-destino,
.btn-tap{
    background-color: var(--pd-bg-suave) !important;
    border: 1.5px solid var(--pd-borde) !important;
    border-radius: 16px !important;
    color: var(--pd-texto) !important;
    font-weight: 700;
    transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.btn-tipo-entrega:active,
.btn-destino:active,
.btn-tap:active{ transform: scale(.97); }
.btn-tipo-entrega.select-tap,
.btn-tap.select-tap{
    border-color: var(--first-color) !important;
    background-color: var(--pd-rojo-soft) !important;
    color: var(--first-color) !important;
}

/* -------- inputs -------- */
.form-input,
#comentarios,
.numero,
#buscar{
    background-color: var(--pd-bg-suave) !important;
    border: 1.5px solid var(--pd-borde) !important;
    border-radius: 14px !important;
    color: var(--pd-texto) !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus,
#comentarios:focus,
.numero:focus{
    border-color: var(--first-color) !important;
    outline: none;
}
.form-input::placeholder,
#comentarios::placeholder,
.numero::placeholder{ color: var(--pd-texto-suave) !important; }

.content-input span,
.nombre_cliente span,
.content-comentario span:first-child{
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--first-color) !important;
    display: block;
    margin-bottom: 6px;
}

.nombre_cliente,
.content-comentario,
.content-input{
    background-color: var(--pd-card);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

/* -------- tarjetas de producto (carrito / preparación / config) -------- */
#lista-productos > div,
#lista-item,
#lista-preparacion > div{
    background-color: var(--pd-card);
    border-radius: 16px;
    box-shadow: var(--pd-shadow-suave);
    padding: 12px;
    margin-bottom: 10px;
}
#lista-productos img{
    border-radius: 12px !important;
    object-fit: cover;
}

/* -------- filtros -------- */
#lista-filtros > *{
    border-radius: 999px !important;
    font-weight: 700;
}

/* =========================================================
   WIIKFOOD — TICKET PREMIUM INTERACTIVO v2
   Diseño tipo delivery premium:
   - ticket perforado
   - microinteracciones
   - estados de carga
   - brillo dinámico
   - jerarquía de precios
   - feedback táctil/hover
   - responsive
========================================================= */

#modal-checkout-wizard .content-input-destino{
    --ticket-bg: #fff;
    --ticket-border: #ece7ed;
    --ticket-text: #17141a;
    --ticket-muted: #8e8792;
    --ticket-line: #e4dfe5;
    --ticket-accent: var(--first-color);
    --ticket-soft: var(--pd-rojo-soft);

    position: relative;
    isolation: isolate;

    width: 100%;
    box-sizing: border-box;

    background:
        radial-gradient(
            circle at 50% -30%,
            rgba(255,255,255,.98),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fdfbfd 100%
        ) !important;

    border: 1px solid var(--ticket-border);
    border-radius: 22px;

    padding: 20px 20px 18px !important;



    overflow: visible;

    transform: translateZ(0);
    animation:
        wfTicketEnter .55s cubic-bezier(.22,.61,.36,1) both;

    transition:
        transform .28s cubic-bezier(.22,.61,.36,1),
        box-shadow .28s ease;
}


/* ---------------------------------------------------------
   BRILLO QUE RECORRE EL TICKET
--------------------------------------------------------- */

#modal-checkout-wizard .content-input-destino > .flex-row:first-child::before{
    content: "";
    position: absolute;

    top: 0;
    left: -35%;

    width: 25%;
    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--ticket-accent),
            transparent
        );

    opacity: .7;

    animation: wfTicketShimmer 2.8s ease-in-out 1;
}


/* ---------------------------------------------------------
   PERFORACIONES
--------------------------------------------------------- */

#modal-checkout-wizard .content-input-destino::before,
#modal-checkout-wizard .content-input-destino::after{
    content: "";

    position: absolute;
    top: 50%;

    width: 20px;
    height: 20px;

    background: #f7f5f8;

    border: 1px solid var(--ticket-border);
    border-radius: 50%;

    transform: translateY(-50%);

    z-index: 5;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.025);
}

#modal-checkout-wizard .content-input-destino::before{
    left: -11px;
    border-left-color: transparent;
}

#modal-checkout-wizard .content-input-destino::after{
    right: -11px;
    border-right-color: transparent;
}


/* ---------------------------------------------------------
   MINI BARRA SUPERIOR
--------------------------------------------------------- */

#modal-checkout-wizard .content-input-destino::marker{
    display: none;
}


/* ---------------------------------------------------------
   FILAS
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino
.flex-row{

    position: relative;

    width: 100%;
    min-height: 44px;

    box-sizing: border-box;

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 9px 2px 10px !important;
    margin: 0 !important;

    border-bottom:
        1px dashed var(--ticket-line) !important;

    border-radius: 8px;

    transition:
        background-color .2s ease,
        transform .2s ease,
        padding-left .2s ease,
        padding-right .2s ease;
}


/* interacción de cada línea */

@media (hover: hover){

    #modal-checkout-wizard
    .content-input-destino
    .flex-row:not(:last-child):hover{

        background:
            linear-gradient(
                90deg,
                transparent,
                var(--ticket-soft),
                transparent
            );

        padding-left: 8px !important;
        padding-right: 8px !important;

        transform: translateX(2px);
    }
}


/* ---------------------------------------------------------
   PUNTO INDICADOR DE CADA FILA
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino
.flex-row:not(:last-child)::before{

    content: "";

    position: absolute;

    left: -6px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #d9d3db;

    opacity: 0;

    transform: scale(.5);

    transition:
        opacity .2s ease,
        transform .2s ease,
        background-color .2s ease;
}

@media (hover: hover){

    #modal-checkout-wizard
    .content-input-destino
    .flex-row:not(:last-child):hover::before{

        opacity: 1;
        transform: scale(1);

        background: var(--ticket-accent);
    }
}


/* ---------------------------------------------------------
   ETIQUETAS
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino
.txt-tiket-detail{

    margin: 0 !important;

    color: var(--ticket-muted) !important;

    font-size: 11.5px !important;
    font-weight: 700 !important;

    letter-spacing: .025em;
    line-height: 1.3;

    text-transform: none !important;

    white-space: nowrap;

    transition:
        color .2s ease;
}


/* ---------------------------------------------------------
   VALORES
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino
.black-letter{

    margin: 0 !important;

    color: var(--ticket-text) !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    line-height: 1.3;

    text-align: right;
    white-space: nowrap;

    transition:
        color .2s ease,
        transform .2s ease;
}

@media (hover: hover){

    #modal-checkout-wizard
    .content-input-destino
    .flex-row:not(:last-child):hover
    .black-letter{

        color: var(--ticket-accent) !important;

        transform: translateX(-2px);
    }
}


/* ---------------------------------------------------------
   PRIMERA FILA
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino
.flex-row:first-child{

    padding-top: 3px !important;
}


/* ---------------------------------------------------------
   SEPARADOR ESPECIAL ANTES DEL TOTAL
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino
.flex-row:nth-last-child(2){

    margin-top: 1px !important;

    padding-bottom: 13px !important;

    border-bottom:
        1px dashed #d7d0d9 !important;
}


/* ---------------------------------------------------------
   TOTAL
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino
.flex-row:last-child{

    min-height: 64px;

    margin-top: 2px !important;

    padding:
        15px 8px 2px !important;

    border-top:
        1px solid #ece7ed !important;

    border-bottom:
        none !important;

    border-radius: 0 0 10px 10px;

    align-items: center;

    position: relative;
}


/* línea roja decorativa */

#modal-checkout-wizard
.content-input-destino
.flex-row:last-child::before{

    content: "";

    position: absolute;

    top: -2px;
    left: 0;

    width: 38px;
    height: 3px;

    border-radius: 999px;

    background: var(--ticket-accent);

    box-shadow:
        0 4px 12px rgba(255,0,50,.25);
}


/* Total */

#modal-checkout-wizard
.content-input-destino
.flex-row:last-child
span:first-child{

    color: var(--ticket-text) !important;

    font-size: 16px !important;
    font-weight: 850 !important;

    letter-spacing: -.015em;
}


/* Precio total */

#modal-checkout-wizard
.content-input-destino
.flex-row:last-child
.black-letter{

    position: relative;

    color: var(--ticket-accent) !important;

    font-size: 20px !important;
    font-weight: 900 !important;

    letter-spacing: -.025em;

    text-shadow:
        0 4px 14px rgba(255,0,50,.12);

    animation:
        wfTotalPulse 2.8s ease-in-out infinite;
}


/* ---------------------------------------------------------
   ESTADOS SEMÁNTICOS DE LOS VALORES
   Si el valor contiene contenido visual generado por JS,
   mantenemos el precio limpio y destacado.
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino
#wf-txt-descuento{

    transition: color .2s ease;
}


/* ---------------------------------------------------------
   EFECTO "CONFIRMAR"
   Cuando el ticket está dentro del wizard activo,
   produce una respiración extremadamente sutil.
--------------------------------------------------------- */

#modal-checkout-wizard
.form-step.is-active
.content-input-destino{

    animation:
        wfTicketEnter .55s cubic-bezier(.22,.61,.36,1) both,
        wfTicketFloat 5s ease-in-out 1.2s infinite;
}


/* ---------------------------------------------------------
   HOVER GENERAL
--------------------------------------------------------- */

@media (hover: hover){

    #modal-checkout-wizard
    .content-input-destino:hover{

        transform:
            translateY(-3px);

        box-shadow:
            0 34px 72px -40px rgba(20,15,25,.48),
            0 10px 25px -15px rgba(20,15,25,.20),
            inset 0 1px 0 rgba(255,255,255,1);
    }
}


/* ---------------------------------------------------------
   ESTADO PRESIONADO — FEEDBACK TÁCTIL
--------------------------------------------------------- */

#modal-checkout-wizard
.content-input-destino:active{

    transform:
        translateY(-1px)
        scale(.995);
}


/* ---------------------------------------------------------
   ANIMACIONES
--------------------------------------------------------- */

@keyframes wfTicketEnter{

    0%{
        opacity: 0;
        transform:
            translateY(18px)
            scale(.97);
        filter: blur(2px);
    }

    55%{
        opacity: 1;
    }

    100%{
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
        filter: blur(0);
    }
}


@keyframes wfTicketShimmer{

    0%{
        left: -35%;
        opacity: 0;
    }

    15%{
        opacity: .75;
    }

    55%{
        left: 110%;
        opacity: .75;
    }

    70%,
    100%{
        left: 110%;
        opacity: 0;
    }
}


@keyframes wfTotalPulse{

    0%,
    100%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.025);
    }
}


@keyframes wfTicketFloat{

    0%,
    100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-1px);
    }
}


/* ---------------------------------------------------------
   MÓVIL
--------------------------------------------------------- */

@media (max-width: 480px){

    #modal-checkout-wizard
    .content-input-destino{

        padding:
            19px 17px 16px !important;

        border-radius: 19px;
    }

    #modal-checkout-wizard
    .content-input-destino
    .flex-row{

        min-height: 41px;
        gap: 12px;
    }

    #modal-checkout-wizard
    .content-input-destino
    .txt-tiket-detail{

        font-size: 11.5px !important;
    }

    #modal-checkout-wizard
    .content-input-destino
    .black-letter{

        font-size: 13.5px !important;
    }

    #modal-checkout-wizard
    .content-input-destino
    .flex-row:last-child{

        min-height: 61px;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    #modal-checkout-wizard
    .content-input-destino
    .flex-row:last-child
    .black-letter{

        font-size: 18px !important;
    }
}


/* ---------------------------------------------------------
   ACCESIBILIDAD / REDUCIR MOVIMIENTO
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce){

    #modal-checkout-wizard
    .content-input-destino,
    #modal-checkout-wizard
    .content-input-destino
    .black-letter{

        animation: none !important;
        transition: none !important;
    }
}


/* -------- comprobante final -------- */
#txt-estatus-pago{ font-weight: 900 !important; }

/* -------- loading -------- */
.dot{ background-color: var(--first-color) !important; }

/* -------- separación general dentro del cuerpo del modal -------- */
.modal-main, .modal-main-config, .modal-main-terminar, .modal-main-efectivo{
    padding: 16px 20px !important;
}

/* -------- FIX: #content-metodo-pago trae un display:grid roto en
   tu styles.css (grid-template-columns con sintaxis inválida), que
   deja los botones sin tamaño real. Se sobreescribe con la MISMA
   especificidad (#id.clase) para ganarle. -------- */
#content-metodo-pago.content-btn-metodo-pago{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    padding: 4px 0 !important;
}
#content-metodo-pago .btn-tipo-entrega{
    width: 100% !important;
    padding: 16px 18px !important;
    text-align: left !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
#txt-metodo-pago{
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pd-texto-suave) !important;
    margin-bottom: 10px !important;
    display: block;
}

/* -------- ingredientes / condimentos (#lista-preparacion) --
   viene como <label><input type=checkbox><span>nombre</span></label>
   plano, con estilos inline mínimos -- se estiliza aquí completo -------- */
#lista-preparacion{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

/* encabezados de sección ("Ingredientes...", "Salsas (opcional)") --
   son <p> con solo font-weight inline, se ven como texto suelto */
#lista-preparacion > p{
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--first-color) !important;
    margin: 14px 0 4px !important;
}
#lista-preparacion > p:first-child{ margin-top: 0 !important; }

/* cada opción -- de línea de texto plana a "chip" tocable */
#lista-preparacion label{
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background-color: var(--pd-bg-suave) !important;
    border: 1.5px solid var(--pd-borde) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .1s ease;
}
#lista-preparacion label:active{ transform: scale(.98); }

/* checkbox nativo, pero más grande y en rojo de marca */
#lista-preparacion input[type="checkbox"]{
    width: 20px;
    height: 20px;
    accent-color: var(--first-color);
    cursor: pointer;
    flex-shrink: 0;
}

#lista-preparacion label span{
    font-size: 14px !important;
    font-weight: 600;
    color: var(--pd-texto) !important;
}

/* cuando está marcada, la fila completa se resalta (soporte
   amplio en 2026: Chrome/Edge/Safari/Firefox) */
#lista-preparacion label:has(input:checked){
    border-color: var(--first-color) !important;
    background-color: var(--pd-rojo-soft) !important;
}
#lista-preparacion label:has(input:checked) span{
    color: var(--first-color) !important;
    font-weight: 800;
}

/* =========================================================
   WIZARD DE CHECKOUT (#modal-checkout-wizard) -- mismo lenguaje
   visual que cuenta.css: stepper con puntos, barra de progreso
   animada, footer Atrás/Siguiente.
========================================================= */

/* -------- stepper -------- */
#wf-step-progress{
    flex-shrink: 0;
    position: relative;
    width: 100%;
    padding: 14px 24px 18px;
}
#wf-step-progress .step-track{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#wf-step-progress .step-track::before{
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0; height: 3px;
    background-color: var(--pd-borde);
    border-radius: 3px;
    transform: translateY(-50%);
}
#wf-step-progress-fill{
    position: absolute;
    top: 50%; left: 0; height: 3px; width: 0%;
    background-color: var(--first-color);
    border-radius: 3px;
    transform: translateY(-50%);
    transition: width .35s cubic-bezier(.65,0,.35,1);
    z-index: 1;
}
#wf-step-bike{
    position: absolute;
    top: 50%; left: 0%;
    transform: translate(-50%,-50%);
    color: var(--first-color);
    font-size: 16px;
    transition: left .35s cubic-bezier(.65,0,.35,1);
    z-index: 2;
}
#wf-step-progress .step-dot{
    position: relative; z-index: 1;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--pd-card);
    border: 2px solid var(--pd-borde);
    color: var(--pd-texto-suave);
    font-size: 14px;
    transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
#wf-step-progress .step-dot.is-active{
    border-color: var(--first-color);
    color: var(--first-color);
    box-shadow: 0 0 0 4px var(--pd-rojo-soft);
}
#wf-step-progress .step-dot.is-done{
    border-color: var(--first-color);
    background-color: var(--first-color);
    color: #fff;
}

/* -------- pasos: uno visible a la vez -------- */
#modal-checkout-wizard .m1{
    flex: 1;
    min-height: 0;
    overflow-y: auto;
        width: 90%;
     display: flex;
    justify-content: center;
}
#modal-checkout-wizard .form-step{
    display: none;
    flex-direction: column;
    gap: 12px;
        width: 100%;
}
#modal-checkout-wizard .form-step.is-active{ display: flex;
align-items: center;
    overflow: scroll;
    height: max-content;
}

#modal-checkout-wizard .step-heading{ margin-bottom: 4px; }
#modal-checkout-wizard .step-heading span:nth-child(1){
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--pd-texto);
}
#modal-checkout-wizard .step-heading span:nth-child(2){
    display: block;
    font-size: 13px;
    color: var(--pd-texto-suave);
    margin-top: 2px;
}

/* -------- footer del wizard: Atrás (gris) + Siguiente/Pagar (rojo) -------- */
#modal-checkout-wizard .footer-form{
    flex-shrink: 0;
    width: 100%;
    display: flex;
    gap: 10px;
    height: 62px;
    padding: 8px 18px calc(8px + env(safe-area-inset-bottom, 0px));
    background-color: var(--pd-card);
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,.12);
}
#modal-checkout-wizard .footer-form button{
    flex: 1;
    height: 100%;
    border: none !important;
    outline: none;
    border-radius: 999px !important;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-family: inherit; font-size: 14.5px; font-weight: 800 !important;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
}
#modal-checkout-wizard .footer-form button:active{ transform: scale(.97); }
#wf-btn-atras{
    background-color: var(--pd-bg-suave) !important;
    color: var(--pd-texto) !important;
    flex: .55 !important;
    box-shadow: none !important;
}
#wf-btn-siguiente{
    background-color: var(--first-color) !important;
    color: #fff !important;
    box-shadow: var(--pd-shadow) !important;
}
#wf-btn-siguiente:hover{ background-color: #d40029 !important; }
#wf-btn-siguiente:disabled, #modal-checkout-wizard .footer-form button:disabled{
    opacity: .55 !important;
    pointer-events: none;
}

/* -------- método de pago dentro del paso 4 -------- */
#wf-content-metodo-pago{
      display: flex;
    flex-direction: column;
    gap: 10px;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
}
#wf-content-metodo-pago .btn-tipo-entrega{
    width: 60%;
    padding: 16px 18px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (prefers-reduced-motion: reduce){
    #wf-step-progress-fill, #wf-step-bike, #wf-step-progress .step-dot{ transition: none; }
}

/* -------- inputs del wizard -- MISMO patrón que cuenta.css:
   el borde/fondo van en el CONTENEDOR, el <input> queda
   transparente adentro (no en el input directo, como hacía mi
   regla genérica .form-input) -------- */
#modal-checkout-wizard .content-input,.content-input-area,
#modal-checkout-wizard .nombre_cliente,
#modal-checkout-wizard .content-comentario{
    position: relative;
    background-color: var(--pd-card) !important;
    border: 1.5px solid var(--pd-borde) !important;
    border-radius: 16px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 16px !important;
    min-height: 64px;
    margin-bottom: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
#modal-checkout-wizard .content-input:focus-within{
    border-color: var(--first-color) !important;
    box-shadow: 0 0 0 4px var(--pd-rojo-soft);
}
#modal-checkout-wizard .content-input, .content-input-area span{
    font-size: 10.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--pd-texto-suave) !important;
    margin-bottom: 3px;
    display: block;
}
#modal-checkout-wizard .content-input input,
#modal-checkout-wizard .content-input textarea{
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: var(--pd-texto) !important;
    font-family: inherit;
    font-size: 14.5px !important;
    font-weight: 600;
    padding: 0 !important;
    height: 24px;
    width: 100%;
}
#modal-checkout-wizard .content-input input::placeholder,
#modal-checkout-wizard .content-input textarea::placeholder{
    color: var(--pd-texto-suave) !important;
    font-weight: 500;
}
#modal-checkout-wizard .content-input textarea{
    height: 64px !important;
    resize: none;
    padding-top: 2px !important;
    line-height: 1.4;
}

/* -------- botón "usar mi ubicación actual" -------- */
#wf-btn-ubicacion-actual{
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    padding: 15px 18px !important;
    margin-bottom: 6px;
}
#wf-btn-ubicacion-actual i{ font-size: 17px; color: var(--first-color); }
#wf-ubicacion-status{
    color: var(--pd-texto-suave) !important;
    font-size: 11.5px;
    margin: -2px 2px 10px;
}
#wf-ubicacion-status.tiene-texto{ color: var(--first-color) !important; }


/* -------- formulario de tarjeta (Stripe) -------- */
#wf-content-formu-online{
    margin-top: 6px;
    width: 100%;
    animation: wfCardIn .25s ease;
}
@keyframes wfCardIn{
    from{ opacity:0; transform: translateY(-6px); }
    to{ opacity:1; transform: translateY(0); }
}
 
#wf-content-formu-online::before{
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--pd-texto-suave);
    margin-bottom: 8px;
}
 
#wf-stripe-card{
    background-color: var(--pd-card) !important;
    border: 1.5px solid var(--pd-borde) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
 
/* Stripe le agrega esta clase al contenedor cuando el campo
   tiene el foco -- así el borde reacciona igual que tus otros
   inputs del wizard */
#wf-stripe-card.StripeElement--focus{
    border-color: var(--first-color) !important;
    box-shadow: 0 0 0 4px var(--pd-rojo-soft) !important;
}
#wf-stripe-card.StripeElement--invalid{
    border-color: #e0334d !important;
}
 
#wf-stripe-error{
    color: #e0334d !important;
    font-size: 12px !important;
    font-weight: 600;
    margin-top: 8px !important;
    min-height: 16px; /* evita que el layout brinque cuando aparece/desaparece */
}



.btn-tipo-pago{
    width:60%;
    height: 164px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    outline: none;
    border: 2px solid var(--first-color);
    gap: 13px;
    flex-direction: column;
    border-radius: 1rem;
    font-family: "Satoshi", sans-serif;
    
}
.btn-tipo-pago i{
        font-size: 34px;
    color: var(--first-color);
}
.txt-tiket-detail{
font-size: 0.9375rem;
font-weight: 800;
}
.content-input-area{
    height: 154px;
}
#wf-comentarios{
    background-color: transparent !important;
    border: none !important;
}.selected_pago{
      background: var(--first-color);
    color: white;
}.selected_pago i{
    color: white;
}

.card-header-scanner{
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px !important;
}
#btn-cerrar-scanner{
    width: 34px; height: 34px;
    border: none;
    border-radius: 50%;
    background-color: var(--pd-bg-suave);
    color: var(--pd-texto);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background-color .2s ease;
    flex-shrink: 0;
}
#btn-cerrar-scanner:active{ transform: scale(.9); }
#btn-cerrar-scanner:hover{ background-color: var(--pd-rojo-soft); color: var(--first-color); }
 .outputMessage{
     font-size: 14px;
 }
.wf-contactos{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}
.wf-contacto-item{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pd-texto);
    background-color: var(--pd-bg-suave);
    border: 1.5px solid var(--pd-borde);
    border-radius: 999px;
    padding: 7px 14px;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.wf-contacto-item i{ color: var(--first-color); font-size: 15px; }
.wf-contacto-item:hover{ border-color: var(--first-color); color: var(--first-color); }
 
.wf-horarios-toggle{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--first-color);
    font-size: 12.5px;
    font-weight: 800;
    padding: 4px 0;
    cursor: pointer;
}
 
.wf-horarios-semana{
    display: none;
    flex-direction: column;
    background-color: var(--pd-card);
    border: 1.5px solid var(--pd-borde);
    border-radius: 14px;
    padding: 4px 14px;
    margin-top: 8px;
    max-width: 280px;
}
.wf-horarios-semana.is-open{ display: flex; }
.wf-horario-fila{
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--pd-borde);
    font-size: 13px;
    color: var(--pd-texto-suave);
}
.wf-horario-fila:last-child{ border-bottom: none; }
.wf-horario-fila.es-hoy{
    color: var(--first-color);
    font-weight: 800;
}
 

/* -------- #modal-tiket -- comprobante de pago exitoso -------- */
#modal-tiket .card-checkout{
    background-color: var(--pd-card) !important;
    border-radius: var(--pd-radius) !important;
    box-shadow: var(--pd-shadow) !important;
    overflow: hidden;
}
 
#modal-tiket .content-input-destino{
    background: none !important;
    padding: 32px 20px 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
 
/* la imagen del producto se vuelve un ícono circular de éxito,
   más chico y centrado -- no una foto grande de producto */
#modal-tiket .content-input-destino > img{
    display: none; /* la reemplazamos por el ícono de check animado de abajo */
}
#modal-tiket .content-input-destino::before{
    content: "\ea7c"; /* ri-checkbox-circle-fill (remixicon) */
    font-family: 'remixicon' !important;
    font-size: 64px;
    color: #2ecc71;
    margin-bottom: 4px;
    animation: wfTiketPop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes wfTiketPop{
    from{ transform: scale(.4); opacity: 0; }
    to{ transform: scale(1); opacity: 1; }
}
 
#txt-estatus-pago{
    font-size: 20px !important;
    font-weight: 900 !important;
    color: var(--pd-texto) !important;
}
#msg-pago{
    font-size: 13.5px !important;
    color: var(--pd-texto-suave) !important;
    max-width: 260px;
}
 
/* fila del total -- se separa visualmente como si fuera un ticket real */
#modal-tiket .flex-column:has(#txt-total2){
    width: 100%;
    flex-direction: column !important;
    justify-content: space-between;
    align-items: center;
    background-color: var(--pd-bg-suave);
    border: 1.5px dashed var(--pd-borde);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 14px 0;
}
#modal-tiket .flex-column:has(#txt-total2) span:first-child{
    font-size: 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pd-texto-suave) !important;
}
#txt-total2{
    font-size: 22px !important;
    font-weight: 900 !important;
    color: var(--first-color) !important;
}
 
#msg_lugar_pago{
    font-size: 13px !important;
    font-weight: 700;
    color: var(--pd-texto) !important;
}
#txt-instruccion{
    font-size: 12px !important;
    color: var(--pd-texto-suave) !important;
    font-style: normal !important;
}
 
/* -------- footer: mismo botón pill rojo del resto del wizard -------- */
#modal-tiket .footer-modal-tiket{
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
}
#btn-fin-pago.slide-button{
    width: 100% !important;
    height: 52px !important;
    border-radius: 999px !important;
    background-color: var(--first-color) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    box-shadow: var(--pd-shadow) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#btn-fin-pago.slide-button::before{
    content: "Listo";
}
#btn-fin-pago.slide-button:active{ transform: scale(.97); }
     .wf-tiket-folio{
        font-size: 12.5px;
        color: var(--pd-texto-suave);
        margin: 8px 0 0;
    }
    .wf-tiket-folio b{
        color: var(--pd-texto);
        font-weight: 800;
    }
.wf-tarjeta-lista-badge{
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 800;
    color: #2ecc71;
}
.wf-tarjeta-lista-badge i{ vertical-align: middle; margin-right: 3px; }
 
#modal-tarjeta-stripe{
    z-index: 10000; /* por encima de #modal-checkout-wizard */
}
.wf-tarjeta-modal-body{
    padding: 8px 22px 24px !important;
    width: 100%;
    display: flex;
    flex-direction: column;
}
 
/* ícono grande arriba -- ancla visual, mismo patrón que usamos
   en el ícono de éxito del modal-tiket */
.wf-tarjeta-icono-hero{
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #fff1f2;
    color: #ff0032;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 4px auto 18px;
}
 
/* banner de confianza -- reemplaza la línea suelta de antes */
.wf-tarjeta-seguridad-banner{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0fdf4;
    border: 1.5px solid #bbf0cc;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 20px;
}
.wf-tarjeta-seguridad-banner i{
    color: #2ecc71;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.wf-tarjeta-seguridad-banner strong{
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #1a1620;
}
.wf-tarjeta-seguridad-banner span{
    display: block;
    font-size: 12px;
    color: #5c5560;
    margin-top: 2px;
    line-height: 1.4;
}
 
/* etiqueta arriba del campo -- el "letrero" que guía qué llenar ahí */
.wf-tarjeta-label{
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8b8591;
    margin-bottom: 8px;
    display: block;
}
 
/* aviso de ayuda del CVC, debajo del campo */
.wf-tarjeta-ayuda{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #8b8591;
    margin-top: 10px;
}
.wf-tarjeta-ayuda i{ color: #ff0032; font-size: 13px; }
 
/* el campo de Stripe -- un poco más de aire que antes */
#wf-stripe-card{
    padding: 16px 14px !important;
}
 
/* botón guardar con ícono */
.footer-modal .btn-transparent i{
    margin-right: 6px;
}
 /* =========================================================
   ESTADO DE VALIDACIÓN DEL CONTENEDOR
   ========================================================= */

.content-input,
.content-input-area {
    position: relative;
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background-color .25s ease,
        transform .25s ease;
}


/* ERROR */

.content-input.wf-input-error,
.content-input-area.wf-input-error {
    border-color: #ff4d5e !important;
    box-shadow:
        0 0 0 4px rgba(255, 77, 94, .10),
        0 10px 28px rgba(255, 77, 94, .08);
}


/* FOCUS + ERROR */

.content-input.wf-input-error:focus-within,
.content-input-area.wf-input-error:focus-within {
    border-color: #ff3d50 !important;
    box-shadow:
        0 0 0 4px rgba(255, 77, 94, .16),
        0 12px 30px rgba(255, 77, 94, .12);
}


/* VÁLIDO */

.content-input.wf-input-valid,
.content-input-area.wf-input-valid {
    border-color: #21c982 !important;
}


/* OPCIONAL: INPUT INTERNO NO MANEJA EL BORDE */

.content-input.wf-input-error .form-input,
.content-input-area.wf-input-error .form-input,
.content-input.wf-input-valid .form-input,
.content-input-area.wf-input-valid .form-input {
    border-color: transparent !important;
    box-shadow: none !important;
}


/* =========================================================
   EFECTO CUANDO EL USUARIO ESCRIBE UN CARÁCTER BLOQUEADO
   ========================================================= */

.content-input.wf-char-blocked,
.content-input-area.wf-char-blocked {
    border-color: #ff9f1c !important;
    animation: wf-shake .35s ease;
}


@keyframes wf-shake {

    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .content-input.wf-input-error,
    .content-input-area.wf-input-error {

        box-shadow:
            0 0 0 3px rgba(255, 77, 94, .12);
    }

}

/* =========================================================
   WIIKFOOD - PUNTOS / RECOMPENSAS PREMIUM DELIVERY
   ========================================================= */

.wf-puntos-card{
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 14px;
    padding: 18px !important;

    background:
        linear-gradient(
            135deg,
            rgba(255, 0, 50, .05),
            rgba(255, 255, 255, 1) 50%
        );

    border: 1px solid rgba(255, 0, 50, .13);
    border-radius: 20px;

    box-shadow:
        0 12px 30px rgba(255, 0, 50, .06);

    overflow: hidden;
}

/* Decoración superior */
.wf-puntos-card::before{
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    top: -75px;
    right: -50px;

    border-radius: 50%;

    background: rgba(255, 0, 50, .045);

    pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.wf-puntos-header{
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
}

.wf-puntos-icon{
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;
    font-size: 24px;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #ff0032,
        #ff5b3f
    );

    box-shadow:
        0 8px 20px rgba(255, 0, 50, .25);
}

.wf-puntos-title{
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
}

.wf-puntos-title strong{
    color: #25232a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.wf-puntos-title span{
    margin-top: 3px;

    color: #8a8590;
    font-size: 11px;
    line-height: 1.35;
}

/* =========================================================
   LETRERO PUNTOS DISPONIBLES
   ========================================================= */

.wf-puntos-total{
    flex-shrink: 0;

    min-width: 72px;
    padding: 8px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;

    border-radius: 13px;

    background: #fff0f3;

    border: 1px solid rgba(255, 0, 50, .10);
}

.wf-puntos-total span{
    color: #a86a75;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.wf-puntos-total b{
    margin-top: 2px;

    color: #ff0032;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
}

/* =========================================================
   LETREROS DEL SLIDER
   ========================================================= */

.wf-puntos-labels{
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 9px;

    color: #9b949d;
    font-size: 10px;
    font-weight: 700;
}

.wf-puntos-labels span:nth-child(2){
    padding: 4px 8px;

    color: #ff0032;
    font-size: 9px;

    background: rgba(255, 0, 50, .06);

    border-radius: 20px;
}

/* =========================================================
   CONTENEDOR SLIDER
   ========================================================= */

.wf-slider-container{
    position: relative;

    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;

    padding: 0 3px;
}

/* =========================================================
   RANGE BASE
   ========================================================= */

#wf-puntos-slider{
    -webkit-appearance: none;
    appearance: none;

    width: 100%;
    height: 9px;

    margin: 0;
    padding: 0;

    border: none;
    outline: none;

    border-radius: 20px;

    cursor: pointer;

    background:
        linear-gradient(
            90deg,
            #ff0032 var(--wf-slider-progress, 0%),
            #ece9ed var(--wf-slider-progress, 0%)
        );

    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, .08);

    transition:
        background .15s ease;
}

/* =========================================================
   THUMB CHROME / EDGE / SAFARI
   ========================================================= */

#wf-puntos-slider::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    border: 4px solid #fff;

    background: #ff0032;

    cursor: grab;

    box-shadow:
        0 5px 15px rgba(255, 0, 50, .35);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

#wf-puntos-slider:active::-webkit-slider-thumb{
    cursor: grabbing;

    transform: scale(1.12);

    box-shadow:
        0 7px 22px rgba(255, 0, 50, .45);
}

/* =========================================================
   FIREFOX
   ========================================================= */

#wf-puntos-slider::-moz-range-track{
    height: 9px;

    border: none;

    border-radius: 20px;

    background: #ece9ed;
}

#wf-puntos-slider::-moz-range-progress{
    height: 9px;

    border-radius: 20px;

    background: #ff0032;
}

#wf-puntos-slider::-moz-range-thumb{
    width: 21px;
    height: 21px;

    border: 4px solid #fff;

    border-radius: 50%;

    background: #ff0032;

    cursor: grab;

    box-shadow:
        0 5px 15px rgba(255, 0, 50, .35);
}

/* =========================================================
   RESUMEN INFERIOR
   ========================================================= */

.wf-puntos-summary{
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;

    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid #f0edf0;
}

.wf-puntos-selected{
    display: flex;
    align-items: center;
    gap: 9px;
}

.wf-summary-icon{
    width: 36px;
    height: 36px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    color: #ff0032;
    font-size: 18px;

    background: #fff0f3;

    border-radius: 12px;
}

.wf-puntos-selected div,
.wf-puntos-discount{
    display: flex;
    flex-direction: column;
}

.wf-puntos-summary small{
    color: #9a949d;
    font-size: 10px;
    font-weight: 600;
}

#wf-puntos-elegidos{
    margin-top: 2px;

    color: #29252d;
    font-size: 14px;
    font-weight: 800;
}

.wf-puntos-discount{
    text-align: right;
}

#wf-puntos-descuento{
    margin-top: 2px;

    color: #18a957;
    font-size: 16px;
    font-weight: 900;
}

/* =========================================================
   LETRERO INFORMATIVO
   ========================================================= */

.wf-puntos-tip{
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 13px;
    padding: 9px 11px;

    color: #837d86;
    font-size: 10px;
    line-height: 1.4;

    background: #f8f7f8;

    border-radius: 11px;
}

.wf-puntos-tip i{
    flex-shrink: 0;

    color: #ff0032;
    font-size: 15px;
}

/* =========================================================
   ESTADO CUANDO YA HAY PUNTOS
   ========================================================= */

.wf-puntos-card.wf-puntos-activos{
    border-color: rgba(255, 0, 50, .28);

    box-shadow:
        0 12px 32px rgba(255, 0, 50, .10);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 480px){

    .wf-puntos-card{
        padding: 15px !important;
        border-radius: 18px;
    }

    .wf-puntos-header{
        gap: 9px;
    }

    .wf-puntos-icon{
        width: 43px;
        height: 43px;

        font-size: 21px;

        border-radius: 14px;
    }

    .wf-puntos-title strong{
        font-size: 14px;
    }

    .wf-puntos-total{
        min-width: 62px;
        padding: 7px 8px;
    }

    .wf-puntos-total b{
        font-size: 16px;
    }

    .wf-puntos-labels span:nth-child(2){
        display: none;
    }
}
