/* =============================================================
   QLARO · Master stylesheet
   Identidad: Findalia Direction 1 — Fintech Premium
   Navy + Gold · Inter Tight + Inter
   v 20260606
   ============================================================= */

:root {
  /* ===== PALETA NAVY + GOLD ===== */
  --navy:        #0B1A3A;
  --navy-2:      #152546;
  --navy-3:      #1F3055;
  --navy-deep:   #060E20;
  --gold:        #FFC857;
  --gold-2:      #FFB733;
  --gold-soft:   #FFE7A8;
  --gold-tint:   rgba(255, 200, 87, 0.12);
  --gold-tint-2: rgba(255, 200, 87, 0.22);
  --gold-glow:   rgba(255, 200, 87, 0.35);

  --paper:       #F4F6FB;
  --paper-2:     #ECEFF7;
  --white:       #FFFFFF;
  --white-soft:  rgba(255, 255, 255, 0.86);

  --ink:         #0B1A3A;
  --ink-soft:    #233252;
  --muted:       #5C6885;
  --muted-2:     #8993AB;
  --line:        #E5E9F2;
  --line-2:      #D7DDEB;

  /* Aliases para compatibilidad con CSS existente */
  --bg:           var(--paper);
  --bg-2:         var(--paper-2);
  --bg-3:         #DEE3EF;
  --glass:        rgba(255, 255, 255, 0.55);
  --glass-strong: var(--white-soft);
  --glass-frosted: rgba(255, 255, 255, 0.94);
  --ink-mute:     var(--muted);
  --ink-dim:      var(--muted-2);
  --accent:       var(--gold);
  --accent-2:     var(--gold-2);
  --accent-3:     var(--gold-soft);
  --accent-tint:  var(--gold-tint);
  --accent-tint-2: var(--gold-tint-2);
  --accent-tint-3: var(--gold-glow);
  --line-soft:    var(--line);
  --line-strong:  var(--line-2);

  /* Gradientes (añadidos por petición del user) */
  --grad-navy:        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%);
  --grad-navy-soft:   linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  --grad-gold:        linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 50%, var(--gold-soft) 100%);
  --grad-gold-glow:   radial-gradient(circle at 50% 0%, rgba(255, 200, 87, 0.28) 0%, transparent 60%);
  --grad-paper:       linear-gradient(180deg, var(--paper) 0%, #FAFBFE 100%);
  --grad-text-gold:   linear-gradient(120deg, var(--gold-2) 0%, var(--gold) 50%, var(--gold-soft) 100%);
  --grad-text-navy:   linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-3) 100%);

  /* Sombras */
  --shadow-soft:   0 8px 24px -8px rgba(11, 26, 58, 0.10);
  --shadow:        0 16px 40px -16px rgba(11, 26, 58, 0.18), 0 2px 6px rgba(11, 26, 58, 0.04);
  --shadow-strong: 0 28px 70px -20px rgba(11, 26, 58, 0.28);
  --shadow-gold:   0 16px 40px -12px rgba(255, 200, 87, 0.45);

  /* Tipografía */
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --serif:   var(--display);  /* alias para compat: el ex-serif ahora es display */

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --gutter: clamp(1.25rem, 3vw, 2.4rem);
  --container: 1280px;
  --container-card: 1180px;
  --container-narrow: 1180px;
  --container-article: min(92%, 1240px);
  --section-y: clamp(2.4rem, 5vw, 4rem);
  --radius: 24px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --card-radius-q: 18px;
}

/* =============================================================
   Reset
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper);
  background-image: var(--grad-gold-glow);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 800px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: clip;
  overscroll-behavior-y: none;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; color: var(--navy); }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--navy); color: var(--gold); z-index: 9999; border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 1rem; }

/* =============================================================
   Layout helpers
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.byline { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.byline strong { color: var(--ink); font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =============================================================
   Splash
   ============================================================= */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--paper); animation: splashSafety .01s 4s forwards; pointer-events: all; }
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-out); }
.splash-q { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 12vw, 9rem); letter-spacing: -0.045em; display: inline-flex; align-items: center; gap: 2px; animation: splashRise 1.2s var(--ease-out) both; }
.splash-q .q { background: var(--grad-text-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-q em { font-style: normal; color: var(--navy); }
.splash-q .dot { color: var(--gold); transform: translateY(0.15em) rotate(45deg); display: inline-block; font-size: 0.55em; margin-left: -0.05em; }
@keyframes splashRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }

/* =============================================================
   Floating clouds background (decoration)
   ============================================================= */
.bg-clouds {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: cloudFloat 22s ease-in-out infinite;
}
.cloud-1 { top: -15%; left: -8%; width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, var(--gold-tint-2) 0%, transparent 70%); animation-delay: 0s; }
.cloud-2 { top: 30%; right: -10%; width: 38vw; height: 38vw; max-width: 540px; max-height: 540px; background: radial-gradient(circle, rgba(11, 26, 58, 0.08) 0%, transparent 70%); animation-delay: -8s; }
.cloud-3 { bottom: -10%; left: 25%; width: 45vw; height: 45vw; max-width: 640px; max-height: 640px; background: radial-gradient(circle, rgba(255, 200, 87, 0.10) 0%, transparent 70%); animation-delay: -14s; }
@keyframes cloudFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.05); }
}

/* main wraps content above clouds */
main, header, footer { position: relative; z-index: 1; }

/* =============================================================
   Masthead
   ============================================================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 251, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
  transition: padding .3s var(--ease-out), background .3s;
}
.masthead.is-compact { padding-block: 0.7rem; box-shadow: var(--shadow-soft); }
.masthead-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.masthead-issue, .masthead-meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.masthead-meta { text-align: right; display: flex; justify-content: flex-end; align-items: center; }
.masthead-brand { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 2.8rem); letter-spacing: -0.045em; display: inline-flex; align-items: center; line-height: 0.9; justify-self: center; gap: 0; }
.brand-q, .masthead-brand .q { color: var(--gold); background: var(--grad-text-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.masthead-brand em { font-style: normal; color: var(--navy); }
.masthead-brand .dot { color: var(--gold); transform: translateY(0.18em) rotate(45deg); display: inline-block; font-size: 0.55em; margin-left: 0.02em; }

.masthead-nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); justify-content: center; padding-block: 0.8rem 0; margin-top: 0.6rem; border-top: 1px solid var(--line); flex-wrap: wrap; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.masthead-nav a { font-family: var(--sans); font-size: .82rem; letter-spacing: 0.04em; color: var(--navy); position: relative; padding: .2rem 0; font-weight: 600; transition: color .2s; }
.masthead-nav a[aria-current="page"] { color: var(--gold-2); }
.masthead-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--grad-gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.masthead-nav a:hover::after, .masthead-nav a[aria-current="page"]::after { transform: scaleX(1); }
.masthead-nav a:hover { color: var(--gold-2); }

/* Auth button — navy con gold dot */
.auth-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px 9px 9px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .25s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.auth-cta:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(11, 26, 58, 0.36); }
.auth-cta-avatar { width: 24px; height: 24px; border-radius: 8px; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: -0.05em; }
.auth-cta.is-logged-in .auth-cta-label { display: none; }
.auth-cta.is-logged-in .auth-cta-name { display: inline; }
.auth-cta-name { display: none; }
@media (max-width: 720px) {
  .auth-cta { padding: 7px 14px 7px 7px; font-size: 12px; }
  .auth-cta-avatar { width: 20px; height: 20px; font-size: 12px; }
  .masthead-issue { display: none; }
  .masthead-top { grid-template-columns: auto 1fr; }
  .masthead-meta { grid-column: 2; }
  .masthead-brand { grid-column: 1; justify-self: start; font-size: 1.8rem; }
}

/* =============================================================
   Hero (clean) — Findalia premium
   ============================================================= */
.hero-clean { padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); text-align: center; position: relative; }
.hero-clean .container { max-width: 1100px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px -4px rgba(11, 26, 58, 0.08);
}
.hero-eyebrow .dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: pulseGold 2.2s ease-in-out infinite; box-shadow: 0 0 12px var(--gold); }
@keyframes pulseGold { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

.hero-clean h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 1.4rem;
  text-wrap: balance;
  color: var(--navy);
}
.hero-clean h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--gold) 62%);
  padding: 0 0.1em 0.05em;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  display: inline;
}
.hl, .hero-clean h1 .hl {
  background: linear-gradient(180deg, transparent 62%, var(--gold) 62%);
  padding: 0 0.1em 0.05em;
  font-style: normal;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  display: inline;
}
.hero-clean .hero-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 2.4rem;
}

/* Newsletter inline */
.hero-newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  max-width: 500px;
  width: 100%;
  margin-inline: auto;
  background: var(--white);
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 18px 48px -16px rgba(11, 26, 58, 0.22), 0 2px 8px rgba(11, 26, 58, 0.04);
  border: 1px solid var(--line);
  box-sizing: border-box;
}
.hero-newsletter input[type=email] {
  width: 100%;
  min-width: 0;
  padding: 14px 22px;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--navy);
  outline: none;
  border-radius: 10px;
}
.hero-newsletter input::placeholder { color: var(--muted-2); }
.hero-newsletter button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  padding: 14px 24px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform .25s, box-shadow .3s, background .25s;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
}
.hero-newsletter button[type=submit]:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.hero-newsletter .success-msg,
.cta-form .success-msg,
form[data-newsletter] .success-msg { display: none !important; }
@media (max-width: 540px) {
  .hero-newsletter { grid-template-columns: 1fr; }
  .hero-newsletter button[type=submit] { width: 100%; }
}

.hero-meta-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.hero-meta-row strong { color: var(--navy); font-weight: 700; }
.hero-meta-row .sep { width: 4px; height: 4px; background: var(--line-2); border-radius: 50%; }
.hero-alt-cta { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 3px; transition: gap .25s, color .25s; }
.hero-alt-cta:hover { gap: 12px; color: var(--gold-2); }

.hero-newsletter.is-done { display: none !important; }
.hero-success {
  display: none !important;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.hero-newsletter.is-done + .hero-success { display: block !important; }

/* =============================================================
   Buttons (Findalia square)
   ============================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background .25s, transform .25s, box-shadow .3s;
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(11, 26, 58, 0.36); }
.btn-primary .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  background: var(--gold); color: var(--navy);
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  transition: background .25s, color .25s;
}
.btn-secondary:hover { background: var(--navy); color: var(--gold); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--gold-soft);
  color: var(--navy);
  border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
}
.btn-ghost:hover { background: var(--gold); }
.btn-accent, .cmp-btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 12px;
  font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  transition: transform .25s, box-shadow .3s, background .25s;
}
.btn-accent:hover, .cmp-btn-accent:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.cmp-btn-accent .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.cmp-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  border-bottom: 2px solid var(--gold);
  padding: 4px 0;
  transition: color .2s, gap .2s var(--ease-out);
}
.cmp-link:hover { color: var(--gold-2); gap: 12px; }

/* =============================================================
   Sections + frames
   ============================================================= */
.section, .cmp-section { padding-block: clamp(1.4rem, 3vw, 2.8rem); padding-inline: var(--gutter); }
.frame, .cmp-frame {
  max-width: var(--container-card);
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cmp-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-gold);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.cmp-frame:hover::before { opacity: 1; }
.cmp-frame-narrow, .frame-narrow { max-width: var(--container-narrow); }

.cmp-head, .section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.8rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}
.cmp-head h2, .section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}
.cmp-head h2 em, .section-head h2 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, var(--gold) 60%);
  padding: 0 0.1em 0.05em;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
}
.cmp-head .tag, .section-head .tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* =============================================================
   Card grids
   ============================================================= */
.cmp-hub-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 720px) { .cmp-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cmp-hub-grid { grid-template-columns: repeat(3, 1fr); } }
.cmp-hub-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
  position: relative;
  overflow: hidden;
}
.cmp-hub-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.cmp-hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); border-color: var(--gold); }
.cmp-hub-card:hover::after { transform: scaleX(1); }
.cmp-hub-tag {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.cmp-hub-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--navy);
}
.cmp-hub-title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--gold) 62%);
  padding: 0 0.08em;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
}
.cmp-hub-desc { font-family: var(--sans); font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.cmp-hub-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.cmp-hub-pick { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.cmp-hub-pick strong { color: var(--navy); font-weight: 700; }
.cmp-hub-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--navy);
  transition: background .25s, color .25s, transform .25s;
}
.cmp-hub-card:hover .cmp-hub-arrow { background: var(--gold); color: var(--navy); transform: translateX(2px); }

/* =============================================================
   Feature cards (con imagen lateral)
   ============================================================= */
.cmp-hub-grid.feature { grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .cmp-hub-grid.feature { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); border-color: var(--gold); }
.feature-card-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2);
}
.feature-card-eyebrow .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 8px var(--gold); }
.feature-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}
.feature-card h3 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--gold) 62%);
  padding: 0 0.08em;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
}
.feature-card p { font-family: var(--sans); font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.feature-card p strong { color: var(--navy); font-weight: 600; }
.feature-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.feature-card-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--navy);
  transition: background .25s, color .25s, transform .3s;
}
.feature-card:hover .feature-card-arrow { background: var(--gold); color: var(--navy); transform: translateX(3px); }
.feature-card-read { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.feature-card-read strong { color: var(--navy); font-weight: 700; }

/* Feature card con imagen lateral */
.feature-card.has-image {
  grid-template-columns: 110px 1fr;
  grid-template-areas:
    "img eyebrow"
    "img title"
    "img desc"
    "img foot";
  gap: 14px 22px;
  align-items: start;
}
.feature-card-img {
  grid-area: img;
  width: 110px; height: 110px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  align-self: start;
  box-shadow: 0 8px 20px -10px rgba(11, 26, 58, 0.2);
  position: relative;
}
.feature-card-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(11,26,58,0.4) 100%);
  opacity: 0;
  transition: opacity .4s;
}
.feature-card.has-image:hover .feature-card-img::after { opacity: 1; }
.feature-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.feature-card.has-image:hover .feature-card-img img { transform: scale(1.08); }
.feature-card.has-image .feature-card-eyebrow { grid-area: eyebrow; align-self: end; }
.feature-card.has-image h3 { grid-area: title; }
.feature-card.has-image p { grid-area: desc; }
.feature-card.has-image .feature-card-foot { grid-area: foot; }
@media (max-width: 540px) {
  .feature-card.has-image {
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "img eyebrow"
      "img title"
      "desc desc"
      "foot foot";
    gap: 10px 14px;
  }
  .feature-card-img { width: 80px; height: 80px; }
}

/* =============================================================
   Rank list
   ============================================================= */
.cmp-rank-list { display: flex; flex-direction: column; gap: 14px; position: relative; }
.cmp-rank-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color .3s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
  position: relative;
}
.cmp-rank-row:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.cmp-rank-row .rank-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--line-2);
  letter-spacing: -0.05em;
}
.cmp-rank-row.is-top .rank-num { background: var(--grad-text-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cmp-rank-row.is-top {
  border: 2px solid var(--gold);
}
.cmp-rank-row.is-top::before {
  content: "Top pick";
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-meta-wrap { display: flex; gap: 1.1rem; align-items: center; min-width: 0; }
.cmp-rank-row .brand-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.cmp-rank-row .brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 4px;
}
.cmp-rank-row .brand-info { font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.45; }
.cmp-rank-row .brand-info strong { color: var(--navy); font-weight: 700; }
.cmp-rank-row .rank-score { padding-inline: .8rem; text-align: right; }
.cmp-rank-row .rank-cta { white-space: nowrap; text-align: right; }
.cmp-rank-row .rank-aff { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }

.cmp-score {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.cmp-score .num { font-size: 2.4rem; line-height: 1; }
.cmp-score .max { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); font-weight: 500; }

/* Lock overlay */
.cmp-rank-row.is-locked .rank-num, .cmp-rank-row.is-locked .brand-meta, .cmp-rank-row.is-locked .rank-score, .cmp-rank-row.is-locked .rank-cta { filter: blur(8px); user-select: none; pointer-events: none; }
.cmp-rank-row.is-locked .lock-overlay { display: flex; }
.lock-overlay { display: none; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(244, 246, 251, 0.88), rgba(255,255,255, 0.92)); backdrop-filter: blur(8px); border-radius: 16px; align-items: center; justify-content: center; padding: 1.4rem; z-index: 5; }
.lock-card { background: var(--white); border: 2px solid var(--gold); border-radius: 14px; padding: 20px 24px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; max-width: 680px; width: 100%; box-shadow: var(--shadow-strong); }
.lock-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.lock-text { display: flex; flex-direction: column; gap: 12px; }
.lock-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.025em; line-height: 1.25; color: var(--navy); }
.lock-title em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); padding: 0 0.08em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.lock-sub { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.45; }
.lock-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 4px; }
.lock-form input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); font-size: 13px; color: var(--navy); background: var(--white); }
.lock-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.lock-form button { padding: 10px 16px; background: var(--navy); color: var(--gold); border-radius: 10px; font-family: var(--sans); font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .25s; }
.lock-form button:hover { background: var(--navy-2); }
@media (max-width: 720px) {
  .lock-card { grid-template-columns: 1fr; padding: 16px; }
  .lock-icon { display: none; }
  .lock-form { grid-template-columns: 1fr; }
  .cmp-rank-row { grid-template-columns: 50px 1fr; padding: 18px; }
  .cmp-rank-row .brand-meta { grid-column: 1 / -1; }
  .cmp-rank-row .rank-score, .cmp-rank-row .rank-cta { grid-column: 1 / -1; text-align: left; padding: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .cmp-rank-row .rank-cta .cmp-btn-accent { width: 100%; justify-content: center; }
}

/* Logo chips */
.cmp-logo-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 2.4rem; }
.cmp-logo-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
  transition: border-color .25s, color .25s, background .25s;
}
.cmp-logo-chip:hover { border-color: var(--gold); background: var(--gold-soft); }
.cmp-logo-chip .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* =============================================================
   Comparison table
   ============================================================= */
.cmp-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.cmp-table thead { background: var(--paper); }
.cmp-table th { text-align: left; font-family: var(--sans); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-soft); }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:hover { background: var(--paper); }
.cmp-table td.col-name { font-weight: 700; color: var(--navy); }
.cmp-table td.col-score { font-family: var(--display); font-weight: 800; color: var(--navy); }
.cmp-table .yes { color: var(--navy); font-weight: 700; }
.cmp-table .no { color: var(--muted-2); }

/* =============================================================
   CMP hero (páginas internas)
   ============================================================= */
.cmp-hero { padding: clamp(2.6rem, 5vw, 4.4rem) var(--gutter) clamp(2rem, 4vw, 3rem); position: relative; }
.cmp-hero .container { max-width: var(--container-card); }
.cmp-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 1.4rem; }
.cmp-hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
@media (min-width: 960px) { .cmp-hero-grid { grid-template-columns: 1.1fr 1fr; } }
.cmp-hero-figure { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--navy-deep); position: relative; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cmp-hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; display: block; }
.cmp-hero-figure::after { content: none; }
.cmp-hero-figure figcaption {
  position: absolute; bottom: 12px; left: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--navy);
  padding: 5px 10px; border-radius: 999px;
  z-index: 2;
}
.cmp-hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; max-width: 22ch; margin-bottom: 1.2rem; color: var(--navy); }
.cmp-hero-title em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); padding: 0 0.1em 0.05em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.cmp-hero-sub { font-family: var(--sans); font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.55; max-width: 64ch; }
.cmp-hero-sub em { font-style: normal; color: var(--navy); font-weight: 600; }
.cmp-hero-sub strong { color: var(--navy); font-weight: 700; }
.cmp-trust { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 1.4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.cmp-trust strong { color: var(--gold-2); font-weight: 700; }
.cmp-trust .sep { width: 4px; height: 4px; background: var(--line-2); border-radius: 50%; }

/* Badges */
.cmp-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: var(--gold); padding: 5px 11px; border-radius: 999px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; line-height: 1; }
.cmp-badge-soft { background: var(--gold-soft); color: var(--navy); }
.cmp-badge .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* Typographic emphasis */
.mono-em { font-family: var(--mono); font-weight: 600; font-style: normal; font-size: 0.94em; color: var(--gold-2); padding: 0 0.08em; }
.bold-em { font-family: var(--sans); font-weight: 700; color: var(--navy); }

/* Tool cards */
.cmp-tool-card { background: var(--navy); color: var(--gold-soft); border: 1px solid var(--navy); border-radius: 18px; padding: 1.8rem; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); position: relative; overflow: hidden; }
.cmp-tool-card::before { content: ""; position: absolute; top: -30%; right: -30%; width: 60%; height: 60%; background: var(--grad-gold-glow); opacity: 0.5; pointer-events: none; transition: opacity .4s; }
.cmp-tool-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -16px rgba(11, 26, 58, 0.4); }
.cmp-tool-card:hover::before { opacity: 1; }
.cmp-tool-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 4px; font-family: var(--display); font-weight: 800; box-shadow: var(--shadow-gold); }
.cmp-tool-title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; color: #fff; }
.cmp-tool-title em { font-style: normal; color: var(--gold); }
.cmp-tool-desc { font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.55; }
.cmp-tool-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--gold); padding-top: 8px; }

/* Pull quote */
.cmp-pull { margin: clamp(2.5rem, 5vw, 4rem) auto; max-width: 720px; text-align: center; padding: 1rem 0; }
.cmp-pull q {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  max-width: 26ch;
  margin: 0 auto;
  text-wrap: balance;
  color: var(--navy);
  quotes: "“" "”";
}
.cmp-pull q::before, .cmp-pull q::after { color: var(--gold); }

/* Article body */
.cmp-article { width: 92%; max-width: 1240px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.cmp-article > * + * { margin-top: 1.3rem; }
.cmp-article h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.85rem); letter-spacing: -0.03em; margin-top: 2.8rem !important; color: var(--navy); line-height: 1.2; }
.cmp-article h2 em { font-style: normal; background: linear-gradient(180deg, transparent 60%, var(--gold) 60%); padding: 0 0.1em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.cmp-article p { font-size: clamp(1.08rem, 0.45vw + 1rem, 1.24rem); line-height: 1.76; color: var(--ink-soft); }
.cmp-article p strong { color: var(--navy); font-weight: 700; }
.cmp-article p em { color: var(--gold-2); font-style: normal; font-weight: 600; }
.cmp-article ul { padding-left: 1.4rem; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.cmp-article li { margin-bottom: .5rem; }
.cmp-article li::marker { color: var(--gold); }
.cmp-dropcap {
  float: left;
  font-family: var(--display);
  font-weight: 800;
  font-size: 4.4em;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  background: var(--grad-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.05em;
}

/* FAQ */
.cmp-faq-list { max-width: 800px; margin: 0 auto; }
.cmp-faq-item { border-top: 1px solid var(--line); }
.cmp-faq-item:last-child { border-bottom: 1px solid var(--line); }
.cmp-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.4rem 0; width: 100%;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -0.025em;
  color: var(--navy);
  transition: color .2s;
}
.cmp-faq-q:hover { color: var(--gold-2); }
.cmp-faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-family: var(--sans); font-weight: 700; color: var(--navy);
  flex-shrink: 0;
  transition: transform .35s var(--ease-out), background .25s, color .25s, border-color .25s;
}
.cmp-faq-item.is-open .cmp-faq-icon { transform: rotate(45deg); background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cmp-faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out), padding .3s var(--ease-out), opacity .3s; opacity: 0; }
.cmp-faq-item.is-open .cmp-faq-a { max-height: 400px; opacity: 1; padding-bottom: 1.5rem; }
.cmp-faq-a-body { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; }

/* Native banner */
.cmp-banner {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  position: relative;
  margin-block: clamp(2.4rem, 4vw, 3rem);
  margin-inline: auto;
  max-width: var(--container-card);
  box-shadow: var(--shadow);
}
@media (min-width: 720px) { .cmp-banner { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 28px 32px; align-items: center; } }
.cmp-banner::before { content: "Boletín"; position: absolute; top: -11px; left: 22px; background: var(--navy); color: var(--gold); padding: 3px 12px; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; border-radius: 999px; }
.cmp-banner-text { display: flex; flex-direction: column; gap: 0.7rem; }
.cmp-banner-eye { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.cmp-banner h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.028em; line-height: 1.18; color: var(--navy); }
.cmp-banner h3 em { font-style: normal; background: linear-gradient(180deg, transparent 60%, var(--gold) 60%); padding: 0 0.1em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.cmp-banner p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.cmp-banner p strong { color: var(--navy); font-weight: 700; }
.cmp-banner-mini { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.cmp-banner-form { display: flex; flex-direction: column; gap: 10px; }
.cmp-banner-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); font-size: 13.5px; background: var(--paper); width: 100%; transition: border-color .25s, box-shadow .25s; }
.cmp-banner-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.cmp-banner-form button { padding: 12px 18px; border-radius: 10px; background: var(--navy); color: var(--gold); font-family: var(--sans); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .25s, transform .25s; }
.cmp-banner-form button:hover { background: var(--navy-2); transform: translateY(-1px); }
.cmp-banner.is-done { background: var(--gold-soft); }
.cmp-banner.is-done .cmp-banner-form { display: none; }
.cmp-banner-thx { display: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.cmp-banner.is-done .cmp-banner-thx { display: block; }

/* Calc */
.calc { background: var(--white); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); display: grid; gap: 1.4rem; box-shadow: var(--shadow); }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 1.2rem; }
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field-wide { grid-column: 1 / -1; }
.calc-field > label { font-family: var(--sans); font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.calc-help { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted-2); font-size: 10px; margin-left: 4px; }
.calc-input-wrap { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
.calc-input-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); background: var(--white); }
.calc-input-wrap input { flex: 1; border: 0; background: transparent; padding: 13px 0; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--navy); width: 100%; min-width: 0; }
.calc-input-wrap input:focus { outline: none; }
.calc-input-suffix { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 600; padding-left: 8px; }
.calc-tabs { display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.calc-tabs button { flex: 1; padding: 10px 12px; border-radius: 9px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--muted); background: transparent; transition: background .2s, color .2s; }
.calc-tabs button.is-active { background: var(--navy); color: var(--gold); }
.calc-select { appearance: none; -webkit-appearance: none; padding: 13px 38px 13px 14px; background-color: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235C6885' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; width: 100%; }
.calc-select:focus { outline: none; border-color: var(--gold); background-color: var(--white); }
.calc-slider-wrap { display: flex; gap: 14px; align-items: center; }
.calc-slider-wrap input[type=range] { flex: 1; }
.calc-value { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--navy); white-space: nowrap; min-width: 64px; text-align: right; letter-spacing: -0.03em; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; height: 5px; background: var(--line-2); border-radius: 999px; outline: none; padding: 0; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: var(--gold); border-radius: 50%; cursor: pointer; box-shadow: 0 4px 12px var(--gold-glow); border: 2px solid var(--navy); }
.calc input[type=range]::-moz-range-thumb { width: 20px; height: 20px; background: var(--gold); border-radius: 50%; border: 2px solid var(--navy); cursor: pointer; }
.calc input[type=range]:disabled { opacity: 0.35; }
.calc-toggle { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--navy); cursor: pointer; }
.calc-toggle input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 36px; height: 22px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s, border-color .2s; flex-shrink: 0; margin: 0; }
.calc-toggle input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--muted); border-radius: 50%; transition: transform .25s var(--ease-out), background .25s; }
.calc-toggle input[type=checkbox]:checked { background: var(--navy); border-color: var(--navy); }
.calc-toggle input[type=checkbox]:checked::after { background: var(--gold); transform: translateX(14px); }
.calc-results { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; padding-top: 1.4rem; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .calc-results { grid-template-columns: 1fr; } }
.calc-result-main { background: var(--grad-navy); color: #fff; border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 28px -14px rgba(11, 26, 58, 0.42); position: relative; overflow: hidden; }
.calc-result-main::before { content: ""; position: absolute; top: -50%; right: -30%; width: 60%; height: 200%; background: var(--grad-gold-glow); pointer-events: none; }
.calc-result-main > * { position: relative; }
.calc-result-main .calc-result-label { font-family: var(--sans); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--gold); }
.calc-result-main .calc-result-value { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; margin-top: 2px; color: #fff; }
.calc-result-main .calc-result-mini { font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; margin-top: 2px; }
.calc-result-sec { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.calc-result-sec > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.calc-result-sec .calc-result-label { font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--muted); }
.calc-result-sec .calc-result-value { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--navy); letter-spacing: -0.03em; }
/* ===== Mortgage simulator extras (entrada + impuestos CCAA) ===== */
.calc-toggle-block { margin: 1.2rem 0 0.4rem; padding: 14px 16px; background: linear-gradient(135deg, rgba(255,200,87,0.08), rgba(11,26,58,0.04)); border: 1px solid var(--line); border-radius: 12px; }
.calc-toggle-block .calc-toggle { font-size: 13.5px; font-weight: 600; }
.calc-taxes-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
@media (max-width: 720px) { .calc-taxes-fields { grid-template-columns: 1fr; } }
.calc-field select { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; width: 100%; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230B1A3A' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.calc-field select:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px var(--gold-tint-2); }
.calc-result-highlight { background: linear-gradient(135deg, var(--gold-soft), var(--gold)) !important; border: 1px solid var(--gold-2) !important; box-shadow: 0 12px 24px -12px var(--gold-glow) !important; }
.calc-result-highlight .calc-result-label { color: var(--navy-deep) !important; font-weight: 800 !important; }
.calc-result-highlight .calc-result-value { color: var(--navy) !important; font-size: 19px !important; }
[data-taxes-results] { margin-top: 12px; }
[data-taxes-fields][hidden], [data-taxes-results][hidden] { display: none; }
.calc-tip { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-soft); border-radius: 10px; padding: 12px 16px; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--navy); }
.calc-tip-icon { font-size: 16px; flex-shrink: 0; line-height: 1; }
.calc-tip strong { color: var(--navy); font-weight: 800; }
.calc-disclaimer { font-family: var(--sans); font-size: 11px; color: var(--muted); line-height: 1.55; }
.calc-chart-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.calc-chart { width: 100%; height: 220px; display: block; }
.calc-chart-legend { display: flex; gap: 18px; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; }
.calc-chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.calc-chart-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* Community CTA newsletter */
.community-cta { padding-block: clamp(3rem, 6vw, 5rem); text-align: center; padding-inline: var(--gutter); }
.cta-inner {
  max-width: 720px;
  margin-inline: auto;
  background: var(--grad-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -50%; left: -20%;
  width: 80%; height: 200%;
  background: var(--grad-gold-glow);
  pointer-events: none;
}
.cta-inner::after {
  content: "";
  position: absolute;
  bottom: -50%; right: -20%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(255, 200, 87, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner .kicker { margin-bottom: 1rem; display: inline-block; color: var(--gold); }
.cta-inner h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 0.8rem; color: #fff; }
.cta-inner h2 em { font-style: normal; background: linear-gradient(180deg, transparent 60%, var(--gold) 60%); padding: 0 0.1em; color: #fff; -webkit-text-fill-color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.78); max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; font-size: 1rem; }
.cta-form { display: flex; gap: 8px; max-width: 480px; margin-inline: auto; background: var(--white); padding: 6px; border-radius: 14px; box-shadow: 0 12px 24px -8px rgba(11, 26, 58, 0.32); }
.cta-form input { flex: 1; padding: 14px 22px; border: 0; background: transparent; font-family: var(--sans); font-size: 14px; color: var(--navy); outline: none; }
.cta-form input::placeholder { color: var(--muted-2); }
.cta-form button { padding: 14px 26px; background: var(--gold); color: var(--navy); border-radius: 10px; font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.01em; transition: transform .25s, box-shadow .3s, background .25s; }
.cta-form button:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

/* Newsletter success */
.newsletter-success { display: none; text-align: center; padding: clamp(1.4rem, 3vw, 1.8rem); background: var(--white); border: 1px solid var(--gold); border-radius: 18px; max-width: 520px; margin: 0 auto; color: var(--navy); }
.cta-form.is-done + .newsletter-success { display: block; }
.cta-form.is-done { display: none; }
.newsletter-success-icon { width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--shadow-gold); }
.newsletter-success h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; margin-bottom: 0.6rem; color: var(--navy); }
.newsletter-success h3 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); padding: 0 0.08em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.newsletter-success p { font-family: var(--sans); font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; max-width: 36ch; margin-inline: auto; }
.newsletter-success .cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-success button { padding: 11px 20px; border-radius: 10px; font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.btn-link-cta-primary { background: var(--navy); color: var(--gold); border: 0; }
.btn-link-cta-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-link-cta-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line-2); }
.btn-link-cta-ghost:hover { border-color: var(--navy); }

/* Departments */
.departments { padding-block: clamp(2.4rem, 5vw, 4.4rem); }
.dept-header { text-align: center; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.dept-header h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--navy); }
.dept-header h2 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); padding: 0 0.1em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.dept-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); max-width: var(--container-card); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { .dept-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.dept-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; box-shadow: var(--shadow-soft); }
.dept-label { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1.2rem; font-weight: 700; }
.dept-article { border-top: 1px solid var(--line); padding-block: 1rem 1.2rem; }
.dept-article:first-of-type { border-top: 0; padding-top: 0; }
.dept-article:last-child { padding-bottom: 0; }
.dept-article a { display: block; }
.dept-article img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: .9rem; transition: transform .6s var(--ease-out); }
.dept-article a:hover img { transform: scale(1.03); }
.dept-article h3 { font-family: var(--display); font-size: 1.18rem; font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; margin-bottom: .5rem; transition: color .3s var(--ease-out); color: var(--navy); }
.dept-article h3 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); padding: 0 0.08em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.dept-article a:hover h3 { color: var(--gold-2); }
.dept-article .dept-meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* Thesis row */
.thesis-row { padding-block: clamp(2rem, 4vw, 3.5rem); padding-inline: var(--gutter); text-align: center; }
.thesis-row .container { max-width: var(--container-card); }
.thesis-row .kicker { margin-bottom: 1.6rem; display: inline-block; }
.thesis-row h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 2rem; color: var(--navy); }
.thesis-row h2 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); padding: 0 0.1em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.thesis-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); max-width: var(--container-card); margin-inline: auto; }
@media (min-width: 720px) { .thesis-grid { grid-template-columns: repeat(2, 1fr); } }
.thesis-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: left; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .8rem; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; box-shadow: var(--shadow-soft); }
.thesis-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); border-color: var(--gold); }
.thesis-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: .4rem; }
.thesis-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.03em; color: var(--navy); }
.thesis-card h3 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); padding: 0 0.1em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.thesis-card p { font-family: var(--sans); font-size: .93rem; color: var(--muted); line-height: 1.55; }

/* Archive */
.archive-teaser { text-align: center; padding-block: 2rem; }
.archive-teaser a { font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 3px; font-weight: 700; transition: color .2s; }
.archive-teaser a:hover { color: var(--gold-2); }
.archive-list { padding: clamp(2rem, 5vw, 4rem) var(--gutter); max-width: var(--container-narrow); margin-inline: auto; }
.archive-item { display: block; padding: 1.4rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; transition: padding-left .3s var(--ease-out); }
.archive-item:hover { padding-left: 0.8rem; }
.archive-item:last-child { border-bottom: 1px solid var(--line); }
.archive-item .meta { display: flex; gap: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: .5rem; }
.archive-item .cat { color: var(--gold-2); font-weight: 700; }
.archive-item h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.03em; color: var(--navy); }
.archive-item h3 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--gold) 62%); padding: 0 0.1em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.archive-item:hover h3 { color: var(--gold-2); }
.archive-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-block: 1.5rem 2rem; }
.archive-filters button { padding: 8px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.archive-filters button.is-active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.archive-filters button:hover:not(.is-active) { border-color: var(--gold); color: var(--gold-2); }

/* Ad slot */
.cmp-ad { background: var(--white); border: 1px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; min-height: 84px; display: flex; align-items: center; justify-content: center; max-width: 880px; margin: 2.4rem auto; }

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 3.5rem var(--gutter) 2rem;
  background: var(--navy);
  background-image: var(--grad-navy);
  color: rgba(244, 246, 251, 0.78);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-gold);
}
.footer-cols { max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-cols > div { display: flex; flex-direction: column; gap: 0.5rem; }
.brand-q-small { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.045em; margin-bottom: 0.4rem; color: #fff; display: inline-flex; align-items: center; gap: 2px; }
.brand-q-small .q { color: var(--gold); }
.brand-q-small .dot { color: var(--gold); transform: translateY(0.15em) rotate(45deg); display: inline-block; font-size: 0.55em; }
.footer-h { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.footer-cols a { color: rgba(244, 247, 255, 0.7); font-size: .88rem; transition: color .2s; }
.footer-cols a:hover { color: var(--gold); }
.footer-copy { max-width: var(--container); margin: 0 auto; font-family: var(--mono); font-size: 11px; color: rgba(244, 247, 255, 0.4); text-align: center; letter-spacing: .06em; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 26, 58, 0.65); backdrop-filter: blur(10px); animation: modalFadeIn .3s var(--ease-out); }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px -20px rgba(11, 26, 58, 0.5); animation: modalRise .35s var(--ease-out); }
@keyframes modalRise { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); transition: background .2s, color .2s; }
.modal-close:hover { background: var(--navy); color: var(--gold); }
.modal-brand { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.modal-brand-text { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.045em; line-height: 1; display: inline-flex; align-items: center; gap: 2px; }
.modal-brand-text .q { color: var(--gold); }
.modal-brand-text em { font-style: normal; color: var(--navy); }
.modal-brand-text .dot { color: var(--gold); transform: translateY(0.18em) rotate(45deg); display: inline-block; font-size: 0.55em; }
.modal-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.035em; line-height: 1.15; text-align: center; margin-bottom: 0.4rem; color: var(--navy); }
.modal-title em { font-style: normal; background: linear-gradient(180deg, transparent 60%, var(--gold) 60%); padding: 0 0.1em; color: var(--navy); -webkit-text-fill-color: var(--navy); }
.modal-sub { font-family: var(--sans); font-size: 13.5px; color: var(--muted); text-align: center; margin-bottom: 1.5rem; line-height: 1.5; }
.modal-tabs { display: flex; background: var(--paper); border-radius: 12px; padding: 4px; margin-bottom: 1.4rem; }
.modal-tabs button { flex: 1; padding: 10px 14px; border-radius: 9px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.modal-tabs button.is-active { background: var(--navy); color: var(--gold); box-shadow: 0 2px 6px rgba(11,26,58,0.16); }
.social-buttons { display: grid; gap: 10px; margin-bottom: 1.2rem; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--navy); transition: border-color .2s, transform .25s; }
.social-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.social-btn svg { width: 18px; height: 18px; }
.modal-divider { display: flex; align-items: center; gap: 12px; margin: 1.2rem 0; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal-form { display: grid; gap: 12px; }
.modal-form input { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 14px; color: var(--navy); background: var(--paper); transition: border-color .2s, box-shadow .2s, background .2s; }
.modal-form input:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px var(--gold-tint); }
.modal-form input::placeholder { color: var(--muted-2); }
.modal-submit { padding: 14px 18px; background: var(--navy); color: var(--gold); border-radius: 12px; font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; cursor: pointer; transition: transform .25s, box-shadow .3s, background .25s; }
.modal-submit:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(11,26,58,0.42); }
.modal-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 1.2rem; line-height: 1.5; }
.modal-foot a { color: var(--gold-2); text-decoration: underline; }
.modal-pane { display: none; }
.modal-pane.is-active { display: block; }

/* View transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(root) { animation-name: fOut; }
::view-transition-new(root) { animation-name: fIn; }
@keyframes fOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fIn { from { opacity: 0; transform: translateY(10px); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-q, .hero-eyebrow .dot, .cloud, .feature-card-img img, .dept-article img, .thesis-card img { animation: none !important; }
  body { background-attachment: scroll; }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =============================================================
   ARTÍCULOS · estructura editorial (noticias + finanzas personales)
   ============================================================= */

/* Reading progress bar fija arriba */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-gold);
  z-index: 100;
  transition: width .1s linear;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* Body wrapper */
.article-page main { padding-block: 0; }
.article-page article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}

/* Hero del artículo */
.hero-article {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.hero-article .kicker {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--gold) 62%);
  padding: 0 0.12em 0.05em;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
}
.hero-article .byline {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}
.hero-figure {
  margin: 2rem 0;
  display: block;
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: .8rem;
  letter-spacing: 0.02em;
  font-style: italic;
}

/* Article actions (like, dislike, share) */
.article-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.2rem 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.act-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.act-btn:hover { background: var(--white); border-color: var(--navy); transform: translateY(-1px); }
.act-btn svg { width: 16px; height: 16px; }
.act-like.is-active { background: var(--gold-soft); border-color: var(--gold); color: var(--navy); }
.act-dislike.is-active { background: var(--paper-2); border-color: var(--muted); }
.act-count { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.act-share { margin-left: auto; }
.act-feedback { font-family: var(--mono); font-size: 12px; color: var(--gold-2); margin-left: 12px; }

/* ===== ARTICLE BODY (responsive: 92% del ancho del viewport, cap 1240px) ===== */
.article-body {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.22rem);
  line-height: 1.75;
  color: var(--ink-soft);
  width: 92%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.article-body > * + * { margin-top: 1.35rem; }
.article-body p {
  font-size: inherit;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.article-body p strong {
  color: var(--navy);
  font-weight: 700;
}
.article-body p em {
  font-style: italic;
  color: var(--navy);
}
.article-body h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--navy);
  margin-top: 3rem !important;
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.2rem;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  bottom: 0.4em;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
}
.article-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-top: 2.4rem !important;
  margin-bottom: 0.4rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.6rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article-body li { margin-bottom: 0.6rem; }
.article-body li::marker { color: var(--gold-2); font-weight: 700; }
.article-body blockquote {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--navy);
  background: var(--paper);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.8rem;
  border-radius: 0 16px 16px 0;
  margin: 2.4rem 0 !important;
  position: relative;
}
.article-body blockquote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  font-family: var(--display);
  font-weight: 800;
}
.article-body a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
  transition: background .2s;
}
.article-body a:hover { background: var(--gold-soft); }
.article-body code, .article-body kbd {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--navy);
}
.article-body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4rem 0 !important;
}
.article-body figure {
  margin: 2rem 0 !important;
}
.article-body figure img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.article-body figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Author bio al final */
.article-author-bio {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 3rem !important;
  padding: 1.6rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.article-author-bio > div:first-child {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  background: var(--navy) !important;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.article-author-bio > div:first-child span {
  font-family: var(--display) !important;
  font-style: normal !important;
  font-weight: 800 !important;
  font-size: 1.8rem !important;
  color: var(--gold) !important;
  letter-spacing: -0.05em !important;
}
.article-author-bio p {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.article-author-bio strong { color: var(--navy); font-weight: 700; }
.article-author-bio a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

/* Related articles si los hay */
.article-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.article-related h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.article-related ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.article-related li a {
  display: block;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s;
}
.article-related li a:hover { border-color: var(--gold); background: var(--white); transform: translateX(4px); }

/* ===== STOCK TICKER (banda superior) ===== */
.stock-ticker, .market-ticker, .top-ticker {
  background: var(--navy);
  color: var(--gold-soft);
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.stock-ticker .ticker-track,
.market-ticker .ticker-track,
.top-ticker .ticker-track {
  display: inline-block;
  animation: tickerScroll 60s linear infinite;
  padding-left: 100%;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.stock-ticker .ticker-item,
.market-ticker .ticker-item,
.top-ticker .ticker-item {
  display: inline-block;
  margin-right: 2rem;
  color: var(--gold-soft);
}
.stock-ticker .ticker-item .ticker-name,
.market-ticker .ticker-item .ticker-name,
.top-ticker .ticker-item .ticker-name {
  color: var(--gold);
  font-weight: 600;
  margin-right: 6px;
}
.stock-ticker .up, .market-ticker .up, .top-ticker .up { color: #5BE19D; }
.stock-ticker .down, .market-ticker .down, .top-ticker .down { color: #FF8B72; }

/* =============================================================
   STOCK TICKER refinado
   ============================================================= */
.stock-ticker {
  background: var(--navy);
  background-image: var(--grad-navy);
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(255, 200, 87, 0.2);
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 60;
}
.stock-ticker::before,
.stock-ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.stock-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 100%);
}
.stock-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--navy) 0%, transparent 100%);
}
.stock-ticker .ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: tickerScroll 90s linear infinite;
  white-space: nowrap;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.stock-ticker:hover .ticker-track { animation-play-state: paused; }
.stock-ticker .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--gold-soft);
  text-decoration: none;
  transition: color .2s;
}
.stock-ticker .ticker-item:hover { color: var(--gold); }
.stock-ticker .ticker-item .ticker-name {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.stock-ticker .ticker-item .ticker-price {
  color: #fff;
  font-weight: 500;
}
.stock-ticker .ticker-item .up {
  color: #5BE19D;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stock-ticker .ticker-item .up::before {
  content: "▲";
  font-size: 9px;
  color: #5BE19D;
}
.stock-ticker .ticker-item .down {
  color: #FF8B72;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stock-ticker .ticker-item .down::before {
  content: "▼";
  font-size: 9px;
  color: #FF8B72;
}
.stock-ticker .ticker-sep {
  color: rgba(255, 200, 87, 0.35);
  margin: 0 4px;
}

/* La masthead debajo del ticker no debe ser sticky por encima del ticker */
.stock-ticker + .masthead { top: 0; }

@media (max-width: 540px) {
  .stock-ticker { font-size: 11.5px; padding: 7px 0; }
  .stock-ticker .ticker-item { padding: 0 14px; }
}

/* =============================================================
   Badge "NOVEDAD" para cards nuevas
   ============================================================= */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  animation: badgePulse 2s ease-in-out infinite;
}
.badge-new::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 50%;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.cmp-hub-card.is-new, .feature-card.is-new {
  border-color: var(--gold);
  position: relative;
}
.cmp-hub-card.is-new::before, .feature-card.is-new::before {
  content: "NOVEDAD";
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  z-index: 2;
  box-shadow: 0 4px 12px var(--gold-glow);
}
