/* ========================================
   VENSET CATALOG - ESTILOS PRINCIPALES
   ======================================== */

/* Especificaciones Técnicas */
.venset-specifications .shop_attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.venset-specifications .shop_attributes th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    width: 40%;
}

.venset-specifications .shop_attributes td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.venset-specifications .shop_attributes tr:hover {
    background: #f8f9fa;
}

/* Tabla de Rendimiento */
.venset-performance-table {
    margin: 20px 0;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 1000px;
}

.performance-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.performance-table th {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 600;
}

.performance-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.performance-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.performance-table tbody tr:hover {
    background: #e7f1ff;
}

.performance-notes {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

.performance-notes p {
    margin: 5px 0;
    font-size: 14px;
}

/* Configurador de Punto de Operación */
.venset-configurator {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.venset-configurator h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 25px;
}

.calculator-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.input-group input,
.input-group select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.input-with-unit {
    display: flex;
    gap: 8px;
}

.input-with-unit input {
    flex: 1;
}

.input-with-unit select {
    width: 100px;
}

.calculator-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Resultados del Cálculo */
.calculation-results {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calculation-results h4 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.result-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.result-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.result-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.result-alert {
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.result-alert.optimal {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.result-alert.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.result-alert.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Botón de Cotización */
.venset-quote-button {
    margin-top: 15px;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.venset-quote-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Modal de Cotización */
.venset-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 0;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    margin: 0;
    border-radius: 8px 8px 0 0;
}

.close-modal {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #f1f1f1;
}

.quote-form {
    padding: 30px;
}

.quote-form h4 {
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    font-size: 18px;
}

.quote-form h4:first-of-type {
    margin-top: 0;
}

.form-row {
    margin-bottom: 15px;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quote-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.quote-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#selected-configuration {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

#selected-configuration p {
    margin: 5px 0;
    font-size: 14px;
}

#selected-configuration strong {
    color: #667eea;
}

/* Dimensiones */
.venset-dimensions {
    padding: 20px;
}

.dimension-drawing {
    max-width: 100%;
    height: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row.two-cols {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .performance-table {
        font-size: 11px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 6px 4px;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
}