/* ==============================> TITULOS DE SECCION */

.hero-producto-titulo .resaltado {
    color: var(--e-global-color-primary);
}

.hero-titulo-final-producto,
.pa-titulo-seccion-principal, 
.producto-faq-titulo-principal,
.pr-reviews-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var( --e-global-color-secondary );
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #dedede;
    background: #fafafa;
}

.product-template-default .whatsapp-predeterminado {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    transition: .4s all ease-in-out;
}

.product-template-default .whatsapp-predeterminado:hover {
    background: var(--e-global-color-primary);
    color: #fff;
    border-color: var(--e-global-color-primary);
}

@media(max-width: 768px) {
    .hero-titulo-final-producto,
    .pa-titulo-seccion-principal, 
    .producto-faq-titulo-principal,
    .pr-reviews-main-title {
        font-size: 24px;
    }
}

/* ==============================> PLANTILLA DE PRODUCTO */

.wd-single-price .price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
}

.single-product form:not(.variations_form).cart {
    flex-wrap: nowrap;
}

.single-product form.variations_form .woocommerce-variation-add-to-cart {
    flex-wrap: nowrap;
}

/* CONTENIDO DE PRODUCTO Y PRODUCTOS RELACIONADOS */

.elementor-widget-wd_single_product_content .elementor-widget-container:before {
    content: "Descripción";
    display: block;
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #EBEBEB;
}


.tabs-surcom .wc-tabs-wrapper {
    padding: 24px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 0px 16px -8px rgba(0, 0, 0, 0.16);
}

.productos-relacionados .elementor-widget-container:before {
    content: "Productos relacionados";
    display: block;
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #EBEBEB;
}

.elementor-widget-wd_single_product_tabs .wc-tabs-wrapper {
    background: #F1F1F1;
    border-radius: 16px;
    padding: 24px;
}

/*.woocommerce-Tabs-panel--description :is(h2) {
    background: #dfdfdf;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 900;
}*/

/* BOTON DE WHATSAPP EN FICHA DE PRODUCTO */

.btn-wsp-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: var(--btn-accented-brd-radius);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
    transition: background 0.3s;
    height: auto;
    max-width: fit-content;
}

.btn-wsp-product:hover {
    background-color: #128C7E;
    color: white;
}

.btn-wsp-product i {
    margin-right: 5px;
    font-size: 16px;
}

/* RESPONSIVE */

@media(max-width: 768px) {
    .single-product form.cart {
        flex-wrap: wrap;
    }
    .single-product form.variations_form .woocommerce-variation-add-to-cart {
        flex-wrap: wrap !important;
    }
    .btn-wsp-product {
        max-width: stretch;
    }
}


/* ==============================> ESTILOS HERO DE PRODUCTO */

/* -> CONTENEDOR PRINCIPAL */
.hero-producto-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

/* -> TEXTOS */
.hero-producto-contenedor .hero-producto-titulo {
    font-size: 40px;
    line-height: 44px;
    color: #ffffff;
    margin: 0 0 15px 0;
    font-weight: 700;
    transition: opacity 0.3s ease-in-out;
}

.hero-producto-contenedor .hero-producto-titulo:hover {
    opacity: 0.9;
}

.hero-producto-contenedor .hero-producto-descripcion {
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    margin: 0;
    max-width: 800px;
}

/* -> RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .hero-producto-contenedor {
    }

    .hero-producto-contenedor .hero-producto-titulo {
        font-size: 32px;
        line-height: 36px;
    }

    .hero-producto-contenedor .hero-producto-descripcion {
        font-size: 16px;
        line-height: 22px;
    }
}


/* ==============================> ESTILOS DEL SHORTCODE ESCOGER PAGO */

/* -> CONTENEDOR PRINCIPAL */
.pep-contenedor {
    width: 100%;
    max-width: 450px;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
}

/* -> NAVEGACIÓN DE TABS */
.pep-tabs-nav {
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 2;
    margin-bottom: -1px;
}

.pep-tab-link {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #f9f9fa;
    border: 1px solid #1c2858;
    border-right: none;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.pep-tab-link:last-child {
    border-right: 1px solid #1c2858;
}

.pep-tab-link.pep-activo {
    background: #f4f6fb;
    color: var(--e-global-color-primary);
    border-bottom: 1px solid #f4f6fb;
}

.pep-tab-link:hover {
    background: #f4f6fb;
    color: var(--e-global-color-primary);
}

/* -> CAJA DE CONTENIDO (BORDER BOX) */
.pep-tabs-content {
    background: #f4f6fb;
    border: 1px solid #1c2858;
    border-radius: 0 0 10px 10px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.pep-tab-pane {
    display: none;
    animation: pepFadeIn 0.4s ease-in-out;
}

.pep-tab-pane.pep-activo {
    display: block;
}

/* -> PRECIOS Y TEXTOS */
.pep-precio-caja {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.pep-precio-caja ins {
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
    color: #000;
}

.pep-precio-caja del {
    font-size: 20px;
    font-weight: 700;
    color: #888;
}

/* Soporte para precio único sin del/ins */
.pep-precio-caja .amount {
    font-size: 26px;
    font-weight: 800;
    color: #000;
}
.pep-precio-caja del .amount {
    font-size: 20px;
    color: #888;
}

.pep-nota-precio {
    font-size: 12px;
    color: #7e7e7e;
    line-height: 16px;
    margin-bottom: 16px;
}

.pep-incluye-titulo {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    margin-bottom: 15px;
}

/* -> LISTA DE DESCRIPCIÓN */
.pep-lista-descripcion {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.pep-lista-descripcion li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 18px;
    color: var(--e-global-color-text);
    margin-bottom: 8px;
}

.pep-lista-descripcion li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: var(--e-global-color-primary);
    border-radius: 50%;
}

.pep-link-comparar {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pep-link-comparar:hover {
    color: var(--e-global-color-primary);
    text-decoration: underline;
}

/* -> BOTONES DE ACCIÓN */
.pep-botones-contenedor {
    margin-top: 15px;
}

.pep-botones-grupo {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.pep-botones-grupo.pep-activo {
    display: flex;
}

.pep-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.pep-btn:active {
    transform: scale(0.98);
}

.pep-btn-carrito {
    background: #fff;
    color: var(--e-global-color-primary);
    border: 2px solid var(--e-global-color-primary);
}

.pep-btn-carrito:hover {
    background: var(--e-global-color-primary);
    color: #fff;
}

.pep-btn-wsp {
    background: #6dc266;
    color: #fff;
    border: 2px solid #6dc266;
}

.pep-btn-wsp:hover {
    background: #5ba355;
    border-color: #5ba355;
    color: #fff;
}

.pep-btn-wsp i {
    margin-right: 8px;
    font-size: 20px;
}

.pep-btn-cotizacion {
    background: var(--e-global-color-primary);
    color: #fff;
    border: 2px solid var(--e-global-color-primary);
}

.pep-btn-cotizacion:hover {
    background: var(--e-global-color-accent);
    border-color: var(--e-global-color-accent);
    color: #fff;
}

/* -> ANIMACIONES */
@keyframes pepFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -> RESPONSIVE (MÓVILES) */
@media (max-width: 768px) {
    .pep-tabs-content {
        padding: 20px 15px;
    }
    
    .pep-precio-caja ins, 
    .pep-precio-caja .amount {
        font-size: 22px;
    }
    
    .pep-precio-caja del,
    .pep-precio-caja del .amount {
        font-size: 18px;
    }
    
    .pep-tab-link {
        padding: 10px 5px;
        font-size: 13px;
    }
    
    .pep-btn {
        font-size: 15px;
        padding: 12px 10px;
    }
}

