/* /tradingapp/assets/css/app.css */
/**
 * Ruta: /tradingapp/assets/css/app.css
 * Para qué sirve:
 * - Estilo visual principal del sistema.
 * - Define una estética moderna, seria y profesional tipo fintech.
 * - Incluye responsive design para escritorio, tablet y móvil.
 * - Base visual para landing, auth, panel cliente y administración.
 * - Corrige visualización global de selects y opciones desplegables.
 */

:root{
    --bg:#07111f;
    --bg-soft:#0d1a2d;
    --bg-card:rgba(15, 26, 45, 0.72);
    --line:rgba(255,255,255,.08);
    --text:#eef4ff;
    --muted:#9fb2cc;
    --primary:#3b82f6;
    --primary-hover:#2563eb;
    --accent:#22c55e;
    --danger:#ef4444;
    --warning:#f59e0b;
    --radius:20px;
    --shadow:0 24px 80px rgba(0,0,0,.35);
    --container:1240px;
    --blur:16px;
    --transition:.25s ease;
    --font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Nuevas variables para formularios */
    --field-bg:rgba(255,255,255,.04);
    --field-bg-hover:rgba(255,255,255,.06);
    --field-border:rgba(255,255,255,.08);
    --field-text:#eef4ff;
    --field-placeholder:#8ea4c0;
    --select-option-bg:#ffffff;
    --select-option-text:#111827;
    --select-option-hover:#e5eefc;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:var(--font);
    background:
        radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 25%),
        radial-gradient(circle at bottom right, rgba(34,197,94,.10), transparent 20%),
        linear-gradient(180deg, #050b15 0%, #07111f 40%, #0a1323 100%);
    color:var(--text);
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

button,
input,
select,
textarea{
    font:inherit;
}

input,
select,
textarea{
    color:var(--field-text);
}

input::placeholder,
textarea::placeholder{
    color:var(--field-placeholder);
    opacity:1;
}

/* ===== CORRECCIÓN GLOBAL DE SELECTS ===== */
select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-color:var(--field-bg);
    color:var(--field-text);
}

select option{
    color:var(--select-option-text);
    background:var(--select-option-bg);
}

select optgroup{
    color:#0f172a;
    background:#dbeafe;
    font-style:normal;
    font-weight:700;
}

select:disabled,
input:disabled,
textarea:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.container{
    width:min(100% - 32px, var(--container));
    margin-inline:auto;
}

.landing-body{
    min-height:100vh;
}

.site-header{
    position:sticky;
    top:0;
    z-index:40;
    backdrop-filter:blur(14px);
    background:rgba(5,11,21,.72);
    border-bottom:1px solid var(--line);
}

.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:80px;
    gap:18px;
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
}

.brand-mark{
    width:48px;
    height:48px;
    border-radius:14px;
    display:grid;
    place-items:center;
    font-weight:800;
    font-size:1.15rem;
    color:#fff;
    background:linear-gradient(135deg, var(--primary), #60a5fa);
    box-shadow:0 8px 24px rgba(59,130,246,.32);
}

.brand-text{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.brand-text strong{
    font-size:1rem;
    letter-spacing:.02em;
}

.brand-text small{
    color:var(--muted);
    font-size:.78rem;
}

.site-nav{
    display:flex;
    align-items:center;
    gap:22px;
}

.site-nav a{
    color:var(--muted);
    font-weight:600;
    transition:var(--transition);
}

.site-nav a:hover{
    color:var(--text);
}

.nav-login{
    padding:10px 16px;
    border:1px solid var(--line);
    border-radius:14px;
    background:rgba(255,255,255,.03);
}

.nav-toggle{
    display:none;
    width:48px;
    height:48px;
    border:none;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.nav-toggle span{
    width:20px;
    height:2px;
    border-radius:2px;
    background:#fff;
}

.hero-section{
    padding:84px 0 56px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.08fr .92fr;
    align-items:center;
    gap:48px;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:8px 14px;
    border-radius:999px;
    border:1px solid rgba(59,130,246,.24);
    background:rgba(59,130,246,.10);
    color:#b7d3ff;
    font-size:.78rem;
    letter-spacing:.08em;
    font-weight:800;
    text-transform:uppercase;
}

.hero-copy h1{
    margin:18px 0 18px;
    font-size:clamp(2.5rem, 5vw, 4.6rem);
    line-height:1.02;
    letter-spacing:-.04em;
}

.hero-text{
    max-width:720px;
    color:var(--muted);
    font-size:1.08rem;
    line-height:1.75;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin:30px 0 28px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:52px;
    padding:0 22px;
    border:none;
    border-radius:16px;
    font-weight:800;
    letter-spacing:.01em;
    cursor:pointer;
    transition:var(--transition);
}

.btn-primary{
    color:#fff;
    background:linear-gradient(135deg, var(--primary), #60a5fa);
    box-shadow:0 16px 34px rgba(59,130,246,.28);
}

.btn-primary:hover{
    transform:translateY(-2px);
    background:linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-secondary{
    color:#fff;
    background:rgba(255,255,255,.05);
    border:1px solid var(--line);
}

.btn-secondary:hover,
.btn-ghost:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,.08);
}

.btn-ghost{
    color:var(--text);
    background:transparent;
    border:1px dashed rgba(255,255,255,.18);
    display:none;
}

.w-full{
    width:100%;
}

.hero-stats{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:14px;
}

.stat-card{
    padding:18px 16px;
    border-radius:18px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.03);
}

.stat-card strong{
    display:block;
    margin-bottom:8px;
    font-size:1rem;
}

.stat-card span{
    color:var(--muted);
    font-size:.92rem;
    line-height:1.5;
}

.hero-visual{
    position:relative;
}

.glass{
    background:var(--bg-card);
    backdrop-filter:blur(var(--blur));
    border:1px solid var(--line);
    box-shadow:var(--shadow);
}

.dashboard-card{
    border-radius:28px;
    overflow:hidden;
    position:relative;
}

.dashboard-top{
    display:flex;
    align-items:center;
    gap:8px;
    padding:18px 20px;
    border-bottom:1px solid var(--line);
    background:rgba(255,255,255,.02);
}

.dot{
    width:11px;
    height:11px;
    border-radius:999px;
}

.dot-red{ background:#f87171; }
.dot-yellow{ background:#fbbf24; }
.dot-green{ background:#34d399; }

.dashboard-content{
    padding:28px;
}

.dashboard-balance small{
    display:block;
    color:var(--muted);
    margin-bottom:8px;
}

.dashboard-balance h3{
    margin:0 0 8px;
    font-size:2.2rem;
    line-height:1;
}

.dashboard-balance span{
    color:var(--muted);
}

.mini-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:14px;
    margin:24px 0;
}

.mini-widget{
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.05);
}

.mini-widget small{
    display:block;
    color:var(--muted);
    margin-bottom:8px;
}

.mini-widget strong{
    font-size:1.05rem;
}

.table-sim{
    display:grid;
    gap:10px;
}

.table-row{
    display:grid;
    grid-template-columns:1fr .8fr .6fr .8fr;
    gap:10px;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    color:#dce8ff;
    font-size:.95rem;
}

.text-profit{ color:#4ade80; }
.text-loss{ color:#f87171; }

.brands-strip{
    padding:18px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    background:rgba(255,255,255,.02);
}

.strip-content{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:28px;
    color:var(--muted);
    font-weight:700;
    text-align:center;
}

.section-block{
    padding:92px 0;
}

.section-dark{
    background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}

.section-head{
    max-width:820px;
    margin-bottom:42px;
}

.section-head.center{
    text-align:center;
    margin-inline:auto;
    margin-bottom:44px;
}

.section-head h2{
    margin:18px 0 14px;
    font-size:clamp(2rem, 3.4vw, 3.2rem);
    line-height:1.1;
    letter-spacing:-.03em;
}

.section-head p{
    margin:0;
    color:var(--muted);
    font-size:1.02rem;
    line-height:1.8;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:18px;
}

.feature-card{
    border-radius:24px;
    padding:28px;
}

.feature-icon{
    width:52px;
    height:52px;
    border-radius:14px;
    display:grid;
    place-items:center;
    margin-bottom:18px;
    background:rgba(59,130,246,.15);
    color:#b7d3ff;
    font-weight:800;
}

.feature-card h3{
    margin:0 0 10px;
    font-size:1.2rem;
}

.feature-card p{
    margin:0;
    color:var(--muted);
    line-height:1.7;
}

.experience-grid{
    display:grid;
    grid-template-columns:1fr .95fr;
    gap:28px;
    align-items:start;
}

.experience-copy h2{
    margin:18px 0 14px;
    font-size:clamp(2rem, 3.4vw, 3.2rem);
    line-height:1.1;
}

.experience-copy p{
    color:var(--muted);
    line-height:1.8;
    margin:0 0 18px;
}

.check-list{
    list-style:none;
    padding:0;
    margin:26px 0 0;
    display:grid;
    gap:14px;
}

.check-list li{
    position:relative;
    padding-left:30px;
    color:#d7e5ff;
    line-height:1.6;
}

.check-list li::before{
    content:"✓";
    position:absolute;
    left:0;
    top:0;
    color:var(--accent);
    font-weight:900;
}

.experience-panels{
    display:grid;
    gap:16px;
}

.info-panel{
    padding:24px;
    border-radius:22px;
}

.info-panel small{
    display:block;
    color:var(--muted);
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.75rem;
}

.info-panel strong{
    display:block;
    line-height:1.6;
    font-size:1.06rem;
}

.pricing-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:22px;
}

.price-card{
    position:relative;
    border-radius:26px;
    padding:30px;
}

.price-card.featured{
    transform:translateY(-8px);
    border-color:rgba(59,130,246,.28);
    box-shadow:0 28px 80px rgba(59,130,246,.18);
}

.badge-tag{
    display:inline-flex;
    padding:8px 12px;
    border-radius:999px;
    font-size:.78rem;
    font-weight:800;
    color:#cbdcf9;
    background:rgba(255,255,255,.06);
    border:1px solid var(--line);
}

.badge-main{
    background:rgba(59,130,246,.16);
    border-color:rgba(59,130,246,.24);
    color:#b7d3ff;
}

.price-card h3{
    margin:18px 0 10px;
    font-size:1.45rem;
}

.price{
    font-size:2.4rem;
    font-weight:900;
    line-height:1;
    margin-bottom:14px;
}

.price span{
    font-size:1rem;
    color:var(--muted);
    font-weight:700;
}

.price-card p{
    color:var(--muted);
    line-height:1.7;
    margin:0 0 18px;
}

.price-card ul{
    margin:0 0 24px;
    padding-left:18px;
    color:#dce8ff;
    line-height:1.9;
}

.prereg-grid{
    display:grid;
    grid-template-columns:1fr .95fr;
    gap:28px;
    align-items:center;
}

.prereg-copy h2{
    margin:18px 0 14px;
    font-size:clamp(2rem, 3.4vw, 3.2rem);
    line-height:1.1;
}

.prereg-copy p{
    margin:0 0 16px;
    color:var(--muted);
    line-height:1.8;
}

.prereg-card{
    border-radius:28px;
    padding:28px;
}

.form-row{
    display:grid;
    gap:8px;
    margin-bottom:16px;
}

.form-row.two-cols{
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.form-row label{
    color:#dce8ff;
    font-weight:700;
    font-size:.95rem;
}

.form-row input,
.form-row select,
.form-row textarea{
    width:100%;
    min-height:52px;
    padding:0 16px;
    border-radius:16px;
    border:1px solid var(--field-border);
    outline:none;
    color:var(--field-text);
    background:var(--field-bg);
    transition:var(--transition);
}

.form-row textarea{
    min-height:120px;
    padding:14px 16px;
    resize:vertical;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover{
    background:var(--field-bg-hover);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
    border-color:rgba(59,130,246,.42);
    box-shadow:0 0 0 4px rgba(59,130,246,.12);
}

.helper-text{
    display:block;
    margin-top:12px;
    color:var(--muted);
    line-height:1.6;
}

.site-footer{
    padding:28px 0 40px;
    border-top:1px solid var(--line);
    background:rgba(255,255,255,.02);
}

.footer-inner{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
}

.footer-inner p{
    margin:10px 0 0;
    color:var(--muted);
    line-height:1.7;
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    gap:16px 22px;
}

.footer-links a{
    color:var(--muted);
}

.footer-links a:hover{
    color:var(--text);
}

/* ====== AUTH / PANELES FUTUROS ====== */

.auth-body{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:26px 16px;
}

.auth-wrapper{
    width:min(100%, 1120px);
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:24px;
    align-items:stretch;
}

.auth-visual,
.auth-card{
    border-radius:28px;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    background:var(--bg-card);
    backdrop-filter:blur(var(--blur));
}

.auth-visual{
    padding:34px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:720px;
}

.auth-card{
    padding:34px;
}

.auth-card h1{
    margin:0 0 10px;
    font-size:2rem;
    line-height:1.1;
}

.auth-card p{
    margin:0 0 24px;
    color:var(--muted);
    line-height:1.7;
}

.auth-footer{
    margin-top:18px;
    color:var(--muted);
    font-size:.95rem;
}

.auth-footer a{
    color:#b7d3ff;
    font-weight:700;
}

.alert{
    padding:14px 16px;
    border-radius:16px;
    margin-bottom:16px;
    font-weight:700;
    line-height:1.6;
}

.alert-danger{
    background:rgba(239,68,68,.12);
    border:1px solid rgba(239,68,68,.18);
    color:#fecaca;
}

.alert-success{
    background:rgba(34,197,94,.12);
    border:1px solid rgba(34,197,94,.18);
    color:#bbf7d0;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 1100px){
    .hero-grid,
    .experience-grid,
    .prereg-grid,
    .auth-wrapper{
        grid-template-columns:1fr;
    }

    .pricing-grid,
    .feature-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .hero-copy{
        order:1;
    }

    .hero-visual{
        order:2;
    }

    .auth-visual{
        min-height:420px;
    }
}

@media (max-width: 860px){
    .site-nav{
        position:absolute;
        top:82px;
        left:16px;
        right:16px;
        display:none;
        flex-direction:column;
        align-items:flex-start;
        padding:18px;
        border-radius:20px;
        border:1px solid var(--line);
        background:rgba(7,17,31,.95);
        box-shadow:var(--shadow);
    }

    .site-nav.is-open{
        display:flex;
    }

    .nav-toggle{
        display:flex;
    }

    .hero-stats,
    .pricing-grid,
    .feature-grid,
    .mini-grid,
    .form-row.two-cols{
        grid-template-columns:1fr;
    }

    .footer-inner{
        flex-direction:column;
    }

    .topbar{
        min-height:78px;
    }

    .hero-section{
        padding-top:52px;
    }

    .section-block{
        padding:72px 0;
    }
}

@media (max-width: 560px){
    .container{
        width:min(100% - 22px, var(--container));
    }

    .brand-text small{
        display:none;
    }

    .hero-copy h1{
        font-size:2.25rem;
    }

    .section-head h2,
    .experience-copy h2,
    .prereg-copy h2{
        font-size:2rem;
    }

    .dashboard-content,
    .feature-card,
    .info-panel,
    .price-card,
    .prereg-card,
    .auth-card,
    .auth-visual{
        padding:22px;
    }

    .btn{
        width:100%;
    }

    .hero-actions{
        flex-direction:column;
    }

    .table-row{
        grid-template-columns:repeat(2, 1fr);
    }
}