/* Estilos propios de herramientas.html (antes estaban dentro de la página) */
:root {
    --primary: #c5a059;
    --dark-bg: #0a0b10;
    --card-bg: #16181d;
    --text: #e0e0e0;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--dark-bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.content-bg {
    position: relative;
    padding-top: 95px;
    padding-bottom: 70px;
    min-height: 85vh;
    z-index: 1;
}

.content-bg::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(10, 11, 16, 0.88), rgba(10, 11, 16, 0.96)), url('/img/ui/fondo.jpg') no-repeat center center/cover;
    z-index: -1;
}

.tool-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

.calc-card {
    background: rgba(18, 22, 32, 0.94);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.85), 0 0 35px rgba(197, 160, 89, 0.15);
    backdrop-filter: blur(14px);
    animation: fadeIn 0.3s ease;
}

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

.calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
}

@media (max-width: 950px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .calc-card {
        padding: 22px 18px;
    }
}

.calc-section-title {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-input-box {
    margin-bottom: 16px;
}

.calc-input-box label {
    display: block;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.calc-input-box select, .calc-input-box input, .calc-input-box textarea {
    width: 100%;
    background: #0d1017;
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.calc-input-box select:focus, .calc-input-box input:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
    background: #111520;
}

.results-panel {
    background: rgba(10, 13, 20, 0.92);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.metric-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.04);
}

.metric-title {
    font-size: 0.88rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
}

.diag-badge {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 15px;
    border-left: 5px solid;
}

.diag-ok {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
    color: #4ade80;
}

.diag-warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
    color: #fbbf24;
}

.diag-err {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #f87171;
}

/* Botones dinámicos de acción con movimiento */
.vf-action-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vf-btn-action-wsp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    border-radius: 10px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    flex: 1;
    min-width: 180px;
}
.vf-btn-action-wsp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.55);
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.vf-btn-action-copy {
    background: linear-gradient(135deg, #c5a059, #b38e44);
    color: #000;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    border-radius: 10px;
    padding: 12px 18px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vf-btn-action-copy:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.55);
    background: linear-gradient(135deg, #facc15, #eab308);
}

.vf-btn-action-print {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}
.vf-btn-action-print:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

@media print {
    nav, footer, .vf-tool-nav, .vf-action-bar, varflo-bot, .varflo-bot-launcher { display: none !important; }
    body, .content-bg { background: #fff !important; color: #000 !important; padding: 0 !important; }
    .content-bg::before { display: none !important; }
    .calc-card { box-shadow: none !important; border: 1px solid #000 !important; background: #fff !important; color: #000 !important; }
    .metric-val, .calc-section-title { color: #000 !important; }
}

