
/* ========================================= */
/* CENTRO DE HERRAMIENTAS INTELIGENTES       */
/* ========================================= */
.tools-section {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, #0b1a30, #050b14); /* Usando valores directos de variables para seguridad */
}

.tools-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.tool-tabs {
    display: flex;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-tab {
    flex: 1;
    padding: 1.5rem;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tool-tab:hover {
    color: #00a8ff;
    background: rgba(0, 168, 255, 0.05);
}

.tool-tab.active {
    color: #00a8ff;
    background: rgba(0, 168, 255, 0.1);
    border-bottom-color: #00a8ff;
}

.tool-panel {
    padding: 3rem;
    animation: toolFadeIn 0.5s ease-out;
}

@keyframes toolFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* BTU Calculator Specifics */
.btu-result-box {
    background: rgba(0, 168, 255, 0.1);
    border: 2px solid #00a8ff;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
}

.btu-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

/* Savings Simulator Specifics */
.savings-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(0, 168, 255, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2rem;
    border-radius: 16px;
}

.saving-item {
    margin-bottom: 1.5rem;
}

.saving-item:last-child { margin-bottom: 0; }

.saving-label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.saving-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #4ade80; /* Green success */
}

/* Fault Diagnosis Specifics */
.fault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.fault-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    color: #f8fafc;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.fault-btn:hover {
    border-color: #00a8ff;
    background: rgba(0, 168, 255, 0.1);
    transform: translateY(-3px);
}

.fault-btn .icon { font-size: 2rem; }

/* Modal override sutil */
#faultDialog .modal-content {
    max-width: 500px !important;
}

#faultSolution {
    margin: 1.5rem 0;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .tool-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tool-tab { padding: 1rem 0.5rem; font-size: 0.8rem; }
    .tool-panel { padding: 1.5rem; }
}
