/* Base: sas-callcom/public/assets/styles.css (solo la parte del sitio público), con la paleta del logo
   de Smart Conexión Hogar y modo oscuro. Sin JavaScript. */
:root {
  --bg: #f4f7fd;
  --surface: #ffffff;
  --surface-2: #eaf1ff;
  --text: #0f1a33;
  --muted: #4d5a75;
  --border: #d9e2f2;
  --brand: #1446c8;
  --brand-strong: #0b2f8c;
  --brand-ink: #ffffff;
  --accent: #2fa8ff;
  --ok: #138a4b;
  --warn-bg: #fff3cd;
  --hero-from: #0b2f8c;
  --hero-to: #1a5be6;
  --radius: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1022;
    --surface: #111a33;
    --surface-2: #16244a;
    --text: #e8eefc;
    --muted: #a5b2cf;
    --border: #24345e;
    --brand: #6fa0ff;
    --brand-strong: #9cbcff;
    --brand-ink: #0a1022;
    --accent: #5cc0ff;
    --ok: #4cc98a;
    --warn-bg: #5a4a12;
    --hero-from: #0a1a4d;
    --hero-to: #12358f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--brand); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem;
  color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 40px; height: 40px; border-radius: 50%; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; background: #1fa855; color: #fff;
  font-weight: 700; text-decoration: none; padding: 9px 16px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.header-cta svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .header-cta .long { display: none; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 56px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p { font-size: 1.1rem; max-width: 56ch; margin: 0 0 12px; color: #dfe8ff; }
.hero .eyebrow { display: inline-block; background: rgb(255 255 255 / .14); color: #fff; font-weight: 600;
  font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-media { display: flex; justify-content: center; }
.hero-media img { width: min(320px, 80vw); border-radius: 50%; box-shadow: 0 18px 50px rgb(0 0 0 / .35); }
.hero .fine { font-size: .85rem; color: #c8d6ff; margin-top: 14px; }
.hero .fine a { color: #fff; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-block: 72px; } }

/* ---------- Secciones ---------- */
.section { padding-block: 56px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 8px; letter-spacing: -.01em; }
.section .lead { color: var(--muted); max-width: 64ch; margin: 0 0 28px; font-size: 1.05rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--brand); margin-bottom: 12px; }
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: paso; position: relative; padding: 22px 22px 22px 70px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(paso); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); }

/* Bloque de reglas de mensajería (cumplimiento) */
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; }
.rules svg { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.rules .no svg { color: #d93838; }
@media (min-width: 820px) { .rules { grid-template-columns: 1fr 1fr; } }

/* ---------- Botones de WhatsApp ----------
   Íconos oficiales de Simple Icons (CC0) dentro de una insignia circular concéntrica con la píldora. */
.cta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.hero .cta-row { max-width: 520px; }
.lines-title { margin: 28px 0 0; font-size: 1.05rem; }
.lines-title + .cta-row { margin-top: 12px; }
.btn-brand {
  --h: 58px; --inset: 6px;
  display: flex; align-items: center; gap: 12px;
  height: var(--h); padding: var(--inset) 24px var(--inset) var(--inset);
  border-radius: calc(var(--h) / 2);
  color: #fff; text-decoration: none;
  box-shadow: 0 2px 6px rgb(0 0 0 / .15);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .2); filter: brightness(1.05); }
.btn-brand:active { transform: translateY(0); }
.btn-brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-badge {
  --size: calc(var(--h) - 2 * var(--inset));
  width: var(--size); height: var(--size); flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff;
}
.btn-icon { display: block; width: 27px; height: 27px; }
.btn-label { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; font-weight: 700; font-size: 1rem; }
.btn-label small { margin-top: 2px; font-weight: 500; font-size: .8rem; opacity: .95; letter-spacing: .01em; }
.btn-whatsapp { background: #1fa855; text-shadow: 0 1px 1px rgb(0 0 0 / .2); }
.btn-whatsapp .btn-badge { color: #1fa855; }
@media (max-width: 560px) { .cta-row { grid-template-columns: minmax(0, 1fr); } }

.notice { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.about { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .about { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.about dl { margin: 0; display: grid; gap: 10px; }
.about dt { font-weight: 700; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.about dd { margin: 0; }
.brand-note { color: var(--muted); font-size: .85rem; margin-top: 16px; }
.en { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { padding-block: 28px; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer nav a { font-weight: 600; }
.site-footer p { margin: 4px 0; }

/* ---------- Páginas legales ---------- */
.legal main { max-width: 820px; margin: 24px auto 48px; padding: 32px 20px 48px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); }
@media (max-width: 860px) { .legal main { margin: 0; border-radius: 0; border-inline: 0; } }
.legal h1 { margin-top: 0; line-height: 1.2; }
.legal h2 { margin-top: 2em; font-size: 1.2rem; }
.legal .table-scroll { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-2); }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0 1em; }
.placeholder { background: var(--warn-bg); padding: 0 4px; border-radius: 3px; }
