/* ---- Botón abrir popup ---- */
.popup-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.6rem 2rem;
    background: #ce1141;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: "Gotham", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.popup-open-btn:hover {
    transform: scale(1.05);
    background: #ce1141;
}

/* ---- Overlay ---- */
.producto-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.producto-popup-overlay.is-active {
    display: flex;
}

/* ---- Popup ---- */
.producto-popup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.1fr;
    max-width: 90vw;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2.5rem;
    gap: 2rem;
}

/* ---- Botón cerrar ---- */
.producto-popup-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #ce1141;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease;
    box-shadow: none;
}

.producto-popup-close:hover {
    transform: scale(1.2);
    background: none;
    color: #ce1141;
}

/* ---- Columna izquierda: texto enriquecido ---- */
.producto-popup-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
    line-height: 1.5;
    color: black;
}

.producto-popup-left h1,
.producto-popup-left h2,
.producto-popup-left h3 {
    color: #ce1141;
    text-transform: uppercase;
}

/* ---- Columna derecha: imagen ---- */
.producto-popup-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-popup-right img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.producto-popup .sellos-container {
    max-height: fit-content;
    align-self: flex-end;
}

.producto-popup p {
    line-height: 1.2;
    font-size: 16px;
    margin-bottom: 0;
}

.producto-popup h4 {
    margin: 12px 0;
    font-size: 18px;
}

/* Boton con imagen BIOarroz*/
.term-arroz .popup-open-btn,
.postid-1223 .popup-open-btn {
    display: block;
    width: 150px;
    height: 150px;
    background: url('/wp-content/uploads/2026/06/btn-bioarroz.png') no-repeat center / contain;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    text-indent: -9999px;
}

.term-arroz .popup-open-btn,
.postid-1223 .popup-open-btn:hover {
    transform: none;
    background: url('/wp-content/uploads/2026/06/btn-bioarroz.png') no-repeat center / contain;
}

.postid-1223 .background-left {
    display: none;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .producto-popup {
        grid-template-columns: 1fr;
        padding: 5vw;
    }

    .producto-popup-right {
        order: -1;
    }

    .producto-popup .producto-popup-right,
    .producto-popup .producto-popup-left {
        max-width: 80vw;
    }

    .producto-popup .producto-popup-left img {
        max-width: 60vw;
    }

    .producto-popup .sellos-container {
        justify-content: space-between;
        align-items: flex-start;
    }

    .producto-popup .sellos-container img {
        max-width: 18vw;
    }

    .producto-popup-close {
        padding: 5vw;
        right: 0;
    }

}