﻿/* ===== FRAQX Dark Theme (solo presentación) ===== */
:root {
    --fx-bg: #0c0f16;
    --fx-bg-elev: #121622;
    --fx-text: #e8edf6;
    --fx-muted: #9aa6bd;
    --fx-brand: #7c5cff;
    --fx-brand-600: #6a50f0;
    --fx-accent: #22d3ee;
    --fx-border: #23273a;
    --fx-shadow: 0 18px 50px rgba(0,0,0,.35);
    --fx-radius: 16px;
    --fx-sans: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Segoe UI Emoji","Apple Color Emoji";
    --fx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--fx-sans);
    color: var(--fx-text);
    background: radial-gradient(1200px 500px at 20% -20%, rgba(124,92,255,.14), transparent 60%), radial-gradient(900px 400px at 110% 10%, rgba(34,211,238,.10), transparent 60%), var(--fx-bg);
}

/* Layout */
.fx-wrap {
    max-width: 1120px;
    margin: 28px auto 56px;
    padding: 0 20px
}

.fx-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px
}

.fx-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.fx-logo {
    width: 40px;
    aspect-ratio: 1;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,var(--fx-brand),var(--fx-accent));
    color: #fff;
    font-weight: 800;
    box-shadow: var(--fx-shadow)
}

.fx-title {
    margin: 0;
    font-size: clamp(20px,2.6vw,30px)
}

.fx-sub {
    margin: 0;
    font-size: 13px;
    color: var(--fx-muted)
}

.fx-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--fx-muted);
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--fx-bg-elev)
}

.fx-grid {
    display: grid;
    grid-template-columns: 35% 65%; /* ⬅️ entrada | resultado  */
    gap: 18px;
}


@media (max-width:960px) {
    .fx-grid {
        grid-template-columns: 1fr
    }
}

/* Cards */
.fx-card {
    background: var(--fx-bg-elev);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    box-shadow: var(--fx-shadow)
}

.fx-card-h {
    padding: 18px 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between
}

    .fx-card-h h2 {
        margin: 0;
        font-size: 16px
    }

.fx-card-b {
    padding: 18px
}

/* Inputs */
.row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

input, select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--fx-border);
    background: #0f1320;
    color: var(--fx-text);
    outline: none;
}

    input::placeholder {
        color: #8e98ad
    }

.btn {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--fx-brand-600);
    background: var(--fx-brand);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(124,92,255,.28)
}

    .btn:disabled {
        opacity: .7;
        cursor: not-allowed
    }

/* File input nativo visible (sin botón extra) */
input[type="file"]#csv {
    border: 1px dashed var(--fx-border);
    background: #0f1320;
    color: var(--fx-muted);
}

/* Hints */
.fx-hint {
    color: var(--fx-muted);
    font-size: 13px
}

/* Resultado / Plot / Tabla */
#plot {
    display: none;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 14px;
    border: 1px solid var(--fx-border);
    background: #0f1320
}

.fx-vis {
    min-height: 420px; /* más alto el área donde aparece la gráfica */
    border: 1px dashed var(--fx-border);
    border-radius: 14px;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.02), rgba(255,255,255,.02) 12px, rgba(0,0,0,.05) 12px, rgba(0,0,0,.05) 24px);
    display: grid;
    place-items: center;
    color: var(--fx-muted)
}

pre#table {
    background: #0f1320;
    border: 1px solid var(--fx-border);
    border-radius: 12px;
    padding: 12px;
    max-height: 320px;
    overflow: auto;
    color: #9aa6bd;
    font-family: var(--fx-mono)
}

#download {
    display: none;
    border: 1px solid var(--fx-border);
    color: var(--fx-text);
    background: transparent;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none
}

/* Footer */
footer#footer-legal {
    background: var(--fx-bg-elev);
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    padding: 18px;
    color: var(--fx-text);
    margin-top: 24px;
    line-height: 1.6
}

    footer#footer-legal h2 {
        color: var(--fx-text);
        margin: 0 0 8px 0;
        font-size: 1em
    }
/* === Banner flotante legal (Forecast Demo) === */
#legal-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 360px;
    background: rgba(0,0,0,0.88);
    color: #fff;
    font-size: 0.85em;
    line-height: 1.45;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
}

    #legal-banner h3 {
        margin: 0 0 6px 0;
        font-size: 0.95em;
        color: #fff;
    }

    #legal-banner p {
        margin: 0 0 10px 0;
    }

    #legal-banner .actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 6px;
    }

    #legal-banner button {
        background: #ffcc00;
        border: none;
        color: #000;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
    }

    #legal-banner a {
        color: #fff;
        text-decoration: underline;
    }

@media (max-width: 480px) {
    #legal-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* Footer institucional */
.fx-footer {
    text-align: center;
    color: var(--fx-muted);
    font-size: 13px;
    /* antes: margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--fx-border); */
    margin-top: 4px; /* ⬅︎ reduce el “salto” */
    padding-top: 0; /* ⬅︎ quita relleno extra */
    border-top: none; /* ⬅︎ elimina la línea separadora */
}

/* === FRAQX Logo Styling === */
.fx-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    text-decoration: none;
}

.fx-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background-color: transparent;
    transition: transform 0.3s ease, filter 0.3s ease;
}

    .fx-logo-img:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.3));
    }

/* ---- Ampliar "Cómo usarlo" al ancho completo ---- */
#howto {
    grid-column: 1 / -1; /* hace que el card ocupe todas las columnas */
}

#howto .fx-card-b {
    padding-top: 8px; /* reduce el espacio inferior */
    margin-top: 0; /* evita separación extra si la tuviera */
    padding-bottom: 8px; /* reduce el espacio inferior */
    margin-bottom: 0; /* evita separación extra si la tuviera */
}
.fx-sub-alt {
    margin-top: 10px;
    font-size: 0.95em;
    color: #bbb; /* un tono gris más suave */
    line-height: 1.6;
}




