/* ========================================
   FinviAPP — Landing Page Styles
   Colors: Primary #1800ad | Secondary #5170ff | White
   Font: Inter (Google Fonts)
   ======================================== */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1800ad;
    --secondary: #5170ff;
    --white: #ffffff;
    --gray-50: #f8f9fe;
    --gray-100: #eef0fb;
    --gray-200: #d8ddf5;
    --gray-600: #555a7e;
    --gray-800: #1a1a2e;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(24, 0, 173, 0.08);
    --shadow-lg: 0 12px 48px rgba(24, 0, 173, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(24, 0, 173, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(24, 0, 173, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--gray-200);
}

.btn--ghost:hover {
    border-color: var(--secondary);
    background: var(--gray-50);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ── Highlight text ── */
.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Typewriter effect ── */
.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 0;
    width: auto;
    border-right: 3px solid var(--secondary);
    animation: typewrite 2.5s steps(35) forwards, blink-caret 0.6s step-end 8;
    animation-play-state: paused;
}

.typewriter.active {
    animation-play-state: running;
}

@keyframes typewrite {
    to { max-width: 100%; }
}

@keyframes blink-caret {
    50% { border-color: transparent; }
}

/* ── Avatar ── */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
    border: 2px solid var(--white);
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
.navbar {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(24, 0, 173, 0.06);
    padding: 10px 0;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.5px;
}

.navbar__logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

 .navbar__logo-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

.navbar__links {
    display: flex;
    list-style: none;
    gap: 32px;
    background: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(24, 0, 173, 0.08);
}

.navbar__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.navbar__links a:hover {
    color: var(--primary);
}

.navbar__links a:hover::after {
    width: 100%;
}

.navbar__cta {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.navbar__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero__bg-blur {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(81, 112, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero__bg-blur::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(24, 0, 173, 0.08) 0%, transparent 70%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 24px;
    width: fit-content;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroTitleIn 1s ease-out 0.3s forwards;
}

@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

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

.hero__trust-avatars {
    display: flex;
}

.hero__trust-avatars .avatar {
    margin-left: -8px;
}

.hero__trust-avatars .avatar:first-child {
    margin-left: 0;
}

.hero__trust span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Hero Visual */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero__visual-img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

/* Thought Bubble */
.thought-bubble {
    position: absolute;
    top: 14%;
    right: 60%;
    z-index: 3;
    pointer-events: none;
    transform: scale(0.65);
}

.thought-bubble__dot {
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    position: absolute;
}

.thought-bubble__dot--1 {
    width: 14px;
    height: 14px;
    bottom: 0;
    left: 20px;
    animation: bubble-float 3s ease-in-out infinite;
    animation-delay: 0s;
}

.thought-bubble__dot--2 {
    width: 22px;
    height: 22px;
    bottom: 24px;
    left: 8px;
    animation: bubble-float 3s ease-in-out infinite;
    animation-delay: 0.3s;
}

.thought-bubble__dot--3 {
    width: 32px;
    height: 32px;
    bottom: 56px;
    left: -4px;
    animation: bubble-float 3s ease-in-out infinite;
    animation-delay: 0.6s;
}

.thought-bubble__cloud {
    position: absolute;
    bottom: 100px;
    left: -50px;
    width: 90px;
    height: 70px;
    background: var(--white);
    border: none;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    animation: bubble-float 3s ease-in-out infinite;
    animation-delay: 0.9s;
}

.thought-bubble__cloud::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 30px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    top: -12px;
    left: -10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: -1;
}

.thought-bubble__cloud::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 32px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    top: -15px;
    right: -5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: -1;
}

.thought-bubble__cloud span {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

@keyframes bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ════════════════════════════════════════
   SECTIONS (generic)
   ════════════════════════════════════════ */
.section {
    padding: 100px 0;
}

.section--dark {
    background: var(--white);
}

.section--light {
    background: var(--white);
}

.section--gradient {
    background: var(--gradient);
    color: var(--white);
}

.section--cta {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.section__header {
    margin-bottom: 60px;
}

.section__header--center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.section__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(81, 112, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section--gradient .section__tag,
.section--cta .section__tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section--gradient .highlight,
.section--cta .highlight {
    -webkit-text-fill-color: var(--white);
    opacity: 0.9;
}

.section__desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ════════════════════════════════════════
   PAIN TAGS & STEPS VERTICAL
   ════════════════════════════════════════ */
.pain-tags {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pain-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
}

.pain-tag svg {
    width: 16px;
    height: 16px;
    color: var(--secondary);
}

.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step-v {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
}

.step-v.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-v__number {
    min-width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.step-v__content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-v__content p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ════════════════════════════════════════
   STEP CARDS
   ════════════════════════════════════════ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 28px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-card__number {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 50px;
}

.step-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.step-card__icon svg {
    width: 28px;
    height: 28px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ════════════════════════════════════════
   BENEFITS
   ════════════════════════════════════════ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(30px);
}

.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.benefit-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 16px;
}

.benefit-card__icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.benefit-card p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ════════════════════════════════════════
   STATS
   ════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat {
    opacity: 0;
    transform: translateY(20px);
}

.stat.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat__number {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    display: block;
}

.stat__prefix {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.8;
}

.stat__suffix {
    font-size: 1.8rem;
    font-weight: 600;
}

.stat__label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 4px;
    font-weight: 500;
}

/* ════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-card__stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-card__author span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* ════════════════════════════════════════
   MEJORA TU ESTADO FINANCIERO
   ════════════════════════════════════════ */
.mejora__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mejora__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPhone 15 Pro Frame */
.phone-frame {
    position: relative;
    width: 200px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 10px;
    border: 2.5px solid #2a2a2a;
    box-shadow:
        inset 0 0 3px rgba(255, 255, 255, 0.05),
        0 0 0 1.5px #111;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 58px;
    right: -4px;
    width: 3px;
    height: 24px;
    background: #2a2a2a;
    border-radius: 0 2px 2px 0;
}

.phone-frame::after {
    content: '';
    position: absolute;
    top: 100px;
    left: -4px;
    width: 3px;
    height: 46px;
    background: #2a2a2a;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 36px 0 #2a2a2a;
}

.phone-frame__notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame__camera {
    width: 7px;
    height: 7px;
    background: #0a0a0a;
    border-radius: 50%;
    border: 1px solid #333;
}

.phone-frame__screen {
    border-radius: 28px;
    overflow: hidden;
    background: #000;
}

.mejora__img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.mejora__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mejora__desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 28px;
}

.mejora__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.mejora__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
}

.mejora__list li svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   CTA
   ════════════════════════════════════════ */
.cta__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta__desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0.9;
    line-height: 1.7;
}

.cta__actions {
    margin-bottom: 16px;
}

.cta__note {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
    background: var(--gray-800);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer__logo {
    height: 36px;
    margin-bottom: 16px;
    filter: brightness(10);
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer__col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 0.88rem;
    padding: 4px 0;
    opacity: 0.7;
    transition: var(--transition);
}

.footer__col a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ════════════════════════════════════════
   PROBLEMA LAYOUT & BANK GRAPH
   ════════════════════════════════════════ */
.problema-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.bank-graph {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 420px;
    margin: 0 auto;
}

.bank-graph__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bank-graph__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(24, 0, 173, 0.15);
    z-index: 2;
    animation: pulse-center 3s ease-in-out infinite;
}

.bank-graph__center img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.bank-graph__node {
    position: absolute;
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 2;
    animation: flip-node 3s ease-in-out infinite;
}

.bank-graph__node span {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
    line-height: 1.2;
}

.bank-graph__node img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}

.bank-graph__node--1 { top: 3%;  left: 12%; animation-delay: 0s; }
.bank-graph__node--2 { top: 3%;  right: 12%; animation-delay: 0.3s; }
.bank-graph__node--3 { top: 44%; left: -2%; margin-top: -32px; animation-delay: 0.6s; }
.bank-graph__node--4 { top: 44%; right: -2%; margin-top: -32px; animation-delay: 0.9s; }
.bank-graph__node--5 { bottom: 2%; left: 17%; animation-delay: 1.2s; }
.bank-graph__node--6 { bottom: 2%; right: 17%; animation-delay: 1.5s; }

/* Líneas con animación de flujo */
.bank-graph__lines line {
    stroke-dasharray: 6 4;
    animation: dash-flow 2s linear infinite;
}

.bank-graph__lines line:nth-child(2) { animation-delay: 0.3s; }
.bank-graph__lines line:nth-child(3) { animation-delay: 0.6s; }
.bank-graph__lines line:nth-child(4) { animation-delay: 0.9s; }
.bank-graph__lines line:nth-child(5) { animation-delay: 1.2s; }
.bank-graph__lines line:nth-child(6) { animation-delay: 1.5s; }

@keyframes flip-node {
    0%   { transform: rotateY(0deg); }
    50%  { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes pulse-center {
    0%, 100% { box-shadow: 0 4px 24px rgba(24, 0, 173, 0.15); }
    50%      { box-shadow: 0 4px 36px rgba(81, 112, 255, 0.35); }
}

@keyframes dash-flow {
    0%   { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
[data-animate] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .mejora__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mejora__content {
        align-items: center;
    }

    .phone-frame {
        width: 180px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__visual-img {
        max-height: 340px;
    }

    .pain-grid,
    .steps-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problema-layout {
        grid-template-columns: 1fr;
    }

    .bank-graph {
        max-width: 320px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .typewriter {
        white-space: normal;
        display: block;
        overflow: hidden;
        max-width: 100%;
        max-height: 0;
        border-right: none;
        border-bottom: 2px solid var(--secondary);
        animation: typewrite-mobile 2s ease forwards, blink-caret-mobile 0.6s step-end 6;
        animation-play-state: paused;
    }

    .typewriter.active {
        animation-play-state: running;
    }

    @keyframes typewrite-mobile {
        to { max-height: 200px; }
    }

    @keyframes blink-caret-mobile {
        50% { border-bottom-color: transparent; }
    }

    .navbar__links,
    .navbar__cta {
        display: none;
    }

    .navbar__burger {
        display: flex;
    }

    /* Mobile nav open */
    .navbar.nav-open .navbar__links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .navbar.nav-open .navbar__cta {
        display: inline-flex;
        position: absolute;
        top: calc(100% + 180px);
        left: 24px;
        right: 24px;
        justify-content: center;
    }

    .navbar.nav-open .navbar__burger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar.nav-open .navbar__burger span:nth-child(2) {
        opacity: 0;
    }

    .navbar.nav-open .navbar__burger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .pain-grid,
    .steps-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__links {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .section--cta {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn--lg {
        padding: 16px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .hero__tag {
        font-size: 0.78rem;
    }

    .footer__links {
        grid-template-columns: 1fr;
    }
}
