/* =========================================================
   Cuentas Claras — Landing premium
   ========================================================= */
:root {
  --bg: #070a14;
  --bg2: #0a0f1e;
  --ink: #eaf0ff;
  --muted: #9aa6c0;
  --brand: #2f6bff;
  --brand2: #4e86ff;
  --teal: #12b5a6;
  --pink: #ec4899;
  --amber: #f5a524;
  --violet: #8b5cf6;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-brd: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --maxw: 1180px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Fondo: aurora + partículas ---------- */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; filter: blur(60px); }
.blob { position: absolute; border-radius: 50%; opacity: 0.55; mix-blend-mode: screen; }
.b1 { width: 55vw; height: 55vw; background: radial-gradient(circle, var(--brand), transparent 65%); top: -18vw; left: -8vw; animation: drift1 22s ease-in-out infinite; }
.b2 { width: 48vw; height: 48vw; background: radial-gradient(circle, var(--violet), transparent 65%); top: 12vw; right: -14vw; animation: drift2 26s ease-in-out infinite; }
.b3 { width: 50vw; height: 50vw; background: radial-gradient(circle, var(--teal), transparent 65%); bottom: -22vw; left: 22vw; animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-6vw, 8vw) scale(1.1); } }
@keyframes drift3 { 50% { transform: translate(5vw, -6vw) scale(1.2); } }
body::before { /* vignette + grano sutil */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, transparent 40%, rgba(0,0,0,.55) 100%);
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Luz que sigue al cursor ---------- */
.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%; z-index: 0;
  pointer-events: none; transform: translate(-50%, -50%); left: 50%; top: 20%;
  background: radial-gradient(circle, rgba(47,107,255,0.16), transparent 60%);
  transition: opacity .4s; mix-blend-mode: screen;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, var(--brand), var(--teal), var(--pink));
  box-shadow: 0 0 14px var(--brand);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 24px)); z-index: 90;
  display: flex; align-items: center; gap: 20px; padding: 10px 12px 10px 18px;
  border-radius: 999px; border: 1px solid var(--glass-brd);
  background: rgba(10, 15, 30, 0.55); backdrop-filter: blur(18px);
  transition: transform .4s, box-shadow .4s, background .4s;
}
.nav.scrolled { box-shadow: var(--shadow); background: rgba(10, 15, 30, 0.8); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 800; letter-spacing: -0.02em; }
.brand img { filter: drop-shadow(0 4px 12px rgba(47,107,255,.6)); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); transition: width .25s; border-radius: 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Botones ---------- */
.btn {
  --p: 15px 26px; display: inline-flex; align-items: center; gap: 8px; padding: var(--p);
  border-radius: 999px; font-weight: 600; font-family: "Sora"; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, box-shadow .3s, background .3s; will-change: transform;
}
.btn-sm { --p: 10px 18px; font-size: 0.9rem; }
.btn-lg { --p: 18px 34px; font-size: 1.1rem; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 34px -8px rgba(47,107,255,.7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 18px 50px -10px rgba(47,107,255,.9), inset 0 1px 0 rgba(255,255,255,.35); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border-color: var(--glass-brd); background: var(--glass); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }

/* ---------- Layout util ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 120px 22px; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-family: "Sora"; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand2); margin-bottom: 14px;
}
.h2 { font-family: "Sora"; font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.sub { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }
.grad { background: linear-gradient(120deg, var(--brand2), var(--teal) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(22px);
  border-radius: var(--radius); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}

/* ---------- HERO ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 160px 22px 60px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; min-height: 100vh;
}
.pill {
  display: inline-flex; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--glass-brd); background: var(--glass); backdrop-filter: blur(10px); margin-bottom: 22px;
}
.display { font-family: "Sora"; font-weight: 800; font-size: clamp(2.8rem, 7.5vw, 5.6rem); line-height: 0.98; letter-spacing: -0.045em; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 24px 0 32px; max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 30px; margin-top: 44px; }
.hero-badges div { display: flex; flex-direction: column; }
.hero-badges b { font-family: "Sora"; font-size: 1.6rem; font-weight: 800; }
.hero-badges span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Teléfono ---------- */
.hero-phone { display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620; border-radius: 42px;
  background: linear-gradient(160deg, #1a2236, #0c1120); padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow), 0 0 0 2px rgba(0,0,0,.5), inset 0 2px 4px rgba(255,255,255,.1);
  transform-style: preserve-3d; transition: transform .18s ease-out;
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #05070f; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-island { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; background: #05070f; border-radius: 999px; z-index: 3; }
.phone-screen {
  position: relative; height: 100%; border-radius: 32px; overflow: hidden; padding: 44px 14px 14px;
  background: radial-gradient(120% 60% at 50% 0%, #101a30, #070b16); display: flex; flex-direction: column; gap: 12px;
}
.app-top { display: flex; align-items: center; gap: 10px; padding: 0 4px 4px; }
.app-top strong { display: block; font-family: "Sora"; font-size: 0.95rem; }
.app-top small { color: var(--muted); font-size: 0.72rem; }
.app-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 12px; }
.ac-row { display: flex; align-items: center; gap: 8px; }
.ac-emoji { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(47,107,255,.15); border-radius: 10px; font-size: 1.1rem; }
.ac-title { font-size: 0.82rem; font-weight: 600; line-height: 1.15; flex: 1; }
.ac-title em { display: block; color: var(--muted); font-weight: 400; font-size: 0.68rem; font-style: normal; }
.ac-total { font-weight: 700; font-size: 0.9rem; }
.ac-avatars { display: flex; margin: 10px 0 8px; }
.ac-avatars i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.6rem; font-weight: 700; color: #fff; background: var(--c); border: 2px solid #0b1020; margin-left: -8px; font-style: normal; }
.ac-avatars i:first-child { margin-left: 0; }
.ac-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); margin: 10px 0 8px; overflow: hidden; }
.ac-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--teal)); }
.ac-owe { font-size: 0.78rem; font-weight: 700; }
.ac-owe.pos { color: var(--teal); }
.ac-owe.neg { color: #ff6b6b; }
.ac-owe.even { color: var(--muted); }
.app-fab { margin-top: auto; text-align: center; padding: 12px; border-radius: 14px; font-weight: 700; font-size: 0.85rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 10px 24px -8px rgba(47,107,255,.7); }
.phone-shadow { width: 240px; height: 40px; margin-top: 26px; border-radius: 50%; background: radial-gradient(circle, rgba(47,107,255,.4), transparent 70%); filter: blur(14px); }
.pop { opacity: 0; transform: translateY(14px); animation: pop .7s forwards; }
.pop.d1 { animation-delay: .15s; } .pop.d2 { animation-delay: .3s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--glass-brd); background: rgba(255,255,255,.02); padding: 18px 0; margin: 20px 0; }
.marquee-track { display: flex; gap: 26px; white-space: nowrap; width: max-content; animation: scrollx 32s linear infinite; font-family: "Sora"; font-weight: 700; color: var(--muted); font-size: 1.1rem; }
.marquee-track span { opacity: .8; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 30px; position: relative; overflow: hidden; transition: transform .18s ease-out, border-color .3s; }
.card.span2 { grid-column: span 2; }
.card .ic { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: rgba(47,107,255,.14); margin-bottom: 18px; }
.card h3 { font-family: "Sora"; font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p { color: var(--muted); }
.card:hover { border-color: rgba(47,107,255,.5); }
.card-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(47,107,255,.18), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover .card-shine { opacity: 1; }

/* ---------- Split (report) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ticks { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #04110f; font-size: 0.7rem; font-weight: 800; }
.split-visual { perspective: 1400px; }
.report { padding: 26px; transition: transform .18s ease-out; }
.rep-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-brd); }
.rep-emoji { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.rep-head small { display: block; color: var(--brand2); font-size: 0.8rem; }
.rep-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.rep-kpis div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px; }
.rep-kpis small { color: var(--muted); font-size: 0.72rem; }
.rep-kpis b { display: block; font-family: "Sora"; font-size: 1.25rem; margin-top: 2px; }
.rep-chart { display: flex; align-items: center; gap: 20px; margin: 6px 0 18px; }
.donut { width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--brand) 0 calc(var(--a) * 1%), var(--teal) 0 calc(var(--b) * 1%), var(--amber) 0 calc(var(--c) * 1%), var(--pink) 0); mask: radial-gradient(circle 34px at center, transparent 98%, #000 100%); -webkit-mask: radial-gradient(circle 34px at center, transparent 98%, #000 100%); }
.legend { list-style: none; display: grid; gap: 8px; font-size: 0.85rem; }
.legend li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { color: var(--ink); margin-left: auto; }
.rep-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.rep-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand2), var(--brand)); }

/* ---------- Download ---------- */
.dl-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 44px; }
.dl-tab { padding: 12px 24px; border-radius: 999px; border: 1px solid var(--glass-brd); background: var(--glass); color: var(--muted); font-weight: 600; font-family: "Sora"; cursor: pointer; transition: all .25s; }
.dl-tab.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(47,107,255,.7); }
.dl-grid { position: relative; }
.dl-panel { display: none; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; animation: fade .5s; }
.dl-panel.active { display: grid; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.dl-steps { padding: 34px; }
.dl-steps ol { list-style: none; display: grid; gap: 18px; margin-bottom: 26px; }
.dl-steps li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
/* SOLO el primer span es el círculo del número. Antes esta regla decía
   `.dl-steps li span`, y cada paso tiene DOS spans: el número y el texto. Al
   texto también se le aplicaba "círculo de 32x32", así que se metía dentro de
   una bolita y se amontonaba encima del número. Se veía a simple vista; nadie
   había abierto la página. */
.dl-steps li > span:first-child { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-family: "Sora"; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.dl-steps li > span:last-child { flex: 1; min-width: 0; }
.ios-note { color: var(--muted); margin-bottom: 18px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 16px; background: #fff; color: #0a0f1e; font-weight: 700; transition: transform .2s, box-shadow .3s; box-shadow: 0 14px 34px -12px rgba(0,0,0,.6); }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(0,0,0,.7); }
.store-btn small { display: block; font-size: 0.68rem; font-weight: 500; opacity: .7; }
.store-btn strong { display: block; font-family: "Sora"; font-size: 1.05rem; }
.store-ic { font-size: 1.6rem; }
.store-btn.ios { background: #0a0f1e; color: #fff; border: 1px solid var(--glass-brd); }
.dl-phone { display: grid; place-items: center; perspective: 1400px; }
.phone-screen.play { background: #0d1424; padding-top: 44px; gap: 14px; }
.play-top { font-family: "Sora"; font-weight: 700; color: var(--brand2); font-size: 0.85rem; }
.play-app { display: flex; align-items: center; gap: 12px; }
.play-app strong { display: block; font-family: "Sora"; }
.play-app small { color: var(--muted); font-size: 0.75rem; }
.play-install { text-align: center; padding: 12px; border-radius: 12px; font-weight: 800; font-family: "Sora"; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,107,255,.5); } 50% { box-shadow: 0 0 0 12px rgba(47,107,255,0); } }
.play-shots { display: flex; gap: 8px; margin-top: 6px; }
.play-shots span { flex: 1; aspect-ratio: 9/16; border-radius: 10px; background: linear-gradient(160deg, rgba(47,107,255,.25), rgba(18,181,166,.2)); border: 1px solid rgba(255,255,255,.08); }
.phone-screen.safari { background: #0d1424; padding-top: 40px; gap: 0; }
.safari-bar { text-align: center; font-size: 0.78rem; color: var(--muted); background: rgba(255,255,255,.05); padding: 8px; border-radius: 10px; }
.safari-site { text-align: center; display: grid; place-items: center; gap: 4px; padding: 30px 0; }
.safari-site img { margin-bottom: 6px; }
.safari-site strong { font-family: "Sora"; }
.safari-site small { color: var(--muted); font-size: 0.78rem; }
.ios-sheet { margin-top: auto; background: rgba(30,38,60,.9); border-radius: 16px; padding: 8px; display: grid; gap: 4px; }
.sheet-row { padding: 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 600; }
.sheet-row.hi { background: rgba(47,107,255,.25); box-shadow: 0 0 0 2px var(--brand); animation: hi 1.6s infinite; }
@keyframes hi { 50% { box-shadow: 0 0 0 4px rgba(47,107,255,.4); } }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi { padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: transform .25s, border-color .3s; }
.testi:hover { transform: translateY(-6px); border-color: rgba(47,107,255,.4); }
.stars { color: var(--amber); letter-spacing: 3px; font-size: 0.95rem; }
.testi blockquote { font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.testi figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi figcaption i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff; background: var(--c); font-style: normal; }
.testi figcaption b { font-family: "Sora"; display: block; }
.testi figcaption span { color: var(--muted); font-size: 0.82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 4px 22px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; font-family: "Sora"; font-weight: 600; font-size: 1.08rem; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand2); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 62ch; line-height: 1.6; animation: fade .35s; }

/* ---------- Finale ---------- */
.finale { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 120px; }
.finale-card { text-align: center; padding: 70px 30px; background: linear-gradient(135deg, rgba(47,107,255,.14), rgba(139,92,246,.1)); }
.finale-card .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 60px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--glass-brd); }
.foot-links { display: flex; gap: 22px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.footer small { margin-left: auto; color: var(--muted); }

/* ---------- Asistente ---------- */
.assistant-fab { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet)); box-shadow: 0 14px 40px -8px rgba(47,107,255,.8); transition: transform .2s; }
.assistant-fab:hover { transform: scale(1.08) translateY(-2px); }
.assistant { position: fixed; right: 22px; bottom: 94px; z-index: 96; width: min(360px, calc(100vw - 44px)); padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; animation: fade .3s; }
.assistant[hidden] { display: none; }
.as-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-family: "Sora"; font-weight: 700; border-bottom: 1px solid var(--glass-brd); background: rgba(47,107,255,.1); }
.as-head button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.as-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.as-msg { padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; max-width: 85%; }
.as-msg.bot { background: rgba(255,255,255,.07); border-bottom-left-radius: 4px; }
.as-msg.me { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.as-chips button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--glass-brd); background: var(--glass); color: var(--ink); font-size: 0.8rem; cursor: pointer; transition: all .2s; }
.as-chips button:hover { border-color: var(--brand); color: #fff; }
.as-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--glass-brd); }
.as-input input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--glass-brd); border-radius: 12px; padding: 10px 14px; color: var(--ink); outline: none; }
.as-input input:focus { border-color: var(--brand); }
.as-input button { border: none; width: 42px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); cursor: pointer; font-size: 1rem; }

/* ---------- Reveal (scroll) ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 130px; min-height: auto; }
  .hero-copy { order: 2; }
  .hero-phone { order: 1; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.span2 { grid-column: span 2; }
  .split, .dl-panel { grid-template-columns: 1fr; gap: 34px; }
  .split-visual, .dl-phone { order: -1; }
  .testi-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card.span2 { grid-column: span 1; }
  .hero-badges { gap: 20px; }
  .section { padding: 80px 18px; }
  .footer { flex-direction: column; text-align: center; }
  .footer small { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Selector de idioma (nav) */
.nav-actions{display:flex;align-items:center;gap:12px}
.lang-switch{display:inline-flex}
.lang-select{background:rgba(255,255,255,.07);color:inherit;border:1px solid rgba(255,255,255,.20);border-radius:999px;padding:7px 10px;font:inherit;font-size:13px;font-weight:600;line-height:1;cursor:pointer}
.lang-select:hover{border-color:rgba(255,255,255,.38)}
.lang-select option{color:#0E1116;background:#fff}
@media (max-width:560px){.lang-select{font-size:12px;padding:6px 8px}}

/* ---------- RTL (árabe) ---------- */
[dir="rtl"] .assistant-fab{right:auto;left:22px}
[dir="rtl"] .assistant{right:auto;left:22px}
[dir="rtl"] .scroll-progress{left:auto;right:0}
[dir="rtl"] .as-msg.bot{border-bottom-left-radius:14px;border-bottom-right-radius:4px}
[dir="rtl"] .as-msg.me{border-bottom-right-radius:14px;border-bottom-left-radius:4px}
