/* ECUAISP · sitio comercial */
:root {
  --brand: #7c3aed;
  --brand-2: #6d28d9;
  --brand-soft: #ede9fe;
  --accent: #22d3ee;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --navy: #0b1020;
  --navy-2: #131a33;
  --ok: #10b981;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.7); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(124, 58, 237, 0.8); }
.btn-ghost { color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.02em; }
.brand.light { color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #8b5cf6, var(--brand-2)); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, rgba(124, 58, 237, 0.45), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(34, 211, 238, 0.18), transparent 60%), var(--navy); color: #cbd5e1; padding: 72px 0 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.grad { background: linear-gradient(90deg, #c4b5fd, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(124, 58, 237, 0.18); border: 1px solid rgba(167, 139, 250, 0.35); color: #ddd6fe; font-size: 0.85rem; font-weight: 600; margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: #cbd5e1; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.92rem; }
.hero-checks li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 6px; }
.hero-visual { position: relative; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef2f7; border-bottom: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar i:nth-child(1) { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 8px; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; color: var(--ink); padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 0.85rem; max-width: 270px; animation: bob 6s ease-in-out infinite; }
.float small { display: block; color: var(--muted); font-size: 0.78rem; }
.float-a { left: -28px; bottom: -26px; }
.float-b { right: -14px; top: -22px; animation-delay: -3s; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.18); }
.dot.info { background: var(--brand); box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.18); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Compatibilidad */
.compat { border-bottom: 1px solid var(--line); padding: 26px 0; }
.compat p { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; font-weight: 500; }
.compat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.compat-list li { font-weight: 700; color: #94a3b8; font-size: 1.02rem; letter-spacing: -0.01em; }

/* Secciones */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #cbd5e1; }
.section.dark h2 { color: #fff; }
.head { max-width: 720px; margin-bottom: 48px; }
.head.center { text-align: center; margin-inline: auto; }
.head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.eyebrow.light { color: #c4b5fd; }
.muted-light { color: #94a3b8; font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 0; }

.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.2s, transform 0.2s; }
.pain:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pain p { color: var(--muted); margin: 0; }
.pain-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 16px; }
.pain-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks.light li { color: #e2e8f0; }
.checks.light li::before { background-color: rgba(124, 58, 237, 0.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.checks li.addon { color: var(--muted); }
.checks li.addon::before { background-image: none; content: '+'; display: grid; place-items: center; font-weight: 800; color: var(--brand-2); font-size: 0.85rem; line-height: 20px; text-align: center; }

/* Pestañas */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tabs button { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: all 0.15s; }
.tabs button:hover { border-color: var(--brand); color: var(--brand); }
.tabs button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 48px; align-items: center; animation: fade 0.35s ease; }
.panel[hidden] { display: none; }
.panel-copy p { color: var(--muted); font-size: 1.05rem; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.shot.tilt { transform: perspective(1600px) rotateY(5deg); }

/* WhatsApp */
.phone { width: min(380px, 100%); margin-inline: auto; background: #0b141a; border-radius: 34px; padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1f2c34; border-radius: 24px 24px 6px 6px; color: #e9edef; }
.phone-top small { display: block; color: #8696a0; font-size: 0.75rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.chat { background: #0b141a; padding: 14px 6px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; }
.msg { max-width: 84%; padding: 8px 11px; border-radius: 10px; font-size: 0.88rem; line-height: 1.45; margin: 0; color: #e9edef; }
.msg.in { background: #202c33; align-self: flex-start; border-top-left-radius: 2px; }
.msg.out { background: #005c4b; align-self: flex-end; border-top-right-radius: 2px; }
.msg.img { font-style: italic; opacity: 0.9; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opts em { font-style: normal; font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid #2a3942; color: #53bdeb; }

/* Módulos */
.features article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: border-color 0.2s, box-shadow 0.2s; }
.features article:hover { border-color: #c4b5fd; box-shadow: var(--shadow); }
.features i { font-style: normal; font-size: 1.5rem; display: block; margin-bottom: 8px; }
.features h3 { font-size: 1rem; margin-bottom: 4px; }
.features p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Seguridad */
.sec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px; }
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border: 0; }
.sec-row b.ok { color: #047857; background: #d1fae5; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; white-space: nowrap; }

/* Precios */
.prices { align-items: stretch; }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; }
.price .checks { flex: 1; margin-bottom: 26px; align-content: start; }
.price.featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(124, 58, 237, 0.55); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.amount { margin: 6px 0 4px; }
.amount b { font-size: 2.8rem; color: var(--ink); letter-spacing: -0.03em; }
.amount span { color: var(--muted); margin-left: 4px; }
.for { color: var(--muted); font-size: 0.92rem; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.steps b { display: block; color: var(--ink); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 0.93rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Formulario */
.form { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; color: var(--text); }
.form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15); }
.form .invalid { border-color: #ef4444; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--muted) !important; font-size: 0.85rem !important; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 0.92rem; min-height: 1.4em; }
.form-msg.ok { color: #047857; font-weight: 600; }
.form-msg.err { color: #b91c1c; }
.contact-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.link-light { color: #c4b5fd; font-weight: 600; }

/* Pie */
.footer { background: var(--navy); color: #94a3b8; padding: 56px 0 28px; font-size: 0.92rem; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.foot-in p { margin: 12px 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: flex-start; }
.footer nav a { color: #cbd5e1; }
.footer nav a:hover { color: #fff; }
.copy { padding-top: 20px; font-size: 0.85rem; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Responsivo */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 16px; }
}
@media (max-width: 900px) {
  .hero-in, .split, .panel { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 2; }
  .browser, .shot.tilt { transform: none; }
  .float-a { left: 8px; bottom: -22px; } .float-b { right: 8px; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links, .nav.open .nav-cta { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; background: #fff; padding: 12px 16px; margin: 0; gap: 4px; }
  .nav.open .nav-links { top: 68px; border-top: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 10px 4px; }
  .nav.open .nav-cta { top: calc(68px + 5 * 46px + 24px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding-bottom: 16px; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 80px; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .float { max-width: 220px; font-size: 0.78rem; padding: 10px 12px; }
  .hero-actions .btn { flex: 1; }
  .form { padding: 22px; }
}
