/* Electro Ins — estilos comunes (landing, páginas de servicio y marco de la herramienta). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800 900; font-display: swap; src: url('/fonts/inter-800.woff2') format('woff2'); }

:root {
  --red: #dc2626;          /* botones y acentos sobre blanco (contraste AA con texto blanco) */
  --red-hover: #c81e1e;
  --red-bright: #ff4d3d;   /* acentos sobre fondo oscuro */
  --red-light: #fef2f2;
  --ink: #1a1a2e;
  --ink-2: #16213e;
  --text: #374151;
  --muted: #6b7280;
  --light-bg: #f7f8fa;
  --line: #e5e7eb;
  --card: #fff;
  --radius: 12px;
  --wa: #25d366;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 80px; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
[hidden] { display: none !important; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.nav__inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 18px; color: var(--red); letter-spacing: -.2px; }
.nav__brand:hover { color: var(--red); }
.nav__brand svg { flex: none; }
.nav__links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--muted); transition: color .15s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__back { display: inline-flex; align-items: center; gap: 6px; }
.nav__links a.nav__cta, .nav__links a.nav__cta:hover {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(220,38,38,.28); transition: background .15s, transform .15s;
}
.nav__links a.nav__cta:hover { background: var(--red-hover); transform: translateY(-1px); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .nav__toggle { display: inline-grid; place-items: center; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .nav--open .nav__links { display: flex; }
  .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__links a.nav__cta { justify-content: center; margin-top: 12px; border-bottom: 0; padding: 12px 18px; }
}

/* ---- Hero ---- */
.hero { background: radial-gradient(900px 500px at 85% -10%, rgba(255,77,61,.32), transparent 60%), linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: 84px 24px 76px; text-align: center; position: relative; overflow: hidden; }
.hero__inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 24px; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 4px rgba(46,204,113,.2); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.12; margin-bottom: 18px; letter-spacing: -.8px; }
.hero h1 span { color: var(--red-bright); }
.hero__sub { font-size: 18px; color: rgba(255,255,255,.82); max-width: 580px; margin: 0 auto 32px; line-height: 1.55; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__trust { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.hero__trust-item { font-size: 14px; color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 7px; }
.hero__trust-item svg { flex: none; color: var(--red-bright); }
.hero--page { padding: 56px 24px 52px; text-align: left; }
.hero--page .hero__inner { max-width: 1100px; }
.hero--page h1 { font-size: clamp(28px, 4vw, 42px); max-width: 820px; }
.hero--page .hero__sub { margin: 0 0 28px; max-width: 700px; }
.hero--page .hero__actions { justify-content: flex-start; }

/* ---- Botones ---- */
.btn-hero { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 16px; cursor: pointer; border: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-hero:hover { transform: translateY(-2px); }
.btn-hero--primary { background: var(--red); color: #fff; box-shadow: 0 6px 22px rgba(220,38,38,.38); }
.btn-hero--primary:hover { background: var(--red-hover); color: #fff; box-shadow: 0 10px 28px rgba(220,38,38,.45); }
.btn-hero--secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-hero--secondary:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 10px; background: var(--wa); color: #fff;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,211,102,.4); color: #fff; }
.btn-wa svg { flex: none; }

/* ---- Secciones ---- */
.section { padding: 76px 24px; }
.section--grey { background: var(--light-bg); }
.section__inner { max-width: 1100px; margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--ink); margin-bottom: 10px; letter-spacing: -.4px; }
.section__head p { font-size: 16px; color: var(--muted); max-width: 580px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

/* ---- Bloque herramienta ---- */
.tool-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tool-cta__text h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--ink); margin-bottom: 12px; letter-spacing: -.4px; }
.tool-cta__text p { color: var(--muted); margin-bottom: 20px; }
.check-list { list-style: none; margin-bottom: 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--text); }
.check-list .check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red-light); color: var(--red); font-size: 13px; font-weight: 800; flex: none; margin-top: 2px; }
.tool-cta__preview { background: radial-gradient(400px 220px at 80% 0%, rgba(255,77,61,.12), transparent 70%), var(--light-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.mockup { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; box-shadow: 0 10px 30px rgba(26,26,46,.08); }
.mockup h3 { font-size: 14px; color: var(--ink); margin-bottom: 12px; text-align: center; }
.mockup-row { display: flex; gap: 10px; margin-bottom: 10px; }
.mockup-field { flex: 1; height: 36px; border-radius: 6px; background: #f9fafb; border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: var(--muted); }
.mockup-chips { display: flex; gap: 8px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.mockup-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mockup-chip--ok { background: #ecfdf5; color: #065f46; }
.mockup-chip--warn { background: #fffbeb; color: #92400e; }
@media (max-width: 768px) { .tool-cta { grid-template-columns: 1fr; } .tool-cta__preview { order: -1; } }

/* ---- Servicios ---- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow .2s, border-color .2s, transform .2s; display: flex; flex-direction: column; }
.service-card:hover { box-shadow: 0 12px 32px rgba(26,26,46,.08); border-color: #fecaca; transform: translateY(-2px); }
.service-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #fee2e2, var(--red-light)); color: var(--red); margin-bottom: 16px; }
.service-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.service-card__links { margin-top: 14px; display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.service-card__links a::after { content: ' →'; }

/* ---- Guías / problemas comunes ---- */
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.guide { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 18px 20px; color: var(--text); transition: box-shadow .2s, transform .2s; }
.guide:hover { color: var(--text); box-shadow: 0 10px 26px rgba(26,26,46,.08); transform: translateY(-2px); }
.guide strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.guide span { font-size: 14px; color: var(--muted); }

/* ---- Proceso ---- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; counter-reset: step; }
.process-step { text-align: center; }
.process-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red)); color: #fff; font-weight: 800; font-size: 20px; margin: 0 auto 16px; box-shadow: 0 6px 18px rgba(220,38,38,.3); }
.process-step h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.process-step p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; transition: border-color .15s; }
.faq details[open] { border-color: #fecaca; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---- Páginas de servicio ---- */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 40px 0 12px; letter-spacing: -.3px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.callout { border-radius: 10px; padding: 16px 18px; margin: 20px 0; font-size: 15px; }
.callout--warn { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.callout--info { background: var(--light-bg); border: 1px solid var(--line); }
.callout strong { color: inherit; }
.aside-card { position: sticky; top: 88px; background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: 0 14px 34px rgba(26,26,46,.2); }
.aside-card h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.aside-card p { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 18px; }
.aside-card .btn-wa, .aside-card .btn-hero { width: 100%; margin-bottom: 10px; }
.aside-card small { display: block; color: rgba(255,255,255,.65); font-size: 12px; margin-top: 6px; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---- CTA final ---- */
.cta-band { background: radial-gradient(700px 300px at 50% 0%, rgba(255,77,61,.25), transparent 70%), var(--ink); color: #fff; padding: 60px 24px; text-align: center; }
.cta-band__inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.3px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.cta-band__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { background: #fafafa; border-top: 1px solid var(--line); padding: 40px 24px 32px; }
.footer__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand { font-weight: 800; color: var(--ink); font-size: 16px; display: block; margin-bottom: 6px; }
.footer p, .footer li { font-size: 14px; color: var(--muted); }
.footer h2 { font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.footer ul { list-style: none; display: grid; gap: 6px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--red); }
.footer__legal { max-width: 1100px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---- WhatsApp flotante (solo celular) ---- */
.wa-float { display: none; }
@media (max-width: 760px) {
  .wa-float { display: grid; place-items: center; position: fixed; right: 18px; bottom: 18px; z-index: 150; width: 58px; height: 58px; border-radius: 50%;
    background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .15s; }
  .wa-float:hover { color: #fff; transform: scale(1.05); }
  body { padding-bottom: 0; }
}
