    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --bg-dark: #05080d;
    --bg-card: #0b101d;
    --brand-green: #8cc63f;
    --brand-green-glow: rgba(140, 198, 63, 0.35);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1050px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(5, 8, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 1.2rem; z-index: 1000;
}

.logo-brand { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.logo-num { font-size: 2rem; font-weight: 900; color: var(--brand-green); }
.logo-text { font-size: 0.85rem; font-weight: 900; color: #fff; line-height: 0.9; }
.logo-text small { color: var(--brand-green); font-size: 0.55rem; letter-spacing: 2px; }
.brand-logo-img { height: 28px; width: auto; display: block; }
.brand-logo-img.ultima-logo { height: 24px; }

.nav-links { display: flex; gap: 0.8rem; align-items: center; }
.nav-link-btn {
    background: none; border: none; color: #fff; font-size: 0.75rem;
    font-weight: 800; cursor: pointer; text-transform: uppercase;
}
.nav-link-btn.active, .nav-link-btn:hover { color: var(--brand-green); }

/* HERO */
.hero {
    position: relative; padding-top: 7.5rem; padding-bottom: 3.5rem; text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(140, 198, 63, 0.15) 0%, rgba(5, 8, 13, 1) 75%);
    overflow: hidden;
}
.hero-photo-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: 0.28;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0) 100%);
}
.hero > .container { position: relative; z-index: 1; }

.badge-tag, .co-branding-tag {
    display: inline-block; background: rgba(140, 198, 63, 0.1); border: 1px solid var(--brand-green);
    color: var(--brand-green); font-size: 0.7rem; font-weight: 800; padding: 0.3rem 0.8rem; border-radius: 20px; margin-bottom: 1rem;
}

.hero h1 { font-size: 2rem; font-weight: 900; line-height: 1.2; margin-bottom: 0.5rem; }
.green-text { color: var(--brand-green); }
.sub-header-tags { color: var(--brand-green); font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; display: block; }
.hero-description { color: #cbd5e1; font-size: 0.88rem; max-width: 650px; margin: 0.8rem auto 1.8rem auto; }

/* BOTONES */
.cta-container { display: flex; flex-direction: column; gap: 0.8rem; max-width: 300px; margin: 0 auto; }
.btn-main-green {
    background-color: var(--brand-green); color: #000; font-weight: 900;
    font-size: 0.85rem; padding: 0.9rem 1.2rem; border-radius: 6px; border: none;
    text-transform: uppercase; cursor: pointer; box-shadow: 0 0 15px var(--brand-green-glow);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.btn-main-outline {
    background: rgba(11, 16, 29, 0.6); color: #fff; font-weight: 900;
    font-size: 0.85rem; padding: 0.9rem 1.2rem; border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2); text-transform: uppercase; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.btn-small-outline {
    background: none; border: 1px solid var(--brand-green); color: var(--brand-green);
    font-size: 0.75rem; font-weight: 700; padding: 0.4rem 0.8rem; border-radius: 4px; margin-top: 0.8rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.3rem;
}

/* SECCIONES Y BLOQUES */
.section-block { padding: 3rem 1rem; }
.dark-bg { background-color: #080c14; }
.section-desc { color: var(--text-muted); font-size: 0.88rem; max-width: 650px; margin: 0.5rem auto 1.5rem auto; }

/* DIAGRAMAS Y NAVEGACIÓN VISUAL (REEMPLAZA IMÁGENES FALTANTES) */
.flow-pills-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem; margin-top: 1.5rem; }
.flow-step { background: var(--bg-card); border: 1px solid var(--border-color); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.flow-step.green-step { border-color: var(--brand-green); color: var(--brand-green); }
.arrow-icon { color: var(--brand-green); font-size: 0.9rem; }

.globe-visual-box { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.5rem; }
.visual-node { background: var(--bg-card); border: 1px solid var(--border-color); padding: 0.8rem 1.2rem; border-radius: 30px; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.visual-node.highlight { border-color: var(--brand-green); color: var(--brand-green); }

/* CARDS & GRIDS */
.two-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; text-align: left; }
.card-header { font-size: 1.1rem; font-weight: 800; color: var(--brand-green); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.bullet-list { list-style: none; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
.bullet-list li { margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.bullet-list li i { color: var(--brand-green); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.2rem; text-align: left; }
.card-icon { font-size: 1.5rem; color: var(--brand-green); margin-bottom: 0.5rem; display: block; }
.card-icon-lg { font-size: 2.5rem; color: var(--brand-green); margin-bottom: 0.5rem; }
.brand-icon-img { height: 34px; width: auto; margin-bottom: 0.6rem; display: block; }
.visual-node .brand-icon-img, .flow-step .brand-icon-img { height: 18px; margin: 0; }

.co-branding-banner { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0; font-weight: 900; font-size: 1.2rem; }
.co-branding-banner .brand-logo-img { height: 32px; }
.co-branding-tag { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.co-branding-tag .brand-logo-img { height: 20px; }
.co-branding-tag .x-sep { color: var(--brand-green); font-weight: 900; font-size: 0.75rem; }

/* PARTNERS SPECIFIC */
.partner-features-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.8rem; color: var(--brand-green); font-size: 0.8rem; font-weight: 800; }
.partner-features-bar span { display: flex; align-items: center; gap: 0.3rem; }

.points-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.point-item { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; text-align: left; position: relative; overflow: hidden; }
.point-body { display: flex; gap: 1rem; padding: 1.2rem; }
.point-num { font-size: 1.5rem; font-weight: 900; color: var(--brand-green); opacity: 0.8; }
.point-icon { font-size: 1.8rem; color: var(--brand-green); }
.point-icon img.brand-icon-img { height: 30px; margin: 0; }
.point-sub { color: var(--brand-green); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; }
.highlight-text { color: #fff; font-size: 0.8rem; margin-top: 0.5rem; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; margin-top: 1.5rem; }
.step-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 1.2rem; border-radius: 6px; text-align: left; }
.step-num { width: 24px; height: 24px; background: rgba(140, 198, 63, 0.2); color: var(--brand-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 900; margin-bottom: 0.5rem; }
.step-card.highlight { border-color: var(--brand-green); }

.partners-form { max-width: 600px; margin: 1.5rem auto 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-grid input, .form-grid select { background: var(--bg-dark); border: 1px solid var(--border-color); padding: 0.8rem; border-radius: 6px; color: #fff; font-size: 0.8rem; width: 100%; outline: none; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--brand-green); }

/* TRADERS INFOGRAPHIC SPECIFIC */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.8rem; text-align: center; }
.metric-item { background: var(--bg-card); padding: 0.8rem; border-radius: 6px; border: 1px solid var(--border-color); }
.metric-item i { font-size: 1.2rem; color: var(--text-muted); display: block; margin-bottom: 0.2rem; }
.metric-item.green i, .metric-item.green strong { color: var(--brand-green); }
.metric-item strong { font-size: 1rem; color: #fff; display: block; }
.metric-item span { font-size: 0.7rem; color: var(--text-muted); display: block; }

.alliance-infographic { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: 2rem; }
.alliance-box { background: var(--bg-card); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 8px; text-align: left; }
.box-brand { font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.8rem; display: flex; }
.box-brand .brand-logo-img { height: 26px; }
.alliance-box ul { list-style: none; font-size: 0.8rem; color: var(--text-muted); }
.alliance-box ul li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.alliance-box ul li i { color: var(--brand-green); }
.alliance-core { display: flex; justify-content: center; }
.core-circle { background: var(--brand-green); color: #000; font-weight: 900; font-size: 0.7rem; padding: 1rem; border-radius: 50%; width: 110px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.core-circle i { font-size: 1.5rem; margin-bottom: 0.2rem; }

.tc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; margin-top: 1.5rem; }
.tc-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 1rem; border-radius: 6px; text-align: center; }
.tc-card i { font-size: 1.8rem; color: var(--brand-green); margin-bottom: 0.4rem; }

.markets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-top: 1.5rem; }
.market-pill { background: var(--bg-card); border: 1px solid var(--border-color); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 800; font-size: 0.8rem; color: #fff; display: flex; align-items: center; gap: 0.4rem; }
.market-pill i { color: var(--brand-green); }

/* FOOTER & SYSTEM */
.footer-legal { padding: 2rem 1rem; background: #030508; border-top: 1px solid var(--border-color); color: #64748b; font-size: 0.75rem; }
.footer-logo-row { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.footer-logo-row .brand-logo-img { height: 22px; }
.footer-logo-row .x-sep { color: var(--brand-green); font-weight: 900; font-size: 0.7rem; }
.footer-links { margin-bottom: 0.8rem; }
.footer-links a { color: var(--brand-green); cursor: pointer; text-decoration: none; margin: 0 0.3rem; }
.social-icons { display: flex; justify-content: center; gap: 1rem; font-size: 1.2rem; color: var(--brand-green); margin-top: 1rem; }

.page-view { display: none; }
.page-view.active { display: block; }

.toast-message {
    position: fixed; bottom: 20px; right: 20px; background: var(--brand-green); color: #000;
    padding: 0.8rem 1.2rem; border-radius: 6px; font-weight: 800; font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5); display: none; z-index: 2000;
}

/* RESPONSIVE MOBILE FIXES */
@media (max-width: 768px) {
    .nav-cta { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .alliance-infographic { grid-template-columns: 1fr; }
    .alliance-core { margin: 1rem 0; }
    .scrollable-flow { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 1rem; }
}
/* ==========================================
   ESTILOS PARA MODALES DE LEGAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 1rem;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    padding: 1.5rem;
}

.modal-close-btn {
    position: absolute;
    top: 12px; right: 15px;
    background: none; border: none;
    color: var(--text-muted); font-size: 1.8rem;
    cursor: pointer;
}
.modal-close-btn:hover { color: #fff; }

.modal-body-text {
    margin-top: 1rem;
    overflow-y: auto;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.6;
    text-align: left;
    padding-right: 0.5rem;
}

.modal-body-text p { margin-bottom: 0.8rem; }
.modal-body-text h4 { color: #fff; margin-top: 1rem; margin-bottom: 0.3rem; }

/* ==========================================
   VISUAL: GLOBO DE RED (HOME / PARTNERS HERO)
   ========================================== */
.globe-stage {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    margin: 2rem auto 0 auto;
}
.globe-sphere {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(140,198,63,0.16), rgba(11,16,29,0.4) 55%, rgba(5,8,13,0.9) 100%);
    border: 1px solid rgba(140, 198, 63, 0.25);
    box-shadow: 0 0 60px rgba(140,198,63,0.12), inset 0 0 40px rgba(0,0,0,0.6);
    overflow: hidden;
}
.globe-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-grid-line { fill: none; stroke: rgba(140, 198, 63, 0.28); stroke-width: 0.6; }
.globe-outline { fill: none; stroke: rgba(140, 198, 63, 0.45); stroke-width: 0.8; }
.globe-node {
    fill: #d9ffb0;
    filter: drop-shadow(0 0 3px #8cc63f) drop-shadow(0 0 6px #8cc63f);
    animation: nodePulse 2.6s ease-in-out infinite;
}
.globe-link { fill: none; stroke: rgba(140, 198, 63, 0.5); stroke-width: 0.5; stroke-dasharray: 2 2; animation: linkFlow 6s linear infinite; }
@keyframes nodePulse {
    0%, 100% { opacity: 0.55; r: 1.6; }
    50% { opacity: 1; r: 2.6; }
}
@keyframes linkFlow {
    to { stroke-dashoffset: -40; }
}
.globe-ring {
    position: absolute; inset: -14%;
    border-radius: 50%;
    border: 1px dashed rgba(140, 198, 63, 0.15);
    animation: ringSpin 40s linear infinite;
}
.globe-ring.ring-2 { inset: -26%; border-color: rgba(140, 198, 63, 0.08); animation-duration: 60s; animation-direction: reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .globe-stage { max-width: 260px; margin-top: 1.5rem; }
}

/* ==========================================
   VISUAL: DEVICE MOCKUP (TRADERS HERO)
   ========================================== */
.device-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 2rem auto 0 auto;
    padding-bottom: 1rem;
}
.device-laptop {
    background: #0b101d;
    border: 1px solid var(--border-color);
    border-radius: 10px 10px 2px 2px;
    padding: 0.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.device-laptop-bar { display: flex; gap: 0.3rem; padding: 0 0.2rem 0.4rem 0.2rem; }
.device-laptop-bar span { width: 6px; height: 6px; border-radius: 50%; background: #334155; }
.device-screen {
    background: linear-gradient(180deg, #0e1424, #070a11);
    border-radius: 4px;
    padding: 0.7rem;
    height: 190px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.device-screen-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.device-screen-header .brand { font-size: 0.55rem; font-weight: 900; color: var(--brand-green); letter-spacing: 1px; }
.device-screen-header .price { font-size: 0.6rem; font-weight: 800; color: #fff; }
.device-chart { display: flex; align-items: flex-end; gap: 3px; height: 100px; }
.candle { width: 5px; border-radius: 1px; position: relative; }
.candle.up { background: var(--brand-green); }
.candle.down { background: #ef4444; opacity: 0.85; }
.device-laptop-base {
    height: 8px;
    background: linear-gradient(180deg, #1a2233, #0b101d);
    border-radius: 0 0 8px 8px;
    margin-top: 2px;
}
.device-laptop-stand {
    width: 40%;
    height: 6px;
    background: #0b101d;
    border: 1px solid var(--border-color);
    border-top: none;
    margin: 0 auto;
    border-radius: 0 0 6px 6px;
}
.device-phone {
    position: absolute;
    right: -6%;
    bottom: -6%;
    width: 34%;
    aspect-ratio: 9 / 18;
    background: #0b101d;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.4rem 0.35rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}
.device-phone-screen {
    background: linear-gradient(180deg, #0e1424, #070a11);
    border-radius: 10px;
    height: 100%;
    padding: 0.5rem 0.4rem;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.device-phone-screen .dot-row { display: flex; gap: 3px; }
.device-phone-screen .dot-row span { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-green); }
.device-phone-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.device-phone-bar.green { background: var(--brand-green); width: 60%; }
.device-phone-bar.red { background: #ef4444; opacity: 0.7; width: 40%; }
.device-phone-mini-chart { display: flex; align-items: flex-end; gap: 2px; height: 40px; margin-top: auto; }
.device-phone-mini-chart .bar { flex: 1; background: rgba(140,198,63,0.5); border-radius: 1px; }

@media (max-width: 768px) {
    .device-stage { max-width: 300px; }
}

/* ==========================================
   FOTOGRAFÍA: TARJETAS Y FONDOS DE SECCIÓN
   ========================================== */
.section-photo-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}
.section-photo-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,8,13,0.94) 0%, rgba(5,8,13,0.88) 40%, rgba(5,8,13,0.96) 100%);
    z-index: 0;
}
.section-photo-bg > .container { position: relative; z-index: 1; }

.market-grid-photo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.market-card {
    position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3;
    background-size: cover; background-position: center;
    border: 1px solid var(--border-color);
}
.market-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,8,13,0.1) 0%, rgba(5,8,13,0.92) 100%);
}
.market-card span {
    position: absolute; left: 0.6rem; bottom: 0.5rem; z-index: 1;
    color: #fff; font-weight: 900; font-size: 0.75rem; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 0.35rem;
}
.market-card span i { color: var(--brand-green); font-size: 1rem; }

.feature-photo-card {
    position: relative; border-radius: 10px; overflow: hidden;
    background-size: cover; background-position: center;
    aspect-ratio: 16/10; border: 1px solid var(--border-color); margin-bottom: 0.6rem;
}
.feature-photo-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,8,13,0.05) 0%, rgba(5,8,13,0.85) 100%);
}

.point-photo-thumb {
    width: 100%; aspect-ratio: 16/9; border-radius: 8px 8px 0 0; overflow: hidden;
    background-size: cover; background-position: center; position: relative;
}
.point-photo-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(11,16,29,0.95) 100%);
}

.trading-central-photo {
    width: 100%; border-radius: 10px; border: 1px solid var(--border-color);
    overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.trading-central-photo img { width: 100%; display: block; }

