/* ============================================================
   FxCRECE
   Simulador de Crecimiento Patrimonial
   V1.0
   ============================================================ */

:root {
    --bg: #061113;
    --bg-soft: #0a191c;
    --surface: #0d1e21;
    --surface-light: #12272b;

    --text: #f6f8f8;
    --text-soft: #aebfc1;
    --text-muted: #74898c;

    --accent: #f4d524;
    --accent-hover: #ffe538;
    --accent-dark: #b9a000;

    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.17);

    --success: #5fd69a;

    --max-width: 1180px;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --shadow:
        0 24px 70px rgba(0, 0, 0, 0.28);
}


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}


/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--border);

    background:
        rgba(6, 17, 19, 0.92);

    backdrop-filter: blur(14px);
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;

    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;

    text-decoration: none;
    cursor: pointer;
}

.brand-fx {
    color: var(--accent);
}

.brand-crece {
    color: var(--text);
}

.topbar-label {
    color: var(--text-soft);
    font-size: 14px;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;

    padding: 92px 0 72px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(244, 213, 36, 0.10),
            transparent 28%
        );
}

.hero::after {
    content: "";
    position: absolute;

    width: 430px;
    height: 430px;

    right: -180px;
    top: -180px;

    border: 1px solid rgba(244, 213, 36, 0.10);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 790px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.hero h1 {
    max-width: 850px;

    margin: 0 0 24px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;

    letter-spacing: -3px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    max-width: 720px;

    margin: 0;

    color: var(--text-soft);

    font-size: 20px;
}

.hero-secondary {
    margin-top: 12px !important;

    color: var(--text-muted) !important;

    font-size: 16px !important;
}


/* ============================================================
   SIMULATOR
   ============================================================ */

.simulator-section {
    padding: 0 0 100px;
}

.simulator-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 24px;
    align-items: stretch;
}

.card {
    padding: 34px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.01)
        ),
        var(--surface);

    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-bottom: 32px;
}

.step {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--accent);
    color: #071113;

    font-size: 13px;
    font-weight: 900;
}

.card-header h2 {
    margin: 0 0 3px;

    font-size: 25px;
    letter-spacing: -0.7px;
}

.card-header p {
    margin: 0;

    color: var(--text-muted);
    font-size: 14px;
}


/* ============================================================
   FORM
   ============================================================ */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 600;
}

.currency-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;

    padding: 5px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--bg-soft);
}

.currency-button {
    min-height: 48px;

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: var(--text-muted);

    font-weight: 700;

    transition: 0.2s ease;
}

.currency-button:hover {
    color: var(--text);
}

.currency-button.active {
    background: var(--accent);
    color: #071113;
}

.money-input,
.input-with-unit {
    min-height: 58px;

    display: flex;
    align-items: center;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--bg-soft);

    transition: 0.2s ease;
}

.money-input:focus-within,
.input-with-unit:focus-within {
    border-color: rgba(244, 213, 36, 0.75);

    box-shadow:
        0 0 0 3px rgba(244, 213, 36, 0.08);
}

.money-input .currency-symbol {
    padding-left: 18px;

    color: var(--accent);

    font-size: 21px;
    font-weight: 700;
}

.money-input input,
.input-with-unit input {
    width: 100%;
    min-width: 0;

    padding: 15px 12px;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-size: 18px;
    font-weight: 700;
}

.currency-code,
.input-with-unit span {
    padding-right: 18px;

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.assumption {
    display: flex;
    gap: 14px;

    margin: 4px 0 26px;
    padding: 16px;

    border: 1px solid rgba(244, 213, 36, 0.15);
    border-radius: var(--radius-sm);

    background: rgba(244, 213, 36, 0.045);
}

.assumption-icon {
    color: var(--accent);

    font-size: 22px;
    line-height: 1.2;
}

.assumption strong {
    display: block;

    margin-bottom: 2px;

    font-size: 14px;
}

.assumption p {
    margin: 0;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.5;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 58px;

    border-radius: 13px;

    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.primary-button {
    border: 0;

    background: var(--accent);
    color: #071113;
}

.primary-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.secondary-button {
    margin-top: 24px;

    border: 1px solid var(--border-strong);

    background: transparent;
    color: var(--text);
}

.secondary-button:not(:disabled):hover {
    border-color: var(--accent);
    color: var(--accent);
}

.secondary-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}


/* ============================================================
   RESULTS
   ============================================================ */

.results-card {
    display: flex;
    flex-direction: column;
}

.main-result {
    padding: 28px 0 30px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.result-label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.main-result strong {
    display: inline-block;

    color: var(--accent);

    font-size: clamp(38px, 5vw, 55px);
    line-height: 1.05;

    letter-spacing: -2px;
}

.result-currency {
    margin-left: 8px;

    color: var(--text-muted);

    font-size: 14px;
    font-weight: 800;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 24px;
}

.result-box {
    min-height: 112px;

    padding: 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: rgba(255,255,255,0.018);
}

.result-box span {
    color: var(--text-muted);

    font-size: 12px;
}

.result-box strong {
    font-size: 19px;
}

.result-box.highlight {
    border-color: rgba(244, 213, 36, 0.18);

    background: rgba(244, 213, 36, 0.04);
}

.result-box.highlight strong {
    color: var(--accent);
}

.equivalent {
    margin-top: 22px;
    padding: 18px;

    border-radius: var(--radius-sm);

    background: var(--bg-soft);
}

.equivalent > span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 12px;
}

.equivalent strong {
    display: block;

    font-size: 20px;
}

.equivalent small {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);
}


/* ============================================================
   EXPLANATION
   ============================================================ */

.explanation {
    padding: 100px 0;

    border-top: 1px solid var(--border);

    background: var(--bg-soft);
}

.explanation h2 {
    max-width: 760px;

    margin: 0 0 48px;

    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;

    letter-spacing: -2px;
}

.explanation h2 span {
    color: var(--accent);
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.explanation article {
    padding: 26px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.explanation article > span {
    color: var(--accent);

    font-size: 12px;
    font-weight: 900;
}

.explanation article h3 {
    margin: 18px 0 10px;

    font-size: 20px;
}

.explanation article p {
    margin: 0;

    color: var(--text-muted);

    font-size: 14px;
}


/* ============================================================
   LEGAL
   ============================================================ */

.legal-note {
    padding: 45px 0;

    border-top: 1px solid var(--border);
}

.legal-note .container {
    max-width: 900px;
}

.legal-note strong {
    display: block;

    margin-bottom: 6px;

    color: var(--text-soft);

    font-size: 13px;
}

.legal-note p {
    margin: 0;

    color: var(--text-muted);

    font-size: 12px;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    padding: 34px 0;

    border-top: 1px solid var(--border);

    background: #040c0e;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-content > div {
    display: flex;
    flex-direction: column;
}

.footer-content strong {
    color: var(--accent);
}

.footer-content span,
.footer-content p {
    color: var(--text-muted);

    font-size: 12px;
}

.footer-content p {
    margin: 0;
}


/* ============================================================
   NUMBER INPUT
   ============================================================ */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.35;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .hero {
        padding: 70px 0 55px;
    }

    .simulator-grid {
        grid-template-columns: 1fr;
    }

    .explanation-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .container {
        width: min(calc(100% - 26px), var(--max-width));
    }

    .topbar {
        min-height: 66px;
    }

    .topbar-label {
        display: none;
    }

    .hero {
        padding: 55px 0 42px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 17px;
    }

    .card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .explanation {
        padding: 70px 0;
    }

    .explanation-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* ============================================================
   FXC-VIS-001
   EVOLUCIÓN DEL PATRIMONIO
   ============================================================ */

.patrimony-section {
    padding: 0 0 80px;
}

.patrimony-card {
    padding: 38px 42px 34px;
}

.chart-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.chart-summary-item {
    min-height: 92px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.chart-summary-item span {
    display: block;
    margin-bottom: 9px;
    color: #78a1aa;
    font-size: 13px;
}

.chart-summary-item strong {
    color: #f6f8f8;
    font-size: 20px;
    line-height: 1.2;
}

.chart-summary-item .chart-summary-primary,
.chart-summary-item .chart-summary-growth {
    color: #f4d524;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-bottom: 14px;
    color: #a9bec3;
    font-size: 13px;
}

.chart-legend > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.legend-line {
    display: inline-block;
    width: 30px;
    height: 3px;
    border-radius: 10px;
}

.legend-balance {
    background: #f4d524;
}

.legend-contributed {
    background: #a8bec3;
}

.chart-currency {
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid rgba(244, 213, 36, 0.25);
    border-radius: 8px;
    color: #f4d524;
    font-weight: 700;
    font-size: 12px;
}

.patrimony-chart {
    position: relative;
    width: 100%;
    min-height: 420px;
    padding: 12px 0 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.patrimony-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 400px;
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.chart-grid-vertical {
    stroke: rgba(255, 255, 255, 0.035);
}

.chart-axis-label {
    fill: #668991;
    font-size: 12px;
    font-family: inherit;
}

.chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-balance {
    stroke: #f4d524;
    stroke-width: 4;
}

.chart-line-contributed {
    stroke: #a8bec3;
    stroke-width: 3;
    stroke-dasharray: 8 7;
}

.chart-point-balance {
    fill: #f4d524;
    stroke: #071719;
    stroke-width: 3;
}

.chart-point-contributed {
    fill: #a8bec3;
    stroke: #071719;
    stroke-width: 3;
}

.chart-growth-area {
    pointer-events: none;
}

.chart-note {
    margin: 10px 0 0;
    color: #668991;
    font-size: 12px;
    line-height: 1.6;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {

    .patrimony-card {
        padding: 28px 22px;
    }

    .chart-summary {
        grid-template-columns: 1fr;
    }

    .chart-legend {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .chart-currency {
        margin-left: 0;
    }

    .patrimony-chart {
        min-height: 330px;
        overflow-x: auto;
    }

    .patrimony-svg {
        min-width: 720px;
        min-height: 320px;
    }
}

/* =========================================================
   FXCRECE
   04. RECIBE TU PROYECCIÓN
========================================================= */

.lead-section {
    padding: 0 0 72px;
    background: #061113;
}

.lead-card {
    background: #122629;
    border: 1px solid rgba(145, 190, 199, 0.20);
    border-radius: 26px;
    padding: 38px 42px;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.lead-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 34px;
}

.lead-header .step {
    flex: 0 0 auto;
}

.lead-header h2 {
    margin: 2px 0 7px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.15;
}

.lead-header p {
    margin: 0;
    color: #72aeba;
    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   FORMULARIO
========================================================= */

.fxcrece-lead-form {
    width: 100%;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.lead-field {
    min-width: 0;
}

.lead-field label {
    display: block;
    margin-bottom: 9px;
    color: #b7dbe2;
    font-size: 14px;
    font-weight: 700;
}

.lead-field input,
.lead-field select {
    box-sizing: border-box;
    width: 100%;
    height: 58px;
    padding: 0 17px;

    color: #ffffff;
    background: #081a1d;

    border: 1px solid rgba(145, 190, 199, 0.22);
    border-radius: 14px;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.lead-field input::placeholder {
    color: #63858c;
}

.lead-field input:focus,
.lead-field select:focus {
    border-color: #f4d524;
    box-shadow: 0 0 0 3px rgba(244, 213, 36, 0.10);
    background: #0a1d20;
}

.lead-field select {
    cursor: pointer;
}

.lead-field select option {
    color: #ffffff;
    background: #081a1d;
}


/* =========================================================
   WHATSAPP
========================================================= */

.fxcrece-whatsapp-wrap {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
}

.js-fxcrece-prefix {
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    color: #f4d524;
    background: #081a1d;

    border: 1px solid rgba(145, 190, 199, 0.22);
    border-radius: 14px;

    font-size: 16px;
    font-weight: 800;
}

.lead-field-help {
    display: block;
    margin-top: 8px;

    color: #6fa7b2;
    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   CONSENTIMIENTO
========================================================= */

.fxcrece-consent {
    margin: 6px 0 24px;
    padding: 18px 20px;

    background: rgba(8, 26, 29, 0.62);

    border: 1px solid rgba(145, 190, 199, 0.15);
    border-radius: 14px;
}

.fxcrece-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    color: #c6dfe3;
    font-size: 13px;
    line-height: 1.55;

    cursor: pointer;
}

.fxcrece-consent input[type="checkbox"] {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;
    margin-top: 2px;

    accent-color: #f4d524;
}

.fxcrece-consent a {
    color: #f4d524;
    text-decoration: none;
}

.fxcrece-consent a:hover {
    text-decoration: underline;
}


/* =========================================================
   BOTÓN
========================================================= */

.fxcrece-lead-submit {
    width: 100%;
    min-height: 58px;

    padding: 15px 22px;

    color: #061113;
    background: #f4d524;

    border: 0;
    border-radius: 14px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        opacity 0.18s ease;
}

.fxcrece-lead-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.fxcrece-lead-submit:active {
    transform: translateY(0);
}

.fxcrece-lead-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}


/* =========================================================
   ¿QUÉ SUCEDERÁ DESPUÉS?
========================================================= */

.lead-after-submit {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;

    margin-top: 24px;
    padding: 20px 22px;

    background: #081a1d;

    border: 1px solid rgba(145, 190, 199, 0.14);
    border-radius: 14px;
}

.lead-after-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #061113;
    background: #f4d524;

    border-radius: 50%;

    font-size: 18px;
    font-weight: 800;
}

.lead-after-submit strong {
    display: block;
    margin-bottom: 5px;

    color: #ffffff;
    font-size: 14px;
}

.lead-after-submit p {
    margin: 0;

    color: #78aab4;
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   PATROCINADOR
========================================================= */

.lead-sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 22px;

    color: #719da6;
    font-size: 12px;
    text-align: center;
}

.lead-sponsor > span:first-child {
    color: #ffffff;
    font-weight: 800;
}

.lead-sponsor strong {
    color: #f4d524;
}

.lead-sponsor-separator {
    color: #405e64;
}


/* =========================================================
   HONEYPOT
========================================================= */

.fxcrece-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    .lead-section {
        padding-bottom: 48px;
    }

    .lead-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .lead-header {
        gap: 14px;
        margin-bottom: 28px;
    }

    .lead-header h2 {
        font-size: 23px;
    }

    .lead-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    .fxcrece-whatsapp-wrap {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .lead-after-submit {
        grid-template-columns: 1fr;
    }

    .lead-after-icon {
        margin-bottom: 2px;
    }

}
/* =========================================================
   FXC-ANALYTICS-001
   CONTADOR DE VISITAS
========================================================= */

.footer-visits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-visits strong {
    color: var(--accent);
    font-weight: 800;
}
