/* ==============================> PLANTILLA DE PRODUCTO */

.wsp-producto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    text-decoration: none;
    border-radius: 25px;
    transition: .4s all ease-in-out;
    max-width: max-content;
}

.wsp-producto i {
    font-size: 18px;
}

.wsp-producto:hover {
    transform: scale(1.02);
    color: #fff;
}

.wd-single-price .price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
}

.single-product form.cart {
    flex-wrap: nowrap;
}

.single-product .elementor-widget-wd_single_product_content:before {
    content: "Descripción de producto";
    color: #242424;
    font-size: 22px;
    line-height: 24px;
    font-weight: 600;
    border-bottom: 1px solid #DDDDDD;
    padding-bottom: 10px;
    margin-bottom: 12px;
    display: block;
}

/* ==============================> "TABLA PRESENTACIONES" */

.presentacion-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.presentacion-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

/* --- ESTILOS DE ESCRITORIO (Desktop) --- */
.presentacion-table th,
.presentacion-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e1e1e1;
    vertical-align: middle;
}

.presentacion-table th {
    background-color: var(--e-global-color-primary, #008000);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.presentacion-table td.col-producto-merged {
    background-color: #fff;
    font-weight: 700;
    color: var(--e-global-color-primary, #008000);
    text-align: center;
    border-right: 2px solid #e1e1e1;
}

.presentacion-table tbody tr:nth-child(even) td:not(.col-producto-merged) {
    background-color: #f9f9f9;
}

.presentacion-table tbody tr:hover td:not(.col-producto-merged) {
    background-color: #f0f0f0;
    transition: background-color 0.2s ease;
}

small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-style: italic;
}


@media screen and (max-width: 768px) {

    .presentacion-table-wrapper {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .presentacion-table thead {
        display: none;
    }

    .presentacion-table,
    .presentacion-table tbody,
    .presentacion-table tr,
    .presentacion-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .presentacion-table tr {
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .presentacion-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
        min-height: 45px;
    }

    .presentacion-table td:last-child {
        border-bottom: none;
    }

    .presentacion-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #555;
        text-transform: uppercase;
        font-size: 11px;
        text-align: left;
        flex: 0 0 45%;
        padding-right: 10px;
    }

    .presentacion-table td.col-producto-merged {
        display: block;
        background-color: var(--e-global-color-primary, #008000);
        color: #fff;
        text-align: center;
        padding: 12px;
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .presentacion-table td.col-producto-merged::before {
        display: none;
    }

    .presentacion-table tbody tr:nth-child(even) td:not(.col-producto-merged) {
        background-color: #fff;
    }
}

/* ==============================> ESTILOS ACORDEÓN PRODUCTOS */

.acordeon-pro-contenedor {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-top: 1px solid #e0e0e0;
}

/* -> ITEM INDIVIDUAL */
.acordeon-pro-item {
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

/* -> BOTÓN TRIGGER */
.acordeon-pro-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    /* Fix iOs */
}

.acordeon-pro-trigger:hover {
    background-color: #f9f9f9;
}

.acordeon-pro-item.activo .acordeon-pro-trigger {
    background-color: #f5f5f5;
}

/* -> TEXTOS */
.acordeon-pro-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.acordeon-pro-item.activo .acordeon-pro-titulo {
    color: var(--e-global-color-primary);
}

/* -> ICONO (+ / -) */
.acordeon-pro-icono {
    position: relative;
    width: 12px;
    height: 12px;
    margin-left: 10px;
}

.acordeon-pro-icono::before,
.acordeon-pro-icono::after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.acordeon-pro-icono::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

.acordeon-pro-icono::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

.acordeon-pro-item.activo .acordeon-pro-icono::before,
.acordeon-pro-item.activo .acordeon-pro-icono::after {
    background-color: var(--e-global-color-primary);
}

.acordeon-pro-item.activo .acordeon-pro-icono::after {
    transform: rotate(90deg);
    /* Convierte el + en - visualmente al rotar la barra vertical */
}

/* -> CONTENIDOS */
.acordeon-pro-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    /* Animación suave compatible con iOs */
    background-color: #fff;
}

.acordeon-pro-inner {
    padding: 20px 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* -> RESPONSIVE */
@media screen and (max-width: 768px) {
    .acordeon-pro-trigger {
        padding: 12px 5px;
    }

    .acordeon-pro-titulo {
        font-size: 15px;
    }

    .acordeon-pro-inner {
        padding: 15px 5px;
        font-size: 14px;
    }
}

/* ==============================> ESTILOS SHORTCODE [whatsapp-sinprecio] */

.wa-sinprecio-wrapper {
    display: block;
    width: 100%;
    margin: 15px 0;
    clear: both;
}

.wa-sinprecio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--e-global-color-primary);
    /* Color global Elementor */
    color: #ffffff !important;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    /* Tamaño solicitado en px */
    line-height: 1.2;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.wa-sinprecio-btn:hover {
    background-color: #128c7e;
    /* Verde oscuro WhatsApp */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wa-sinprecio-btn i {
    font-size: 20px;
}

/* Responsive: 768px */
@media (max-width: 768px) {
    .wa-sinprecio-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 15px;
    }
}