/* ========================================
   MODAL DE PRODUCTO - PRISCILLA
======================================== */

.modal_producto {
    position: fixed;
    inset: 0;
    margin: auto;

    width: min(1000px, calc(100% - 40px));
    max-width: 1000px;

    height: fit-content;
    max-height: 92vh;
    max-height: 92dvh;

    padding: 0;
    overflow-y: auto;

    border: 1px solid #eee5d8;
    border-radius: 18px;

    background: #ffffff;
    color: #241b14;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}

.modal_producto[open] {
    display: block;
    animation: modal_aparecer 0.25s ease;
}

.modal_producto::backdrop {
    background: rgba(25, 20, 15, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@keyframes modal_aparecer {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal_producto_contenido {
    width: 100%;
    justify-content: center;
}

/* ========================================
   ENCABEZADO
======================================== */

.modal_producto_encabezado {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 17px 25px;

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #eee7dd;
}

.modal_producto_titulo_encabezado span {
    display: block;
    margin-bottom: 3px;

    background: linear-gradient(115deg,
            #ff9900 25%,
            #eca006 48%,
            #f1c254 100%);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.modal_producto_encabezado h2 {
    margin: 0;

    color: #241b14;
    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 18px;
    font-weight: 800;
}

.modal_producto_cerrar {
    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 40px;
    height: 40px;

    border: 1px solid #eee5d8;
    border-radius: 50%;

    background: #faf8f4;
    color: #5b4a38;

    font-size: 18px;
    cursor: pointer;

    transition: background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.modal_producto_cerrar:hover {
    background: #fff2d7;
    border-color: #e4c47f;
    color: #a66b10;
}

/* ========================================
   CUERPO
======================================== */

.modal_producto_cuerpo {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
    gap: 34px;

    padding: 27px;
}

/* ========================================
   GALERÍA
======================================== */

.modal_producto_galeria {
    min-width: 0;
}

.modal_producto_imagen_principal {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;

    border: 1px solid #eee6da;
    border-radius: 13px;

    background: #f8f5ef;
    cursor: zoom-in;
}

.modal_producto_imagen_principal img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform: scale(1);
    transform-origin: center center;

    transition: transform 0.3s ease;
}

/* IMAGEN AMPLIADA */

.modal_producto_imagen_principal.zoom_activo {
    cursor: zoom-out;
}

.modal_producto_imagen_principal.zoom_activo img {
    transform: scale(2.2);
    transition: transform 0.3s ease;
}

/* BOTÓN ZOOM */

.modal_producto_zoom {
    position: absolute;
    right: 13px;
    bottom: 13px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;

    background: rgba(32, 25, 18, 0.85);
    color: #ffffff;

    font-size: 17px;
    cursor: pointer;

    transition: background 0.2s ease,
        transform 0.2s ease;
}

.modal_producto_zoom:hover {
    background: #a66b10;
    transform: scale(1.07);
}

.modal_producto_zoom_indicacion {
    position: absolute;
    bottom: 17px;
    left: 14px;

    padding: 7px 10px;

    border-radius: 5px;
    background: rgba(32, 25, 18, 0.72);

    color: #ffffff;
    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 10px;
    font-weight: 600;

    pointer-events: none;
}

/* MINIATURAS */

.modal_producto_miniaturas {
    display: flex;
    gap: 10px;

    margin-top: 13px;
    padding-bottom: 5px;

    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d6b46e #f5f1e9;
}

.modal_miniatura {
    flex: 0 0 76px;

    width: 76px;
    height: 76px;

    padding: 3px;
    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 9px;

    background: #f6f2ec;
    cursor: pointer;

    transition: border-color 0.2s ease,
        transform 0.2s ease;
}

.modal_miniatura:hover {
    transform: translateY(-2px);
}

.modal_miniatura.activo {
    border-color: #d99b23;
    background: #fff8e9;
}

.modal_miniatura img {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: 5px;
    object-fit: cover;
}

/* ========================================
   INFORMACIÓN
======================================== */

.modal_producto_informacion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding-top: 5px;
}

.modal_producto_categoria {
    display: inline-flex;
    align-items: center;

    margin-bottom: 13px;
    padding: 7px 12px;

    border: 1px solid #ead5a9;
    border-radius: 30px;

    background: #fff8e9;
    color: #a66b10;

    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.modal_producto_informacion h3 {
    margin: 0 0 17px;

    color: #241b14;
    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.modal_producto_informacion .modal_producto_precio {
    display: block;
    margin-bottom: 22px;

    color: #98620c;
    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.modal_producto_separador {
    width: 100%;
    height: 1px;
    margin-bottom: 22px;
    background: #eee7dd;
}

/* DESCRIPCIÓN */

.modal_producto_descripcion {
    width: 100%;
    margin-bottom: 25px;
}

.modal_producto_descripcion h4 {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 11px;

    color: #30251d;
    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 800;
}

.modal_producto_descripcion h4 i {
    color: #bd8623;
    font-size: 16px;
}

.modal_producto_descripcion p {
    margin: 0;

    color: #746a60;
    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.85;

    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ========================================
   WHATSAPP
======================================== */

.btn_consultar_whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    width: 100%;
    min-height: 51px;
    margin-top: auto;
    padding: 12px 16px;

    border: 1px solid #078c43;
    border-radius: 9px;

    background: #078c43;
    color: #ffffff;

    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;

    transition: background 0.2s ease,
        transform 0.2s ease;
}

.btn_consultar_whatsapp:hover {
    background: #06783a;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn_consultar_whatsapp>i:first-child {
    font-size: 21px;
}

.modal_whatsapp_flecha {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.8;
}

.modal_producto_atencion {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 13px 0 0;
    color: #8b8177;
    font-family: var(--font_primary, 'Manrope', sans-serif);
    font-size: 13px;
    font-weight: 600;
}

.modal_producto_atencion i {
    color: #bd8623;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 768px) {

    .modal_producto {
        width: calc(100% - 28px);
    }

    .modal_producto_cuerpo {
        gap: 20px;
        padding: 20px;
    }

    .modal_producto_informacion h3 {
        font-size: 22px;
    }

    .modal_producto_informacion .modal_producto_precio {
        font-size: 26px;
    }

}

/* ========================================
   MÓVIL
======================================== */

@media (max-width: 600px) {

    .modal_producto {
        width: calc(100% - 20px);
        max-width: 440px;

        max-height: 92vh;
        max-height: 92dvh;

        margin: auto;
        border-radius: 13px;
    }

    .modal_producto_encabezado {
        padding: 13px 15px;
    }

    .modal_producto_titulo_encabezado span {
        font-size: 9px;
    }

    .modal_producto_encabezado h2 {
        font-size: 16px;
    }

    .modal_producto_cerrar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .modal_producto_cuerpo {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 14px;
    }

    .modal_producto_imagen_principal {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }

    .modal_producto_zoom {
        width: 39px;
        height: 39px;
        right: 10px;
        bottom: 10px;
        font-size: 15px;
    }

    .modal_producto_zoom_indicacion {
        left: 10px;
        bottom: 13px;
        font-size: 9px;
    }

    .modal_miniatura {
        flex-basis: 65px;
        width: 65px;
        height: 65px;
    }

    .modal_producto_informacion {
        padding: 0 2px 5px;
    }

    .modal_producto_categoria {
        margin-bottom: 10px;
        font-size: 9px;
    }

    .modal_producto_informacion h3 {
        margin-bottom: 12px;
        font-size: 21px;
        line-height: 1.35;
    }

    .modal_producto_informacion .modal_producto_precio {
        margin-bottom: 17px;
        font-size: 26px;
    }

    .modal_producto_separador {
        margin-bottom: 17px;
    }

    .modal_producto_descripcion {
        margin-bottom: 19px;
    }

    .modal_producto_descripcion h4 {
        font-size: 13px;
    }

    .modal_producto_descripcion p {
        font-size: 12px;
        line-height: 1.75;
    }

    .btn_consultar_whatsapp {
        min-height: 49px;
        font-size: 13px;
    }

    .modal_producto_atencion {
        font-size: 9px;
        line-height: 1.5;
    }

}

/* MÓVILES PEQUEÑOS */

@media (max-width: 360px) {

    .modal_producto_cuerpo {
        padding: 11px;
        gap: 18px;
    }

    .modal_producto_informacion h3 {
        font-size: 19px;
    }

    .modal_producto_informacion .modal_producto_precio {
        font-size: 23px;
    }

}