/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 17-may-2023, 9:58:33
    Author     : Usuario
*/
.product-detail-section {
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden; /* Evita scroll horizontal indeseado en móviles */
}

/* --- Galería Izquierda --- */
.main-image-container {
    border-radius: 1rem;
    overflow: hidden;
    background-color: #f8f9fa;
    aspect-ratio: 1 / 1; 
    width: 100%;
}

.main-product-img {
    height: 100%;
}

.thumbnail-box {
    aspect-ratio: 1 / 1;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #adb5bd;
    font-size: 1.5rem;
}

.thumbnail-box:hover, .thumbnail-box.active {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* --- Información Derecha --- */
.category-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888888;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.category-dot {
    width: 6px;
    height: 6px;
    background-color: #cccccc;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.product-ref {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 2.5rem;
}

/* Botones de acción */
.btn-primary-custom, .btn-outline-custom {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom {
    background-color: #395bb2;
    color: #ffffff;
    border: 1px solid #395bb2;
}

.btn-primary-custom:hover {
    background-color: #2b458c;
    border-color: #2b458c;
    color: #ffffff;
}

.btn-outline-custom {
    background-color: #ffffff;
    color: #395bb2;
    border: 1px solid #395bb2;
}

.btn-outline-custom:hover {
    background-color: #f8f9fa;
    color: #2b458c;
}

/* --- Documentación --- */
.doc-section-heading {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.doc-item:first-of-type { border-top: 1px solid #e9ecef; }

.doc-name {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 400;
    padding-right: 1rem; /* Evita que el texto pise el icono en móviles */
}

.doc-download-icon {
    color: #395bb2;
    font-size: 1.1rem;
}

/* =========================================
   MEDIA QUERIES (AJUSTES MÓVILES EXCLUSIVOS)
   ========================================= */
@media (max-width: 767.98px) {
    /* En móviles, los botones ocupan el 100% del ancho para ser fáciles de tocar */
    .action-buttons-container {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-custom, .btn-outline-custom {
        width: 100%;
    }

    /* Reducimos el tamaño de las miniaturas en móviles para que no ocupen tanta pantalla */
    .thumbnail-box {
        font-size: 1.2rem;
    }

    /* Reducimos los márgenes en la parte de la documentación */
    .doc-section-heading {
        margin-top: 2rem;
    }
}
.editorial-section {
    border-top: 1px solid #eaeaea; /* Línea separadora sutil superior */
    padding: 3.5rem 0;
}

/* Títulos de la columna izquierda */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Descripción a doble columna (PC) */
.desc-text {
    font-size: 1rem;
    color: #777777;
    line-height: 1.8;
    column-count: 1; /* Por defecto 1 columna en móvil */
}

/* Cuadrícula de características */
.char-box {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    height: 100%;
}

.char-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.char-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* =========================================
   TABLA DE VARIANTES / PRODUCTOS SIMILARES
   ========================================= */
.variants-table {
    width: 100%;
    margin-bottom: 0;
}

.variants-table th {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888888;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 0.75rem;
    border-top: none;
}

.variants-table td {
    padding: 1.25rem 0.75rem;
    vertical-align: middle;
    color: #555555;
    border-bottom: 1px solid #f2f2f2; /* Borde muy sutil */
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

/* Estado Hover y Activo de la fila */
.variants-table tbody tr {
    cursor: pointer;
}

.variants-table tbody tr:hover td,
.variants-table tbody tr.active-row td {
    background-color: #f8f9fa; /* Fondo gris claro */
    color: #1a1a1a;
    font-weight: 600;
}

/* Círculo estilo Radio Button */
.radio-mock {
    width: 18px;
    height: 18px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* Relleno negro cuando la fila está activa */
.active-row .radio-mock {
    border: 5px solid #1a1a1a;
}

/* Cartas móviles para variantes */
.variant-mobile-card {
    border: 1px solid #eaeaea;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
}
.variant-mobile-card.active-card {
    border-color: #1a1a1a;
    background-color: #f8f9fa;
}
.variant-mobile-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f2f2f2;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}
.variant-mobile-row:last-child {
    border-bottom: none;
}
.variant-mobile-label { 
    font-size: 0.65rem; 
    color: #888; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 600; 
}
.variant-mobile-value { 
    color: #1a1a1a; 
    font-weight: 500; 
}