/* ============================================================
   easyweb — página de ventas
   ============================================================ */
:root {
  --ew-ink: #0F1426;
  --ew-muted: #5B6178;
  --ew-primary: #4F46E5;
  --ew-primary-d: #4338CA;
  --ew-accent: #06B6D4;
  --ew-bg: #FFFFFF;
  --ew-soft: #F5F6FD;
  --ew-border: #E6E8F2;
  --ew-radius: 18px;
  --ew-shadow: 0 12px 40px rgba(23,30,70,.10);
  --ew-font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
.ew { margin: 0; font-family: var(--ew-font); color: var(--ew-ink); background: var(--ew-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ew img { max-width: 100%; display: block; }
.ew a { color: inherit; text-decoration: none; }
.ew-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ew h1, .ew h2, .ew h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }

/* ---------- Botones ---------- */
.ew-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .96rem;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .2s; font-family: inherit; }
.ew-btn-primary { background: var(--ew-primary); color: #fff; box-shadow: 0 10px 24px rgba(79,70,229,.32); }
.ew-btn-primary:hover { transform: translateY(-2px); background: var(--ew-primary-d); }
.ew-btn-ghost { border-color: var(--ew-border); background: #fff; color: var(--ew-ink); }
.ew-btn-ghost:hover { border-color: var(--ew-primary); color: var(--ew-primary); }
.ew-btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.ew-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ew-border); }
.ew-header-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.ew-logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.ew-logo span { color: var(--ew-primary); }
.ew-nav { display: flex; align-items: center; gap: 28px; }
.ew-nav a { font-size: .93rem; font-weight: 600; color: var(--ew-muted); }
.ew-nav a:hover { color: var(--ew-primary); }
@media (max-width: 820px) { .ew-nav .ew-nav-link { display: none; } }

/* ---------- Hero ---------- */
.ew-hero { position: relative; padding: 90px 0 80px; overflow: hidden;
  background: radial-gradient(60rem 30rem at 82% -10%, rgba(79,70,229,.12), transparent), radial-gradient(40rem 24rem at 5% 110%, rgba(6,182,212,.10), transparent); }
.ew-hero-badge { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--ew-primary);
  border: 1px solid rgba(79,70,229,.3); background: rgba(79,70,229,.07); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.ew-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); margin: 0 0 20px; max-width: 800px; }
.ew-hero h1 em { font-style: normal; color: var(--ew-primary); }
.ew-hero p { font-size: 1.18rem; color: var(--ew-muted); max-width: 620px; margin: 0 0 32px; }
.ew-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ew-hero-note { margin-top: 18px; font-size: .88rem; color: var(--ew-muted); }
.ew-hero-note b { color: var(--ew-ink); }

/* ---------- Franja de logos/beneficios ---------- */
.ew-strip { border-top: 1px solid var(--ew-border); border-bottom: 1px solid var(--ew-border); background: var(--ew-soft); }
.ew-strip-in { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 22px 0; justify-content: center; }
.ew-strip span { font-size: .92rem; font-weight: 600; color: var(--ew-muted); display: inline-flex; align-items: center; gap: 8px; }
.ew-strip b { color: var(--ew-primary); }

/* ---------- Secciones ---------- */
.ew-section { padding: 84px 0; }
.ew-section.soft { background: var(--ew-soft); }
.ew-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ew-primary); margin-bottom: 12px; }
.ew-h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 14px; }
.ew-sub { color: var(--ew-muted); font-size: 1.08rem; max-width: 640px; }
.ew-center { text-align: center; }
.ew-center .ew-sub { margin-left: auto; margin-right: auto; }

/* ---------- Templates ---------- */
.ew-templates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 46px; }
.ew-templates .ew-tpl:first-child { grid-column: span 2; }
.ew-tpl { border: 1px solid var(--ew-border); border-radius: var(--ew-radius); overflow: hidden; background: #fff; transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column; }
.ew-tpl:hover { transform: translateY(-5px); box-shadow: var(--ew-shadow); }
.ew-tpl-shot { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ew-soft); border-bottom: 1px solid var(--ew-border); }
.ew-tpl:first-child .ew-tpl-shot { aspect-ratio: 21/9; }
.ew-tpl-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 3.5s ease; }
.ew-tpl:hover .ew-tpl-shot img { transform: translateY(-22%); }
.ew-tpl-tag { position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.ew-tpl-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ew-tpl-body h3 { font-size: 1.25rem; margin: 0; }
.ew-tpl-rubro { font-size: .82rem; font-weight: 700; color: var(--ew-primary); }
.ew-tpl-body p { color: var(--ew-muted); font-size: .94rem; margin: 4px 0 0; flex: 1; }
.ew-tpl-foot { display: flex; gap: 10px; margin-top: 16px; }
.ew-tpl-foot .ew-btn { padding: 11px 20px; font-size: .9rem; }

/* ---------- Cómo funciona ---------- */
.ew-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; counter-reset: step; }
.ew-step { position: relative; padding: 30px 24px; border: 1px solid var(--ew-border); border-radius: var(--ew-radius); background: #fff; }
.ew-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ew-primary); color: #fff; font-weight: 800; margin-bottom: 16px; }
.ew-step h3 { font-size: 1.12rem; margin: 0 0 8px; }
.ew-step p { color: var(--ew-muted); font-size: .94rem; margin: 0; }

/* ---------- Features ---------- */
.ew-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.ew-feat { padding: 24px; border: 1px solid var(--ew-border); border-radius: 14px; background: #fff; }
.ew-feat-ico { font-size: 1.6rem; margin-bottom: 12px; }
.ew-feat h3 { font-size: 1.05rem; margin: 0 0 6px; }
.ew-feat p { color: var(--ew-muted); font-size: .92rem; margin: 0; }

/* ---------- Precios ---------- */
.ew-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: stretch; }
.ew-plan { border: 1px solid var(--ew-border); border-radius: var(--ew-radius); background: #fff; padding: 32px 28px; display: flex; flex-direction: column; }
.ew-plan.featured { border-color: var(--ew-primary); box-shadow: var(--ew-shadow); position: relative; }
.ew-plan.featured::after { content: 'Más popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ew-primary); color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.ew-plan h3 { font-size: 1.2rem; margin: 0 0 6px; }
.ew-plan-desc { color: var(--ew-muted); font-size: .9rem; margin: 0 0 18px; min-height: 40px; }
.ew-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.ew-price span { font-size: .95rem; font-weight: 600; color: var(--ew-muted); }
.ew-plan ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; flex: 1; }
.ew-plan li { font-size: .93rem; padding-left: 26px; position: relative; color: #374151; }
.ew-plan li::before { content: '✓'; position: absolute; left: 0; color: #10B981; font-weight: 800; }
.ew-plan li.no { color: #9AA1B4; }
.ew-plan li.no::before { content: '—'; color: #C4CAD8; }
.ew-plan-note { text-align: center; margin-top: 22px; color: var(--ew-muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.ew-faq { max-width: 760px; margin: 46px auto 0; display: grid; gap: 12px; }
.ew-faq-item { border: 1px solid var(--ew-border); border-radius: 12px; background: #fff; overflow: hidden; }
.ew-faq-q { width: 100%; text-align: left; border: 0; background: none; cursor: pointer; font: 700 1rem var(--ew-font); color: var(--ew-ink); padding: 18px 20px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.ew-faq-q .c { color: var(--ew-primary); transition: transform .25s; }
.ew-faq-item.open .c { transform: rotate(180deg); }
.ew-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.ew-faq-a > div { padding: 0 20px 18px; color: var(--ew-muted); font-size: .95rem; }

/* ---------- Formulario ---------- */
.ew-request { background: linear-gradient(135deg, var(--ew-primary), #7C3AED); color: #fff; border-radius: 26px; padding: 56px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: center; }
.ew-request h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 14px; }
.ew-request p { opacity: .92; margin: 0 0 10px; }
.ew-request-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ew-request-list li { padding-left: 28px; position: relative; font-size: .95rem; opacity: .95; }
.ew-request-list li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; }
.ew-form { background: #fff; border-radius: 18px; padding: 30px; display: grid; gap: 14px; }
.ew-form .f label { display: block; font-size: .8rem; font-weight: 700; color: var(--ew-ink); margin-bottom: 5px; }
.ew-form input, .ew-form select, .ew-form textarea { width: 100%; border: 1px solid var(--ew-border); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--ew-ink); background: #fff; }
.ew-form input:focus, .ew-form select:focus, .ew-form textarea:focus { outline: 2px solid rgba(79,70,229,.4); border-color: var(--ew-primary); }
.ew-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ew-form-msg { display: none; font-size: .9rem; padding: 11px 14px; border-radius: 10px; }
.ew-form-msg.ok { display: block; background: #E7F8F0; color: #0A7A55; }
.ew-form-msg.err { display: block; background: #FDECEC; color: #B42323; }

/* ---------- Footer ---------- */
.ew-footer { border-top: 1px solid var(--ew-border); padding: 40px 0; color: var(--ew-muted); font-size: .9rem; }
.ew-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Reveal ---------- */
.ew-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ew-reveal.visible { opacity: 1; transform: none; }

/* ---------- Barra de demo (sobre las plantillas) ---------- */
.demo-bar { position: fixed; top: 0; left: 0; right: 0; height: 46px; z-index: 300; background: #0F1426; color: #fff; }
.demo-bar-inner { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-brand { font-weight: 800; font-size: .95rem; color: #fff; }
.demo-switch { display: flex; align-items: center; gap: 12px; }
.demo-name { font-size: .85rem; color: #C7CCDA; }
.demo-name strong { color: #fff; }
.demo-arrow { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.2rem; color: #fff; }
.demo-arrow:hover { background: rgba(255,255,255,.24); }
.demo-cta { background: #4F46E5; color: #fff; font-weight: 700; font-size: .84rem; padding: 8px 16px; border-radius: 8px; white-space: nowrap; }
.demo-cta:hover { background: #4338CA; }
@media (max-width: 700px) { .demo-name { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ew-templates, .ew-steps, .ew-features, .ew-plans { grid-template-columns: 1fr; }
  .ew-templates .ew-tpl:first-child { grid-column: span 1; }
  .ew-templates .ew-tpl:first-child .ew-tpl-shot { aspect-ratio: 16/10; }
  .ew-request { grid-template-columns: 1fr; padding: 36px 26px; }
  .ew-section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .ew-form-row { grid-template-columns: 1fr; }
  .ew-hero { padding: 60px 0 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .ew-reveal { opacity: 1; transform: none; transition: none; }
  .ew-tpl-shot img { transition: none; }
}
