/* ===================================
   Industrial List Layout (Besa Style)
   =================================== */

.products-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
    /* Mucho espacio entre productos */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.product-row {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centrar contenido horizontalmente */
    gap: var(--spacing-3xl);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-row:last-child {
    border-bottom: none;
}

/* Alternancia: Pares tienen el texto a la derecha, Impares a la izquierda (o viceversa según se ajuste) */
/* Por defecto: Visual Izq, Texto Der */
.product-row:nth-child(even) {
    flex-direction: row-reverse;
}

.product-visual {
    width: 50%;
    /* Forzar mitad exacta */
    min-width: 300px;
    position: relative;
    display: flex;
    /* Asegurar centrado interno */
    justify-content: center;
    align-items: center;
}

.product-visual .product-3d {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Ajustes al viewer en este modo */
.product-visual model-viewer {
    width: 100%;
    height: 650px;
    background-color: transparent;
    --poster-color: transparent;
}

.product-visual img {
    width: 80%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.product-visual img:hover {
    transform: scale(1.05);
}

.product-content {
    width: 50%;
    /* Forzar mitad exacta */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.industrial-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: var(--spacing-xs);
}

.industrial-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
}

.specs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.spec-row {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 8px;
}

.spec-label {
    font-weight: 700;
    color: #003785;
    /* Azul Vayremex */
    min-width: 140px;
}

.spec-value {
    color: var(--text-primary);
}

/* Barra de Presión Visual */
.pressure-indicator {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.pressure-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.pressure-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.pressure-bar {
    height: 100%;
    background: linear-gradient(90deg, #009929 0%, #003785 100%);
    border-radius: 3px;
}

.pressure-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.industrial-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
    /* Permitir que los botones bajen si no caben */
}

/* Responsive */
@media (max-width: 968px) {
    .product-row {
        flex-direction: column !important;
        /* Siempre columna en móvil */
        gap: var(--spacing-lg);
        text-align: left;
        /* Alineación a la izquierda */
        padding: var(--spacing-lg) 0;
    }

    /* En móvil, desactivamos el efecto even/odd para que siempre sea imagen arriba, texto abajo */
    .product-row:nth-child(even) {
        flex-direction: column !important;
    }

    .product-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .product-visual .product-3d {
        width: 100%;
        /* Importantísimo para que no colapse dentro del flex */
        display: flex;
        justify-content: center;
    }

    .product-visual model-viewer {
        height: 400px;
        /* Un poco más chico en móvil */
        width: 100%;
        /* Asegurar ancho completo */
    }

    .product-visual img {
        max-height: 350px;
    }

    .product-content {
        align-items: flex-start;
        /* Alinear todo a la izquierda */
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .spec-row {
        justify-content: flex-start;
        /* Alinear items de la lista a la izquierda */
        text-align: left;
    }

    .industrial-title {
        font-size: 2rem;
        text-align: left;
    }

    .industrial-subtitle {
        text-align: left;
    }

    .industrial-actions {
        justify-content: flex-start;
    }
}

/* Nuevos Estilos para Barras Técnicas (Presión y Temperatura) */
.tech-bar-group {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: left;
    /* Asegurar alineación izquierda */
}

.tech-bar-item {
    width: 100%;
}

.tech-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.tech-bar-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.tech-bar-value {
    font-weight: 700;
    color: var(--primary-color);
}

.tech-bar-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.tech-bar-fill {
    height: 100%;
    border-radius: 3px;
    display: block;
    /* Asegurar visibilidad */
}

.tech-bar-fill.bar-pressure {
    background-color: #009929;
    /* Fallback */
    background: linear-gradient(90deg, #009929 0%, #004d40 100%);
}

.tech-bar-fill.bar-temp {
    background-color: #ff9800;
    /* Fallback */
    background: linear-gradient(90deg, #ff9800 0%, #bf360c 100%);
}

/* Ajustes Mobile Mejorados para Barras Técnicas */
@media (max-width: 480px) {
    .product-content {
        padding-right: 5px;
    }

    .pressure-indicator {
        width: 100%;
        max-width: 100%;
        margin-top: 15px !important;
    }

    .pressure-track {
        width: 100%;
    }

    .pressure-range {
        width: 100%;
        font-size: 0.85rem;
        margin-top: 6px;
    }

    .industrial-title {
        font-size: 1.8rem;
    }
}

/* FIX FINAL DE ANCHO */
@media (max-width: 968px) {
    .pressure-indicator {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }
}