/* =============================================================
   Credit Care USA — styles.css
   Archetype 01 (Editorial Light Cream) adapted to brand palette
   ============================================================= */

/* 1. Tokens */
:root {
  --bg:       #f5f3ee;   /* brand cream */
  --bg-2:     #ebe6da;
  --paper:    #ffffff;
  --ink:      #111111;
  --ink-soft: #2a2a2a;
  --ink-mute: #5f5f5f;
  --blue:     #304a96;   /* brand blue */
  --blue-dk:  #1f3270;
  --yellow:   #f8d949;   /* brand yellow */
  --gold:     #b6963b;   /* brand gold */
  --line:     rgba(17,17,17,0.12);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --radius: 18px;

  --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; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; }
em { font-style: italic; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* 3. Utilities */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* Placeholders (huecos para rellenar) */
.ph {
  background: rgba(248,217,73,.45);
  border-bottom: 2px dashed var(--gold);
  padding: 0 .2em;
  font-style: normal;
}
.ph--dark { background: rgba(248,217,73,.18); color: var(--yellow); border-bottom-color: var(--yellow); }

.img-ph {
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(48,74,150,.06) 0 12px, transparent 12px 24px),
    var(--bg-2);
  border: 1.5px dashed rgba(48,74,150,.35);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 500;
  font-size: .95rem;
}
.img-ph small { color: var(--ink-mute); font-weight: 400; }
.img-ph--tall { aspect-ratio: 4 / 5; }
.img-ph--wide { aspect-ratio: 16 / 10; }

/* 4. Typography */
.kicker {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.kicker--light { color: var(--yellow); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: .8rem; }
.section-head h2 em { color: var(--blue); }
.section-sub { margin-top: 1rem; color: var(--ink-mute); }

/* 5. Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .4s var(--ease-out), background-color .3s var(--ease-soft), box-shadow .4s var(--ease-out), color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(48,74,150,.6); }
.btn-blue:hover { background: var(--blue-dk); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 24px -12px rgba(182,150,59,.8); }
.btn-yellow:hover { background: #ffe25e; }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue); }

/* Brand wordmark — name must be the star */
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; color: var(--blue); font-weight: 400; }
.brand-name b { font-family: var(--sans); font-weight: 700; font-size: .7em; letter-spacing: .12em; background: var(--yellow); color: var(--ink); padding: .1em .4em; border-radius: 4px; margin-left: .15em; vertical-align: .15em; }
.brand-name--light { color: #fff; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.nav.is-scrolled { background: rgba(245,243,238,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { margin-right: auto; }
.nav-links { display: none; gap: 2rem; font-size: .95rem; font-weight: 500; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* mobile menu open */
.nav.is-open .nav-links {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 72px; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
}
.nav.is-open .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav.is-open { background: var(--bg); }

/* 6. Sections */

/* Hero */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 8vw, 5rem); margin: 1.2rem 0 1.4rem; }
.hero-title em { color: var(--blue); display: inline; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; font-size: .9rem; color: var(--ink-mute); }
.hero-media { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.hero-badge {
  position: absolute; left: -12px; bottom: 28px;
  display: flex; align-items: center; gap: .75rem;
  background: var(--blue); color: #fff; padding: 1rem 1.25rem; border-radius: 14px;
  box-shadow: 0 20px 40px -18px rgba(48,74,150,.7);
}
.hero-badge strong { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--yellow); }
.hero-badge span { font-size: .85rem; line-height: 1.3; }

/* Marquee */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-style: italic; }
.marquee-track i { color: var(--yellow); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Manifesto */
.manifesto { padding: clamp(4rem, 10vw, 8rem) 0; }
.manifesto-grid { display: grid; gap: 1.5rem; }
.num { font-family: var(--serif); font-size: 1rem; color: var(--gold); border-top: 2px solid var(--gold); padding-top: .5rem; width: 3rem; }
.manifesto-text { font-family: var(--serif); font-size: clamp(1.45rem, 3.4vw, 2.3rem); line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; }
.manifesto-text em { color: var(--blue); }

/* Services bento */
.services { padding: 0 0 clamp(4rem, 10vw, 8rem); }
.bento { display: grid; gap: 1.25rem; }
.card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(48,74,150,.45); }
.card h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .6rem 0 .8rem; }
.card p { color: var(--ink-soft); }
.card-num { font-family: var(--serif); font-style: italic; color: var(--gold); }
.card-list { margin-top: 1.2rem; display: grid; gap: .5rem; }
.card-list li { padding-left: 1.4rem; position: relative; font-size: .95rem; }
.card-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.card--blue { background: var(--blue); color: #fff; border-color: transparent; }
.card--blue p { color: rgba(255,255,255,.85); }
.card--blue .card-num { color: var(--yellow); }
.card--yellow { background: var(--yellow); border-color: transparent; }
.card--yellow .card-num { color: var(--blue); }
.card--yellow .card-list li::before { color: var(--ink); }

/* Process */
.process { padding: clamp(4rem, 10vw, 7rem) 0; background: var(--bg-2); }
.steps { display: grid; gap: 1.25rem; counter-reset: s; }
.step { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.step-num { font-family: var(--serif); font-size: 2.5rem; color: var(--blue); line-height: 1; }
.step h3 { font-size: 1.35rem; margin: .7rem 0 .4rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }

/* Audience */
.audience { padding: clamp(4rem, 10vw, 7rem) 0; }
.audience-grid { display: grid; gap: 2rem; }
.audience-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.25rem 0 .5rem; }
.audience-card p { color: var(--ink-soft); max-width: 44ch; }

/* Testimonials */
.testimonials { padding: 0 0 clamp(4rem, 10vw, 7rem); }
.quotes { display: grid; gap: 1.25rem; }
.quote { background: var(--paper); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); position: relative; }
.quote::before { content: "“"; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--yellow); position: absolute; top: .5rem; left: 1.4rem; }
.quote blockquote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; margin-top: 2rem; }
.quote figcaption { margin-top: 1.25rem; font-size: .88rem; color: var(--ink-mute); }

/* FAQ */
.faq { padding: clamp(4rem, 10vw, 7rem) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 1rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; color: var(--blue); transition: transform .35s var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 62ch; }

/* Contact */
.contact { background: var(--blue); color: #fff; padding: clamp(4rem, 10vw, 7rem) 0; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -20%; top: -40%; width: 70vw; height: 70vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(248,217,73,.18), transparent 60%); pointer-events: none;
}
.contact-grid { display: grid; gap: 3rem; position: relative; }
.contact-intro h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: .8rem 0 1rem; }
.contact-intro h2 em { color: var(--yellow); }
.contact-intro > p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.contact-hint { margin-top: 1rem; font-size: .85rem; }
.contact-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact-list li { display: grid; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact-list span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.contact-list strong { font-weight: 500; font-size: 1.05rem; }
.contact-list a { border-bottom: 1px solid var(--yellow); }

/* Footer */
.footer { background: #0d1530; color: rgba(255,255,255,.75); padding: 3rem 0 2rem; font-size: .9rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a:hover { color: var(--yellow); }
.legal { margin-top: 2rem; font-size: .82rem; line-height: 1.55; max-width: 90ch; }
.copy { margin-top: 1.25rem; font-size: .8rem; color: rgba(255,255,255,.5); }

/* 7. Effects */
@keyframes marquee { to { transform: translateX(-50%); } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 8. Responsive */
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .manifesto-grid { grid-template-columns: 120px 1fr; }
  .contact-list li { grid-template-columns: 140px 1fr; align-items: baseline; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .faq-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
}

/* 9. Reduced motion — only intrusive effects */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
}

/* =============================================================
   10. Ventana "Guía gratis"
   ============================================================= */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13,21,48,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s var(--ease-soft); }
.modal-card {
  position: relative; width: 100%; max-width: 820px; max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--bg); border-radius: 22px; display: grid;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; color: var(--ink); border-radius: 50%; background: rgba(245,243,238,.85); }
.modal-x:hover { background: var(--yellow); }
.modal-cover {
  background: var(--blue); color: #fff; padding: 1.5rem 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: .5rem; position: relative; overflow: hidden;
}
.modal-cover::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(248,217,73,.35), transparent 65%); }
.modal-cover-brand { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.modal-cover-brand b { font-family: var(--sans); font-size: .65em; background: var(--yellow); color: var(--ink); padding: .1em .35em; border-radius: 3px; letter-spacing: .1em; margin-left: .2em; }
.modal-cover-title { font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.9rem); line-height: 1.1; max-width: 16ch; }
.modal-cover-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); font-weight: 600; }
.modal-body { padding: 1.5rem; }
.modal-body h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: .6rem 0 .6rem; }
.modal-body h2 em { color: var(--blue); }
.modal-text { color: var(--ink-soft); }
.modal-form { display: grid; gap: .8rem; margin-top: 1.2rem; }
.modal-form input[type=email] {
  width: 100%; min-height: 50px; padding: .8rem 1rem; font: inherit; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.modal-form input[type=email]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(48,74,150,.18); }
.modal-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; color: var(--ink-mute); line-height: 1.4; }
.modal-check input { margin-top: .15rem; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.modal-check a { text-decoration: underline; }
.modal-form .btn { width: 100%; }
.modal-error { color: #b3261e; font-size: .88rem; min-height: 1.2em; }
[data-step="done"] .btn { margin-top: 1.25rem; }
body.modal-lock { overflow: hidden; }
@media (min-width: 720px) {
  .modal-card { grid-template-columns: 0.9fr 1.1fr; }
  .modal-cover { padding: 2.25rem; justify-content: space-between; }
  .modal-cover-title { font-size: 2.1rem; }
  .modal-body { padding: 2.5rem 2.25rem; }
}

.contact-guia { margin-top: 1.25rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.contact-guia a { color: var(--yellow); border-bottom: 1px solid var(--yellow); }

/* 11. Compromiso (premium) */
.promise { background: #0d1530; color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid rgba(182,150,59,.5); border-bottom: 1px solid rgba(182,150,59,.5); }
.promise .kicker { color: var(--gold); }
.promise-grid { display: grid; gap: 1.75rem; margin-top: 1.5rem; }
.promise-grid li { display: grid; gap: .35rem; padding-left: 2.1rem; position: relative; }
.promise-ico { position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: .7rem; }
.promise-grid strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: #fff; }
.promise-grid span:not(.promise-ico) { color: rgba(255,255,255,.72); font-size: .95rem; }
@media (min-width: 720px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .promise-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.card-num, .num { color: var(--gold); }
.hero-title { letter-spacing: -0.015em; }

/* 12. Test */
.quiz { padding: clamp(4rem, 10vw, 7rem) 0; background: var(--bg-2); }
.quiz-grid { display: grid; gap: 1rem; align-items: start; }
.quiz-card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(48,74,150,.5); min-height: 320px; }
.quiz-steps { display: flex; gap: .4rem; margin-bottom: 1.5rem; }
.quiz-steps span { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: background .4s var(--ease-soft); }
.quiz-steps span.on { background: var(--gold); }
.quiz-q { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.2; margin-bottom: 1.25rem; }
.quiz-opts { display: grid; gap: .7rem; }
.quiz-opt { text-align: left; width: 100%; padding: 1rem 1.2rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: border-color .3s, transform .3s var(--ease-out), background .3s; }
.quiz-opt::after { content: "→"; color: var(--blue); transition: transform .3s var(--ease-out); }
.quiz-opt:hover { border-color: var(--blue); background: #fff; transform: translateY(-2px); }
.quiz-opt:hover::after { transform: translateX(4px); }
.quiz-back { margin-top: 1rem; font-size: .9rem; color: var(--ink-mute); text-decoration: underline; }
.quiz-result .kicker { margin-bottom: .6rem; }
.quiz-result h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--blue); margin-bottom: .6rem; }
.quiz-result p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.quiz-fade { animation: quizIn .45s var(--ease-out); }
@keyframes quizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 13. Calculadora */
.calc { padding: clamp(4rem, 10vw, 7rem) 0; }
.calc-grid { display: grid; gap: 1rem; align-items: start; }
.calc-card { background: #0d1530; color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid rgba(182,150,59,.45); }
.calc-fields { display: grid; gap: 1rem; }
.calc-fields label { display: grid; gap: .4rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.calc-input { display: flex; align-items: center; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.2); border-radius: 12px; padding: 0 1rem; transition: border-color .3s; }
.calc-input:focus-within { border-color: var(--gold); }
.calc-input span { color: var(--gold); font-weight: 600; }
.calc-input input { flex: 1; min-width: 0; min-height: 52px; background: none; border: 0; color: #fff; font: inherit; font-size: 1.15rem; padding: 0 .5rem; outline: none; }
.calc-input input::placeholder { color: rgba(255,255,255,.3); }
.calc-result { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.calc-top { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.calc-pct { font-family: var(--serif); font-size: clamp(2.8rem, 8vw, 3.8rem); line-height: 1; color: var(--yellow); }
.calc-label { font-weight: 600; padding: .25rem .7rem; border-radius: 999px; font-size: .85rem; background: rgba(255,255,255,.1); }
.calc-bar { position: relative; height: 10px; border-radius: 10px; background: rgba(255,255,255,.12); margin: 1.25rem 0 .4rem; overflow: hidden; }
.calc-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 10px; background: var(--yellow); transition: width .6s var(--ease-out), background .3s; }
.calc-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(13,21,48,.7); }
.calc-scale { position: relative; height: 1.2rem; font-size: .72rem; color: rgba(255,255,255,.5); }
.calc-scale span { position: absolute; transform: translateX(-50%); }
.calc-scale span:first-child { transform: none; }
.calc-scale span:last-child { transform: none; }
.calc-tip { margin: 1rem 0 1.25rem; color: rgba(255,255,255,.85); }
.calc-note { margin-top: 1.25rem; font-size: .8rem; color: rgba(255,255,255,.5); }
@media (min-width: 540px) { .calc-fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .quiz-grid, .calc-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}
.calc-input input::-webkit-outer-spin-button, .calc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* 14. Animación portada */
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .ln > * { display: inline-block; transform: translateY(105%); animation: lnUp 1s var(--ease-out) forwards; }
.hero-title .ln:nth-child(2) > * { animation-delay: .15s; }
.hero-title .ln:nth-child(3) > * { animation-delay: .3s; }
@keyframes lnUp { to { transform: none; } }
.hero-title .ul { position: relative; }
.hero-title .ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; animation: ulDraw .9s var(--ease-out) 1.05s forwards; }
@keyframes ulDraw { to { transform: scaleX(1); } }
.hero .hero-sub, .hero .hero-actions, .hero .hero-note, .hero .kicker { animation: fadeUp .9s var(--ease-out) both; }
.hero .hero-sub { animation-delay: .45s; } .hero .hero-actions { animation-delay: .6s; } .hero .hero-note { animation-delay: .75s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-badge { animation: badgeIn .9s var(--ease-out) .8s both, float 6s ease-in-out 1.8s infinite; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 15. Animación "Cómo trabajamos" */
.steps { position: relative; }
.step { position: relative; }
.js .steps[data-steps] .step { border-top-color: transparent; }
.js .steps[data-steps] .step::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.js .steps[data-steps] .step-num { display: inline-block; transform: scale(.4); opacity: 0; transition: transform .6s var(--ease-bounce), opacity .4s; }
.steps.is-on .step::before { transform: scaleX(1) !important; }
.steps.is-on .step-num { transform: none !important; opacity: 1 !important; }
.steps.is-on .step:nth-child(2)::before, .steps.is-on .step:nth-child(2) .step-num { transition-delay: .25s; }
.steps.is-on .step:nth-child(3)::before, .steps.is-on .step:nth-child(3) .step-num { transition-delay: .5s; }
.steps.is-on .step:nth-child(4)::before, .steps.is-on .step:nth-child(4) .step-num { transition-delay: .75s; }
.steps.is-on .step::before { background: linear-gradient(90deg, var(--ink), var(--gold)); }

/* 16. Video */
.manifesto-grid { align-items: center; }
.manifesto-copy { display: grid; gap: 1.5rem; }
.video-slot { width: 100%; max-width: 340px; justify-self: center; }
.video-slot video, .video-ph { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; display: block; background: #0d1530; object-fit: cover; box-shadow: 0 40px 70px -40px rgba(13,21,48,.8); }
.video-ph { display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center; color: #fff; padding: 1.5rem; position: relative; overflow: hidden; border: 1px solid rgba(182,150,59,.5); }
.video-ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(48,74,150,.9), transparent 60%), radial-gradient(circle at 80% 90%, rgba(182,150,59,.35), transparent 55%); }
.video-ph > * { position: relative; }
.video-play { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(248,217,73,.6); animation: pulse 2.4s ease-out infinite; margin-bottom: .6rem; }
.video-play::after { content: ""; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248,217,73,.55); } 100% { box-shadow: 0 0 0 26px rgba(248,217,73,0); } }
.video-ph-title { font-family: var(--serif); font-size: 1.6rem; }
.video-ph-sub { font-size: .82rem; color: rgba(255,255,255,.7); }
.video-slot figcaption { margin-top: .9rem; text-align: center; font-size: .9rem; color: var(--ink-mute); }
@media (min-width: 960px) {
  .manifesto-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .manifesto-copy { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: badgeIn .9s var(--ease-out) .8s both; }
  .video-play { animation: none; }
}

/* 17. Orden nuevo */
.services { padding-top: clamp(4rem, 10vw, 7rem); }
.testimonials { padding-top: clamp(4rem, 10vw, 7rem); border-top: 1px solid var(--line); }

/* 18. Efectos con el mouse (solo computadora) */
.hero { position: relative; }
.hero-grid { position: relative; z-index: 1; }
.fx .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 35%), rgba(48,74,150,.13), transparent 60%), radial-gradient(380px circle at var(--mx, 70%) var(--my, 35%), rgba(182,150,59,.12), transparent 60%); transition: background .15s linear; }
.fx .card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .35s var(--ease-out), box-shadow .5s var(--ease-out); will-change: transform; }
.fx .card:hover { --ty: -6px; transition: transform .12s linear, box-shadow .5s var(--ease-out); }
.fx .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.38), transparent 45%); opacity: 0; transition: opacity .35s; mix-blend-mode: soft-light; }
.fx .card:hover::after { opacity: 1; }
.promise, .calc-card { position: relative; overflow: hidden; }
.promise > .container, .calc-card > *, .contact-grid { position: relative; z-index: 1; }
.fx .promise::after, .fx .calc-card::after, .fx .contact::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(420px circle at var(--gx, -30%) var(--gy, -30%), rgba(248,217,73,.14), transparent 60%); transition: opacity .4s; }
.fx .magnetic { transform: translate(var(--bx, 0px), var(--by, 0px)); transition: transform .35s var(--ease-out), background-color .3s var(--ease-soft), box-shadow .4s var(--ease-out), color .3s; }
.fx .magnetic:hover { transition: transform .1s linear, background-color .3s var(--ease-soft), box-shadow .4s var(--ease-out), color .3s; }
.fx .quiz-opt:hover { box-shadow: 0 12px 30px -18px rgba(48,74,150,.6); }
