/* ============================================================
   ML TRADEX — INVERSIÓN MERCADO LIBRE (ARGENTINA)
   Namespace: .mlt-* / Root Theme Variables
   ============================================================ */

:root {
  --mlt-primary: #0b1a30;       /* Deep Financial Navy */
  --mlt-primary-light: #162a4a;
  --mlt-accent: #0284c7;        /* Cobalt Blue */
  --mlt-accent-hover: #0369a1;
  --mlt-gold: #f59e0b;          /* High-converting Gold CTA */
  --mlt-gold-hover: #d97706;
  --mlt-gold-text: #1e1b4b;
  --mlt-meli-blue: #2563eb;
  --mlt-green: #10b981;
  --mlt-red: #ef4444;
  --mlt-ink: #0f172a;
  --mlt-ink-muted: #64748b;
  --mlt-surface: #ffffff;
  --mlt-surface-alt: #f8fafc;
  --mlt-surface-border: #e2e8f0;
  --mlt-radius-sm: 6px;
  --mlt-radius-md: 10px;
  --mlt-radius-lg: 16px;
  --mlt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mlt-container: 1200px;
  --mlt-shadow-sm: 0 2px 4px rgba(11, 26, 48, 0.05);
  --mlt-shadow-md: 0 6px 20px rgba(11, 26, 48, 0.08);
  --mlt-shadow-lg: 0 16px 40px rgba(11, 26, 48, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  color: var(--mlt-ink);
  background: #ffffff;
  font-family: var(--mlt-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, textarea, select {
  font: inherit;
}

.mlt-container {
  width: min(calc(100% - 36px), var(--mlt-container));
  margin-inline: auto;
}

/* ── 1. TOP BAR ── */
.mlt-top-bar {
  background: #060e1a;
  color: #94a3b8;
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0;
}

.mlt-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

.mlt-geo-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mlt-flag-icon {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
  background: linear-gradient(180deg, #75aadb 33%, #ffffff 33%, #ffffff 66%, #75aadb 66%);
  box-shadow: 0 0 1px rgba(0,0,0,0.4);
}

.mlt-ticker-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-weight: 500;
}

.mlt-pos {
  color: #34d399;
  font-weight: 700;
}

.mlt-neg {
  color: #f87171;
  font-weight: 700;
}

/* ── 2. NAVBAR ── */
.mlt-header {
  background: #ffffff;
  border-bottom: 1px solid var(--mlt-surface-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--mlt-shadow-sm);
}

.mlt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mlt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mlt-brand-logo {
  height: 44px;
  width: auto;
}

.mlt-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mlt-nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mlt-primary);
  transition: color 0.2s;
}

.mlt-nav-links a:hover {
  color: var(--mlt-accent);
}

.mlt-btn-header {
  background: var(--mlt-primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--mlt-radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.mlt-btn-header:hover {
  background: var(--mlt-accent);
  transform: translateY(-1px);
}

/* ── 3. HERO SPLIT SECTION ── */
.mlt-hero {
  padding: 40px 0 50px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--mlt-surface-border);
}

.mlt-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.mlt-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mlt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mlt-meli-blue);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 30px;
  align-self: flex-start;
  border: 1px solid #dbeafe;
}

.mlt-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--mlt-primary);
  margin: 0;
  letter-spacing: -0.03em;
}

.mlt-title-highlight {
  color: var(--mlt-meli-blue);
  position: relative;
}

.mlt-dek {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--mlt-ink-muted);
  margin: 0;
}

/* Hero Media with Floating Return Badge */
.mlt-hero-media-wrap {
  position: relative;
  border-radius: var(--mlt-radius-lg);
  overflow: hidden;
  box-shadow: var(--mlt-shadow-md);
  margin-top: 10px;
  border: 1px solid var(--mlt-surface-border);
}

.mlt-hero-media-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
}

.mlt-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(11, 26, 48, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--mlt-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mlt-stat-pill {
  background: #10b981;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--mlt-radius-sm);
  line-height: 1;
}

.mlt-stat-text {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.mlt-stat-text strong {
  color: #ffffff;
  display: block;
}

/* ── 4. FLOATING LEAD CARD (RIGHT COLUMN) ── */
.mlt-lead-card {
  background: #ffffff;
  border-radius: var(--mlt-radius-lg);
  padding: 30px;
  box-shadow: var(--mlt-shadow-lg);
  border: 1px solid var(--mlt-surface-border);
  position: sticky;
  top: 90px;
}

.mlt-lead-card-head {
  margin-bottom: 20px;
  text-align: center;
}

.mlt-form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mlt-primary);
  margin: 0 0 6px;
  line-height: 1.25;
}

.mlt-form-sub {
  font-size: 0.86rem;
  color: var(--mlt-ink-muted);
  margin: 0;
}

.mlt-form-group {
  margin-bottom: 14px;
}

.mlt-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mlt-primary);
  margin-bottom: 4px;
}

.mlt-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mlt-surface-border);
  border-radius: var(--mlt-radius-sm);
  font-size: 0.95rem;
  color: var(--mlt-ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mlt-input:focus {
  border-color: var(--mlt-accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.mlt-phone-wrap {
  display: flex;
  gap: 8px;
}

.mlt-phone-prefix {
  width: 90px;
  background: #f1f5f9;
  border: 1.5px solid var(--mlt-surface-border);
  border-radius: var(--mlt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mlt-primary);
  flex-shrink: 0;
}

.mlt-checkbox-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--mlt-ink-muted);
}

.mlt-checkbox-wrap input {
  margin-top: 3px;
  accent-color: var(--mlt-meli-blue);
}

.mlt-checkbox-wrap a {
  color: var(--mlt-accent);
  text-decoration: underline;
}

.mlt-submit-btn {
  width: 100%;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: var(--mlt-gold-text);
  font-size: 1.05rem;
  font-weight: 900;
  padding: 15px 20px;
  border: none;
  border-radius: var(--mlt-radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mlt-submit-btn:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

.mlt-form-fineprint {
  font-size: 0.74rem;
  color: var(--mlt-ink-muted);
  text-align: center;
  margin: 12px 0 16px;
  line-height: 1.4;
}

.mlt-payments-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--mlt-surface-border);
}

.mlt-payments-row img {
  max-width: 260px;
  opacity: 0.85;
}

/* ── 5. SECONDARY VALUE STRIP ── */
.mlt-value-strip {
  background: var(--mlt-primary);
  color: #ffffff;
  padding: 22px 0;
  text-align: center;
}

.mlt-value-strip p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mlt-value-strip span {
  color: var(--mlt-gold);
}

/* ── 6. FEATURES / BENEFITS SECTION ── */
.mlt-features {
  padding: 60px 0;
  background: #ffffff;
}

.mlt-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.mlt-section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--mlt-primary);
  margin: 0 0 10px;
}

.mlt-section-head p {
  font-size: 1rem;
  color: var(--mlt-ink-muted);
  margin: 0;
}

.mlt-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mlt-feature-card {
  background: #f8fafc;
  border: 1px solid var(--mlt-surface-border);
  border-radius: var(--mlt-radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mlt-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mlt-shadow-md);
  border-color: #cbd5e1;
}

.mlt-feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  background: #ffffff;
  border: 1.5px solid var(--mlt-surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mlt-meli-blue);
  box-shadow: var(--mlt-shadow-sm);
}

.mlt-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mlt-primary);
  margin: 0 0 10px;
  line-height: 1.35;
}

.mlt-feature-card p {
  font-size: 0.88rem;
  color: var(--mlt-ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── 7. SECONDARY CTA BANNER ── */
.mlt-cta-banner {
  background: #f1f5f9;
  padding: 44px 0;
  text-align: center;
  border-top: 1px solid var(--mlt-surface-border);
  border-bottom: 1px solid var(--mlt-surface-border);
}

.mlt-cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--mlt-primary);
  margin: 0 0 12px;
}

.mlt-cta-banner p {
  font-size: 1rem;
  color: var(--mlt-ink-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

.mlt-cta-banner-btn {
  display: inline-block;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: var(--mlt-gold-text);
  font-size: 1rem;
  font-weight: 900;
  padding: 16px 36px;
  border-radius: var(--mlt-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  cursor: pointer;
  border: none;
}

.mlt-cta-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

/* ── 8. FOOTER ── */
.mlt-footer {
  background: #060e1a;
  color: #94a3b8;
  padding: 48px 0 32px;
}

.mlt-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mlt-footer-brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.mlt-footer-brand span {
  color: var(--mlt-accent);
}

.mlt-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mlt-footer-links a {
  color: #cbd5e1;
  font-size: 0.86rem;
}

.mlt-footer-links a:hover {
  color: var(--mlt-gold);
}

.mlt-footer-disclaimer {
  padding-top: 24px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #64748b;
}

/* ── 9. MODAL POPUP (GLOBAL DELEGATION) ── */
.mlt-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 48, 0.8);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mlt-modal.is-active {
  display: flex;
}

.mlt-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: var(--mlt-radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: mlt-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mlt-pop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.mlt-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.mlt-notification {
  display: none;
  padding: 12px 16px;
  border-radius: var(--mlt-radius-sm);
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.mlt-notification.is-success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.mlt-notification.is-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── 10. RESPONSIVE BREAKPOINTS ── */
@media (max-width: 991px) {
  .mlt-hero-grid {
    grid-template-columns: 1fr;
  }
  .mlt-lead-card {
    position: static;
  }
  .mlt-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mlt-nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .mlt-features-grid {
    grid-template-columns: 1fr;
  }
  .mlt-top-bar {
    display: none;
  }
  .mlt-title {
    font-size: 1.85rem;
  }
  .mlt-footer-top {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
