/* ==========================================================================
   [gd_producto_pestanas] — pestañas de la ficha de producto

   Medidas del mockup 02-Single (canvas 1366 @3x):
     pestañas  Roboto 400 18px, repartidas a todo el ancho
               activa #0C0C0C, resto #9F9F9F
     texto     Roboto 400 15px / 1.3 #0C0C0C, 40px bajo las pestañas
   El fondo degradado lo pone el contenedor de Elementor.

   El CSS del tema estiliza todos los <button> con !important, así que las
   pestañas van prefijadas con .gd-pestanas y con !important donde choca.
   ========================================================================== */

.gd-pestanas {
    font-family: "Roboto", sans-serif;
    color: #0C0C0C;
}

/* --- Pestañas ------------------------------------------------------------- */
.gd-pestanas .gd-pestanas__nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 40px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gd-pestanas .gd-pestanas__nav::-webkit-scrollbar {
    display: none;
}

.gd-pestanas .gd-pestanas__tab {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 4px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #9F9F9F !important;
    font-family: "Roboto", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease;
}

.gd-pestanas .gd-pestanas__tab:hover {
    color: #EE8105 !important;
}

.gd-pestanas .gd-pestanas__tab.is-activa {
    color: #0C0C0C !important;
}

.gd-pestanas .gd-pestanas__tab:focus-visible {
    outline: 2px solid #EE8105 !important;
    outline-offset: 2px;
}

/* --- Paneles -------------------------------------------------------------- */
.gd-pestanas .gd-pestanas__panel {
    font-size: 15px;
    line-height: 1.3;
}

.gd-pestanas .gd-pestanas__panel[hidden] {
    display: none !important;
}

.gd-pestanas .gd-pestanas__panel:focus {
    outline: none;
}

.gd-pestanas .gd-pestanas__panel p {
    margin: 0 0 1.3em;
}

.gd-pestanas .gd-pestanas__panel > :last-child,
.gd-pestanas .gd-pestanas__panel p:last-child {
    margin-bottom: 0;
}

.gd-pestanas .gd-pestanas__vacia {
    color: #9F9F9F;
}

/* Información adicional (tabla de WooCommerce). */
.gd-pestanas .woocommerce-product-attributes {
    width: 100%;
    margin: 0;
    border: 0 !important;
    border-collapse: collapse;
}

.gd-pestanas .woocommerce-product-attributes th,
.gd-pestanas .woocommerce-product-attributes td {
    padding: 12px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #E5E5E5 !important;
    background: transparent !important;
    text-align: left;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.3;
}

.gd-pestanas .woocommerce-product-attributes th {
    width: 220px;
    padding-right: 24px !important;
    font-family: "Mina", sans-serif;
    font-weight: 700;
}

.gd-pestanas .woocommerce-product-attributes td p {
    margin: 0;
}

/* Certificaciones. */
.gd-pestanas .gd-pestanas__certificaciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gd-pestanas .gd-pestanas__certificacion {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid #0C0C0C;
    border-radius: 10px;
    background: #FFFFFF;
}

.gd-pestanas .gd-pestanas__certificacion-nombre {
    font-family: "Mina", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.gd-pestanas .gd-pestanas__certificacion-desc {
    font-size: 14px;
    color: #555555;
}

/* Reseñas: el título de WooCommerce sobra, la pestaña ya lo dice. */
.gd-pestanas #reviews .woocommerce-Reviews-title {
    display: none;
}

.gd-pestanas #reviews .commentlist {
    margin: 0 0 24px;
    padding: 0;
}

.gd-pestanas #reviews .comment-reply-title {
    display: block;
    margin: 0 0 12px;
    font-family: "Mina", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

/* --- Tablet / móvil -------------------------------------------------------- */
@media (max-width: 1024px) {
    .gd-pestanas .gd-pestanas__nav {
        justify-content: flex-start;
        gap: 28px;
    }
}

/* --- Acordeón (solo móvil) -------------------------------------------------
   Mockup 02-Tienda Single Responsive (360 @3x):
     fila      54px de alto, separador 1px #D9D9D9 entre filas
     icono     "+" / "−" #EE8105 de 14px, 15px de sangría, 16px hasta el título
     título    Mina 700 16px #0C0C0C
     texto     Roboto 12px / 1.2
   -------------------------------------------------------------------------- */
.gd-pestanas .gd-pestanas__acordeon {
    display: none !important;
}

@media (max-width: 767px) {
    .gd-pestanas .gd-pestanas__nav {
        display: none;
    }

    .gd-pestanas .gd-pestanas__acordeon {
        display: flex !important;
        align-items: center;
        gap: 16px;
        width: 100% !important;
        min-height: 54px;
        margin: 0 !important;
        padding: 0 0 0 15px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #0C0C0C !important;
        font-family: "Mina", sans-serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-align: left !important;
        text-transform: none !important;
        white-space: normal;
        cursor: pointer;
    }

    .gd-pestanas .gd-pestanas__panel + .gd-pestanas__acordeon {
        border-top: 1px solid #D9D9D9 !important;
    }

    .gd-pestanas .gd-pestanas__acordeon:focus-visible {
        outline: 2px solid #EE8105 !important;
        outline-offset: -2px;
    }

    /* "+" dibujado con dos barras; la vertical se pliega al abrir ("−"). */
    .gd-pestanas .gd-pestanas__icono {
        position: relative;
        flex: 0 0 14px;
        width: 14px;
        height: 14px;
    }

    .gd-pestanas .gd-pestanas__icono::before,
    .gd-pestanas .gd-pestanas__icono::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 14px;
        height: 2px;
        margin-top: -1px;
        border-radius: 1px;
        background: #EE8105;
        transition: transform .2s ease;
    }

    .gd-pestanas .gd-pestanas__icono::after {
        transform: rotate(90deg);
    }

    .gd-pestanas .gd-pestanas__acordeon.is-activa .gd-pestanas__icono::after {
        transform: rotate(0deg);
    }

    .gd-pestanas .gd-pestanas__panel {
        padding: 12px 0 32px;
    }

    .gd-pestanas .gd-pestanas__panel,
    .gd-pestanas .woocommerce-product-attributes th,
    .gd-pestanas .woocommerce-product-attributes td {
        font-size: 12px;
        line-height: 1.2;
    }

    .gd-pestanas .woocommerce-product-attributes th {
        width: 40%;
    }
}
