/* ==========================================================
   PONTRAGA - DESCRIPCIÓN CORTA PERSONALIZADA
   ========================================================== */

/* Distribución principal */

.pontraga-two-cols {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    align-items: flex-start;
}

/* Ocultar categoría */

.summary .product_meta {
    display: none !important;
}

/* Ocultar precio del producto padre */

.product.type-product .summary .price {
    display: none !important;
}

/* Columna izquierda */

.pontraga-col-left {
    flex: 1;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.pontraga-shortdesc-wrapper {
    width: 100%;
}

/* Caja de variaciones */

.pontraga-variations-box {
    background: #f7f9fc;
    border: 1px solid #d8e2f1;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
}

.pontraga-variations-link {
    display: inline-block;
    margin-top: 6px;
    color: #2061ae;
    text-decoration: none;
    font-weight: 500;
}

.pontraga-variations-link:hover {
    text-decoration: underline;
}

/* Columna derecha */

.pontraga-col-right {
    width: 32%;
    font-size: 14px;
    line-height: 1.4;
}

/* Caja de ayuda */

.pontraga-help-box {
    background: #f7f9fc;
    border: 1px solid #d8e2f1;
    padding: 18px 20px;
    border-radius: 6px;
}

.pontraga-help-title {
    font-size: 18px;
    font-weight: 400;
    color: #444;
    margin-bottom: 12px;
}

.pontraga-help-box ul {
    margin: 0 0 12px 18px;
    padding: 0;
    font-size: 12px;
}

.pontraga-help-box li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.pontraga-help-box li::before {
    content: "";
    width: 4px;
    height: 4px;
    background: #999;
    position: absolute;
    left: 0;
    top: 7px;
    border-radius: 1px;
}

/* Iconos */

.pontraga-icon {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.pontraga-icon-circle {
    width: 28px;
    height: 28px;
    border: 1px solid #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.pontraga-icon-svg {
    width: 16px;
    height: 16px;
    stroke: #666 !important;
    fill: none !important;
    stroke-width: 1.6;
}

.pontraga-email-link {
    color: #2061ae;
    text-decoration: none;
}

/* Separador */

.pontraga-divider-outside {
    margin: 18px 0;
    border-bottom: 1px solid #ccc;
}

/* Recursos */

.pontraga-resources-title {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.pontraga-resource-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2061ae;
    text-decoration: none;
    padding: 4px 0;
}

.pontraga-resource-link:hover {
    text-decoration: underline;
}

.pontraga-resource-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Flash de WCPT PRO */

.wcpt-flash {
    animation: pontragaFlash 1.2s ease-out;
}

@keyframes pontragaFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(32,97,174,0.6);
    }

    50% {
        box-shadow: 0 0 15px 6px rgba(32,97,174,0.6);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(32,97,174,0);
    }
}

/* Adaptación móvil */

@media (max-width: 768px) {

    .pontraga-two-cols {
        flex-direction: column;
    }

    .pontraga-col-right {
        width: 100%;
    }

}

/* ==========================================================
   PRODUCTOS CON COMPRA POR PRESENTACIONES
   DISTRIBUCIÓN DE LA FICHA
   ========================================================== */

@media (min-width: 992px) {

    /* Galería de imágenes */

    .woocommerce div.product:has(.pontraga-two-cols[data-pontraga-presentaciones="1"]) div.images {
        width: 32% !important;
        float: left !important;
        box-sizing: border-box;
    }

    /* Contenedor de descripción y presentaciones */

    .woocommerce div.product:has(.pontraga-two-cols[data-pontraga-presentaciones="1"]) div.summary {
        width: 68% !important;
        float: right !important;
        box-sizing: border-box;
    }

    /* Columna izquierda: descripción corta */

    .pontraga-two-cols[data-pontraga-presentaciones="1"] .pontraga-col-left {
        flex: 0 0 38%;
        min-width: 0;
    }

    /* Columna derecha: tabla de presentaciones */

    .pontraga-two-cols[data-pontraga-presentaciones="1"] .pontraga-col-right {
        flex: 0 0 62%;
        width: auto;
        min-width: 0;
    }

}
