/* =========================================================
   LMS STUDIO — LANDING (versión clara, oct 2026)
   CSS puro, sin dependencias. Mobile-first.
   1. Tokens   2. Base   3. Botones   4. Header   5. Hero
   6. Marquee  7. Secciones/servicios  8. Trabajos  9. Bento
   10. Pasos  11. FAQ  12. CTA/form  13. Footer  14. Animaciones
   ========================================================= */

/* 1. TOKENS ------------------------------------------------ */
:root {
  --bg: #FBFAF7;
  --bg-alt: #F3F1EC;
  --surface: #FFFFFF;
  --ink: #14161B;
  --ink-2: #3A3F4A;
  --muted: #646B78;
  --line: #E6E2DA;

  --blue: #1683FF;
  --blue-ink: #0B5FCC;
  --blue-soft: #E5F0FF;
  --sun: #FFD25E;
  --sun-soft: #FFF4D1;
  --mint: #2DBE7E;
  --mint-soft: #DDF6E9;
  --lilac-soft: #EEE6FF;
  --peach-soft: #FFE6DA;
  --wa: #25D366;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20,22,27,.06), 0 2px 8px rgba(20,22,27,.04);
  --shadow: 0 2px 4px rgba(20,22,27,.04), 0 12px 32px -8px rgba(20,22,27,.14);
  --shadow-lg: 0 4px 8px rgba(20,22,27,.04), 0 30px 60px -16px rgba(20,22,27,.22);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 68px;
}

/* 2. BASE -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, .2vw + 15px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--blue-ink);
  background: var(--blue-soft); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); }
.section-head .sub { margin-top: 16px; color: var(--muted); font-size: 18px; }
.section-head .sub a { color: var(--blue-ink); font-weight: 600; }

/* resaltador amarillo que se "pinta" al entrar en pantalla */
.mark {
  background-image: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .9s var(--ease) .25s;
}
.is-in .mark, .mark.is-in { background-size: 100% 100%; }

/* 3. BOTONES ----------------------------------------------- */
.btn {
  --bg-btn: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--bg-btn);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgba(22,131,255,.6); }
.btn-primary:hover { background: var(--blue-ink); box-shadow: 0 10px 26px -8px rgba(22,131,255,.7); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-ghost:hover .arrow { transform: translateY(3px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white .ico { color: #1FAF55; }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 4. HEADER ------------------------------------------------ */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--blue); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 60; pointer-events: none;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251,250,247,.95); }
.header-inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: auto; fill: var(--ink); transition: transform .4s var(--ease); }
.brand-mark .tri { fill: var(--blue); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-word b { font-weight: 500; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.nav a:not(.btn):hover { background: var(--bg-alt); color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); cursor: pointer; position: relative; z-index: 52;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 18px; }
  .nav-cta { margin: 8px 0 0; }
}

/* 5. HERO -------------------------------------------------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 24px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(45,190,126,.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(45,190,126,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(45,190,126,0); } }

.hero h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 800; letter-spacing: -.03em; }
.rotator { display: grid; color: var(--blue); }
.rotator > span {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(.45em); filter: blur(4px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease);
}
.rotator > span.is-on { opacity: 1; transform: none; filter: none; }
.rotator > span.is-out { opacity: 0; transform: translateY(-.45em); filter: blur(4px); }

.hero .lede { margin-top: 24px; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); max-width: 560px; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .btn-row { margin-top: 32px; }
.hero-checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231C9A63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* escenario del hero: compu + celular + chips */
.hero-stage { position: relative; aspect-ratio: 1.12; max-width: 600px; width: 100%; margin-inline: auto; }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob-a { width: 70%; aspect-ratio: 1; background: var(--blue-soft); top: 2%; right: -4%; }
.blob-b { width: 38%; aspect-ratio: 1; background: var(--sun-soft); bottom: 0; left: 4%; }
.stage-desk {
  position: absolute; z-index: 1; left: 0; top: 12%; width: 84%;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.stage-desk img { width: 100%; height: auto; aspect-ratio: 960 / 562; object-fit: cover; }
.stage-phone {
  position: absolute; z-index: 2; right: 2%; bottom: 0; width: 31%;
  border-radius: 26px; padding: 6px; background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.stage-phone img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; }

.chrome {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: #F4F2EE; border-bottom: 1px solid var(--line);
}
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #E0DCD4; }
.chrome i:nth-child(1) { background: #FF8A7A; } .chrome i:nth-child(2) { background: #FFCD5A; } .chrome i:nth-child(3) { background: #5DD39A; }
.chrome span {
  margin-left: 10px; flex: 1; max-width: 260px;
  background: var(--surface); border-radius: 999px; padding: 2px 12px;
  font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 14px 10px 10px; box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.3;
}
.chip b { display: block; font-size: 13px; }
.chip small { display: block; color: var(--muted); font-size: 12px; }
.chip-chat { left: -2%; bottom: 10%; max-width: 250px; }
.chip-chat .wa { width: 34px; height: 34px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; flex: none; }
.chip-chat .wa svg { width: 18px; height: 18px; color: #fff; }
.chip-speed { right: 0; top: 0; }
.ring { position: relative; width: 40px; height: 40px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--mint-soft); stroke-width: 4; }
.ring circle.val { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset 1.6s var(--ease) 1s; }
.is-ready .ring circle.val { stroke-dashoffset: 2; }
.ring > b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: #1C9A63; }

@media (max-width: 560px) {
  .chip { font-size: 12px; padding: 8px 10px 8px 8px; }
  .chip-chat { max-width: 210px; bottom: 4%; left: 0; }
  .chip-chat .wa { width: 28px; height: 28px; }
  .chip-speed { top: -2%; }
  .ring { width: 32px; height: 32px; }
}

/* 6. MARQUEE ----------------------------------------------- */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding-block: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 24px);
  padding-inline: 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.marquee span::after { content: "✦"; color: var(--sun); font-size: .7em; margin-right: -28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 7. SERVICIOS --------------------------------------------- */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service {
  --tint: var(--blue-soft); --tint-ink: var(--blue-ink);
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.tint-blue { --tint: var(--blue-soft); --tint-ink: var(--blue-ink); }
.tint-sun { --tint: var(--sun-soft); --tint-ink: #A0700A; }
.tint-mint { --tint: var(--mint-soft); --tint-ink: #1C8A5A; }
.tint-lilac { --tint: var(--lilac-soft); --tint-ink: #6A44C2; }
.service-ico {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--tint); color: var(--tint-ink); margin-bottom: 8px;
  transition: transform .45s var(--ease);
}
.service:hover .service-ico { transform: rotate(-8deg) scale(1.08); }
.service-ico svg { width: 28px; height: 28px; }
.service h3 { font-size: 24px; }
.service p { color: var(--ink-2); }
.service .for { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--tint-ink); }

/* 8. TRABAJOS ---------------------------------------------- */
.work-list { display: grid; gap: clamp(24px, 4vw, 40px); }
.work {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 48px); overflow: hidden;
}
@media (min-width: 940px) {
  .work { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .work-flip .work-info { order: 2; }
}
.work-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.tag-lilac { background: var(--lilac-soft); color: #6A44C2; }
.tag-red { background: #FFE3E1; color: #C42019; }
.where { font-size: 14px; color: var(--muted); }
.work h3 { font-size: clamp(30px, 3.4vw, 44px); }
.work h3 small { display: block; font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.work-info > p { margin-top: 16px; color: var(--ink-2); }
.work-info > p strong { color: var(--ink); font-weight: 600; }
.work-feats { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.work-feats li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 10px; background: var(--bg-alt); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.stats div { background: var(--bg-alt); border-radius: 16px; padding: 14px; }
.stats b { display: block; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.stats span { font-size: 13px; color: var(--muted); }
.work-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.view-toggle { display: inline-flex; padding: 4px; background: var(--bg-alt); border-radius: 999px; position: relative; }
.view-toggle button {
  border: 0; background: transparent; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s;
}
.view-toggle button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.link-live { font-weight: 600; color: var(--blue-ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding: 8px 2px; }
.link-live span { transition: transform .25s var(--ease); }
.link-live:hover span { transform: translate(3px, -3px); }

/* visual: browser que se auto-recorre + celular */
.work-visual { position: relative; min-height: 280px; }
.browser {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.screen { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--bg-alt); }
.scroller { width: 100%; height: auto; transform: translateY(0); will-change: transform; }
.work-visual .phone {
  position: absolute; right: clamp(8px, 4%, 32px); bottom: -8%;
  width: 30%; padding: 5px; border-radius: 24px; background: var(--ink); box-shadow: var(--shadow-lg);
  transform: translateY(12%) rotate(4deg); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s var(--ease), width .6s var(--ease), right .6s var(--ease), bottom .6s var(--ease);
}
.work-visual .phone img { border-radius: 19px; width: 100%; height: auto; aspect-ratio: 390/844; object-fit: cover; }
.work.is-in .work-visual .phone { opacity: 1; transform: rotate(4deg); transition-delay: .3s; }
.work-visual[data-mode="phone"] .browser { opacity: .18; transform: scale(.94); }
.work-visual[data-mode="phone"] .phone { right: 50%; bottom: 50%; width: 29%; transform: translate(50%, 50%) rotate(0) !important; opacity: 1; }
@media (max-width: 939px) { .work-visual { margin-bottom: 8%; order: -1; } }

.work-next {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  padding: 24px clamp(20px, 4vw, 36px); border-radius: var(--r-lg);
  border: 2px dashed #CFC9BE; background: transparent;
  transition: background-color .3s, border-color .3s, transform .35s var(--ease);
}
.work-next:hover { background: var(--surface); border-color: var(--blue); transform: translateY(-3px); }
.work-next .plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sun); font-size: 28px; font-weight: 500; transition: transform .45s var(--ease); }
.work-next:hover .plus { transform: rotate(90deg); }
.work-next b { display: block; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); }
.work-next small { display: block; color: var(--muted); font-size: 15px; }
.work-next .go { margin-left: auto; font-size: 24px; color: var(--blue); transition: transform .3s var(--ease); }
.work-next:hover .go { transform: translateX(6px); }

/* 9. BENTO ------------------------------------------------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .b-speed, .b-chat, .b-pay { grid-column: span 2; }
  .b-small { grid-column: span 2; }
}
.b-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.b-card h3 { font-size: 22px; }
.b-card p { color: var(--ink-2); font-size: 15.5px; }
.b-speed { background: var(--mint-soft); border-color: transparent; }
.b-chat { background: var(--blue-soft); border-color: transparent; }
.b-pay { background: var(--sun-soft); border-color: transparent; }

.gauge { position: relative; width: 150px; margin-bottom: 8px; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge path { fill: none; stroke-width: 12; stroke-linecap: round; }
.g-bg { stroke: rgba(28,138,90,.15); }
.g-val { stroke: var(--mint); stroke-dasharray: 157.1; stroke-dashoffset: 157.1; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.b-speed.is-in .g-val { stroke-dashoffset: 7; }
.gauge b { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-family: var(--font-display); font-size: 34px; color: #1C8A5A; }

.chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; min-height: 140px; }
.msg {
  max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.35;
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.msg.in { background: var(--surface); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg.out { background: #D5F8C9; align-self: flex-end; border-bottom-right-radius: 4px; }
.b-chat.is-in .msg { opacity: 1; transform: none; }
.b-chat.is-in .msg:nth-child(1) { transition-delay: .3s; }
.b-chat.is-in .msg:nth-child(2) { transition-delay: 1.1s; }
.b-chat.is-in .msg:nth-child(3) { transition-delay: 1.9s; }

.pays { display: flex; gap: 6px; margin-bottom: 14px; min-height: 64px; align-items: flex-end; }
.pays span {
  flex: 0 0 var(--w); height: 64px; border-radius: 14px; background: var(--surface);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px;
  transform-origin: bottom; transform: scaleY(.2); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.pays span:first-child { background: var(--sun); }
.b-pay.is-in .pays span { transform: none; opacity: 1; }
.b-pay.is-in .pays span:nth-child(2) { transition-delay: .15s; }
.b-pay.is-in .pays span:nth-child(3) { transition-delay: .3s; }

.emoji-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--peach-soft); color: #C2532A; margin-bottom: 6px; }
.b-small:nth-child(5) .emoji-ico { background: var(--lilac-soft); color: #6A44C2; }
.b-small:nth-child(6) .emoji-ico { background: var(--blue-soft); color: var(--blue-ink); }
.emoji-ico svg { width: 24px; height: 24px; }

/* 10. PASOS ------------------------------------------------ */
.steps {
  list-style: none; padding: 0; margin: 0; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.steps::before {
  content: ""; position: absolute; background: var(--blue); border-radius: 2px;
  transform-origin: 0 0; transform: scaleY(var(--prog, 0));
  left: 47px; top: 40px; bottom: 40px; width: 3px; z-index: 1;
}
@media (min-width: 900px) {
  .steps::before { left: 40px; right: 40px; top: 52px; bottom: auto; width: auto; height: 3px; transform: scaleX(var(--prog, 0)); }
}
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 24px 26px;
}
@media (max-width: 899px) { .step { padding-left: 88px; } .step .step-n { position: absolute; left: 22px; top: 22px; } }
.step-n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 18px;
  position: relative; z-index: 2; border: 4px solid var(--surface);
  transition: background-color .4s, color .4s, transform .4s var(--ease);
}
.step.is-lit .step-n { background: var(--blue); color: #fff; transform: scale(1.08); }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.steps-note { margin-top: 28px; text-align: center; color: var(--ink-2); font-size: 17px; }
.steps-note b { color: var(--ink); }

/* 11. FAQ -------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 64px; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .3s, box-shadow .3s;
}
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); font-size: 20px; font-weight: 500; transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; color: var(--ink-2); }

/* 12. CTA + FORM ------------------------------------------- */
.cta-box {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
  background: var(--blue); color: #fff; border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate;
}
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.cta-box::before { width: 420px; height: 420px; background: rgba(255,255,255,.08); top: -160px; left: -120px; }
.cta-box::after { width: 260px; height: 260px; background: var(--sun); opacity: .9; bottom: -140px; left: 34%; }
@media (min-width: 940px) { .cta-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; } }
.eyebrow-light { background: rgba(255,255,255,.16); color: #fff; }
.cta-copy h2 { font-size: clamp(36px, 5vw, 64px); }
.cta-copy > p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.9); max-width: 440px; }
.cta-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.cta-direct .mail { color: #fff; font-weight: 500; text-underline-offset: 4px; overflow-wrap: anywhere; }

.cta-form {
  background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 2px; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  font-size: 16px; transition: border-color .2s, background-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.field input.is-invalid { border-color: #E5484D; box-shadow: 0 0 0 4px #FFE3E1; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { cursor: pointer; margin: 0; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 500; transition: all .2s var(--ease);
}
.choices label:hover span { border-color: var(--ink); }
.choices input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choices input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-status { font-size: 14px; color: var(--muted); min-height: 1.2em; text-align: center; }

/* 13. FOOTER ----------------------------------------------- */
.site-footer { padding-block: 48px 32px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 6px 0; }
.footer-links a:hover { color: var(--blue-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; font-size: 14px; color: var(--muted); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6);
  transform: scale(0); transition: transform .45s var(--ease);
}
.wa-float.is-shown { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* 14. ANIMACIONES ------------------------------------------ */
/* entrada del hero al cargar */
.in-load { opacity: 0; transform: translateY(18px); }
.is-ready .in-load { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.pop { opacity: 0; transform: translateY(10px) scale(.9); }
.is-ready .pop { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(900ms + var(--p) * 350ms); }

/* flotado suave */
.is-ready .float-1 { animation: float 7s ease-in-out 1.2s infinite; }
.is-ready .float-2 { animation: float 6s ease-in-out .4s infinite reverse; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* reveal al scrollear */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--stagger, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* sin JS: todo visible */
.no-js .in-load, .no-js .reveal, .no-js .pop { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .marquee-track { animation: none; }
}
