/* 
Archivo: estilos-pagina-producto.css
Descripción: Estilos para solamente "Página interna: Producto".
Autor: Nexbu
Fecha: 11 Julio 2025
*/
/*** Página producto ***/
/* Contenido */
section.producto-detalle {
    display: flex;
    justify-content: space-between;
    margin: 80px 0;
}
section.producto-tabs {
    margin-bottom: 80px;
}
.producto-galeria, .producto-info {
    width: 46%;
}
.producto-info {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 26px;
}
/* Navegación */
.producto-galeria .owl-nav {
    top: 53%;
}
button.owl-prev {
    transform: rotate(180deg);
    position: absolute;
    top: -40px;
}
/* Galería */
.producto-galeria .owl-item > div {
   padding: 9px;
}
/* Miniaturas */
.galeria-miniaturas {
    max-width: 480px;
}
.miniatura {
    border-radius: 12px!important;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.10)!important;
    cursor: pointer;
    height: 140px!important;
    padding: 16px;
    object-fit: contain;
}
.miniatura, .miniatura:hover {
    cursor: pointer;
    opacity: 0.4!important;
    transition: .4s;
}
.miniatura.seleccionado {
    opacity: 1!important;
    transition: .4s;
}
.galeria-miniaturas .owl-stage {
    touch-action: none!important;
    -ms-touch-action: none!important;
}
/* Zoom */
.galeria-principal {
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.10);
    display: flex;
    justify-content: center;
    height: 550px;
    margin: 0 8px 20px;
    overflow: hidden;
}
img#imagen-principal {
    --x: 50%;
    --y: 50%;
    --zoom: 1;
    transform: scale(var(--zoom));
    transform-origin: var(--x) var(--y);
    clip-path: inset(
        calc((1 - 1/var(--zoom)) * (var(--y)))
        calc((1 - 1/var(--zoom)) * (100% - var(--x)))
        calc((1 - 1/var(--zoom)) * (100% - var(--y)))
        calc((1 - 1/var(--zoom)) * (var(--x)))
    );
    cursor: zoom-in;
    height: 550px;
    max-height: 550px;

    width: 100%;
    /* Agregado para compatibilidad con imagenes con fondo a color */
    object-fit: contain;
    padding: 40px;
}
img#imagen-principal:hover {
    --zoom: 2;
}
/* lightbox */
.lightbox {
    display: none;
}
/* Tag categoría */
span.producto-categoria {
    background-color: var(--e-global-color-905068f);
    border-radius: 50px;
    font-size: var( --e-global-typography-5f8873a-font-size );
    padding: 6px 8px;
}
h1 {
    font-size: var(--e-global-typography-secondary-font-size)!important;
    line-height: var(--e-global-typography-secondary-line-height)!important;
    color: var(--e-global-color-c3c1070)!important;
}
.producto-info h2 {
    font-size: var(--e-global-typography-text-font-size)!important;
    font-weight: var(--e-global-typography-text-font-weight)!important;
    color: var(--e-global-color-99fe8c2)!important;
    margin: 0;
}
/* Marca */
h2.marca-producto {
    margin-bottom: 16px!important;
}
.marca-producto img {
    margin: 0 0 -1px 8px;
    max-height: 14px;
}
/* Ul */
ul {
    padding-left: 0;
}
ul li {
    list-style-type: none;
}
/* Listado */
ul.producto-checks li {
    align-items: center;
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}
ul.producto-checks li:last-child {
    margin-bottom: 0;
}
/* Colores */
.select-color {
    align-items: center;
    display: flex;
    gap: 12px;
}
.custom-select-wrapper {
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.10);
    border-radius: 6px;
    display: flex;
    padding: 0 0 0 10px;
}
select#color-selector {
    background-color: #fff!important;
    border-width: 0;
    padding-left: 10px;
    padding-right: 30px;
}
.color-activa select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none!important;
}
.select-color .color-disponible, .select-color.color-activa .colores-disponibles {
    display: none;
}
.select-color.color-activa .color-disponible {
    display: block;
}
/* Recomendado */
ul.recomendado {
    align-items: flex-start;
    display: flex;
    gap: 26px;
    margin-top: 16px;
}
ul.recomendado li {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
ul.recomendado img {
    margin: auto;
    width: 36px;
}
ul.recomendado span {
    color: var(--e-global-color-99fe8c2)!important;
    font-size: var( --e-global-typography-3cebcb3-font-size )!important;
    text-align: center;
    max-width: 100px;
}
/* Pestañas */
.tabs-nav {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}
.tabs-nav button {
    background-color: transparent!important;
    border-radius: 0!important;
    border: none!important;
    flex: 1;
    font-weight: 400!important;
    padding: 0!important;
    color: var(--e-global-color-99fe8c2)!important;
    position: relative;
    transition: color 0.2s ease;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}
.tabs-nav button::after {
    background-color: var(--e-global-color-99fe8c2);
    content: "";
    display: block;
    height: 1px;
    margin-top: 15px;
    transition: color 0.2s ease;
}
.tabs-nav button.active, .tabs-nav button:hover {
    color: var( --e-global-color-primary )!important;
    font-weight: 600!important;
}
.tabs-nav button.active::after, .tabs-nav button:hover:after {
    background-color: var( --e-global-color-primary )!important;
    height: 2px!important;
}
.tab-content {
    display: none;
}
.tab-content.active {
    align-items: center;
    display: flex;
    gap: 50px;
    padding: 0 50px;
}
.content-interno {
    flex: 1 1 100%;
    max-width: 100%;
}
.tab-content.has-img .content-interno {
    flex: 1 1 50%;
    max-width: 50%;
}
.tab-content img {
    border-radius: 12px!important;
    height: 300px!important;
    object-fit: cover;
    flex: 1 1 100%;
    max-width: 100%;
}
.tab-content.has-content img {
    flex: 1 1 50%!important;
    max-width: 50%!important;
}
.tab-content h3, .tab-content p {
    color: var(--e-global-color-c3c1070)!important;
    font-size: var( --e-global-typography-3cebcb3-font-size )!important;
    margin: 0!important;
}
.tab-content h3 {
    margin-bottom: 15px!important;
}
/* Tabla */
table td, table th {
    border-width: 0!important;
    color: var( --e-global-color-secondary )!important;
}
table th {
    font-weight: 600;
    text-align: left;
    width: 350px!important;
}
table tbody tr:hover>td, table tbody tr:hover>th  {
    background-color: transparent!important;
}
table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: var(--e-global-color-905068f)!important;
}
/* Descarga */
div#documentacion {
    flex-direction: column;
}
.bloque-doc {
    width: 100%;
}
section.producto-tabs h2 {
    background-color: var(--e-global-color-905068f)!important;
    font-size: var(--e-global-typography-3cebcb3-font-size)!important;
    padding: 12px;
}
ul.listado-descarga li {
    display: flex;
    font-size: var(--e-global-typography-3cebcb3-font-size)!important;
    justify-content: space-between;
    padding: 10px 0;
}
ul.listado-descarga a {
    color: var( --e-global-color-secondary )!important;
    display: flex;
    gap: 5px;
    transition: .4s;
}
ul.listado-descarga a:hover {
    opacity: 0.5;
    transition: .4s;
}
ul.listado-descarga a:before {
    content: url(/wp-content/uploads/2025/07/descargar.svg);
}
/*** Fin: Página producto ***/

/*** Responsive ***/
/* Pórtatil */
@media only screen and (max-width: 1366px) {
    /* Galeria */
    .galeria-miniaturas {
        max-width: 90%;
    }
    .miniatura {
        border-radius: 8px!important;
        height: 120px!important;
    }
    /* Check */
    ul.producto-checks li {
        align-items: flex-start;
        gap: 5px;
    }
    ul.producto-checks img {
        max-width: 18px;
    }
}
/* Tablet */
@media only screen and (max-width: 1024px) {
    /* Producto */
    .producto-galeria, .producto-info {
        width: 48%;
    }
    .producto-info {
        gap: 20px;
    }
    section.producto-detalle {
        margin: 50px 0;
    }
    /* Galeria */
    .galeria-principal, img#imagen-principal {
        height: 400px;
    }
    /* Tabla */
    .tab-content.active {
        gap: 30px;
        padding: 0;
    }
    /* Productos similares */
    .productos-grilla.productos-similares {
        grid-template-columns: repeat(4, 1fr);
    }
    .productos-similares.mostrar-5 .producto-item:nth-child(5) {
        display: none;
    }
}
/* Mobile */
@media only screen and (max-width: 667px) {
    /* Producto */
    section.producto-detalle {
        flex-direction: column;
        gap: 20px;
        margin: 30px 0 50px;
    }
    .producto-galeria, .producto-info {
        width: 100%;
    }
    /* Galería */
    .producto-galeria {
        margin: 0 -8px;
    }
    .galeria-miniaturas {
        max-width: 88%;
    }
    .galeria-principal, img#imagen-principal {
        height: auto;
    }
    .galeria-principal {
        margin: 0 0 10px 8px;
    }
    .miniatura {
        height: 140px!important;
    }
    img#imagen-principal {
        transform: none!important;
        clip-path: none!important;
        cursor: pointer;
    }
    img#imagen-principal:hover {
        --zoom: 1!important;
    }
    /* lightbox */
    .lightbox {
        align-items: center;
        background-color: #00000021;
        height: 100%;
        justify-content: center;
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 99999;
    }
    .lightbox.active {
        display: flex;
    }
    .lightbox-content {
        background: #fff;
        border-radius: 10px!important;
        max-width: 90%!important;
        max-height: 80%;
        min-height: 450px;
        object-fit: cover;
    }
    .lightbox-close {
        color: #fff;
        cursor: pointer;
        font-size: 32px;
        position: absolute;
        right: 5%;
        top: 10%;
    }
    /* Marca */
    h2.marca-producto img {
        margin-left: 4px;
        max-height: 16px;
        max-width: 74px!important;
    }
    /* Check */
    ul.producto-checks img {
        max-width: 16px;
    }
    /* Recomendado */
    ul.recomendado {
        gap: 15px;
    }
    ul.recomendado li {
        max-width: 90px;
    }
    ul.recomendado img {
        width: 26px;
    }
    /* Tabla */
    table th, table td {
        width: 50%;
    }
    table td {
        text-align: right;
    }
    .tabs-nav {
        margin-bottom: 30px;
    }
    .tab-content.active {
        gap: 20px;
        padding: 0;
        flex-direction: column;
    }
    .tab-content img {
        max-height: 140px;
        min-width: 100%!important;
    }
    .tab-content.has-img .content-interno {
        max-width: 100%;
    }
    .content-interno {
        width: 100%;
    }
    ul.listado-descarga a:before {
        margin-top: -3px;
        transform: scale(0.6);
    }
    /* Productos similares */
    .productos-grilla.productos-similares {
        grid-template-columns: repeat(2, 2fr);
    }
}
/*** Fin: Responsive ***/