/* =============================================================
   1. Tokens — ISMA SEGUROS brand system
   ============================================================= */
:root {
  --bg:        #0b0b0b;
  --bg-2:      #131313;
  --bg-3:      #1c1c1c;
  --paper:     #171717;
  --ink:       #ffffff;
  --ink-soft:  #eeece7;
  --ink-mute:  rgba(255, 255, 255, 0.62);
  --accent:      #cba96a;
  --accent-hover:#ddc088;
  --accent-2:    #1b4332;
  --accent-2-bright: #3fa173;
  --accent-soft: rgba(203, 169, 106, 0.14);
  --green-soft:  rgba(27, 67, 50, 0.55);
  --danger:    #e5534b;
  --line:      rgba(255, 255, 255, 0.12);
  --cream:     #ffffff;

  --display: "Archivo Black", "Inter", sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.005em; font-family: var(--display); color: var(--ink); font-weight: 400; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #0b0b0b; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: #0b0b0b;
  z-index: 9999; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: 1.25rem; }

.hl-gold  { color: var(--accent); }
.hl-green { color: var(--accent-2-bright); }

/* =============================================================
   3. Reveal utility
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Topbar
   ============================================================= */
.topbar {
  background: #000000;
  color: var(--ink);
  padding-block: .6rem;
  font-size: .8rem;
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.topbar-brand { display: flex; align-items: center; gap: .55rem; font-weight: 400; font-family: var(--display); letter-spacing: .02em; font-size: .95rem; }
.topbar-shield { flex: none; color: var(--accent); }
.topbar-brand-name { color: var(--ink); }
.topbar-brand-role { font-family: var(--sans); font-weight: 400; opacity: .6; margin-left: .35rem; font-size: .78rem; }
.topbar-badge {
  background: var(--accent);
  color: #0b0b0b;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .02em;
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out), opacity .35s var(--ease-out);
  text-align: center;
}
.btn-lg { padding: 1.15rem 2.3rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent);
  color: #0b0b0b;
  box-shadow: 0 14px 30px -12px rgba(203, 169, 106, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 18px 38px -12px rgba(203, 169, 106, 0.55); }

.btn.is-locked {
  background: var(--bg-3);
  color: rgba(255,255,255,0.75);
  box-shadow: none;
  cursor: pointer;
  border: 1px solid var(--line);
}
.btn.is-locked:hover { transform: none; box-shadow: none; }
.btn.is-unlocked {
  background: var(--accent);
  color: #0b0b0b;
  border: 1px solid transparent;
  animation: unlockPulse 1.6s var(--ease-soft) 1;
}
.btn.is-unlocked:hover { background: var(--accent-hover); }
@keyframes unlockPulse {
  0% { box-shadow: 0 0 0 0 rgba(203,169,106,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(203,169,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(203,169,106,0); }
}
.btn-icon-lock { flex: none; transition: opacity .3s var(--ease-out); }
.btn.is-unlocked .btn-icon-lock { display: none; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-block: 3.2rem 3.5rem;
  overflow: clip;
}
.hero-halo {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background: radial-gradient(55% 50% at 50% 20%, rgba(203,169,106,0.14), transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 840px; text-align: center; }
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  max-width: 21ch;
  margin-inline: auto;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  line-height: 1.14;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-mute);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}

.video-block { margin-bottom: 1.8rem; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.7);
}
.video-frame [data-yt-player] { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: 30% 15%;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.1rem;
  cursor: pointer;
  transition: opacity .5s var(--ease-out);
  z-index: 2;
}
.video-poster.is-hidden { opacity: 0; pointer-events: none; }
.video-poster-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 100%);
}
.video-play {
  position: relative;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0b0b;
  display: flex; align-items: center; justify-content: center;
  padding-left: 5px;
  transition: transform .35s var(--ease-out);
}
.video-play:hover { transform: scale(1.08); }
.video-poster-label {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.14);
  padding: .5rem 1rem;
  border-radius: 999px;
  letter-spacing: .01em;
}

.video-progress-wrap { margin-top: 1rem; text-align: left; }
.video-progress-track {
  width: 100%; height: 6px; border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: .5rem;
}
.video-progress-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .3s linear;
}
.video-progress-label { font-size: .82rem; color: var(--ink-mute); }

.hero-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.hero-cta-note { font-size: .85rem; color: var(--ink-mute); }

.offer-box {
  background: var(--paper);
  border: 1px solid rgba(203,169,106,0.3);
  border-radius: 14px;
  padding: 1.6rem 1.7rem;
  text-align: left;
  margin-bottom: 1.6rem;
}
.offer-box-title { font-weight: 700; color: var(--ink); margin-bottom: 1rem; font-size: 1rem; }
.offer-box-list { display: grid; gap: .6rem; margin-bottom: 1rem; }
.offer-box-list li { position: relative; padding-left: 1.6rem; font-size: .95rem; color: var(--ink-soft); }
.offer-box-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2-bright); font-weight: 700; }
.offer-box-meta { font-size: .84rem; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: .9rem; }
.offer-box-meta strong { color: var(--accent); }

/* =============================================================
   7. Sections generic
   ============================================================= */
.section { padding-block: 4rem; }
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  max-width: 30ch;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}
.section-intro { color: var(--ink-mute); max-width: 62ch; font-size: 1.05rem; margin-bottom: 2rem; }

.section-calc { background: var(--bg-2); }
.calc-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  max-width: 640px;
}
.calc-field { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.calc-field label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.calc-field input {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.05rem;
  font-family: var(--sans);
}
.calc-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-btn { width: 100%; }
.calc-result { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.calc-result-lead { font-weight: 600; color: var(--ink); margin-bottom: 1rem; font-size: .98rem; }
.calc-result-grid { display: grid; gap: .8rem; margin-bottom: 1.2rem; }
.calc-result-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .9rem 1.1rem;
}
.calc-result-period { font-size: .88rem; color: var(--ink-mute); font-weight: 600; }
.calc-result-value { font-family: var(--display); font-size: 1.25rem; color: var(--accent); }
.calc-result-note { font-size: .85rem; color: var(--ink-mute); }

.section-wait { background: var(--bg); }
.wait-grid { display: grid; gap: 1.1rem; margin: 2rem 0; }
.wait-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.wait-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--display); font-size: 1.05rem;
}
.wait-item p { font-size: .95rem; color: var(--ink-soft); }

.section-authority { background: var(--bg-2); }
.authority-figure img { border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6); border: 1px solid var(--line); }
.authority-text p { margin-bottom: 1rem; font-size: 1.02rem; }
.authority-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem;
  margin: 1.4rem 0 1.6rem;
}
.authority-stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem;
}
.authority-stat-value { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--accent); margin-bottom: .3rem; line-height: 1.1; }
.authority-stat-label { font-size: .8rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .03em; }

.section-problem { background: var(--bg); border-block: 1px solid var(--line); }
.risk-grid { display: grid; gap: 1.1rem; margin-top: 2rem; }
.risk-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
}
.risk-num { font-family: var(--display); color: var(--accent); font-size: 1.7rem; display: block; margin-bottom: .6rem; }
.risk-card h3 { font-size: 1.15rem; margin-bottom: .6rem; text-transform: uppercase; }
.risk-card p { font-size: .96rem; color: var(--ink-mute); }
.problem-close { margin-top: 2rem; font-size: 1.05rem; font-weight: 600; color: var(--ink); max-width: 60ch; }

.split-2 { display: grid; gap: 2.5rem; align-items: center; }
.split-2-reverse .evolution-figure { order: -1; }

.fail-list { display: grid; gap: 1.2rem; }
.fail-item { border-left: 3px solid var(--accent); padding-left: 1rem; }
.fail-item h3 { font-size: 1.05rem; margin-bottom: .3rem; text-transform: uppercase; }
.fail-item p { font-size: .94rem; color: var(--ink-mute); }

.section-evolution { background: var(--bg-2); }
.evolution-figure img { border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6); border: 1px solid var(--line); }
.evolution-list { display: grid; gap: .6rem; margin: 1.3rem 0; }
.evolution-list li { position: relative; padding-left: 1.4rem; font-size: .98rem; }
.evolution-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.evolution-highlight { font-weight: 600; color: var(--ink); font-size: 1.05rem; }

.section-how { background: var(--bg); }
.how-grid { display: grid; gap: 1.3rem; margin-top: 2rem; }
.how-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  border: 1px solid var(--line);
  position: relative;
}
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-2); color: var(--ink);
  font-family: var(--sans); font-weight: 800; font-size: 1.1rem;
  margin-bottom: 1rem;
}
.how-card h3 { font-size: 1.1rem; margin-bottom: .5rem; text-transform: uppercase; }
.how-card p { font-size: .94rem; color: var(--ink-mute); }

.section-invest { background: var(--green-soft); color: var(--ink); }
.section-invest .kicker { color: var(--accent); }
.section-invest .section-title, .section-invest h2 { color: var(--ink); }
.section-invest .section-intro { color: rgba(255,255,255,0.75); }
.invest-compare { display: grid; gap: 1.1rem; margin: 1.6rem 0; }
.invest-card {
  border-radius: 14px; padding: 1.8rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
}
.invest-tag { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,0.65); font-weight: 700; }
.invest-figure { font-family: var(--display); font-size: 2.3rem; color: var(--accent); margin: .4rem 0; }
.invest-card p:last-child { color: rgba(255,255,255,0.85); font-size: .96rem; }
.invest-quote { font-family: var(--display); text-transform: none; font-size: 1.15rem; max-width: 56ch; margin-bottom: 1.2rem; color: var(--ink); }
.invest-avg { color: rgba(255,255,255,0.88); font-size: 1rem; }
.invest-avg strong { color: var(--accent); }

.section-projection { background: var(--bg); }
.table-wrap { overflow-x: auto; margin-bottom: 2.5rem; border-radius: 14px; border: 1px solid var(--line); }
.projection-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .92rem; }
.projection-table thead th {
  text-align: left; background: var(--bg-3); color: var(--ink);
  padding: .9rem 1.1rem; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
}
.projection-table tbody td { padding: 1rem 1.1rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.projection-table tbody tr { background: var(--paper); }
.projection-table tbody tr:nth-child(odd) { background: var(--bg-2); }

.compare-2col { display: grid; gap: 1.2rem; }
.compare-col { border-radius: 14px; padding: 1.8rem; }
.compare-col h3 { font-size: 1.1rem; margin-bottom: 1rem; text-transform: uppercase; }
.compare-col-bank { background: var(--paper); border: 1px solid var(--line); }
.compare-col-policy { background: var(--accent-soft); border: 1px solid rgba(203,169,106,0.35); }
.compare-col li { position: relative; padding-left: 1.3rem; font-size: .93rem; margin-bottom: .55rem; color: var(--ink-soft); }
.compare-col-bank li::before { content: "–"; position: absolute; left: 0; color: var(--ink-mute); font-weight: 700; }
.compare-col-policy li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2-bright); font-weight: 700; }

.section-legacy { background: var(--bg-2); }
.legacy-figure img { border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6); border: 1px solid var(--line); }
.legacy-text p { margin-bottom: 1rem; font-size: 1.02rem; }

.section-who { background: var(--bg); }
.who-grid { display: grid; gap: 1.2rem; margin-top: 2rem; }
.who-col { border-radius: 14px; padding: 1.9rem 1.6rem; }
.who-col-yes { background: var(--accent-soft); border: 1px solid rgba(203,169,106,0.35); }
.who-col-no { background: var(--paper); border: 1px solid var(--line); }
.who-col h3 { font-size: 1.1rem; margin-bottom: 1rem; text-transform: uppercase; }
.who-col li { position: relative; padding-left: 1.3rem; font-size: .94rem; margin-bottom: .55rem; color: var(--ink-soft); }
.who-col-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2-bright); font-weight: 700; }
.who-col-no li::before { content: "×"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

.section-faq { background: var(--bg-2); }
.faq-list { display: grid; gap: .8rem; margin-top: 2rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; font-weight: 600; color: var(--ink); text-align: left; font-size: 1rem;
}
.faq-q-icon { flex: none; font-size: 1.3rem; color: var(--accent); transition: transform .3s var(--ease-out); }
.faq-item.is-open .faq-q-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-a-inner { padding: 0 1.4rem 1.15rem; color: var(--ink-mute); font-size: .95rem; }

.section-final { background: #000000; color: var(--ink); text-align: center; }
.section-final .kicker { color: var(--accent); }
.section-final .section-title { color: var(--ink); margin-inline: auto; }
.final-inner { max-width: 720px; }
.final-copy { color: rgba(255,255,255,0.78); margin-bottom: 2rem; font-size: 1.05rem; }
.final-note { margin-top: .8rem; font-size: .85rem; color: rgba(255,255,255,0.5); }
.noscript-note { margin-top: 1.5rem; color: rgba(255,255,255,0.8); font-size: .9rem; }

/* =============================================================
   8. Footer
   ============================================================= */
.footer { background: #000000; color: rgba(255,255,255,0.55); padding-block: 1.6rem 5.5rem; font-size: .82rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: .3rem; }

/* =============================================================
   9. Sticky CTA
   ============================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.5);
  z-index: 40;
  transform: translateY(120%);
  transition: transform .4s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }

/* =============================================================
   10. Toast
   ============================================================= */
.toast {
  position: fixed; left: 50%; bottom: 5.5rem;
  transform: translate(-50%, 20px);
  background: var(--accent); color: #0b0b0b;
  padding: .8rem 1.3rem; border-radius: 10px;
  font-size: .88rem; font-weight: 700;
  max-width: 90vw; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  z-index: 60;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.6);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* =============================================================
   11. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .risk-grid, .how-grid { grid-template-columns: repeat(3, 1fr); }
  .invest-compare, .compare-2col, .who-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 5.5rem; }
  .hero { padding-block: 4.5rem 5rem; }
}
@media (min-width: 960px) {
  .split-2 { grid-template-columns: 1fr 1fr; }
  .split-2-reverse { grid-template-columns: 0.85fr 1fr; }
}
@media (min-width: 1280px) {
  .section-title { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
}

/* =============================================================
   12. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .btn.is-unlocked { animation: none; }
}
