/* =========================================================
   Fedelyo — web pública, acceso y páginas legales
   ========================================================= */
body.site { background: #fff; overflow-x: hidden; }
.site section { scroll-margin-top: 76px; }
.section { padding: 96px 0; position: relative; }
.section.alt { background: var(--bg); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; letter-spacing: .01em; }
.eyebrow svg { width: 15px; height: 15px; }
.grad-text { background: linear-gradient(120deg, var(--brand) 10%, #7C3AED 60%, #DB2777 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-icon] { display: inline-flex; }

/* ----- Cabecera ----- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15,23,42,.18); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav a { color: var(--ink-2); font-weight: 550; font-size: 14.5px; padding: 8px 12px; border-radius: 9px; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.active { color: var(--brand); }
.header-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; margin-left: auto; }
.mobile-nav { display: none; }
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .22s var(--ease); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-header.open .mobile-nav { transform: none; opacity: 1; visibility: visible; }
  .mobile-nav a.link { display: block; padding: 13px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); text-decoration: none; }
  .mobile-nav .row { margin-top: 16px; }
  .mobile-nav .btn { flex: 1; }
}

/* ----- Hero ----- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background: radial-gradient(45% 50% at 78% 40%, rgba(124,58,237,.14), transparent 70%), radial-gradient(40% 45% at 15% 20%, rgba(79,70,229,.12), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 17px; height: 17px; color: var(--ok); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 40px; } .hero-copy { text-align: center; } .hero .lead { margin-inline: auto; } .hero-cta, .hero-points { justify-content: center; } }
@media (max-width: 480px) { .hero-cta .btn { width: 100%; } }

/* Móvil de demostración (CSS puro) */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone-stage .orb { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.phone-stage .orb.a { width: 340px; height: 340px; background: linear-gradient(135deg, #C7D2FE, #DDD6FE); top: 40px; right: 0; opacity: .7; }
.phone-stage .orb.b { width: 120px; height: 120px; background: linear-gradient(135deg, #FDE68A, #FCA5A5); bottom: 70px; left: 20px; opacity: .55; }
.phone { position: relative; z-index: 1; width: 292px; height: 594px; border-radius: 48px; background: #0B1020; padding: 12px; box-shadow: 0 50px 90px -30px rgba(30,27,75,.55), 0 0 0 2px #1E2440 inset, 0 0 0 1px #2B3256; }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 99px; background: #0B1020; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: linear-gradient(180deg, #F5F3FF 0%, #fff 45%); display: flex; flex-direction: column; }
.phone-status { display: flex; justify-content: space-between; padding: 16px 26px 0; font-size: 12px; font-weight: 700; color: var(--ink); height: 46px; }
.phone-status i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; }
.phone-status i::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--ink); border-radius: 1px; }
.phone-app { padding: 10px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.phone-app .hello { font-size: 12px; color: var(--muted); }
.phone-app .hello strong { display: block; color: var(--ink); font-size: 16px; letter-spacing: -.02em; }
.flip { perspective: 1200px; margin-top: 14px; height: 214px; cursor: pointer; border: 0; padding: 0; background: none; width: 100%; text-align: left; font: inherit; border-radius: 22px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 16px; border-radius: 20px; }
.flip .face.back { transform: rotateY(180deg); }
.flip .lcard { --c: #4F46E5; background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.flip .face.back.lcard { background: linear-gradient(135deg, #1E1B4B, #4338CA); }
.flip .stamps { gap: 6px; margin-top: 12px; }
.flip .stamps .s svg { width: 60%; height: 60%; }
.flip .lcard-big { font-size: 1.9rem; margin-top: 10px; }
.flip .pts-row { display: flex; justify-content: space-between; align-items: end; }
.mini-progress { height: 6px; background: rgba(255,255,255,.22); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.mini-progress span { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; transition: width 1.1s var(--ease) .35s; }
.flip.flipped .mini-progress span { width: 76%; }
.phone-list { margin-top: 14px; display: grid; gap: 8px; }
.phone-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; font-size: 12px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.phone-item .icon-tile { width: 30px; height: 30px; border-radius: 9px; }
.phone-item .icon-tile svg { width: 16px; height: 16px; }
.phone-item strong { display: block; font-size: 12.5px; }
.phone-item small { color: var(--muted); font-size: 11px; }
.phone-item .badge { margin-left: auto; height: 20px; font-size: 10.5px; }
.phone.revealed .phone-item { opacity: 1; transform: none; }
.phone.revealed .phone-item:nth-child(2) { transition-delay: .12s; }
.phone.revealed .phone-item:nth-child(3) { transition-delay: .24s; }
.phone-hint { margin-top: auto; text-align: center; font-size: 11px; color: var(--muted-2); padding-top: 8px; }
.float-chip { position: absolute; z-index: 2; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-size: 13px; animation: float 6s ease-in-out infinite; }
.float-chip strong { display: block; font-size: 13.5px; }
.float-chip small { color: var(--muted); }
.float-chip.c1 { top: 110px; left: -6px; }
.float-chip.c2 { bottom: 110px; right: -4px; animation-delay: -3s; }
.float-chip .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.float-chip .icon-tile svg { width: 18px; height: 18px; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .float-chip.c1 { left: -20px; } }
@media (max-width: 520px) { .float-chip { display: none; } .phone-stage { min-height: 560px; } .phone { transform: scale(.94); } }

/* ----- Problema ----- */
.problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.problem { padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.problem:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.problem .icon-tile { margin-bottom: 14px; }
.problem p { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
@media (max-width: 960px) { .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .problems { grid-template-columns: 1fr; } }
.solution { margin-top: 28px; border-radius: var(--radius-xl); padding: 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; color: #fff;
  background: radial-gradient(80% 140% at 100% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(120deg, #312E81, #4F46E5 55%, #7C3AED); box-shadow: 0 30px 60px -30px rgba(79,70,229,.6); }
.solution h3 { font-size: 1.45rem; margin-bottom: 6px; }
.solution p { margin: 0; opacity: .88; }
.solution .brand-mark { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; background: rgba(255,255,255,.16); box-shadow: none; }
.solution .btn { --b: #fff; --c: var(--brand); border-color: transparent; }
.solution .btn:hover { background: #EEF2FF; }
@media (max-width: 760px) { .solution { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; } .solution .brand-mark { margin: 0 auto; } }

/* ----- Cómo funciona ----- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; left: 12%; right: 12%; border-top: 2px dashed var(--brand-100); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step-num { width: 68px; height: 68px; border-radius: 22px; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), #7C3AED); box-shadow: 0 12px 24px -10px rgba(79,70,229,.6); position: relative; }
.step-num svg { width: 28px; height: 28px; }
.step-num::after { counter-increment: step; content: counter(step); position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: var(--shadow); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ----- Funcionalidades ----- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.feature::after { content: ''; position: absolute; inset: auto -40px -60px auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.10), transparent 70%); transition: transform .4s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.feature:hover::after { transform: scale(1.5); }
.feature .icon-tile { margin-bottom: 16px; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-50), #F3E8FF); }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.feature .badge { position: absolute; top: 20px; right: 20px; }
.extras { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.extras .lbl { color: var(--muted); font-size: 14px; font-weight: 600; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip svg { width: 16px; height: 16px; color: var(--brand); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ----- Para negocios ----- */
.sectors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.sector { padding: 20px 16px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sector .icon-tile { margin: 0 auto 12px; }
.sector h3 { font-size: 1rem; margin-bottom: 4px; }
.sector p { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.benefit { padding: 30px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: #fff; }
.benefit.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.benefit.dark .check-list li { color: #E2E8F0; }
.benefit.dark .check-list li svg { color: #A5B4FC; }
.benefit .eyebrow { margin-bottom: 10px; }
.benefit.dark .eyebrow { background: rgba(255,255,255,.1); color: #C7D2FE; }
.benefit h3 { font-size: 1.35rem; margin-bottom: 14px; }
.benefit .check-list li { font-size: 15px; padding: 7px 0; }

/* ----- Demo interactiva ----- */
.demo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.demo-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.03em; }
.demo-copy p { color: var(--muted); font-size: 1.05rem; }
.demo-card-wrap { max-width: 400px; width: 100%; margin: 0 auto; position: relative; }
.demo-label { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2; }
.demo-card { --c: #7C2D12; background: linear-gradient(140deg, #9A3412 0%, #7C2D12 55%, #431407 100%); padding: 24px; }
.demo-card .lcard-logo svg { width: 22px; height: 22px; }
.demo-card .stamps .s { color: #9A3412; }
.demo-card .stamps .s.on { color: #9A3412; }
.demo-card .progress-text { margin-top: 14px; font-weight: 600; font-size: 14px; min-height: 21px; }
.demo-card .mini-progress span { transition: width .6s var(--ease); }
.demo-qr { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.demo-qr .qr-box { width: 92px; height: 92px; padding: 6px; border-radius: 12px; flex: none; }
.demo-qr .qr-box img { width: 80px; height: 80px; }
.demo-qr small { opacity: .8; font-size: 12px; }
.demo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.demo-actions .btn { flex: 1; }
.demo-actions .btn-white { --b: #fff; --c: #7C2D12; border-color: transparent; }
.demo-actions .btn-white:hover { background: #FFF7ED; }
.demo-actions .btn-glass { --b: rgba(255,255,255,.14); --c: #fff; border-color: rgba(255,255,255,.25); }
.demo-actions .btn-glass:hover { background: rgba(255,255,255,.24); }
.reward-banner { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); align-items: center; gap: 10px; font-weight: 600; font-size: 14px; animation: pop .4s var(--ease); }
.reward-banner svg { width: 22px; height: 22px; flex: none; }
.demo-card.full .reward-banner { display: flex; }
.demo-rewards { margin-top: 14px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.demo-rewards li { padding: 12px 16px; }
.demo-rewards .cost { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.demo-rewards .ok-now { color: var(--ok); }
.demo-log { min-height: 22px; font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
@media (max-width: 900px) { .demo-wrap { grid-template-columns: 1fr; } .demo-copy { text-align: center; } .demo-copy .check-list { display: inline-block; text-align: left; } }

/* ----- Precios ----- */
.billing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: -28px; margin-bottom: 36px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; padding: 26px 22px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.rec { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(79,70,229,.5); }
.plan .rec-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), #7C3AED); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan .desc { color: var(--muted); font-size: 14px; min-height: 42px; margin-bottom: 16px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan .price strong { font-size: 2.4rem; letter-spacing: -.04em; font-weight: 800; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .price-sub { color: var(--muted); font-size: 12.5px; min-height: 19px; margin-bottom: 18px; }
.plan .btn { margin-bottom: 20px; }
.plan .check-list { margin-top: auto; }
.plan .check-list li { font-size: 13.5px; padding: 4px 0; }
.plan.skel .skeleton { margin-bottom: 12px; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.compare { margin-top: 40px; }
.compare summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary svg { transition: transform .2s; }
.compare[open] summary svg { transform: rotate(180deg); }
.compare .card { margin-top: 18px; }
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }
.compare-table td:first-child { font-weight: 500; }
.compare-table .group td { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.compare-table .yes svg { width: 18px; height: 18px; color: var(--ok); margin: 0 auto; }
.compare-table .no { color: var(--muted-2); }
.compare-table th.rec-col, .compare-table td.rec-col { background: #FAFAFF; }
.compare-table thead th { position: sticky; top: 0; }

/* ----- FAQ ----- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--brand-100); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 650; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease); }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ----- CTA final ----- */
.cta-band { border-radius: 32px; padding: 56px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(60% 120% at 0% 0%, rgba(255,255,255,.16), transparent 60%), linear-gradient(120deg, #1E1B4B, #4338CA 50%, #7C3AED); }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.03em; }
.cta-band p { opacity: .85; max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-band .row { justify-content: center; flex-wrap: wrap; }
.cta-band .btn-white { --b: #fff; --c: var(--brand); border-color: transparent; }
.cta-band .btn-white:hover { background: #EEF2FF; }
.cta-band .btn-glass { --b: rgba(255,255,255,.12); --c: #fff; border-color: rgba(255,255,255,.28); }
.cta-band .btn-glass:hover { background: rgba(255,255,255,.22); }
@media (max-width: 600px) { .cta-band { padding: 40px 22px; border-radius: 24px; } .cta-band .btn { width: 100%; } }

/* ----- Pie ----- */
.site-footer { background: var(--ink); color: #CBD5E1; padding: 64px 0 28px; font-size: 14px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.site-footer button.linklike { background: none; border: 0; padding: 0; color: #CBD5E1; font: inherit; cursor: pointer; }
.site-footer button.linklike:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #1E293B; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #94A3B8; font-size: 13px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ----- Modal de contacto ----- */
.lead-success { text-align: center; padding: 18px 0 8px; }
.lead-success .icon-tile { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px; }
.lead-success .icon-tile svg { width: 30px; height: 30px; }

/* ----- Aparición al hacer scroll ----- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .float-chip { animation: none; }
  .flip-inner { transition: none; }
}

/* =========================================================
   Página de acceso
   ========================================================= */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.auth-aside { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column;
  background: radial-gradient(70% 60% at 100% 0%, rgba(255,255,255,.16), transparent 60%), linear-gradient(150deg, #1E1B4B 0%, #4338CA 55%, #7C3AED 100%); }
.auth-aside .brand { color: #fff; }
.auth-aside .brand-mark { background: rgba(255,255,255,.16); box-shadow: none; }
.auth-aside h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.03em; margin-top: auto; }
.auth-aside p { opacity: .85; max-width: 440px; }
.auth-aside .check-list li { color: #E0E7FF; font-size: 15px; }
.auth-aside .check-list li svg { color: #A5B4FC; }
.auth-aside .mini-card { margin: 32px 0 auto; max-width: 340px; transform: rotate(-4deg); }
.auth-aside .mini-card .lcard { background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.auth-main { display: flex; flex-direction: column; padding: 32px 24px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-box { width: 100%; max-width: 440px; margin: auto; padding: 32px 0; }
.auth-box h1 { font-size: 1.75rem; letter-spacing: -.03em; }
.auth-box .tabs { margin-bottom: 24px; }
.auth-box .tabs button { flex: 1; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-wrap .pw-toggle { position: absolute; right: 4px; top: 4px; height: 34px; width: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pw-wrap .pw-toggle:hover { background: var(--line-2); color: var(--ink); }
.pw-wrap .pw-toggle svg { width: 18px; height: 18px; }
.pw-rules { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pw-rules span { display: inline-flex; align-items: center; gap: 4px; }
.pw-rules span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s; }
.pw-rules span.ok { color: var(--ok); }
.pw-rules span.ok::before { background: var(--ok); }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); }
.customer-note { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; }
.customer-note svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 1px; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* =========================================================
   Páginas legales y 404
   ========================================================= */
.simple-header { border-bottom: 1px solid var(--line); background: #fff; }
.simple-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.legal { max-width: 800px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -.03em; }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal h3 { font-size: 1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .alert { margin: 20px 0 28px; }
.legal .toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 14px; }
.legal .toc ol { margin: 6px 0 0; padding-left: 1.2em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg); }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.simple-footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13px; color: var(--muted); }
.simple-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.simple-footer a { color: var(--muted); margin-left: 14px; }
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(50% 40% at 50% 30%, rgba(124,58,237,.10), transparent 70%), #fff; }
.nf .code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 18px 0 8px; }
.nf p { color: var(--muted); max-width: 420px; margin: 0 auto 26px; }
