/* =========================================================
   SendaTándem — portada (propuesta final)
   ========================================================= */
:root {
  --bg: #07090A; --bg-2: #0B0E0F; --card: #111518;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --text: #EDF2EF; --muted: #9BA7A1; --accent: #10E39A; --ink: #02140C;
  --light: #EDF2EF; --light-muted: #45584F; --deep-green: #067A52;
  --f-head: "Space Grotesk", system-ui, sans-serif; --f-body: "DM Sans", system-ui, sans-serif;
  --max: 1240px; --ease: cubic-bezier(.2,.8,.2,1); --nav-h: 72px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--ink); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.muted { color: var(--muted); }
.acc { color: var(--accent); }
.it { font-style: italic; font-weight: 500; color: var(--text); }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 1rem/1 var(--f-body); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 34px -10px rgba(16,227,154,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(16,227,154,.85); background: #3BF0B0; }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: rgba(16,227,154,.5); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .94rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,9,10,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.25rem/1 var(--f-head); letter-spacing: -0.03em; }
.logo__t span { color: var(--accent); }
.logo svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(16,227,154,.55)); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-size: .94rem; }
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.mmenu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: rgba(7,9,10,.98); padding: 24px clamp(16px,4vw,32px) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.mmenu[hidden] { display: none; }
.mmenu nav a { display: block; color: var(--text); text-decoration: none; font: 600 1.8rem/1.1 var(--f-head); padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.hero__glow { position: absolute; right: -160px; top: -40px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(16,227,154,.22), transparent 65%); pointer-events: none; animation: glow 6s ease-in-out infinite; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 24px; }
.rot { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; color: var(--accent); }
.rot > span { display: flex; flex-direction: column; animation: rot 10s cubic-bezier(.7,0,.2,1) infinite; }
.rot > span > span { height: 1.1em; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 50ch; margin-bottom: 32px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 24px; color: var(--muted); font-size: .94rem; }
.demo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.demo__card { padding: 20px; border-radius: 22px; animation: fl 6s ease-in-out infinite; }
.demo__card small { display: block; font-size: .8rem; margin-bottom: 10px; color: var(--muted); }
.demo__wa { grid-column: span 2; background: var(--card); border: 1px solid var(--line); }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: #1B2124; margin-bottom: 10px; }
.bubble--me { margin-left: auto; border-radius: 18px 18px 4px 18px; background: #0F3B2B; color: #D7F8E8; margin-bottom: 0; }
.demo__maps { background: var(--light); color: #07090A; animation-delay: -2s; }
.demo__maps small { color: var(--light-muted); }
.demo__maps b { display: block; font: 600 1.1rem/1.2 var(--f-head); }
.stars { color: #C98500; letter-spacing: 2px; }
.demo__rem { background: var(--accent); color: var(--ink); animation-delay: -4s; }
.demo__rem small { color: var(--ink); }
.demo__rem b { font: 600 1.1rem/1.25 var(--f-head); }

/* Cinta */
.band { border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; overflow: hidden; }
.band__row { display: flex; gap: 48px; width: max-content; font: 600 1.5rem/1 var(--f-head); color: rgba(237,242,239,.38); white-space: nowrap; animation: mq 32s linear infinite; }

/* Secciones */
.sec { padding: clamp(72px, 10vw, 120px) 0; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 18ch; margin-bottom: 48px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); transition: border-color .3s, transform .35s var(--ease); display: flex; flex-direction: column; }
.card:hover { border-color: rgba(16,227,154,.45); transform: translateY(-4px); }
.card--hl { border-color: rgba(16,227,154,.35); background: radial-gradient(ellipse at 100% 0%, rgba(16,227,154,.16), transparent 60%), var(--bg-2); }
.card__n { font: 700 4rem/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.2px rgba(16,227,154,.7); margin-bottom: 28px; }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 24px; }
.card a { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }

/* Pestañas de sector */
.h3big { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); width: fit-content; max-width: 100%; margin-bottom: 26px; }
.tab { min-height: 44px; padding: 0 18px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font: 500 .95rem/1 var(--f-body); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--ink); }
.panel { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.panel[hidden] { display: none; }
.ex { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); }
.tag { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(16,227,154,.12); color: var(--accent); font-size: .75rem; font-weight: 600; margin-bottom: 14px; }
.ex h3 { font-size: 1.3rem; margin-bottom: 8px; line-height: 1.2; }
.ex p { color: var(--muted); }
.tabs__foot { margin-top: 22px; color: var(--muted); }

/* Un día en tu negocio */
.day { background: var(--light); color: #07090A; }
.day .eyebrow { color: var(--deep-green); }
.day .it { color: var(--deep-green); }
.day__grid { display: flex; flex-wrap: wrap; gap: 56px; }
.day__side { flex: 1 1 320px; }
.day__sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.day__sticky .h2 { margin-bottom: 16px; }
.day__sticky p { color: var(--light-muted); font-size: 1.1rem; max-width: 38ch; }
.timeline { flex: 999 1 520px; position: relative; display: grid; gap: 18px; padding-left: 36px; }
.timeline__bar { position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; background: #0BB87C; border-radius: 3px; transform-origin: top; }
.moment { padding: 26px; border-radius: 20px; background: #fff; }
.moment b { display: block; font: 700 .95rem/1 var(--f-head); color: var(--deep-green); margin-bottom: 8px; }
.moment p { color: var(--light-muted); }
.moment--dark { background: #07090A; }
.moment--dark b { color: var(--accent); }
.moment--dark p { color: var(--muted); }

/* Precios */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.price { padding: 30px; border-radius: 24px; border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 6px; }
.price h3 { font-size: 1.35rem; }
.price__amt { font: 700 2.9rem/1 var(--f-head); color: var(--accent); margin: 14px 0; }
.price__amt small { font: 400 .95rem/1 var(--f-body); color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; color: #C9D3CE; font-size: .95rem; }
.price li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.price .meta { color: var(--muted); font-size: .9rem; }
.price a { margin-top: auto; }
.price--hl { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.price--hl .price__amt, .price--hl .price__amt small, .price--hl .meta, .price--hl ul { color: var(--ink); }
.price--hl li::before { color: var(--ink); }
.price--hl .badge { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.price--hl .btn--ghost { color: var(--ink); border-color: rgba(2,20,12,.35); }
.terms { margin-top: 24px; color: var(--muted); text-align: center; }
.promise { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.promise > div { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.promise h3 { font-size: 1.1rem; margin-bottom: 8px; }
.promise p { color: var(--muted); }
.promise .yes { border-color: rgba(16,227,154,.3); background: rgba(16,227,154,.08); }
.promise .yes h3 { color: var(--accent); }

/* Diagnóstico */
.diag { position: relative; overflow: hidden; border-radius: 36px; border: 1px solid rgba(16,227,154,.3); background: linear-gradient(180deg, rgba(16,227,154,.1), rgba(16,227,154,.01)), var(--bg-2); padding: clamp(24px, 6vw, 64px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); }
.diag > * { min-width: 0; }
.diag h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 700; margin-bottom: 16px; }
.diag__intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #C9D3CE; }
.checks li::before { content: "✓  "; color: var(--accent); font-weight: 700; }
.form { display: grid; gap: 16px; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f-field label, .f-field legend { font-weight: 500; font-size: .95rem; padding: 0; }
.f-field input, .f-field select, .f-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 1rem/1.4 var(--f-body); }
.f-field textarea { min-height: 84px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,227,154,.18); }
.f-field [aria-invalid="true"] { border-color: #FF7A6B; }
.hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
.f-choices { gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.choice input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.choice b { display: block; font-weight: 600; }
.choice small { color: var(--muted); font-size: .85rem; }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(16,227,154,.1); }
.f-choices[aria-invalid="true"] .choice { border-color: #FF7A6B; }
.f-error { color: #FF9B8F; font-size: .9rem; }
.f-note { color: var(--muted); font-size: .82rem; text-align: center; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 1.1rem/1.3 var(--f-head); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq__list details[open] summary::after { content: "−"; }
.faq__list details p { color: var(--muted); padding: 0 0 22px; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .92rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.footer__services { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.sticky-cta { display: none; }

/* Animaciones */
@keyframes rot { 0%,20%{transform:translateY(0)} 25%,45%{transform:translateY(-1.1em)} 50%,70%{transform:translateY(-2.2em)} 75%,95%{transform:translateY(-3.3em)} 100%{transform:translateY(-4.4em)} }
@keyframes fl { 50% { transform: translateY(-10px); } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes glow { 50% { opacity: .45; transform: scale(.9); } }
@keyframes up { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@supports (animation-timeline: view()) {
  .reveal { animation: up .9s var(--ease) both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .timeline__bar { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% exit 40%; }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: grid; place-items: center; }
  .hero__grid, .diag, .faq { grid-template-columns: 1fr; }
  .cards3, .panel, .prices { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .cards3, .panel, .prices, .promise, .f-row { grid-template-columns: 1fr; }
  .ctas .btn { width: 100%; }
  .demo { grid-template-columns: 1fr; }
  .demo__wa { grid-column: auto; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tab { white-space: normal; line-height: 1.2; padding: 8px 10px; }
  .card, .ex, .price { padding: 24px; }
  .band__row { font-size: 1.15rem; gap: 32px; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; transform: translateY(150%); transition: transform .4s var(--ease); }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { width: 100%; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .footer__links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Modelo A con secciones claras
   ========================================================= */
.hero--center { text-align: center; padding-bottom: 40px; }
.hero--center .hero__glow { left: 50%; right: auto; margin-left: -320px; top: 0; }
.hero--center h1 { max-width: 15ch; margin-left: auto; margin-right: auto; font-size: clamp(2.6rem, 7vw, 6.4rem); }
.hero--center .hero__lead { margin-left: auto; margin-right: auto; max-width: 56ch; }
.hero--center .ctas { justify-content: center; }
.senda { display: block; width: 100%; height: clamp(90px, 12vw, 160px); margin-top: clamp(40px, 6vw, 70px); }
.senda__base { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 2; }
.senda__draw { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; animation: draw 3.2s ease-in-out infinite alternate; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.light { background: #F3F6F4; color: #0B1F17; }
.white { background: #fff; color: #0B1F17; }
.light .eyebrow, .white .eyebrow { color: #067A52; }
.light .acc, .white .acc { color: #067A52; text-shadow: none; }
.light a, .white a { color: #067A52; }
.light .muted, .white .muted { color: #45584F; }
.light .card { background: #fff; border-color: #DDE6E1; box-shadow: 0 20px 40px -32px rgba(11,31,23,.35); }
.light .card:hover { border-color: #0BB87C; }
.light .card p { color: #45584F; }
.light .card__n { -webkit-text-stroke: 1.2px #0BB87C; }
.light .card--hl { background: #0B1F17; color: #fff; border-color: #0B1F17; }
.light .card--hl p { color: #B7C9C0; }
.light .card--hl a { color: #6CF5C3; }
.light .card--hl .card__n { -webkit-text-stroke: 1.2px #6CF5C3; }

.white .price { background: #F3F6F4; border-color: #DDE6E1; }
.white .price__amt { color: #067A52; }
.white .price__amt small, .white .price .meta { color: #45584F; }
.white .price ul { color: #2B3D35; }
.white .price li::before { color: #067A52; }
.white .price .btn--ghost { color: #0B1F17; border-color: #C9D6CF; }
.white .price--hl { background: #10E39A; border-color: #10E39A; }
.white .price--hl .price__amt, .white .price--hl .price__amt small, .white .price--hl .meta, .white .price--hl ul { color: var(--ink); }
.white .price--hl li::before { color: var(--ink); }
.white .price--hl .btn--ghost { border-color: rgba(2,20,12,.35); }
.white .terms { color: #45584F; }
.white .promise > div { background: #F3F6F4; border-color: #DDE6E1; }
.white .promise p { color: #45584F; }
.white .promise .yes { background: #E3F8EE; border-color: #9FE3C5; }
.white .promise .yes h3 { color: #067A52; }

.light .faq__list details { border-color: #DDE6E1; }
.light .faq__list summary::after { color: #067A52; }
.light .faq__list details p { color: #45584F; }
.light .band { background: #fff; border-color: #DDE6E1; }
.diag { color: var(--text); }
.light .diag a, .light .diag .eyebrow, .light .diag .acc { color: var(--accent); }
.footer { background: var(--bg); }

/* Redes sociales en el pie */
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); color: #9BA7A1; text-decoration: none; transition: color .2s, border-color .2s; }
.footer__social a:hover { color: #10E39A; border-color: rgba(16,227,154,.5); }
.footer .logo { color: var(--text); }
/* Palabra que cambia: en su propia línea y centrada (evita huecos según la palabra) */
.hero--center .rot { display: block; margin: 0 auto; text-align: center; }
.hero--center .rot > span > span { display: block; text-align: center; }
