/* =========================================================
   BOTAS 632 — MODALES — iOS PREMIUM
   ========================================================= */

#modalMegusta{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100vh !important;
    box-sizing:border-box !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:12px !important;

    background:rgba(0,0,0,.72) !important;

    z-index:99999 !important;

    overflow-y:auto !important;
    overflow-x:hidden !important;

    font-family:-apple-system,BlinkMacSystemFont,
        "SF Pro Display","SF Pro Text",
        "Helvetica Neue",Arial,sans-serif !important;
}

#modalMegusta .w3-modal-content{
    width:96vw !important;
    max-width:430px !important;
    max-height:calc(100vh - 24px) !important;

    margin:auto !important;
    padding:0 !important;

    box-sizing:border-box !important;

    background:#f5f5f7 !important;
    color:#1d1d1f !important;

    border:0 !important;
    border-radius:20px !important;

    overflow:hidden !important;

    box-shadow:
        0 20px 60px rgba(0,0,0,.38),
        0 4px 18px rgba(0,0,0,.18) !important;
}

#modalMegusta .w3-container{
    box-sizing:border-box !important;
}

#modalMegusta .w3-container.w3-center.w3-wide{
    padding:22px 20px 16px !important;
}

#modalMegusta h2{
    margin:0 !important;
    padding:0 !important;

    font-family:-apple-system,BlinkMacSystemFont,
        "SF Pro Display","SF Pro Text",
        "Helvetica Neue",Arial,sans-serif !important;

    font-size:22px !important;
    line-height:1.2 !important;
    font-weight:600 !important;
    letter-spacing:-.3px !important;

    color:#1d1d1f !important;
}

#modalMegusta form{
    padding:0 20px 20px !important;
}

#modalMegusta input.w3-input{
    width:100% !important;
    height:48px !important;

    box-sizing:border-box !important;

    margin:8px 0 !important;
    padding:0 14px !important;

    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;

    background:#fff !important;
    color:#1d1d1f !important;

    font-family:inherit !important;
    font-size:16px !important;

    outline:none !important;
    box-shadow:none !important;

    -webkit-appearance:none !important;
    appearance:none !important;
}

#modalMegusta input.w3-input::placeholder{
    color:#8e8e93 !important;
    opacity:1 !important;
}

#modalMegusta input.w3-input:focus{
    border-color:#8e8e93 !important;
    box-shadow:0 0 0 3px rgba(0,122,255,.12) !important;
}

#modalMegusta form > .w3-container.w3-center.w3-padding{
    display:flex !important;
    gap:10px !important;
    padding:18px 0 0 !important;
}

#modalMegusta form > .w3-container.w3-center.w3-padding .w3-button{
    flex:1 1 0 !important;
    min-height:46px !important;

    margin:0 !important;
    padding:10px 16px !important;

    box-sizing:border-box !important;

    border:0 !important;
    border-radius:12px !important;

    font-family:inherit !important;
    font-size:16px !important;
    font-weight:600 !important;

    cursor:pointer !important;

    transition:
        transform .12s ease,
        opacity .12s ease !important;
}

#modalMegusta form > .w3-container.w3-center.w3-padding
.w3-button:active{
    transform:scale(.97) !important;
    opacity:.82 !important;
}

@media (max-width:480px){

    #modalMegusta{
        padding:8px !important;
    }

    #modalMegusta .w3-modal-content{
        width:97vw !important;
        max-width:none !important;
        border-radius:18px !important;
    }

    #modalMegusta .w3-container.w3-center.w3-wide{
        padding-top:20px !important;
    }

    #modalMegusta form{
        padding-left:16px !important;
        padding-right:16px !important;
        padding-bottom:16px !important;
    }
}
/* =========================================================
   MODAL ME GUSTA — VISIBILIDAD CONTROLADA POR W3CSS
   ========================================================= */

#modalMegusta.w3-modal{
    display:none !important;
}

#modalMegusta.w3-modal[style*="display: block"]{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
/* =========================================================
   MODAL CLIENTE — MISMA APARIENCIA QUE DAR ME GUSTA
   SOLO APARIENCIA — NO MODIFICA LÓGICA
   ========================================================= */

#clientedatos.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#clientedatos.w3-modal[style*="display: block"]{
    display:flex !important;
}

#clientedatos .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    min-height:0 !important;
    margin:auto !important;
    padding:0 !important;

    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;

    animation:clientedatosIOS .22s ease-out;
}

@keyframes clientedatosIOS{
    from{
        opacity:0;
        transform:scale(.96) translateY(8px);
    }
    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }
}

/* CABECERA */
#clientedatos header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
    box-sizing:border-box;
    background:#fff !important;
}

/* LOGO */
#clientedatos .minilogo{
    max-width:170px;
    height:auto;
    display:block;
    margin:auto;
}

/* CONTENIDO */
#clientedatos .w3-container{
    box-sizing:border-box;
}

#clientedatos form{
    margin:0 !important;
    padding:8px 20px 22px !important;
}

#clientedatos form > p{
    margin:0 !important;
}

/* INPUTS */
#clientedatos input.w3-input{
    width:100% !important;
    box-sizing:border-box;

    height:48px !important;
    margin:8px 0 !important;
    padding:0 14px !important;

    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;

    background:#f8f8fa !important;
    color:#1d1d1f !important;

    font-family:-apple-system,BlinkMacSystemFont,
                 "SF Pro Display","SF Pro Text",sans-serif;

    font-size:16px !important;
    outline:none !important;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

#clientedatos input.w3-input::placeholder{
    color:#8e8e93 !important;
}

#clientedatos input.w3-input:focus{
    background:#fff !important;
    border-color:#8e8e93 !important;
    box-shadow:0 0 0 3px rgba(0,122,255,.12) !important;
}

/* ZONA DE BOTONES */
#clientedatos .w3-display-container{
    width:100% !important;
    height:48px !important;
    margin-top:14px !important;
}

#clientedatos .w3-display-topmiddle{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:14px !important;
}

/* BOTONES — CONSERVAN appcolorbotones */
#clientedatos .w3-button.w3-circle{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    padding:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:50% !important;
    border:0 !important;

    font-size:16px !important;

    box-shadow:0 3px 10px rgba(0,0,0,.16);
    transition:
        transform .15s ease,
        opacity .15s ease;
}

#clientedatos .w3-button.w3-circle:active{
    transform:scale(.94);
    opacity:.82;
}

/* ELIMINAR ESPACIO EXTRA DEL P */
#clientedatos > .w3-modal-content > .w3-container > p:last-child{
    display:none !important;
}
/* =========================================================
   MODAL — REQUERIR VISITA
   Apariencia iOS
   ========================================================= */

#requerirvisita.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#requerirvisita.w3-modal[style*="display: block"]{
    display:flex !important;
}

#requerirvisita .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    min-height:0 !important;
    margin:auto !important;
    padding:0 !important;

    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;

    animation:requerirVisitaIOS .22s ease-out;
}

@keyframes requerirVisitaIOS{
    from{
        opacity:0;
        transform:scale(.96) translateY(8px);
    }
    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }
}

#requerirvisita header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
    box-sizing:border-box;
    background:#fff !important;
}

#requerirvisita .minilogo{
    max-width:170px;
    height:auto;
    display:block;
    margin:auto;
}

#requerirvisita > .w3-modal-content > .w3-container.w3-center{
    padding:20px 20px 28px !important;
    box-sizing:border-box;
}

#requerirvisita h4{
    margin:4px 0 24px !important;

    font-family:-apple-system,BlinkMacSystemFont,
                 "SF Pro Display","SF Pro Text",sans-serif;

    font-size:19px !important;
    line-height:1.3;
    font-weight:600 !important;
    letter-spacing:-.2px;

    color:#1d1d1f !important;
}

#requerirvisita .w3-button{
    min-width:90px !important;
    height:44px !important;

    margin:0 5px !important;
    padding:0 20px !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    border:0 !important;
    border-radius:12px !important;

    font-family:-apple-system,BlinkMacSystemFont,
                 "SF Pro Display","SF Pro Text",sans-serif;

    font-size:16px !important;
    font-weight:600 !important;

    box-shadow:0 3px 10px rgba(0,0,0,.14);

    transition:
        transform .15s ease,
        opacity .15s ease;
}

#requerirvisita .w3-button:active{
    transform:scale(.96);
    opacity:.82;
}
/* =========================================================
   MODAL — SOLICITAR VISITA
   Apariencia iOS
   ========================================================= */

#solicitarvisita.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#solicitarvisita.w3-modal[style*="display: block"]{
    display:flex !important;
}

#solicitarvisita .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    max-height:calc(100vh - 32px) !important;
    height:auto !important;
    margin:auto !important;
    padding:0 !important;

    background:#fff !important;
    border-radius:22px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;

    animation:solicitarVisitaIOS .22s ease-out;
}

@keyframes solicitarVisitaIOS{
    from{
        opacity:0;
        transform:scale(.96) translateY(8px);
    }
    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }
}

#solicitarvisita header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
    box-sizing:border-box;
    background:#fff !important;
}

#solicitarvisita .minilogo{
    max-width:170px;
    height:auto;
    display:block;
    margin:auto;
}

#solicitarvisita > .w3-modal-content > .w3-container{
    box-sizing:border-box;
    padding:8px 20px 24px !important;
}

#solicitarvisita .w3-container > p:first-child{
    margin:4px 0 12px !important;
    text-align:center;
}

#solicitarvisita .w3-container > p:first-child .w3-large{
    font-family:-apple-system,BlinkMacSystemFont,
                 "SF Pro Display","SF Pro Text",sans-serif;

    font-size:18px !important;
    font-weight:600 !important;
    color:#1d1d1f !important;
}

#solicitarvisita form{
    margin:0 !important;
}

#solicitarvisita form > p{
    margin:0 !important;
}

#solicitarvisita input.w3-input,
#solicitarvisita select.w3-select{
    width:100% !important;
    box-sizing:border-box;

    height:46px !important;
    margin:6px 0 !important;
    padding:0 13px !important;

    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;

    background:#f8f8fa !important;
    color:#1d1d1f !important;

    font-family:-apple-system,BlinkMacSystemFont,
                 "SF Pro Display","SF Pro Text",sans-serif;

    font-size:16px !important;
    outline:none !important;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

#solicitarvisita input.w3-input:focus,
#solicitarvisita select.w3-select:focus{
    background:#fff !important;
    border-color:#8e8e93 !important;
    box-shadow:0 0 0 3px rgba(0,122,255,.12) !important;
}

#solicitarvisita input.w3-input::placeholder{
    color:#8e8e93 !important;
}

#solicitarvisita label{
    display:block;
    margin:8px 0 3px;

    font-family:-apple-system,BlinkMacSystemFont,
                 "SF Pro Display","SF Pro Text",sans-serif;

    font-size:13px;
    line-height:1.2;
    color:#6e6e73;
}

#solicitarvisita form > .w3-row{
    display:flex !important;
    gap:8px !important;
    width:100%;
    margin-top:4px;
}

#solicitarvisita form > .w3-row > .w3-third{
    width:33.333% !important;
    box-sizing:border-box;
}

#solicitarvisita form > .w3-row input{
    margin-top:3px !important;
    padding:0 8px !important;
}

#solicitarvisita form > .w3-container.w3-center{
    padding:18px 0 2px !important;
}

#solicitarvisita .w3-button.w3-circle{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    padding:0 !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:50% !important;
    border:0 !important;

    font-size:16px !important;

    box-shadow:0 3px 10px rgba(0,0,0,.16);

    transition:
        transform .15s ease,
        opacity .15s ease;
}

#solicitarvisita .w3-button.w3-circle:active{
    transform:scale(.94);
    opacity:.82;
}

#solicitarvisita > .w3-modal-content > .w3-container > p:last-child{
    display:none !important;
}
/* =========================================================
   MODAL — MEDIDA PLANTA
   Apariencia iOS
   ========================================================= */

#medida_planta.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#medida_planta.w3-modal[style*="display: block"]{
    display:flex !important;
}

#medida_planta .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    margin:auto !important;
    padding:0 !important;

    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;

    animation:medidaPlantaIOS .22s ease-out;
}

@keyframes medidaPlantaIOS{
    from{
        opacity:0;
        transform:scale(.96) translateY(8px);
    }
    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }
}

#medida_planta header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
    box-sizing:border-box;
    background:#fff !important;
}

#medida_planta .minilogo{
    max-width:170px;
    height:auto;
    display:block;
    margin:auto;
}

#medida_planta h5{
    margin:4px 0 0 !important;

    font-family:-apple-system,BlinkMacSystemFont,
                 "SF Pro Display","SF Pro Text",sans-serif;

    font-size:19px !important;
    line-height:1.3;
    font-weight:600 !important;
    letter-spacing:-.2px;

    color:#1d1d1f !important;
}

#medida_planta .w3-badge{
    width:54px !important;
    height:36px !important;
    box-sizing:border-box;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:0 !important;
    margin:0 8px !important;

    border-radius:10px !important;

    background:#f2f2f7 !important;
    color:#1d1d1f !important;

    font-family:-apple-system,BlinkMacSystemFont,
                 "SF Pro Display","SF Pro Text",sans-serif;

    font-size:18px !important;
    font-weight:600 !important;
}

#medida_planta .w3-button.w3-circle{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    padding:0 !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:50% !important;
    border:0 !important;

    font-size:18px !important;

    box-shadow:0 3px 10px rgba(0,0,0,.16);

    transition:
        transform .15s ease,
        opacity .15s ease;
}

#medida_planta .w3-button.w3-circle:active{
    transform:scale(.94);
    opacity:.82;
}

#medida_planta img[src*="planta.gif"]{
    display:block;
    width:30% !important;
    max-width:110px;
    margin:4px auto 0;
}

#medida_planta #btnAtrPlanta,
#medida_planta #btnSigPlanta{
    margin:0 5px !important;
}

#medida_planta > .w3-modal-content > .w3-container:last-child{
    padding-bottom:24px !important;
}
/* =========================================================
   BOTAS 632 — MODALES DE MEDIDAS / VISITA / ENVÍO
   SOLO APARIENCIA
   NO MODIFICA FUNCIONALIDAD
   ========================================================= */


/* ---------------------------------------------------------
   BASE GENERAL
   --------------------------------------------------------- */

#requerirvisita.w3-modal,
#clientedatosvisita.w3-modal,
#pedidorecibido.w3-modal,
#enviodomicilio.w3-modal,
#enviodatos.w3-modal,
#envioasucursal.w3-modal,
#preguntarpago.w3-modal,
#medida_planta.w3-modal,
#medida_entrada.w3-modal,
#medida_empeine.w3-modal,
#medida_juanes.w3-modal,
#medida_cintura.w3-modal,
#vermedidas.w3-modal,
#planta.w3-modal,
#entrada.w3-modal,
#empeine.w3-modal,
#juanes.w3-modal,
#cintura.w3-modal,
#solicitarvisita.w3-modal,
#visitaguardada.w3-modal{
    box-sizing:border-box;
    padding:16px !important;
}


/* ---------------------------------------------------------
   CONTENEDORES
   --------------------------------------------------------- */

#requerirvisita .w3-modal-content,
#clientedatosvisita .w3-modal-content,
#pedidorecibido .w3-modal-content,
#enviodomicilio .w3-modal-content,
#enviodatos .w3-modal-content,
#envioasucursal .w3-modal-content,
#preguntarpago .w3-modal-content,
#medida_planta .w3-modal-content,
#medida_entrada .w3-modal-content,
#medida_empeine .w3-modal-content,
#medida_juanes .w3-modal-content,
#medida_cintura .w3-modal-content,
#vermedidas .w3-modal-content,
#planta .w3-modal-content,
#entrada .w3-modal-content,
#empeine .w3-modal-content,
#juanes .w3-modal-content,
#cintura .w3-modal-content,
#solicitarvisita .w3-modal-content,
#visitaguardada .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    box-sizing:border-box;
    margin:auto !important;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}


/* ---------------------------------------------------------
   ENCABEZADOS
   --------------------------------------------------------- */

#requerirvisita header,
#clientedatosvisita header,
#pedidorecibido header,
#enviodomicilio header,
#enviodatos header,
#envioasucursal header,
#preguntarpago header,
#medida_planta header,
#medida_entrada header,
#medida_empeine header,
#medida_juanes header,
#medida_cintura header,
#solicitarvisita header,
#visitaguardada header{
    box-sizing:border-box;
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
    background:#fff !important;
}


/* ---------------------------------------------------------
   TITULOS
   --------------------------------------------------------- */

#requerirvisita h4,
#pedidorecibido h4,
#enviodomicilio h4,
#preguntarpago h4,
#medida_planta h5,
#medida_entrada h5,
#medida_empeine h5,
#medida_juanes h5,
#medida_cintura h5{
    margin:8px 0 24px !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-weight:600 !important;
    letter-spacing:-.2px;
    color:#1d1d1f !important;
}


/* ---------------------------------------------------------
   MODALES DE PREGUNTA
   --------------------------------------------------------- */

#requerirvisita > .w3-modal-content > .w3-container,
#pedidorecibido > .w3-modal-content > .w3-container,
#enviodomicilio > .w3-modal-content > .w3-container,
#preguntarpago > .w3-modal-content > .w3-container{
    padding:28px 20px 32px !important;
    box-sizing:border-box;
}


/* ---------------------------------------------------------
   BOTONES PRINCIPALES
   Conservan appcolorbotones si ya existe.
   --------------------------------------------------------- */

#requerirvisita .w3-button,
#pedidorecibido .w3-button,
#enviodomicilio .w3-button,
#preguntarpago .w3-button{
    min-width:88px !important;
    height:44px !important;
    margin:0 5px !important;
    padding:0 20px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:0 !important;
    border-radius:12px !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:16px !important;
    font-weight:600 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.14);
    transition:
        transform .15s ease,
        opacity .15s ease;
}


#requerirvisita .w3-button:active,
#pedidorecibido .w3-button:active,
#enviodomicilio .w3-button:active,
#preguntarpago .w3-button:active{
    transform:scale(.96);
    opacity:.82;
}


/* ---------------------------------------------------------
   CAMPOS DE FORMULARIO
   --------------------------------------------------------- */

#clientedatosvisita input.w3-input,
#enviodatos input.w3-input,
#enviodatos select.w3-select,
#solicitarvisita input.w3-input,
#solicitarvisita select.w3-select{
    width:100% !important;
    box-sizing:border-box;
    height:46px !important;
    margin:6px 0 !important;
    padding:0 13px !important;
    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;
    background:#f8f8fa !important;
    color:#1d1d1f !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:16px !important;
    outline:none !important;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


#clientedatosvisita input.w3-input:focus,
#enviodatos input.w3-input:focus,
#enviodatos select.w3-select:focus,
#solicitarvisita input.w3-input:focus,
#solicitarvisita select.w3-select:focus{
    background:#fff !important;
    border-color:#8e8e93 !important;
    box-shadow:0 0 0 3px rgba(0,122,255,.12) !important;
}


#clientedatosvisita input::placeholder,
#enviodatos input::placeholder,
#solicitarvisita input::placeholder{
    color:#8e8e93 !important;
}


/* ---------------------------------------------------------
   SELECT DE SUCURSAL
   --------------------------------------------------------- */

#envioasucursal #selsucursales{
    width:100% !important;
    box-sizing:border-box;
    height:48px !important;
    padding:0 13px !important;
    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;
    background:#f8f8fa !important;
    color:#1d1d1f !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:16px !important;
}


/* ---------------------------------------------------------
   MODALES DE MEDIDAS
   --------------------------------------------------------- */

#medida_planta .w3-badge,
#medida_entrada .w3-badge,
#medida_empeine .w3-badge,
#medida_juanes .w3-badge,
#medida_cintura .w3-badge{
    width:54px !important;
    height:36px !important;
    box-sizing:border-box;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    margin:0 8px !important;
    border-radius:10px !important;
    background:#f2f2f7 !important;
    color:#1d1d1f !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:18px !important;
    font-weight:600 !important;
}


#medida_planta .w3-button.w3-circle,
#medida_entrada .w3-button.w3-circle,
#medida_empeine .w3-button.w3-circle,
#medida_juanes .w3-button.w3-circle,
#medida_cintura .w3-button.w3-circle{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    border:0 !important;
    font-size:18px !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
    transition:
        transform .15s ease,
        opacity .15s ease;
}


#medida_planta .w3-button.w3-circle:active,
#medida_entrada .w3-button.w3-circle:active,
#medida_empeine .w3-button.w3-circle:active,
#medida_juanes .w3-button.w3-circle:active,
#medida_cintura .w3-button.w3-circle:active{
    transform:scale(.94);
    opacity:.82;
}


/* ---------------------------------------------------------
   IMAGEN DE CADA MEDIDA
   --------------------------------------------------------- */

#medida_planta img,
#medida_entrada img,
#medida_empeine img,
#medida_juanes img,
#medida_cintura img{
    display:block;
    width:30% !important;
    max-width:110px;
    margin:4px auto 0;
}


/* ---------------------------------------------------------
   BOTONES ATRÁS / SIGUIENTE
   --------------------------------------------------------- */

#medida_planta #btnAtrPlanta,
#medida_planta #btnSigPlanta,
#medida_entrada #btnAtrEntrada,
#medida_entrada #btnSigEntrada,
#medida_empeine #btnAtrEmpeine,
#medida_empeine #btnSigEmpeine,
#medida_juanes #btnAtrJuanes,
#medida_juanes #btnSigJuanes,
#medida_cintura #btnAtrCintura,
#medida_cintura #btnSigCintura{
    margin:0 5px !important;
}


/* ---------------------------------------------------------
   TEXTO GENERAL
   --------------------------------------------------------- */

#clientedatosvisita,
#enviodatos,
#envioasucursal,
#preguntarpago,
#medida_planta,
#medida_entrada,
#medida_empeine,
#medida_juanes,
#medida_cintura,
#vermedidas,
#planta,
#entrada,
#empeine,
#juanes,
#cintura,
#solicitarvisita,
#visitaguardada{
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    color:#1d1d1f;
}


/* ---------------------------------------------------------
   MODALES DE INFORMACIÓN DE MEDIDAS
   --------------------------------------------------------- */

#planta .w3-modal-content,
#entrada .w3-modal-content,
#empeine .w3-modal-content,
#juanes .w3-modal-content,
#cintura .w3-modal-content{
    max-height:calc(100vh - 32px) !important;
    overflow-y:auto !important;
}


#planta header,
#entrada header,
#empeine header,
#juanes header,
#cintura header{
    position:relative;
}


#planta h3,
#entrada h3,
#empeine h3,
#juanes h3,
#cintura h3{
    margin:4px 0 !important;
    font-size:19px !important;
    font-weight:600 !important;
    color:#1d1d1f !important;
}


#planta .imgbtn,
#entrada .imgbtn,
#empeine .imgbtn,
#juanes .imgbtn,
#cintura .imgbtn{
    display:block;
    margin:12px auto 18px;
}


/* ---------------------------------------------------------
   VER MEDIDAS
   --------------------------------------------------------- */

#vermedidas .w3-modal-content{
    max-height:calc(100vh - 32px) !important;
    overflow-y:auto !important;
}


#vermedidas .slider{
    width:100%;
}


#vermedidas .circle{
    border-radius:50%;
    transition:transform .15s ease,opacity .15s ease;
}


#vermedidas .circle:active{
    transform:scale(.92);
    opacity:.8;
}


/* ---------------------------------------------------------
   SOLICITAR VISITA
   --------------------------------------------------------- */

#solicitarvisita .w3-container > p:first-child{
    margin:4px 0 12px !important;
    text-align:center;
}


#solicitarvisita .w3-container > p:first-child .w3-large{
    font-size:18px !important;
    font-weight:600 !important;
    color:#1d1d1f !important;
}


/* ---------------------------------------------------------
   VISITA GUARDADA
   --------------------------------------------------------- */

#visitaguardada .w3-panel{
    margin:20px !important;
    border-radius:14px;
    box-sizing:border-box;
}


#visitaguardada .w3-button{
    width:44px !important;
    height:44px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    border-radius:50% !important;
    transition:transform .15s ease,opacity .15s ease;
}


#visitaguardada .w3-button:active{
    transform:scale(.94);
    opacity:.82;
}


/* ---------------------------------------------------------
   EVITAR DESBORDAMIENTO HORIZONTAL
   --------------------------------------------------------- */

#requerirvisita .w3-modal-content,
#clientedatosvisita .w3-modal-content,
#pedidorecibido .w3-modal-content,
#enviodomicilio .w3-modal-content,
#enviodatos .w3-modal-content,
#envioasucursal .w3-modal-content,
#preguntarpago .w3-modal-content,
#medida_planta .w3-modal-content,
#medida_entrada .w3-modal-content,
#medida_empeine .w3-modal-content,
#medida_juanes .w3-modal-content,
#medida_cintura .w3-modal-content,
#vermedidas .w3-modal-content,
#planta .w3-modal-content,
#entrada .w3-modal-content,
#empeine .w3-modal-content,
#juanes .w3-modal-content,
#cintura .w3-modal-content,
#solicitarvisita .w3-modal-content,
#visitaguardada .w3-modal-content{
    overflow-x:hidden !important;
}
/* =========================================================
   BOTAS 632 — MODALES / PEDIDOS / CONTACTO / VISTA BOTA
   SOLO APARIENCIA
   NO MODIFICA FUNCIONALIDAD
   ========================================================= */


/* ---------------------------------------------------------
   VISITA GUARDADA
   --------------------------------------------------------- */

#visitaguardada.w3-modal{
    box-sizing:border-box;
    padding:16px !important;
}

#visitaguardada .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    min-height:0 !important;
    margin:auto !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#visitaguardada header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
    background:#fff !important;
}

#visitaguardada > .w3-modal-content > .w3-container{
    padding:8px 20px 28px !important;
    box-sizing:border-box;
}

#visitaguardada .w3-panel{
    margin:8px 0 24px !important;
    padding:20px !important;
    box-sizing:border-box;
    border:0 !important;
    border-left:4px solid #d2d2d7 !important;
    border-radius:14px !important;
    background:#f2f2f7 !important;
    color:#1d1d1f !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    text-align:center;
}

#visitaguardada .w3-panel p{
    margin:0 !important;
}

#visitaguardada .w3-panel .w3-xlarge{
    display:block;
    margin-bottom:8px;
    font-size:20px !important;
    line-height:1.3;
    font-weight:600;
    color:#1d1d1f !important;
}

#visitaguardada .w3-panel .w3-medium{
    font-size:15px !important;
    line-height:1.4;
    color:#6e6e73 !important;
}

#visitaguardada .w3-button.w3-circle{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    border:0 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
    transition:transform .15s ease,opacity .15s ease;
}

#visitaguardada .w3-button.w3-circle:active{
    transform:scale(.94);
    opacity:.82;
}


/* ---------------------------------------------------------
   CONTACTAR TIENDA
   --------------------------------------------------------- */

#contactartienda.w3-modal{
    box-sizing:border-box;
    padding:16px !important;
}

#contactartienda .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    margin:auto !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#contactartienda header{
    position:relative;
    margin:0 !important;
    padding:20px 52px 16px 20px !important;
    background:#fff !important;
    border-bottom:1px solid #d2d2d7;
    box-sizing:border-box;
}

#contactartienda header h3{
    margin:0 !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:20px !important;
    line-height:1.3;
    font-weight:600 !important;
    color:#1d1d1f !important;
}

#contactartienda header .w3-display-topright{
    width:36px !important;
    height:36px !important;
    top:12px !important;
    right:12px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    font-size:24px !important;
    color:#6e6e73 !important;
    background:#f2f2f7 !important;
}

#contactartienda > .w3-modal-content > .w3-container{
    padding:20px !important;
    box-sizing:border-box;
    text-align:center;
}

#contactartienda #msgayuda{
    display:block;
    margin-bottom:20px;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:16px !important;
    line-height:1.45;
    color:#3a3a3c !important;
}

#contactartienda .w3-container button{
    width:100% !important;
    height:46px !important;
    border:0 !important;
    border-radius:12px !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:16px !important;
    font-weight:600 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.14);
    transition:transform .15s ease,opacity .15s ease;
}

#contactartienda .w3-container button:active{
    transform:scale(.98);
    opacity:.82;
}


/* ---------------------------------------------------------
   BUSCAR PEDIDOS
   --------------------------------------------------------- */

#buscarpedidos{
    width:100% !important;
    margin-top:40px !important;
    box-sizing:border-box;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
}

#buscarpedidos > div{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    margin:auto !important;
    padding:20px !important;
    box-sizing:border-box;
    background:#fff;
    border-radius:18px;
}

#buscarpedidos #telbusqueda{
    width:100% !important;
    height:48px !important;
    box-sizing:border-box;
    padding:0 14px !important;
    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;
    background:#f8f8fa !important;
    color:#1d1d1f !important;
    font-size:16px !important;
    outline:none !important;
}

#buscarpedidos #telbusqueda:focus{
    background:#fff !important;
    border-color:#8e8e93 !important;
    box-shadow:0 0 0 3px rgba(0,122,255,.12) !important;
}


/* ---------------------------------------------------------
   LISTA DE PEDIDOS
   --------------------------------------------------------- */

#pedidos{
    width:100% !important;
    margin-top:20px !important;
    box-sizing:border-box;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
}

#pedidos > .w3-container{
    width:100% !important;
    max-width:600px;
    height:480px !important;
    margin:auto !important;
    padding:0 16px 20px !important;
    box-sizing:border-box;
    overflow-y:auto !important;
    overflow-x:hidden !important;
}

#pedidos > .w3-container > .w3-container{
    height:auto !important;
    padding:16px 4px 12px !important;
    box-sizing:border-box;
    border-bottom:1px solid #d2d2d7;
}

#pedidos .w3-text-gray{
    color:#1d1d1f !important;
    font-size:16px !important;
    font-weight:600;
}

#pedidos #pedidoscliente{
    color:#6e6e73 !important;
    font-size:13px !important;
}

#pedidos #listapedidos{
    margin-top:8px !important;
}


/* ---------------------------------------------------------
   VISTA DE BOTA
   --------------------------------------------------------- */

#vistabota.w3-modal{
    box-sizing:border-box;
    padding:16px !important;
}

#vistabota .w3-modal-content{
    width:100% !important;
    max-width:420px !important;
    height:auto !important;
    margin:auto !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#vistabota header{
    position:relative;
    margin:0 !important;
    padding:20px 52px 16px 20px !important;
    background:#fff !important;
    border-bottom:1px solid #d2d2d7;
    box-sizing:border-box;
}

#vistabota header h3{
    margin:0 !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:20px !important;
    line-height:1.3;
    font-weight:600 !important;
    color:#1d1d1f !important;
}

#vistabota header .w3-display-topright{
    width:36px !important;
    height:36px !important;
    top:12px !important;
    right:12px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    font-size:24px !important;
    color:#6e6e73 !important;
    background:#f2f2f7 !important;
}

#vistabota > .w3-modal-content > .w3-row{
    padding:20px 12px 24px !important;
    box-sizing:border-box;
}

#vistabota .w3-third{
    box-sizing:border-box;
}

#vistabota #botaimagen{
    display:block;
    width:100% !important;
    height:auto;
    border:0 !important;
    border-radius:14px !important;
    box-shadow:0 4px 18px rgba(0,0,0,.12);
}


/* ---------------------------------------------------------
   INTERACCIÓN iOS
   --------------------------------------------------------- */

#visitaguardada .w3-button,
#contactartienda .w3-button,
#vistabota .w3-button{
    transition:
        transform .15s ease,
        opacity .15s ease,
        background-color .15s ease;
}

#visitaguardada .w3-button:active,
#contactartienda .w3-button:active,
#vistabota .w3-button:active{
    transform:scale(.96);
    opacity:.82;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media(max-width:420px){

    #visitaguardada.w3-modal,
    #contactartienda.w3-modal,
    #vistabota.w3-modal{
        padding:12px !important;
    }

    #vistabota > .w3-modal-content > .w3-row{
        padding-left:8px !important;
        padding-right:8px !important;
    }

}
/* =========================================================
   BOTAS 632 — MODALES DE PAGO / COMPROBANTES / REGISTROS
   SOLO APARIENCIA
   NO MODIFICA FUNCIONALIDAD
   ========================================================= */


/* ---------------------------------------------------------
   AVISO DE DESCARGA
   --------------------------------------------------------- */

#avisodescarga.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#avisodescarga.w3-modal[style*="display: block"]{
    display:flex !important;
}

#avisodescarga .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    min-height:0 !important;
    margin:auto !important;
    padding:0 !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#avisodescarga .w3-container{
    height:auto !important;
    padding:20px !important;
    box-sizing:border-box;
}

#avisodescarga .w3-display-container{
    height:80px !important;
}

#avisodescarga h3{
    margin:0 !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:19px !important;
    font-weight:600 !important;
    color:#1d1d1f !important;
}

#avisodescarga .w3-display-topright{
    width:36px !important;
    height:36px !important;
    top:0 !important;
    right:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    font-size:24px !important;
    color:#6e6e73 !important;
    background:#f2f2f7 !important;
}


/* ---------------------------------------------------------
   PAGO
   --------------------------------------------------------- */

#pago.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#pago.w3-modal[style*="display: block"]{
    display:flex !important;
}

#pago .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    max-height:calc(100vh - 32px) !important;
    margin:auto !important;
    padding:0 !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#pago header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
    background:#fff !important;
}

#pago .minilogo{
    max-width:170px;
    height:auto;
    display:block;
    margin:auto;
    padding-top:0 !important;
}

#pago > .w3-modal-content > .w3-container{
    padding:8px 20px 24px !important;
    box-sizing:border-box;
}

#pagoTitulo,
#pagosaldo{
    margin:6px 0 !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:18px !important;
    line-height:1.3;
    font-weight:600 !important;
    color:#1d1d1f !important;
}

#pago form{
    margin:0 !important;
}

#pago form > p{
    margin:12px 0 !important;
}

#pago .w3-radio{
    width:18px !important;
    height:18px !important;
    vertical-align:middle;
    accent-color:#007aff;
}

#pago #tipoPago,
#pago #lblDeposito,
#pago #lblTransferencia,
#pago #lblTarjeta,
#pago #lblCantidadPago{
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    color:#3a3a3c;
    font-size:15px;
}

#pago #cuenta{
    width:100% !important;
    box-sizing:border-box;
    margin:10px 0 !important;
    padding:12px !important;
    border-radius:12px;
    background:#f2f2f7;
}

#pago input.w3-input{
    width:100% !important;
    height:46px !important;
    box-sizing:border-box;
    margin:7px 0 !important;
    padding:0 13px !important;
    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;
    background:#f8f8fa !important;
    color:#1d1d1f !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:16px !important;
    outline:none !important;
}

#pago input.w3-input:focus{
    background:#fff !important;
    border-color:#8e8e93 !important;
    box-shadow:0 0 0 3px rgba(0,122,255,.12) !important;
}

#pago .w3-button.w3-circle{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    border:0 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
}

#pago .w3-button.w3-circle:active{
    transform:scale(.94);
    opacity:.82;
}


/* ---------------------------------------------------------
   METODO DE PAGO
   --------------------------------------------------------- */

#metodopago.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#metodopago.w3-modal[style*="display: block"]{
    display:flex !important;
}

#metodopago .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    max-height:calc(100vh - 32px) !important;
    height:auto !important;
    margin:auto !important;
    padding:0 !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#metodopago header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
}

#metodopago .minilogo{
    max-width:170px;
    height:auto;
    display:block;
    margin:auto;
    padding-top:0 !important;
}

#metodopago > .w3-modal-content > .w3-container{
    padding:8px 20px 24px !important;
    box-sizing:border-box;
}

#metodopago h4{
    margin:6px 0 16px !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:19px !important;
    font-weight:600 !important;
    color:#1d1d1f !important;
}

#metodopago .w3-radio{
    width:18px !important;
    height:18px !important;
    vertical-align:middle;
    accent-color:#007aff;
}

#metodopago input.w3-input{
    width:100% !important;
    height:46px !important;
    box-sizing:border-box;
    margin:5px 0 9px !important;
    padding:0 13px !important;
    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;
    background:#f8f8fa !important;
    color:#1d1d1f !important;
    font-size:16px !important;
}

#metodopago input.w3-input:focus{
    background:#fff !important;
    border-color:#8e8e93 !important;
    box-shadow:0 0 0 3px rgba(0,122,255,.12) !important;
}

#metodopago #metodopago_depsosito,
#metodopago #metodopago_transferencia{
    width:100% !important;
    box-sizing:border-box;
    margin:10px 0 !important;
    padding:12px !important;
    border-radius:12px;
    background:#f2f2f7;
}

#metodopago #metodopago_depsosito img,
#metodopago #metodopago_transferencia img{
    vertical-align:middle;
    border-radius:6px;
}

#metodopago #metodopago_tarjeta{
    width:100% !important;
    box-sizing:border-box;
    margin-top:12px;
    padding:14px !important;
    border-radius:12px;
    background:#f2f2f7;
}

#metodopago #metodopago_tarjeta p{
    margin:0 0 12px !important;
    font-size:14px !important;
    line-height:1.45;
}

#metodopago .w3-button{
    min-height:44px;
    border-radius:12px !important;
    font-weight:600;
    box-shadow:0 3px 10px rgba(0,0,0,.14);
}

#metodopago .w3-button:active{
    transform:scale(.96);
    opacity:.82;
}


/* ---------------------------------------------------------
   COMPROBANTE — CÁMARA
   --------------------------------------------------------- */

#comprobantecamara.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#comprobantecamara.w3-modal[style*="display: block"]{
    display:flex !important;
}

#comprobantecamara > header{
    display:none !important;
}

#comprobantecamara .w3-modal-content{
    width:100% !important;
    max-width:420px !important;
    max-height:calc(100vh - 32px) !important;
    height:auto !important;
    margin:auto !important;
    padding:0 !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#comprobantecamara .w3-container{
    box-sizing:border-box;
    padding:14px !important;
}

#comprobantecamara #video{
    display:block;
    width:100% !important;
    max-height:60vh;
    object-fit:contain;
    border-radius:14px;
    background:#000;
}

#comprobantecamara #msjNoHayCamara{
    display:block;
    margin-bottom:8px;
    font-size:14px;
}

#comprobantecamara .w3-button.w3-circle{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    border:0 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
}

#comprobantecamara .w3-button.w3-circle:active{
    transform:scale(.94);
    opacity:.82;
}


/* ---------------------------------------------------------
   COMPROBANTE — ARCHIVO
   --------------------------------------------------------- */

#comprobantearchivo.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#comprobantearchivo.w3-modal[style*="display: block"]{
    display:flex !important;
}

#comprobantearchivo .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    max-height:calc(100vh - 32px) !important;
    height:auto !important;
    margin:auto !important;
    padding:0 !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#comprobantearchivo header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
}

#comprobantearchivo .minilogo{
    max-width:170px;
    display:block;
    margin:auto;
    padding-top:0 !important;
}

#comprobantearchivo #imgPagoArchivo{
    display:block;
    width:calc(100% - 32px) !important;
    max-width:300px;
    height:auto;
    max-height:45vh;
    object-fit:contain;
    margin:12px auto;
    border-radius:14px;
    background:#f2f2f7;
}

#comprobantearchivo #fimg1{
    width:calc(100% - 32px) !important;
    margin:12px auto !important;
    box-sizing:border-box;
    border:1px solid #d2d2d7;
    border-radius:12px;
    padding:8px;
    background:#f8f8fa;
}

#comprobantearchivo .w3-button.w3-circle{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    border:0 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
}

#comprobantearchivo .w3-button.w3-circle:active{
    transform:scale(.94);
    opacity:.82;
}


/* ---------------------------------------------------------
   EMAIL DEL CLIENTE
   --------------------------------------------------------- */

#clientemail.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#clientemail.w3-modal[style*="display: block"]{
    display:flex !important;
}

#clientemail .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    margin:auto !important;
    padding:0 !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#clientemail header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
}

#clientemail .minilogo{
    max-width:170px;
    display:block;
    margin:auto;
    padding-top:0 !important;
}

#clientemail > .w3-modal-content > .w3-container{
    height:auto !important;
    padding:10px 20px 16px !important;
    box-sizing:border-box;
    text-align:center;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:16px;
    color:#3a3a3c;
}

#clientemail form{
    margin:0 !important;
}

#clientemail form > .w3-container{
    height:auto !important;
    padding:8px 20px !important;
}

#clientemail input.w3-input{
    width:100% !important;
    height:46px !important;
    box-sizing:border-box;
    padding:0 13px !important;
    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;
    background:#f8f8fa !important;
    font-size:16px !important;
}

#clientemail input.w3-input:focus{
    background:#fff !important;
    border-color:#8e8e93 !important;
    box-shadow:0 0 0 3px rgba(0,122,255,.12) !important;
}

#clientemail .w3-button.w3-circle{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    border:0 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
}


/* ---------------------------------------------------------
   CÓDIGO POSTAL
   --------------------------------------------------------- */

#clientecp{
    width:100% !important;
    margin-top:40px !important;
    height:auto !important;
    box-sizing:border-box;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
}

#clientecp > div{
    width:100% !important;
    max-width:380px !important;
    margin:auto !important;
    box-sizing:border-box;
    padding:20px !important;
    background:#fff;
    border-radius:18px;
}

#clientecp .w3-container{
    margin:0 !important;
    padding:8px !important;
}

#clientecp .w3-medium{
    font-size:16px !important;
    font-weight:600;
    color:#1d1d1f;
}

#clientecp input.w3-input{
    width:100% !important;
    height:46px !important;
    box-sizing:border-box;
    margin-top:10px !important;
    border:1px solid #d2d2d7 !important;
    border-radius:12px !important;
    background:#f8f8fa !important;
    font-size:16px !important;
}

#clientecp .w3-button{
    width:44px;
    height:44px;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    border-radius:50% !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
}


/* ---------------------------------------------------------
   AGENTES DE VENTAS
   --------------------------------------------------------- */

#contactarvendedor{
    width:100% !important;
    margin-top:40px !important;
    box-sizing:border-box;
    padding:20px !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
}

#contactarvendedor h3{
    margin:0 0 18px !important;
    font-size:21px !important;
    font-weight:600 !important;
    color:#1d1d1f !important;
}

#listavendedores{
    width:100%;
    max-width:600px;
    margin:auto;
}


/* ---------------------------------------------------------
   REGISTRO DE PEDIDO
   --------------------------------------------------------- */

#registrarpedido.w3-modal,
#registrarpago.w3-modal,
#registrarvisita.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#registrarpedido.w3-modal[style*="display: block"],
#registrarpago.w3-modal[style*="display: block"],
#registrarvisita.w3-modal[style*="display: block"]{
    display:flex !important;
}

#registrarpedido .w3-modal-content,
#registrarpago .w3-modal-content,
#registrarvisita .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    min-height:300px;
    margin:auto !important;
    padding:0 !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#registrarpedido header,
#registrarpago header,
#registrarvisita header{
    height:auto !important;
    margin:0 !important;
    padding:18px 20px 12px !important;
}

#registrarpedido .minilogo,
#registrarpago .minilogo,
#registrarvisita .minilogo{
    max-width:170px;
    display:block;
    margin:auto;
    padding-top:0 !important;
}

#registrarpedido .w3-large,
#registrarpago .w3-large,
#registrarvisita .w3-large{
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        sans-serif;
    font-size:17px !important;
    line-height:1.4;
    font-weight:600;
    color:#1d1d1f;
}

#registrarpedido .w3-container,
#registrarpago .w3-container,
#registrarvisita .w3-container{
    box-sizing:border-box;
}

#registrarpedido [id^="spinningSquaresGRegistro"],
#registrarpago [id^="spinningSquaresGRegistro"],
#registrarvisita [id^="spinningSquaresGRegistro"]{
    margin:15px auto;
}

#registrarpedido .w3-button.w3-circle,
#registrarpago .w3-button.w3-circle,
#registrarvisita .w3-button.w3-circle{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    border:0 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
}


/* ---------------------------------------------------------
   COMPROBANTE GUARDADO
   --------------------------------------------------------- */

#comprobanteguardado.w3-modal{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:16px !important;
    box-sizing:border-box;
}

#comprobanteguardado.w3-modal[style*="display: block"]{
    display:flex !important;
}

#comprobanteguardado .w3-modal-content{
    width:100% !important;
    max-width:380px !important;
    height:auto !important;
    margin:auto !important;
    padding:0 !important;
    box-sizing:border-box;
    background:#fff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        0 4px 15px rgba(0,0,0,.12) !important;
}

#comprobanteguardado header{
    position:relative;
    height:auto !important;
    margin:0 !important;
    padding:18px 52px 16px 20px !important;
    box-sizing:border-box;
    border-bottom:1px solid #d2d2d7;
}

#comprobanteguardado header h5{
    margin:0 !important;
    min-height:20px;
}

#comprobanteguardado header .w3-display-topright{
    top:10px !important;
    right:10px !important;
}

#comprobanteguardado header .w3-button.w3-circle{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    background:#f2f2f7 !important;
    color:#6e6e73 !important;
}

#comprobanteguardado > .w3-modal-content > .w3-container{
    padding:16px 20px 24px !important;
    box-sizing:border-box;
}

#comprobanteguardado .w3-panel{
    margin:0 !important;
    padding:18px !important;
    box-sizing:border-box;
    border:0 !important;
    border-radius:14px !important;
    background:#f2f2f7 !important;
    color:#1d1d1f !important;
    text-align:center;
}

#comprobanteguardado #pagoregistrado{
    font-size:15px !important;
    line-height:1.4;
    color:#3a3a3c !important;
}

#comprobanteguardado #totalpagado{
    display:block;
    margin-top:10px;
    font-size:21px !important;
    font-weight:600;
    color:#1d1d1f !important;
}


/* ---------------------------------------------------------
   INTERACCIÓN GENERAL
   --------------------------------------------------------- */

#avisodescarga .w3-button,
#pago .w3-button,
#metodopago .w3-button,
#comprobantecamara .w3-button,
#comprobantearchivo .w3-button,
#clientemail .w3-button,
#clientecp .w3-button,
#registrarpedido .w3-button,
#registrarpago .w3-button,
#registrarvisita .w3-button,
#comprobanteguardado .w3-button{
    transition:
        transform .15s ease,
        opacity .15s ease,
        background-color .15s ease;
}

#avisodescarga .w3-button:active,
#pago .w3-button:active,
#metodopago .w3-button:active,
#comprobantecamara .w3-button:active,
#comprobantearchivo .w3-button:active,
#clientemail .w3-button:active,
#clientecp .w3-button:active,
#registrarpedido .w3-button:active,
#registrarpago .w3-button:active,
#registrarvisita .w3-button:active,
#comprobanteguardado .w3-button:active{
    transform:scale(.96);
    opacity:.82;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media(max-width:420px){

    #avisodescarga.w3-modal,
    #pago.w3-modal,
    #metodopago.w3-modal,
    #comprobantecamara.w3-modal,
    #comprobantearchivo.w3-modal,
    #clientemail.w3-modal,
    #registrarpedido.w3-modal,
    #registrarpago.w3-modal,
    #registrarvisita.w3-modal,
    #comprobanteguardado.w3-modal{
        padding:12px !important;
    }

}
/* =========================================================
   CORRECCIÓN — CENTRADO DE MODALES
   SOLO APARIENCIA
   ========================================================= */

#avisodescarga.w3-modal,
#pago.w3-modal,
#metodopago.w3-modal,
#comprobantecamara.w3-modal,
#comprobantearchivo.w3-modal,
#clientemail.w3-modal,
#registrarpedido.w3-modal,
#registrarpago.w3-modal,
#registrarvisita.w3-modal,
#comprobanteguardado.w3-modal{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100vh !important;
    max-width:none !important;
    max-height:none !important;

    display:none !important;

    align-items:center !important;
    justify-content:center !important;

    padding:16px !important;
    box-sizing:border-box !important;
}

#avisodescarga.w3-modal[style*="display: block"],
#pago.w3-modal[style*="display: block"],
#metodopago.w3-modal[style*="display: block"],
#comprobantecamara.w3-modal[style*="display: block"],
#comprobantearchivo.w3-modal[style*="display: block"],
#clientemail.w3-modal[style*="display: block"],
#registrarpedido.w3-modal[style*="display: block"],
#registrarpago.w3-modal[style*="display: block"],
#registrarvisita.w3-modal[style*="display: block"],
#comprobanteguardado.w3-modal[style*="display: block"]{
    display:flex !important;
}

#avisodescarga .w3-modal-content,
#pago .w3-modal-content,
#metodopago .w3-modal-content,
#comprobantecamara .w3-modal-content,
#comprobantearchivo .w3-modal-content,
#clientemail .w3-modal-content,
#registrarpedido .w3-modal-content,
#registrarpago .w3-modal-content,
#registrarvisita .w3-modal-content,
#comprobanteguardado .w3-modal-content{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;

    margin:0 auto !important;
    flex:0 1 auto !important;
}

/* MODAL DATOS DEL CLIENTE — CENTRADO Y SOBRE EL NAV */
#clientedatos.w3-modal {
    z-index: 9999 !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box;
    padding: 16px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .72);
}

/* CENTRAR EL CONTENIDO EN PANTALLA */
#clientedatos .w3-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 480px;
    max-height: calc(100dvh - 32px);
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    overflow-y: auto;
    background: #111113;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

/* CAMPOS DE TEXTO */
#clientedatos #formCliente input:not([type="hidden"]) {
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0;
    background: #1c1c1e;
    color: #fff;
    border: 1px solid #48484a !important;
    border-radius: 12px;
    padding: 13px;
    font-size: 16px;
}

#clientedatos #formCliente input::placeholder {
    color: #a1a1a6;
    opacity: 1;
}

/* BOTONES CIRCULARES */
#clientedatos #formCliente .w3-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 8px;
    border-radius: 50%;
    cursor: pointer;
}

/* TELÉFONOS */
@media (max-width: 480px) {
    #clientedatos.w3-modal {
        padding: 12px;
    }

    #clientedatos .w3-modal-content {
        max-height: calc(100dvh - 24px);
        border-radius: 20px;
    }
}

/* =========================================
   CARRITO DE COMPRAS · ESTILO APPLE / iOS
   Solo apariencia; no modifica la lógica
========================================= */

#carrito {
    width: 100%;
    margin-top: 10px;
    padding: 18px 12px 28px;
    box-sizing: border-box;
    background: #000;
    color: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont,
                 "SF Pro Display", "Segoe UI", sans-serif;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

/* Contenedor principal */
#carrito > .w3-container {
    padding-left: 12px;
    padding-right: 12px;
}

/* Título */
#carrito h5 {
    color: #f5f5f7;
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.45px;
    line-height: 1.25;
    margin: 8px 0 16px;
}

/* Separador */
#carrito hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.13);
    margin: 0 0 18px;
}

/* Lista de productos */
#carrito #carrito-productos {
    margin: 0 !important;
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Totales */
#carrito #carrito-totales {
    margin-top: 22px;
    padding: 16px 10px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-sizing: border-box;
}

/* Tres columnas de importes */
#carrito #carrito-totales .w3-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

#carrito #carrito-totales .w3-third {
    box-sizing: border-box;
    min-width: 0;
    padding: 7px 5px;
}

/* Etiquetas e importes */
#carrito #carrito-totales span {
    color: #a1a1a6;
    font-size: 12px;
    line-height: 1.5;
}

#carrito #carrito-totales #carrito-subtotal,
#carrito #carrito-totales #carrito-envio,
#carrito #carrito-totales #carrito-total {
    display: inline-block;
    color: #f5f5f7;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Total destacado */
#carrito #carrito-totales .w3-third:last-child span {
    color: #f5f5f7;
}

#carrito #carrito-totales #carrito-total {
    font-size: 17px;
    font-weight: 700;
}

/* Área del botón Pagar */
#carrito > .w3-container > .w3-container.w3-margin {
    margin: 18px 0 10px !important;
    padding: 0;
}

/* Botón Pagar: conserva los colores del sitio */
#carrito span.w3-button[onclick="ordenEnvio()"] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.1px;
    transition: transform 0.18s ease, opacity 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

#carrito span.w3-button[onclick="ordenEnvio()"]:active {
    transform: scale(0.98);
    opacity: 0.88;
}

/* Productos sugeridos */
#carrito #haysugeridos {
    margin-top: 28px;
    padding: 0 12px;
}

#carrito #haysugeridos h5 {
    font-size: 18px;
    margin-bottom: 14px;
}

#carrito #productos-sugeridos {
    width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
}

/* Evita desbordamientos en pantallas pequeñas */
@media (max-width: 420px) {
    #carrito {
        padding: 14px 8px 24px;
    }

    #carrito > .w3-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    #carrito #carrito-totales {
        padding: 12px 5px;
        border-radius: 15px;
    }

    #carrito #carrito-totales .w3-third {
        padding: 6px 3px;
    }

    #carrito #carrito-totales span {
        font-size: 11px;
    }

    #carrito #carrito-totales #carrito-subtotal,
    #carrito #carrito-totales #carrito-envio {
        font-size: 12px;
    }

    #carrito #carrito-totales #carrito-total {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #carrito span.w3-button[onclick="ordenEnvio()"] {
        transition: none;
    }
}

/* =========================================
   MODAL DATOS DE ENVÍO · ESTILO APPLE / iOS
   Solo apariencia; conserva la funcionalidad
========================================= */

#enviodatos.w3-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    box-sizing: border-box;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Tarjeta del modal */
#enviodatos .w3-modal-content {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 430px;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    overflow-y: auto;
    box-sizing: border-box;
    background: #151515;
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont,
                 "SF Pro Display", "Segoe UI", sans-serif;
}

/* Encabezado: conserva su espacio original */
#enviodatos .w3-modal-content > header {
    height: 45px;
    margin: 0 !important;
    padding: 0;
}

/* Contenido */
#enviodatos .w3-modal-content > .w3-container {
    padding: 8px 22px 24px;
}

#enviodatos #formEnvio > p:first-child,
#enviodatos .w3-modal-content > .w3-container > p:first-child {
    color: #f5f5f7;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    margin: 8px 0 20px;
}

/* Espacio entre los campos */
#enviodatos #formEnvio > p {
    margin: 0 0 20px;
}

/* Inputs y selector */
#enviodatos input.w3-input,
#enviodatos select.w3-select {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0 0 12px;
    padding: 12px 14px;
    box-sizing: border-box;
    color: #f5f5f7;
    background: #242424;
    border: 1px solid #3a3a3c !important;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.18s ease,
                background 0.18s ease;
}

/* Texto de ayuda dentro de los campos */
#enviodatos input::placeholder {
    color: #98989d;
    opacity: 1;
}

/* Campo activo */
#enviodatos input.w3-input:focus,
#enviodatos select.w3-select:focus {
    border-color: #8e8e93 !important;
    background: #2a2a2c;
}

/* Etiqueta País */
#enviodatos #formEnvio label {
    display: inline-block;
    margin: 8px 0 8px;
    color: #a1a1a6;
    font-size: 13px;
    font-weight: 600;
}

/* Opciones del selector */
#enviodatos select.w3-select option {
    color: #f5f5f7;
    background: #242424;
}

/* Área de navegación */
#enviodatos #formEnvio .w3-display-container {
    height: 48px !important;
    margin-top: 8px;
}

/* Botones anterior y continuar */
#enviodatos #btnAtrEnvioDatos,
#enviodatos #formEnvio button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Mantener los colores que define el sitio */
#enviodatos #btnAtrEnvioDatos:active,
#enviodatos #formEnvio button[type="submit"]:active {
    transform: scale(0.94);
    opacity: 0.85;
}

/* Evita márgenes residuales dentro del modal */
#enviodatos .w3-modal-content > .w3-container > p:last-child {
    margin-bottom: 0;
}

/* Pantallas pequeñas */
@media (max-width: 420px) {
    #enviodatos.w3-modal {
        padding: 12px;
    }

    #enviodatos .w3-modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    #enviodatos .w3-modal-content > .w3-container {
        padding: 6px 16px 20px;
    }
}

#enviodatos p {
    color: #000 !important;
}
/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    #enviodatos input.w3-input,
    #enviodatos select.w3-select,
    #enviodatos #btnAtrEnvioDatos,
    #enviodatos #formEnvio button[type="submit"] {
        transition: none;
    }
}


/* =========================================
   MODAL ENVÍO TIENDA · ESTILO APPLE / iOS
   Solo apariencia; conserva la funcionalidad
========================================= */

#envio-tienda.w3-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    box-sizing: border-box;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Tarjeta principal */
#envio-tienda .w3-modal-content {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    overflow-y: auto;
    box-sizing: border-box;
    background: #151515;
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont,
                 "SF Pro Display", "Segoe UI", sans-serif;
}

/* Encabezado */
#envio-tienda .w3-modal-content > header {
    height: auto !important;
    margin: 0 !important;
    padding: 22px 20px 0;
    box-sizing: border-box;
}

#envio-tienda header h3 {
    margin: 0 0 14px;
    color: #f5f5f7;
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.4px;
}

#envio-tienda header hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.13);
    margin: 0;
}

/* Contenido */
#envio-tienda .w3-modal-content > .w3-container {
    padding: 18px 22px 22px;
    box-sizing: border-box;
}

/* Separación entre campos */
#envio-tienda #formEnvio-tienda > p {
    margin: 0 0 15px;
}

/* Etiquetas */
#envio-tienda #formEnvio-tienda label {
    display: block;
    margin: 0 0 7px;
    color: #a1a1a6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

/* Campos de texto, teléfono, correo y select */
#envio-tienda #formEnvio-tienda input.w3-input,
#envio-tienda #formEnvio-tienda input.w3-border,
#envio-tienda #formEnvio-tienda select.w3-input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    box-sizing: border-box;
    color: #f5f5f7;
    background: #242424;
    border: 1px solid #3a3a3c !important;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.18s ease,
                background 0.18s ease;
}

/* Estado activo */
#envio-tienda #formEnvio-tienda input:focus,
#envio-tienda #formEnvio-tienda select:focus {
    border-color: #8e8e93 !important;
    background: #2a2a2c;
}

/* Fila Estado, Ciudad y CP */
#envio-tienda #formEnvio-tienda .w3-row-padding {
    margin: 0 -5px;
}

#envio-tienda #formEnvio-tienda .w3-third {
    padding: 0 5px;
    box-sizing: border-box;
}

/* País: alinear con los demás campos */
#envio-tienda #formEnvio-tienda .w3-third > label {
    margin-top: 0;
}

/* Opciones del selector */
#envio-tienda #formEnvio-tienda select option {
    color: #f5f5f7;
    background: #242424;
}

/* Área de botones */
#envio-tienda #formEnvio-tienda > .w3-container.w3-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 0 0 !important;
}

/* Botones: heredan la paleta del sitio */
#envio-tienda #formEnvio-tienda button[type="submit"],
#envio-tienda #formEnvio-tienda span[onclick="closeModal()"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 650;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

#envio-tienda #formEnvio-tienda button[type="submit"]:active,
#envio-tienda #formEnvio-tienda span[onclick="closeModal()"]:active {
    transform: scale(0.97);
    opacity: 0.86;
}

/* Móviles */
@media (max-width: 600px) {
    #envio-tienda.w3-modal {
        padding: 12px;
    }

    #envio-tienda .w3-modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    #envio-tienda .w3-modal-content > header {
        padding: 20px 16px 0;
    }

    #envio-tienda .w3-modal-content > .w3-container {
        padding: 16px 16px 20px;
    }

    /* Dos columnas para Estado y Ciudad;
       CP y País pueden ocupar una fila completa */
    #envio-tienda #formEnvio-tienda .w3-third {
        width: 50%;
    }

    #envio-tienda #formEnvio-tienda .w3-third:nth-child(3),
    #envio-tienda #formEnvio-tienda .w3-third:nth-child(4) {
        width: 50%;
    }
}

/* Móviles muy estrechos */
@media (max-width: 340px) {
    #envio-tienda #formEnvio-tienda .w3-third {
        width: 100%;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    #envio-tienda #formEnvio-tienda input,
    #envio-tienda #formEnvio-tienda select,
    #envio-tienda #formEnvio-tienda button,
    #envio-tienda #formEnvio-tienda span[onclick="closeModal()"] {
        transition: none;
    }
}

/* =========================================
   MODAL ORDEN DE ENVÍO · ESTILO APPLE / iOS
   Solo apariencia; conserva la funcionalidad
========================================= */

#orden-envio.w3-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    box-sizing: border-box;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Tarjeta principal */
#orden-envio .w3-modal-content {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    overflow-y: auto;
    box-sizing: border-box;
    background: #151515;
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont,
                 "SF Pro Display", "Segoe UI", sans-serif;
}

/* Encabezado */
#orden-envio .w3-modal-content > header {
    height: auto !important;
    margin: 0 !important;
    padding: 22px 22px 0;
    box-sizing: border-box;
}

#orden-envio header h3 {
    margin: 0 0 14px;
    color: #f5f5f7;
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.4px;
}

#orden-envio header hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.13);
    margin: 0;
}

/* Contenido del modal */
#orden-envio .w3-modal-content > .w3-container {
    padding: 18px 18px 22px;
    box-sizing: border-box;
}

/* Filas de campos */
#orden-envio #formEnvio-tienda > .w3-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 -5px;
}

#orden-envio #formEnvio-tienda .w3-quarter,
#orden-envio #formEnvio-tienda .w3-half,
#orden-envio #formEnvio-tienda .w3-rest {
    box-sizing: border-box;
    padding: 8px 5px;
    min-width: 0;
}

/* Etiquetas */
#orden-envio #formEnvio-tienda label {
    display: block;
    margin: 0 0 7px;
    color: #a1a1a6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

/* Campos y selector */
#orden-envio #formEnvio-tienda input,
#orden-envio #formEnvio-tienda select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    box-sizing: border-box;
    color: #f5f5f7;
    background: #242424;
    border: 1px solid #3a3a3c !important;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.18s ease,
                background 0.18s ease;
}

/* Campo enfocado */
#orden-envio #formEnvio-tienda input:focus,
#orden-envio #formEnvio-tienda select:focus {
    border-color: #8e8e93 !important;
    background: #2a2a2c;
}

/* Opciones del selector */
#orden-envio #formEnvio-tienda select option {
    color: #f5f5f7;
    background: #242424;
}

/* Fila de botones */
#orden-envio #formEnvio-tienda > .w3-container.w3-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 0 0 !important;
}

/* Botón carrito y Siguiente: colores del sitio */
#orden-envio #formEnvio-tienda button[type="submit"],
#orden-envio #formEnvio-tienda span[onclick="closeModal()"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    box-sizing: border-box;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 650;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

#orden-envio #formEnvio-tienda button[type="submit"]:active,
#orden-envio #formEnvio-tienda span[onclick="closeModal()"]:active {
    transform: scale(0.97);
    opacity: 0.86;
}

/* Tabletas y móviles */
@media (max-width: 600px) {
    #orden-envio.w3-modal {
        padding: 12px;
    }

    #orden-envio .w3-modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    #orden-envio .w3-modal-content > header {
        padding: 20px 16px 0;
    }

    #orden-envio .w3-modal-content > .w3-container {
        padding: 14px 14px 20px;
    }

    /* Teléfono y nombre en una columna cada uno */
    #orden-envio #formEnvio-tienda > .w3-row:first-child > .w3-quarter,
    #orden-envio #formEnvio-tienda > .w3-row:first-child > .w3-rest {
        width: 100%;
    }

    /* Calle y número ocupa todo el ancho */
    #orden-envio #formEnvio-tienda .w3-half {
        width: 100%;
    }

    /* Estado, ciudad, CP y país: dos columnas */
    #orden-envio #formEnvio-tienda > .w3-row:last-of-type > .w3-quarter {
        width: 50%;
    }
}

/* Móviles muy estrechos */
@media (max-width: 340px) {
    #orden-envio #formEnvio-tienda > .w3-row:last-of-type > .w3-quarter {
        width: 100%;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    #orden-envio #formEnvio-tienda input,
    #orden-envio #formEnvio-tienda select,
    #orden-envio #formEnvio-tienda button,
    #orden-envio #formEnvio-tienda span[onclick="closeModal()"] {
        transition: none;
    }
}


/* =========================================
   MÉTODO DE PAGO · ESTILO APPLE / iOS
   Solo apariencia; conserva la funcionalidad
========================================= */

#metodopago.w3-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    box-sizing: border-box;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    overflow-y: auto;
    overscroll-behavior: contain;
    font-family: -apple-system, BlinkMacSystemFont,
                 "SF Pro Display", "Segoe UI", sans-serif;
}

/* Tarjeta principal */
#metodopago .w3-modal-content {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    overflow-y: auto;
    box-sizing: border-box;
    background: #151515;
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

/* Encabezados */
#metodopago .w3-modal-content h3,
#metodopago .w3-modal-content h4,
#metodopago .w3-modal-content h5 {
    color: #f5f5f7;
    font-weight: 650;
    letter-spacing: -0.3px;
}

/* Contenedores */
#metodopago .w3-container {
    box-sizing: border-box;
}

/* Separadores */
#metodopago hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.13);
}

/* Bloques de cuentas y métodos de pago */
#metodopago #metodopago_depsosito,
#metodopago #metodopago_transferencia {
    margin: 10px 0;
    padding: 16px;
    box-sizing: border-box;
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
}

/* Números de cuenta */
#metodopago .cuenta,
#metodopago .zelle {
    color: #f5f5f7;
    font-weight: 600;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

/* Etiquetas y textos secundarios */
#metodopago label {
    color: #a1a1a6;
    font-size: 13px;
    font-weight: 600;
}

/* Campos de formulario */
#metodopago input,
#metodopago select,
#metodopago textarea {
    max-width: 100%;
    box-sizing: border-box;
    color: #f5f5f7;
    background: #242424;
    border: 1px solid #3a3a3c !important;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
}

#metodopago input:focus,
#metodopago select:focus,
#metodopago textarea:focus {
    outline: none;
    border-color: #8e8e93 !important;
    background: #2a2a2c;
}

/* Texto de apoyo */
#metodopago input::placeholder,
#metodopago textarea::placeholder {
    color: #98989d;
    opacity: 1;
}

/* Botones: conservan los colores definidos por el sitio */
#metodopago .w3-button {
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

#metodopago .w3-button:active {
    transform: scale(0.97);
    opacity: 0.86;
}

/* Adaptación a móviles */
@media (max-width: 600px) {
    #metodopago.w3-modal {
        padding: 12px;
    }

    #metodopago .w3-modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    #metodopago .w3-modal-content > .w3-container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    #metodopago .w3-button {
        transition: none;
    }
}

/* Fondo del modal de métodos de pago */
#metodopago .w3-modal-content {
    background: #282929 !important;
}

/* Fondo de los bloques de cuentas */
#metodopago #metodopago_depsosito,
#metodopago #metodopago_transferencia {
    background: #282929 !important;
}

/* Título principal del modal de pago en blanco */
#metodopago .w3-modal-content > header h3,
#metodopago .w3-modal-content > h3 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Texto "Total a pagar" en blanco */
#metodopago .w3-modal-content label,
#metodopago #metodopago_total_pesos,
#metodopago #metodopago_total_dolar {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* Título principal: Total a pagar */
#metodopago .w3-modal-content h4 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Iconos de métodos de pago — Botas 632 */
#metodopago .icono-pago {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #343536;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    vertical-align: middle;
}

#metodopago .icono-pago svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#metodopago .fila-metodo-pago {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: #ffffff;
}

#metodopago .fila-metodo-pago .cuenta,
#metodopago .fila-metodo-pago .zelle {
    overflow-wrap: anywhere;
    color: #f5f5f7;
}

/* =========================================
   ORDEN CREADA — APPLE iOS PREMIUM
   ========================================= */

#orden-creada {
    margin: 10px auto 0 !important;
    padding: 18px 14px 22px;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff !important;
    background: #161617;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "SF Pro Text", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

#orden-creada .w3-container {
    padding: 12px 10px 8px;
}

/* Título */
#orden-creada h2 {
    margin: 4px 0 12px;
    color: #ffffff !important;
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

/* Mensaje de confirmación */
#orden-creada h4 {
    margin: 0 auto 22px;
    max-width: 320px;
    color: #f5f5f7 !important;
    -webkit-text-fill-color: #f5f5f7 !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.15px;
}

/* Botón Enviar */
#orden-creada button {
    display: block;
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    margin: 0 auto;
    padding: 12px 20px;
    box-sizing: border-box;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #0a84ff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;

    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.20);
    transition: background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#orden-creada button:hover {
    background: #0077ed;
}

#orden-creada button:active {
    transform: scale(0.98);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 480px) {
    #orden-creada {
        padding: 14px 10px 18px;
        border-radius: 18px;
    }

    #orden-creada h2 {
        font-size: 23px;
    }

    #orden-creada h4 {
        font-size: 14px;
    }
}

/* Títulos blancos: Orden creada */
#orden-creada h2,
#orden-creada h4 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Todo el texto de Orden creada en blanco */
#orden-creada,
#orden-creada * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}



/* =========================================
   BUSCAR PEDIDOS — APPLE iOS PREMIUM LIGHT
   ========================================= */

#buscarpedidos {
    box-sizing: border-box;
    padding: 22px 14px;
    color: #1d1d1f !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "SF Pro Text", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Título */
#buscarpedidos .titulo-buscar-pedidos {
    margin: 0 0 16px;
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.65px;
}

/* Texto descriptivo */
#buscarpedidos .mensaje-buscar-pedidos {
    margin: 0 0 20px;
    color: #48484a !important;
    -webkit-text-fill-color: #48484a !important;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: -.1px;
}

/* Tarjeta de privacidad */
#buscarpedidos .privacidad-buscar-pedidos {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 22px;
    padding: 14px;
    text-align: left;
    color: #3a3a3c !important;
    background: #f5f5f7 !important;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.6;
}

/* Texto interior de privacidad */
#buscarpedidos .privacidad-buscar-pedidos span {
    color: #3a3a3c !important;
    -webkit-text-fill-color: #3a3a3c !important;
}

/* Icono de privacidad */
#buscarpedidos .privacidad-buscar-pedidos i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #248a3d !important;
    font-size: 17px;
}

/* Campo de teléfono */
#buscarpedidos #telbusqueda {
    display: block;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 13px 15px;
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    background: #f5f5f7 !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 14px !important;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#buscarpedidos #telbusqueda::placeholder {
    color: #86868b !important;
    -webkit-text-fill-color: #86868b !important;
    opacity: 1;
}

#buscarpedidos #telbusqueda:focus {
    background: #ffffff !important;
    border-color: #007aff !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, .13);
}

/* Botones: conservar la identidad visual del sitio */
#buscarpedidos button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 600;
    transition: transform .2s ease, opacity .2s ease;
    -webkit-tap-highlight-color: transparent;
}

#buscarpedidos button:active {
    transform: scale(.97);
    opacity: .88;
}

/* Ajuste para móviles */
@media (max-width: 380px) {
    #buscarpedidos {
        padding: 18px 10px;
        border-radius: 20px;
    }

    #buscarpedidos .titulo-buscar-pedidos {
        font-size: 22px;
    }
}


#buscarpedidos #telbusqueda {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 14px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #242426 !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 13px !important;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
}

#buscarpedidos #telbusqueda::placeholder {
    color: #a1a1a6 !important;
    -webkit-text-fill-color: #a1a1a6 !important;
    opacity: 1;
}

#buscarpedidos #telbusqueda:focus {
    border-color: #0a84ff !important;
    box-shadow: 0 0 0 3px rgba(10,132,255,.18);
}


/* Fondo del módulo Buscar pedidos */
#buscarpedidos {
    background-color: #282929 !important;
}

/* Buscar pedidos: textos negros */
#buscarpedidos,
#buscarpedidos h3,
#buscarpedidos p, {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Placeholder del teléfono */
#buscarpedidos #telbusqueda::placeholder {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1;
}

/* Texto de botones en blanco */
#buscarpedidos button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* Mejor contraste del texto dentro del campo telefónico */
#buscarpedidos #telbusqueda {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 600;
    background: #ffffff !important;
    border-color: #c7c7cc !important;
}

/* Placeholder más visible */
#buscarpedidos #telbusqueda::placeholder {
    color: #6e6e73 !important;
    -webkit-text-fill-color: #6e6e73 !important;
    opacity: 1;
    font-weight: 400;
}

/* =========================================
   DISEÑADOR — FONDOS DE DESCRIPCIÓN Y PRECIOS
   ========================================= */

#bota-info .disenador-info-column,
#bota-info .disenador-info-resumen {
    background-color: #282929 !important;
}


/* ==========================================
   CLIENTEDATOS — EXPERIENCIA PREMIUM
   Botas 632 · Solo afecta este modal
   ========================================== */

#clientedatos {
    box-sizing: border-box;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#clientedatos,
#clientedatos * {
    box-sizing: border-box;
}

#clientedatos .w3-modal-content {
    width: min(100%, 430px);
    height: auto !important;
    max-height: calc(100dvh - 32px);
    margin: 0 auto;
    padding: 22px 24px 20px;
    overflow-y: auto;

    color: #f5f5f7;
    background: #111113;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,.5);

    font-family: -apple-system, BlinkMacSystemFont,
                 "SF Pro Text", "Segoe UI", sans-serif;
}

/* Encabezado y espacio reservado para futura imagen */

#clientedatos .cliente-encabezado {
    height: auto !important;
    min-height: 0;
    margin: 0 0 18px !important;
    padding: 0;
    background: transparent;
    border: 0;
}

#clientedatos .cliente-sello {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;

    color: #e5c38d;
    background: rgba(229,195,141,.10);
    border: 1px solid rgba(229,195,141,.3);
    border-radius: 50%;
    font-size: 17px;
}

#clientedatos .cliente-etiqueta {
    color: #d4b47e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Mensaje de agradecimiento */

#clientedatos .cliente-contenido {
    padding: 0;
}

#clientedatos .cliente-mensaje {
    text-align: center;
}

#clientedatos .cliente-mensaje h2 {
    margin: 0 0 14px;
    color: #f5f5f7;
    font-size: clamp(24px, 6vw, 29px);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -.8px;
}

#clientedatos .cliente-mensaje p {
    margin: 0 0 12px;
    color: #b8b8bd;
    font-size: 13px;
    line-height: 1.65;
}

#clientedatos .cliente-mensaje .cliente-intro {
    color: #e5e5e7;
    font-size: 14px;
    line-height: 1.65;
}

#clientedatos .cliente-separador {
    width: 42px;
    height: 2px;
    margin: 18px auto;
    background: #c5a16b;
    border-radius: 2px;
}

#clientedatos .cliente-mensaje h3 {
    margin: 0 0 8px;
    color: #e5c38d;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

#clientedatos .cliente-mensaje .cliente-instruccion {
    margin-bottom: 20px;
}

/* Campos del formulario */

#clientedatos .cliente-campos label {
    display: block;
    margin: 0 0 7px;
    color: #dedee2;
    font-size: 12px;
    font-weight: 600;
}

#clientedatos .cliente-campos input {
    display: block;
    width: 100%;
    height: 49px;
    margin: 0 0 15px;
    padding: 0 14px;

    color: #f5f5f7;
    background: #1c1c1e;
    border: 1px solid #38383a;
    border-radius: 13px;
    outline: none;

    font-family: inherit;
    font-size: 16px;

    transition: border-color .2s ease,
                box-shadow .2s ease;
}

#clientedatos .cliente-campos input::placeholder {
    color: #85858b;
    opacity: 1;
}

#clientedatos .cliente-campos input:focus {
    border-color: #c5a16b;
    box-shadow: 0 0 0 3px rgba(197,161,107,.13);
}

/* Botones de navegación */

#clientedatos .cliente-acciones {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 7px;
}

#clientedatos .cliente-acciones button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s ease, opacity .15s ease;
}

#clientedatos .cliente-btn-atras {
    flex: 0 0 48px;
    width: 48px;
    padding: 0;
    color: #f5f5f7;
    background: #242426;
    border: 1px solid #3a3a3c;
}

#clientedatos .cliente-btn-continuar {
    flex: 1;
    gap: 12px;
    padding: 0 18px;
    color: #fff;
    border: 0;
    font-size: 14px;
    font-weight: 600;
}

#clientedatos .cliente-acciones button:active {
    transform: scale(.97);
}

#clientedatos .cliente-pie {
    margin: 16px 0 0;
    color: #77777e;
    text-align: center;
    font-size: 10px;
    letter-spacing: .4px;
}

/* Pantallas pequeñas */

@media (max-width: 480px) {
    #clientedatos {
        padding: 12px;
    }

    #clientedatos .w3-modal-content {
        max-height: calc(100dvh - 24px);
        padding: 20px 18px 18px;
        border-radius: 23px;
    }
}

/* CLIENTEDATOS — CENTRADO FORZADO Y FONDO */

#clientedatos {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;

    display: none;
    align-items: center !important;
    justify-content: center !important;

    padding: 16px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 0, .72) !important;
    z-index: 99999 !important;
}

#clientedatos.w3-show {
    display: flex !important;
}

#clientedatos .w3-modal-content {
    position: relative !important;
    flex: 0 1 430px !important;
    width: 100% !important;
    max-width: 430px !important;

    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    margin: auto !important;

    overflow-y: auto !important;
    background: #282929 !important;
    color: #f5f5f7 !important;
    border-radius: 26px !important;
}

@media (max-width: 480px) {
    #clientedatos {
        padding: 12px !important;
    }

    #clientedatos .w3-modal-content {
        max-height: calc(100dvh - 24px) !important;
    }
}

/* CLIENTEDATOS — ENTRE NAV Y FOOTER */

#clientedatos {
    position: fixed !important;

    /* Ajustar estos valores a las alturas reales */
    top: var(--nav-alto, 60px) !important;
    bottom: var(--footer-alto, 0px) !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: auto !important;

    display: none;
    align-items: center !important;
    justify-content: center !important;

    padding: 12px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;

    background: rgba(0, 0, 0, .72) !important;
    z-index: 99999 !important;
}

#clientedatos.w3-show {
    display: flex !important;
}

#clientedatos .w3-modal-content {
    width: 100% !important;
    max-width: 430px !important;
    max-height: 100% !important;
    height: auto !important;
    margin: auto !important;

    overflow-y: auto !important;
    background: #282929 !important;
    color: #f5f5f7 !important;
    border-radius: 26px !important;
}


/* CABECERA DEL MODAL CLIENTE */
#clientedatos .cliente-encabezado {
    position: relative;
    width: 100%;
    height: 220px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* IMAGEN A PANTALLA COMPLETA EN LA CABECERA */
#clientedatos .cliente-imagen {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* TEXTO ENCIMA DE LA IMAGEN */
#clientedatos .cliente-etiqueta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 12px;
    text-align: center;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

#clientedatos .cliente-encabezado {
    position: relative;
    width: 100%;
    height: 220px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #000;
}

#clientedatos .cliente-imagen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

/* Texto superpuesto */
#clientedatos .cliente-etiqueta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 12px;
    color: #fff;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

#clientedatos .cliente-encabezado {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 220px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    line-height: 0;
}

#clientedatos .cliente-imagen {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: initial;
}

/* Etiqueta sobre la imagen */
#clientedatos .cliente-etiqueta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 12px;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}