/* ==========================================================================
   FinanziaOne - estilos landing
   ========================================================================== */

:root {
    --fz-primary: #0A2342;
    --fz-primary-dark: #061636;
    --fz-primary-soft: #143A6B;
    --fz-accent: #2563EB;
    --fz-accent-2: #3B82F6;
    --fz-accent-soft: #EAF1FE;
    --fz-bg: #F6F8FC;
    --fz-text: #0E1729;
    --fz-muted: #5B6780;
    --fz-border: #E3E8F0;
    --fz-radius: 14px;
    --fz-shadow: 0 10px 30px rgba(10, 35, 66, 0.08);
    --fz-shadow-lg: 0 20px 60px rgba(10, 35, 66, 0.15);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fz-text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--fz-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fz-accent); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin-top: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.section { padding: 96px 0; }
.section--alt { background: var(--fz-bg); }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fz-accent);
    margin-bottom: 14px;
}

.muted { color: var(--fz-muted); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
    text-decoration: none;
}
.btn--primary {
    background: linear-gradient(135deg, var(--fz-accent) 0%, var(--fz-accent-2) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45); color: #fff; }
.btn--outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { background: rgba(255,255,255,0.08); color:#fff; }
.btn--dark {
    background: var(--fz-primary);
    color: #fff;
}
.btn--dark:hover { background: var(--fz-primary-dark); color:#fff; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--fz-border);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.logo {
    display: inline-flex;
    align-items: center;
    color: var(--fz-primary);
    text-decoration: none;
}
.logo img { height: 90px; width: auto; display: block; }
.footer .logo img { height: 80px; filter: brightness(1.15); }

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-links a {
    font-weight: 500;
    color: var(--fz-text);
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--fz-accent); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--fz-primary); }

@media (max-width: 860px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: block; }
    .navbar.open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px 24px;
        border-bottom: 1px solid var(--fz-border);
        gap: 16px;
    }
    .navbar.open .nav-cta { display: flex; padding: 0 24px 20px; position: absolute; top: calc(100% + 260px); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(59, 130, 246, 0.35), transparent),
        radial-gradient(800px 400px at 10% 110%, rgba(37, 99, 235, 0.22), transparent),
        linear-gradient(135deg, var(--fz-primary) 0%, #0F2A5C 70%, #143A6B 100%);
    color: #fff;
    overflow: hidden;
    padding: 100px 0 120px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}
.hero h1 { color: #fff; }
.hero h1 span { background: linear-gradient(135deg, var(--fz-accent), var(--fz-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; opacity: 0.85; margin: 22px 0 34px; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.hero__stats .stat { display: flex; flex-direction: column; }
.hero__stats .stat strong { font-size: 1.6rem; color: var(--fz-accent); }
.hero__stats .stat span { font-size: 0.88rem; opacity: 0.75; }

.hero__card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 26px;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.hero__card h4 { margin: 0 0 6px; color:#fff; font-size:1rem; }
.hero__card .row { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: .92rem; }
.hero__card .row:first-of-type { border-top: none; }
.hero__card .row span { opacity: 0.7; }
.hero__card .row strong { color: var(--fz-accent-2); }
.hero__card .chart-placeholder {
    height: 140px;
    margin: 16px 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.18) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'><polyline fill='none' stroke='%233B82F6' stroke-width='2' points='0,80 30,60 60,70 100,40 140,55 180,30 220,45 260,20 300,35'/></svg>") no-repeat bottom / 100% 100%;
    border-radius: 10px;
}

@media (max-width: 860px) {
    .hero { padding: 60px 0 80px; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.section__header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section__header p { color: var(--fz-muted); font-size: 1.1rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: #fff;
    border: 1px solid var(--fz-border);
    border-radius: var(--fz-radius);
    padding: 28px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fz-shadow);
    border-color: transparent;
}
.card .icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--fz-accent-soft);
    color: var(--fz-accent);
    border-radius: 14px;
    margin-bottom: 18px;
}
.card .icon svg { display: block; }
.card:hover .icon {
    background: linear-gradient(135deg, var(--fz-accent), var(--fz-accent-2));
    color: #fff;
    transition: all .2s;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fz-muted); margin: 0; font-size: 0.97rem; }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 32px;
    padding: 56px 40px;
    background: linear-gradient(135deg, var(--fz-primary), #0F2A5C);
    color: #fff;
    border-radius: 20px;
    box-shadow: var(--fz-shadow-lg);
}
.stats .stat { text-align: center; }
.stats .stat strong { display: block; font-size: 2.4rem; color: var(--fz-accent-2); font-weight: 700; }
.stats .stat span { opacity: 0.8; font-size: 0.92rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; padding: 40px 24px; } }

/* Testimonios */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.testimonial {
    background: #fff;
    border: 1px solid var(--fz-border);
    border-radius: var(--fz-radius);
    padding: 30px;
    position: relative;
}
.testimonial p { font-style: italic; color: var(--fz-text); margin-bottom: 18px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--fz-accent), var(--fz-accent-2));
    display: grid; place-items: center; color: #fff; font-weight: 700;
}
.testimonial .who strong { display: block; }
.testimonial .who span { color: var(--fz-muted); font-size: 0.88rem; }
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* CTA final */
.cta-band {
    position: relative;
    background:
        radial-gradient(800px 300px at 90% 0%, rgba(59, 130, 246, 0.25), transparent),
        linear-gradient(135deg, var(--fz-primary) 0%, #0F2A5C 100%);
    color: #fff;
    padding: 72px 48px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--fz-shadow-lg);
    overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #061636;
    color: #c7d0de;
    padding: 72px 0 32px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer a { color: #c7d0de; display: block; margin-bottom: 10px; font-size: 0.93rem; }
.footer a:hover { color: var(--fz-accent); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.86rem;
    color: #8792a8;
}
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer p.desc { font-size: 0.92rem; line-height: 1.7; opacity: 0.8; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Paginas internas (hero compacto)
   ========================================================================== */
.page-hero {
    background:
        radial-gradient(900px 400px at 90% -10%, rgba(59, 130, 246, 0.3), transparent),
        linear-gradient(135deg, var(--fz-primary) 0%, #0F2A5C 100%);
    color: #fff;
    padding: 80px 0 100px;
    text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 680px; margin: 16px auto 0; }

/* ==========================================================================
   Formulario contacto
   ========================================================================== */
.form-card {
    max-width: 640px;
    margin: -60px auto 0;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--fz-shadow-lg);
    position: relative;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--fz-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none;
    border-color: var(--fz-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.95rem; }
.alert--ok { background: #E6F4FF; color: #0A3B7A; border: 1px solid #B4D4FB; }
.alert--err { background: #FEECEC; color: #8A1F1F; border: 1px solid #F5B9B9; }

/* Educational page ("caiste") */
.educational {
    max-width: 760px;
    margin: 80px auto;
    padding: 48px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--fz-shadow);
    text-align: center;
}
.educational .warn-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 24px;
}
.educational .warn-badge svg { width: 18px; height: 18px; }
.educational h1 { font-size: 2.2rem; margin-bottom: 14px; color: var(--fz-primary); }
.educational .tips {
    text-align: left;
    background: var(--fz-bg);
    border-left: 4px solid var(--fz-accent);
    padding: 20px 24px;
    border-radius: 10px;
    margin: 30px 0;
}
.educational .tips ul { margin: 10px 0 0; padding-left: 22px; color: var(--fz-text); }
.educational .tips li { margin: 8px 0; }
