/* =========================================================
   PASALAVENTA — SISTEMA DE UBICACIÓN
   NEGRO / BLANCO / ROJO
========================================================= */

:root {

    --plv-red: #d60000;
    --plv-red-dark: #b80000;
    --plv-black: #111111;
    --plv-white: #ffffff;
    --plv-gray: #666666;
    --plv-border: #e5e5e5;
    --plv-background: #f7f7f7;

}


/* =========================================================
   BOTÓN HEADER
========================================================= */

.plv-boton-ubicacion {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 0 15px;

    border: 1px solid #dddddd;

    border-radius: 10px;

    background: #ffffff;

    color: #111111;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;

}

.plv-boton-ubicacion:hover {

    border-color: var(--plv-red);

    color: var(--plv-red);

    transform: translateY(-1px);

}

.plv-boton-ubicacion-icono {

    font-size: 17px;

}

.plv-boton-ubicacion-texto {

    max-width: 150px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

}


/* =========================================================
   OVERLAY
========================================================= */

.plv-ubicacion-overlay {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, .65);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;

}

.plv-ubicacion-overlay.activo {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =========================================================
   MODAL
========================================================= */

.plv-ubicacion-modal {

    position: relative;

    width: min(100%, 460px);

    padding: 38px;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .25);

    transform:
        translateY(20px)
        scale(.97);

    transition:
        transform .25s ease;

}

.plv-ubicacion-overlay.activo
.plv-ubicacion-modal {

    transform:
        translateY(0)
        scale(1);

}


/* =========================================================
   CERRAR
========================================================= */

.plv-ubicacion-cerrar {

    position: absolute;

    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #f2f2f2;

    color: #333333;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;

}

.plv-ubicacion-cerrar:hover {

    background: #111111;

    color: #ffffff;

}


/* =========================================================
   ICONO
========================================================= */

.plv-ubicacion-icono {

    width: 56px;
    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 16px;

    background: #fff0f0;

    font-size: 26px;

}


/* =========================================================
   HEADER
========================================================= */

.plv-ubicacion-kicker {

    display: block;

    margin-bottom: 7px;

    color: var(--plv-red);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .12em;

}

.plv-ubicacion-header h2 {

    margin: 0 0 9px;

    color: #111111;

    font-size: 29px;

    line-height: 1.15;

}

.plv-ubicacion-header p {

    margin: 0 0 27px;

    color: #666666;

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================================
   CAMPOS
========================================================= */

.plv-ubicacion-campo {

    margin-bottom: 18px;

}

.plv-ubicacion-campo label {

    display: block;

    margin-bottom: 8px;

    color: #222222;

    font-size: 13px;

    font-weight: 700;

}

.plv-ubicacion-campo select {

    width: 100%;

    height: 50px;

    padding: 0 14px;

    border: 1px solid #dddddd;

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #111111;

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}

.plv-ubicacion-campo select:hover {

    border-color: #bbbbbb;

}

.plv-ubicacion-campo select:focus {

    border-color: var(--plv-red);

    box-shadow:
        0 0 0 3px rgba(214, 0, 0, .10);

}

.plv-ubicacion-campo select:disabled {

    background: #f4f4f4;

    color: #999999;

    cursor: not-allowed;

}


/* =========================================================
   ERROR
========================================================= */

.plv-ubicacion-error {

    display: none;

    margin: 5px 0 15px;

    padding: 10px 12px;

    border-radius: 8px;

    background: #fff0f0;

    color: #c00000;

    font-size: 13px;

}

.plv-ubicacion-error.visible {

    display: block;

}


/* =========================================================
   GUARDAR
========================================================= */

.plv-ubicacion-guardar {

    width: 100%;

    height: 50px;

    border: 0;

    border-radius: 10px;

    background: var(--plv-red);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;

}

.plv-ubicacion-guardar:hover {

    background: var(--plv-red-dark);

    transform: translateY(-1px);

}


/* =========================================================
   OMITIR
========================================================= */

.plv-ubicacion-omitir {

    display: block;

    width: 100%;

    margin-top: 12px;

    padding: 9px;

    border: 0;

    background: transparent;

    color: #777777;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;

}

.plv-ubicacion-omitir:hover {

    color: #111111;

}


/* =========================================================
   BLOQUEAR SCROLL
========================================================= */

body.plv-ubicacion-abierta {

    overflow: hidden;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .plv-ubicacion-overlay {

        align-items: flex-end;

        padding: 0;

    }

    .plv-ubicacion-modal {

        width: 100%;

        padding: 30px 22px 24px;

        border-radius:
            22px 22px 0 0;

        transform:
            translateY(100%);

    }

    .plv-ubicacion-overlay.activo
    .plv-ubicacion-modal {

        transform:
            translateY(0);

    }

    .plv-ubicacion-header h2 {

        font-size: 25px;

    }

    .plv-boton-ubicacion {

        min-width: 42px;

        width: 42px;

        padding: 0;

    }

    .plv-boton-ubicacion-texto {

        display: none;

    }

}