/* ============================================================
   CAPITAL DIGITAL SUR — Argentina edition
   Layout: Magazine with full-bleed hero + sidebar cards
   Namespace: .cds-*
   Palette: Deep indigo #1e1b4b + electric cyan #0ea5e9 + slate
   Fonts: system-ui grotesk stack (tech-forward)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f8fafc;
  --bg-dk:     #f1f5f9;
  --ink:       #0f172a;
  --ink-mid:   #1e293b;
  --ink-lt:    #334155;
  --accent:    #0ea5e9;
  --accent-dk: #0284c7;
  --indigo:    #1e1b4b;
  --indigo-lt: #312e81;
  --rule:      #e2e8f0;
  --muted:     #64748b;
  --positive:  #059669;
  --negative:  #dc2626;
  --f-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
  --max-w:     1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); line-height: 1.65; }

/* ── AD TAG ── */
.cds-adtag {
  background: var(--indigo);
  color: rgba(255,255,255,0.6);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px;
  font-family: var(--f-body);
}

/* ── NAVBAR ── */
.cds-navbar {
  background: var(--indigo);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.cds-navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.cds-navbar-brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cds-brand-main {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.03em;
}
.cds-brand-accent { color: var(--accent); }
.cds-brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.cds-navbar-edition {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.3);
  padding: 4px 12px;
  border-radius: 2px;
}

/* ── HERO FULL-BLEED ── */
.cds-hero {
  position: relative;
  background: var(--indigo);
  overflow: hidden;
  max-height: 560px;
}
.cds-hero img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  display: block;
}
.cds-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px;
  background: linear-gradient(to top, rgba(30,27,75,0.95) 0%, rgba(30,27,75,0.4) 60%, transparent 100%);
}
.cds-hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 14px;
  width: fit-content;
}
.cds-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin-bottom: 16px;
}
.cds-hero-dek {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.cds-hero-byline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  gap: 16px;
}
.cds-hero-byline span { display: flex; align-items: center; gap: 5px; }

/* ── PAGE GRID ── */
.cds-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── BODY COPY ── */
.cds-body-copy p {
  margin-bottom: 1.3em;
  font-size: 1.02rem;
  color: var(--ink-lt);
}
.cds-body-copy p.cds-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}
.cds-body-copy h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--indigo);
  margin: 2.2em 0 0.7em;
  letter-spacing: -0.02em;
}

/* callout / pull-quote */
.cds-callout {
  background: var(--indigo);
  color: #fff;
  padding: 28px 32px;
  margin: 2.2em 0;
  border-radius: 4px;
  position: relative;
}
.cds-callout::before {
  content: '\201C';
  position: absolute;
  top: 10px; left: 22px;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
}
.cds-callout p {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: #fff;
  padding-left: 24px;
  margin-bottom: 12px;
}
.cds-callout cite {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 24px;
}

/* platform card */
.cds-platform-box {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
  margin: 2em 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cds-platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--indigo);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 8px;
  margin-bottom: 14px;
}
.cds-platform-box .cds-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cds-platform-box h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
  color: var(--indigo);
}
.cds-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.cds-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--ink-lt);
}
.cds-feature-item::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.cds-risk-alert {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #78350f;
}

/* ── TRADE TICKER ── */
.cds-ticker-grid {
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  margin: 2em 0;
}
.cds-ticker-header {
  background: var(--indigo-lt);
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  padding: 10px 20px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.cds-ticker-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  align-items: center;
  transition: background 0.2s;
}
.cds-ticker-row:hover { background: rgba(255,255,255,0.03); }
.cds-t-name { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.cds-t-val { font-family: var(--f-mono); font-size: 1.05rem; font-weight: 700; }
.cds-t-pos { color: #34d399; }
.cds-t-neg { color: #f87171; }
.cds-t-note { font-size: 0.62rem; color: rgba(255,255,255,0.3); text-align: right; }

/* result card */
.cds-result-card {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-lt) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 32px;
  margin: 2em 0;
}
.cds-result-card .cds-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.cds-result-card h2 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.3;
}
.cds-result-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.cds-kpi {
  background: rgba(255,255,255,0.06);
  padding: 16px;
  text-align: center;
}
.cds-kpi span { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.cds-kpi strong { font-family: var(--f-mono); font-size: 1.15rem; color: #fff; }
.cds-result-card p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.cds-result-card strong { color: rgba(255,255,255,0.85); }

/* inline image */
.cds-visual { margin: 2.2em 0; }
.cds-visual img { width: 100%; height: auto; display: block; border-radius: 4px; }
.cds-visual figcaption {
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  margin-top: 8px;
}

/* CTA block */
.cds-cta-section {
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 36px;
  margin: 2.2em 0;
  text-align: center;
  background: linear-gradient(to bottom right, rgba(14,165,233,0.04), transparent);
}
.cds-cta-section .cds-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cds-cta-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 10px;
}
.cds-cta-section p { color: var(--muted); margin-bottom: 22px; }
.cds-cta-section small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 12px;
  line-height: 1.5;
}

/* button */
.cds-btn {
  background: var(--accent);
  color: #fff;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.cds-btn:hover { background: var(--accent-dk); transform: translateY(-1px); }
.cds-btn-full { width: 100%; }

/* steps */
.cds-steps { margin: 1.5em 0; list-style: none; }
.cds-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--ink-lt);
}
.cds-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* notice box */
.cds-notice {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 2em 0;
}
.cds-notice strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.cds-notice ul { list-style: none; padding: 0; }
.cds-notice ul li {
  padding: 5px 0;
  font-size: 0.87rem;
  color: var(--ink-lt);
  display: flex;
  gap: 8px;
}
.cds-notice ul li::before { content: '▸'; color: var(--accent); flex-shrink: 0; }

/* ── SIDEBAR CARDS ── */
.cds-sidebar { display: flex; flex-direction: column; gap: 24px; }
.cds-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.cds-card-head {
  background: var(--indigo);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.cds-card-body { padding: 16px; }
.cds-card-body p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}
.cds-market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
}
.cds-market-row:last-child { border-bottom: none; }
.cds-market-row .cds-sym { font-weight: 700; color: var(--ink); font-family: var(--f-mono); }
.cds-market-row .cds-chg-pos { color: var(--positive); font-weight: 600; }
.cds-market-row .cds-chg-neg { color: var(--negative); font-weight: 600; }

/* ── FOOTER ── */
.cds-footer {
  background: var(--indigo);
  color: rgba(255,255,255,0.5);
  padding: 48px 32px;
}
.cds-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.cds-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cds-footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; }
.cds-footer-brand span { color: var(--accent); }
.cds-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.cds-footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.78rem; }
.cds-footer-links a:hover { color: var(--accent); }
.cds-legal-text {
  font-size: 0.68rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.35);
}
.cds-legal-text p { margin-bottom: 0.8em; }
.cds-legal-text a { color: rgba(255,255,255,0.45); }

/* eyebrow shared */
.cds-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── MODAL ── */
.cds-popup-layer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.8);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.cds-popup-layer.open { display: flex; }
.cds-popup {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.cds-popup-header {
  background: var(--indigo);
  padding: 24px 28px 20px;
}
.cds-popup-header p {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.cds-popup-header h2 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}
.cds-popup-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cds-popup-body { padding: 26px 28px; }
.cds-progress-track { height: 3px; background: var(--rule); margin-bottom: 22px; }
.cds-progress-fill { height: 100%; background: var(--accent); width: 50%; transition: width 0.3s; border-radius: 2px; }
.cds-popup-step { display: none; }
.cds-popup-step.active { display: block; }
.cds-inp-row { margin-bottom: 14px; }
.cds-inp-row label { display: block; font-size: 0.74rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.cds-inp-row input {
  width: 100%;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}
.cds-inp-row input:focus { border-color: var(--accent); }
.cds-chk-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.76rem; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.cds-chk-row input { flex-shrink: 0; margin-top: 3px; }
.cds-chk-row a { color: var(--indigo); }
.cds-err { background: #fee2e2; border-radius: 4px; padding: 8px 12px; font-size: 0.76rem; color: #991b1b; margin-bottom: 12px; display: none; }
.cds-err.visible { display: block; }
.cds-risk-txt { background: #fef9c3; border-radius: 4px; padding: 8px 12px; font-size: 0.72rem; color: #713f12; margin-bottom: 14px; }
.cds-btn-secondary { background: none; border: 1.5px solid var(--rule); color: var(--muted); border-radius: 4px; padding: 10px; font-size: 0.82rem; cursor: pointer; width: 100%; margin-top: 8px; }
.cds-success-body { text-align: center; padding: 16px 0; }
.cds-ok-icon { width: 56px; height: 56px; background: var(--positive); border-radius: 50%; color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.cds-success-body h3 { color: var(--ink); margin-bottom: 8px; }
.cds-success-body p { font-size: 0.78rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 840px) {
  .cds-page { grid-template-columns: 1fr; padding: 32px 20px 60px; }
  .cds-hero h1 { font-size: 1.8rem; }
  .cds-hero-overlay { padding: 28px 24px; }
  .cds-result-kpis { grid-template-columns: 1fr; }
  .cds-feature-grid { grid-template-columns: 1fr; }
  .cds-navbar { position: static; }
}
html.information-modal-open { overflow: hidden; }

.information-modal {
  box-sizing: border-box;
  width: min(512px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 36px;
  border: 0;
  border-top: 4px solid var(--indigo);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(15, 24, 39, .3);
  overflow-y: auto;
  font-family: var(--f-body);
}
.information-modal::backdrop { background: rgba(15, 24, 39, .72); }
.information-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}
.information-eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.information-modal h2 {
  margin: 0 0 27px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--rule);
  color: var(--indigo);
  font: bold 25px/1.2 var(--f-heading);
  letter-spacing: -.025em;
}
.information-field { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 700; }
.information-field input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 45px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.information-consent { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; color: var(--ink-lt); font-size: 13px; line-height: 1.5; }
.information-consent input { flex: 0 0 auto; width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--indigo); }
.information-consent a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 2px; }
.information-consent-field { margin: 12px 0; }
.information-consent-field .information-consent { margin: 0; }
.information-error { margin: 6px 0 0 25px; color: #b42318; font-size: 12px; line-height: 1.4; }
.information-consent-field.is-invalid .information-consent input { outline: 2px solid #b42318; outline-offset: 2px; }
.information-submit { width: 100%; margin-top: 8px; padding: 15px; border: 0; border-radius: 2px; background: var(--indigo); color: #fff; font: bold 16px/1.2 var(--f-body); cursor: pointer; transition: background .2s; }
.information-submit:hover { background: var(--accent-dk); }
.information-modal :focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.information-success > p:not(.information-eyebrow) { margin: 0 0 18px; line-height: 1.6; }
@media (max-width: 540px) { .information-modal { padding: 32px 22px 24px; } .information-modal h2 { font-size: 23px; } }
