/* =========================================
   DELI FASHION
   © 2026 Deli Fashion
   DISEÑO RESPONSIVE
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    background: #f4f5f7;
    color: #222;
    padding: 25px 15px;
}


/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */

.contenedor {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}


/* =========================================
   PANTALLA DE BIENVENIDA
========================================= */

.pantalla-bienvenida {
    width: 100%;
    min-height: calc(100vh - 50px);
    min-height: calc(100svh - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    animation:
        aparecerBienvenida 0.7s ease;
}

.bienvenida-contenido {
    width: 100%;
    max-width: 430px;
    text-align: center;
    background: #ffffff;
    padding: 28px 25px;
    border-radius: 22px;
    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.08);
    animation:
        subirBienvenida 0.7s ease;
}


/* =========================================
   LOGO DE BIENVENIDA
========================================= */

.bienvenida-logo {
    margin-bottom: 8px;
}

.bienvenida-logo img {
    width: 165px;
    max-width: 65%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* =========================================
   GIF DE ENVÍOS
========================================= */

.bienvenida-gif {
    width: 100%;
    max-width: 115px;
    margin: 0 auto 12px;
}

.bienvenida-gif img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}


/* =========================================
   TEXTO DE BIENVENIDA
========================================= */

.bienvenida-contenido h1 {
    font-size: 25px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.mensaje-bienvenida {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 22px;
}


/* =========================================
   CAMPO CELULAR
========================================= */

.campo-bienvenida {
    width: 100%;
    text-align: left;
    margin-bottom: 18px;
}

.campo-bienvenida label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

.campo-bienvenida input {
    display: block;
    width: 100%;
    padding: 13px;
    font-family: inherit;
    font-size: 16px;
    border:
        1px solid #d9dce1;
    border-radius: 10px;
    background: #ffffff;
    color: #222;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.campo-bienvenida input:focus {
    border-color: #111;
    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.06);
}


/* =========================================
   ERROR DE CELULAR
========================================= */

.error-bienvenida {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    font-size: 13px;
    color: #d00;
}


/* =========================================
   BOTÓN SIGUIENTE
========================================= */

.btn-siguiente {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    background: #111111;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-siguiente:hover {
    background: #222222;
    transform:
        translateY(-2px);
    box-shadow:
        0 7px 18px
        rgba(0, 0, 0, 0.18);
}

.btn-siguiente:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-siguiente:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* =========================================
   ANIMACIONES DE BIENVENIDA
========================================= */

@keyframes aparecerBienvenida {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes subirBienvenida {
    from {
        opacity: 0;
        transform:
            translateY(25px)
            scale(0.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================
   OCULTAR BIENVENIDA
========================================= */

.ocultar-bienvenida {
    display: none !important;
}


/* =========================================
   FORMULARIO OCULTO
========================================= */

.formulario-oculto {
    display: none;
}


/* =========================================
   FORMULARIO VISIBLE
========================================= */

.formulario-visible {
    display: block;
    animation:
        aparecerFormulario 0.65s ease;
}


/* =========================================
   ANIMACIÓN DEL FORMULARIO
========================================= */

@keyframes aparecerFormulario {
    from {
        opacity: 0;
        transform:
            translateY(25px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}


/* =========================================
   PUNTO DE INICIO DEL FORMULARIO
========================================= */

#formularioPedido {
    width: 100%;
    scroll-margin-top: 15px;
}


/* =========================================
   ENCABEZADO
========================================= */

.encabezado {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 22px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);
}


/* =========================================
   CABECERA CON LOGO
========================================= */

.cabecera-tienda {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.cabecera-tienda .logo {
    width: 60px;
    height: 60px;
    margin: 0;
    flex-shrink: 0;
}

.cabecera-tienda .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* =========================================
   TEXTO DEL ENCABEZADO
========================================= */

.texto-encabezado {
    text-align: left;
}

.texto-encabezado h1 {
    font-size: 25px;
    line-height: 1.3;
    margin: 0 0 5px 0;
}

.texto-encabezado p {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}


/* =========================================
   FORMULARIO
========================================= */

#formularioPedido {
    width: 100%;
}


/* =========================================
   SECCIONES
========================================= */

.seccion {
    position: relative;
    width: 100%;
    background: #ffffff;
    padding: 22px;
    margin-bottom: 16px;
    border-radius: 18px;
    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.05);
}

.seccion h2 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 20px;
}


/* =========================================
   ETIQUETAS
========================================= */

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 7px;
    line-height: 1.4;
}


/* =========================================
   CAMPOS
========================================= */

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    border:
        1px solid #d9dce1;
    border-radius: 10px;
    padding: 12px;
    font-family: inherit;
    font-size: 15px;
    background: #ffffff;
    color: #222;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================
   FOCUS
========================================= */

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    border-color: #111;
    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.06);
}


/* =========================================
   PLACEHOLDER
========================================= */

input::placeholder,
textarea::placeholder {
    color: #999;
}


/* =========================================
   TEXTAREA
========================================= */

textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}


/* =========================================
   BUSCADOR DE AGENCIAS SHALOM
========================================= */

.buscador-agencia {
    position: relative;
    width: 100%;
    z-index: 1000;
}


/* =========================================
   INPUT DEL BUSCADOR
========================================= */

.buscador-agencia input {
    position: relative;
    z-index: 1001;
}


/* =========================================
   CONTENEDOR DE SUGERENCIAS
========================================= */

.sugerencias-agencias {
    position: absolute;

    top: calc(100% + 5px);
    left: 0;
    right: 0;

    width: 100%;

    max-height: 280px;

    overflow-x: hidden;
    overflow-y: auto;

    background: #ffffff;

    border:
        1px solid #d9dce1;

    border-radius: 10px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.12);

    z-index: 99999;

    display: none;
}


/* =========================================
   MOSTRAR SUGERENCIAS
========================================= */

.sugerencias-agencias.mostrar-sugerencias {
    display: block;
}


/* =========================================
   SUGERENCIA INDIVIDUAL
========================================= */

.sugerencia-agencia {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;

    padding: 12px 14px;

    border: none;
    border-bottom:
        1px solid #eeeeee;

    background: #ffffff;
    color: #222222;

    font-family: inherit;
    font-size: 14px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease;
}


/* =========================================
   ÚLTIMA SUGERENCIA
========================================= */

.sugerencia-agencia:last-child {
    border-bottom: none;
}


/* =========================================
   EFECTO AL PASAR EL MOUSE
========================================= */

.sugerencia-agencia:hover {
    background: #f5f5f5;
}


/* =========================================
   NOMBRE DE AGENCIA
========================================= */

.nombre-agencia {
    display: block;
    width: 100%;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    color: #222222;
}


/* =========================================
   DIRECCIÓN DE AGENCIA
========================================= */

.direccion-agencia {
    display: block;
    width: 100%;

    font-size: 12px;
    line-height: 1.4;

    color: #777777;
}


/* =========================================
   AYUDA DEL BUSCADOR
========================================= */

.ayuda-agencia {
    display: block;
    margin-top: 7px;

    font-size: 12px;
    line-height: 1.4;

    color: #888888;
}


/* =========================================
   BARRA DE DESPLAZAMIENTO
========================================= */

.sugerencias-agencias::-webkit-scrollbar {
    width: 7px;
}

.sugerencias-agencias::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sugerencias-agencias::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 10px;
}

.sugerencias-agencias::-webkit-scrollbar-thumb:hover {
    background: #999999;
}


/* =========================================
   MÉTODO DE PAGO
========================================= */

.seccion label input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: #111;
}

.seccion label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 0;
    cursor: pointer;
}


/* =========================================
   INFORMACIÓN DE PAGO
========================================= */

.informacion-pago {
    margin-top: 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   DATOS DE PAGO
========================================= */

.oculto {
    display: none !important;
}

#datosPago {
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top:
        1px solid #e5e5e5;
}


/* =========================================
   CONFIRMACIÓN
========================================= */

.confirmacion {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;

    margin: 0;
    cursor: pointer;
}

.confirmacion input {
    flex-shrink: 0;

    width: 18px;
    height: 18px;

    margin-top: 2px;

    accent-color: #111;

    cursor: pointer;
}


/* =========================================
   BOTÓN ENVIAR
========================================= */

.btn-enviar {
    display: block;
    width: 100%;

    border: none;
    border-radius: 13px;

    padding: 16px;
    margin-bottom: 16px;

    font-family: inherit;
    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    background: #111111;
    color: #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-enviar:hover {
    background: #222222;

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.15);
}

.btn-enviar:active {
    transform: translateY(0);
    box-shadow: none;
}


/* =========================================
   PIE DE PÁGINA
========================================= */

.pie-pagina {
    width: 100%;
    text-align: center;

    padding: 18px 10px 8px;

    color: #888;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================
   TABLETS
========================================= */

@media (max-width: 768px) {

    body {
        padding: 18px 12px;
    }

    .pantalla-bienvenida {
        min-height:
            calc(100vh - 36px);

        min-height:
            calc(100svh - 36px);

        padding: 15px 8px;
    }

    .bienvenida-contenido {
        padding: 25px 22px;
    }

    .bienvenida-logo img {
        width: 150px;
    }

    .bienvenida-gif {
        max-width: 105px;
    }

    .bienvenida-contenido h1 {
        font-size: 23px;
    }

    .encabezado {
        padding: 24px 20px;
    }

    .texto-encabezado h1 {
        font-size: 23px;
    }

    .seccion {
        padding: 20px;
    }
}


/* =========================================
   CELULARES
========================================= */

@media (max-width: 480px) {

    body {
        padding: 10px 7px;
    }

    .pantalla-bienvenida {
        min-height:
            calc(100vh - 20px);

        min-height:
            calc(100svh - 20px);

        padding: 8px 5px;
    }

    .bienvenida-contenido {
        max-width: 100%;
        padding: 23px 18px;
        border-radius: 18px;
    }

    .bienvenida-logo {
        margin-bottom: 5px;
    }

    .bienvenida-logo img {
        width: 135px;
        max-width: 60%;
    }

    .bienvenida-gif {
        max-width: 90px;
        margin-bottom: 9px;
    }

    .bienvenida-contenido h1 {
        font-size: 21px;
        margin-bottom: 8px;
    }

    .mensaje-bienvenida {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .campo-bienvenida {
        margin-bottom: 15px;
    }

    .btn-siguiente {
        padding: 14px;
        font-size: 15px;
    }

    .encabezado {
        padding: 21px 16px;
        border-radius: 15px;
        margin-bottom: 12px;
    }

    .cabecera-tienda {
        gap: 7px;
    }

    .cabecera-tienda .logo {
        width: 35px;
        height: 35px;
    }

    .texto-encabezado h1 {
        font-size: 21px;
    }

    .texto-encabezado p {
        font-size: 13px;
    }

    .seccion {
        padding: 17px;
        border-radius: 15px;
        margin-bottom: 12px;
    }

    .seccion h2 {
        font-size: 17px;
        margin-bottom: 17px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="number"],
    input[type="file"],
    select,
    textarea {
        font-size: 16px;
        padding: 12px;
    }

    .sugerencias-agencias {
        max-height: 240px;
    }

    .sugerencia-agencia {
        padding: 11px 12px;
    }

    .nombre-agencia {
        font-size: 13px;
    }

    .direccion-agencia {
        font-size: 11px;
    }

    .ayuda-agencia {
        font-size: 11px;
    }

    .btn-enviar {
        padding: 15px;
        font-size: 15px;
    }

    .pie-pagina {
        font-size: 11px;
        padding-top: 14px;
    }
}


/* =========================================
   CELULARES MUY PEQUEÑOS
========================================= */

@media (max-width: 360px) {

    body {
        padding: 7px 5px;
    }

    .bienvenida-contenido {
        padding: 20px 15px;
    }

    .bienvenida-logo img {
        width: 120px;
    }

    .bienvenida-gif {
        max-width: 75px;
    }

    .bienvenida-contenido h1 {
        font-size: 19px;
    }

    .mensaje-bienvenida {
        font-size: 13px;
    }

    .encabezado {
        padding: 18px 12px;
    }

    .cabecera-tienda .logo {
        width: 32px;
        height: 32px;
    }

    .texto-encabezado h1 {
        font-size: 19px;
    }

    .texto-encabezado p {
        font-size: 12px;
    }

    .seccion {
        padding: 14px;
    }

    .seccion h2 {
        font-size: 16px;
    }

    .confirmacion {
        font-size: 12px;
    }

    .sugerencias-agencias {
        max-height: 220px;
    }
}


/* =========================================
   PANTALLAS GRANDES
========================================= */

@media (min-width: 1200px) {

    body {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .contenedor {
        max-width: 650px;
    }
}

[hidden] {
    display: none !important;
}

.campo-trampa {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.mensaje-error-campo {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.campo-invalido {
    border-color: #dc2626 !important;
    background: #fff7f7 !important;
}

.sugerencia-agencia[aria-selected="true"] {
    background: #e8efff;
    color: #172554;
}

.sugerencias-agencias:empty {
    display: none;
}
