/* Portada comercial de Sansy (dominio pelado). Tokens de color de disponibilidad.css (modo claro/oscuro). */
body.inicio { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, "Segoe UI", Roboto, Inter, sans-serif; -webkit-font-smoothing: antialiased; }
.inicio h1, .inicio h2, .inicio h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.inicio h2 { font-size: clamp(24px, 3.2vw, 34px); text-align: center; margin-bottom: 10px; }
.inicio p { margin: 0 0 12px; }
.inicio .small { font-size: 14px; }
.inicio .muted { color: var(--muted); }
.inicio .sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.cont { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.inicio html, body.inicio { overflow-x: hidden; }
.hero-in > *, .dos > *, .tres > *, .funciones .grid > *, .celulares > * { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* botones */
.inicio .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; white-space: nowrap; }
.inicio .btn.primario { background: var(--primary); color: var(--primary-text); box-shadow: 0 6px 18px rgb(31 58 95 / .18); }
.inicio .btn.primario:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(31 58 95 / .22); }
.inicio .btn.linea { background: transparent; color: var(--primary); border-color: var(--primary); }
.inicio .btn.linea:hover { background: var(--accent-soft); }
.inicio .btn.grande { padding: 14px 24px; font-size: 17px; border-radius: 14px; }
.inicio .btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* cabecera */
.cab { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.cab-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.marca img { display: block; height: 44px; width: auto; }
.menu { display: flex; gap: 22px; margin-left: 8px; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; }
.menu a:hover { opacity: 1; color: var(--accent); }
.idiomas { margin-left: auto; display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.idiomas button { background: transparent; border: 0; padding: 6px 9px; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.idiomas button.on { background: var(--accent-soft); color: var(--primary); }
.acciones { display: flex; gap: 10px; }
.hamb { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.hamb span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* hero */
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.ojo { color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.confianza { font-size: 13px; color: var(--muted); margin-top: 12px; }
.hero-img { position: relative; padding: 10px 0 40px 0; }
.hero-img figure { margin: 0; }
.hero-img .pc { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 60px rgb(31 58 95 / .18); background: var(--surface); }
.hero-img .pc img { display: block; width: 100%; height: auto; }
.hero-img .cel { position: absolute; right: -8px; bottom: 0; width: 31%; border-radius: 22px; overflow: hidden; border: 6px solid #0f1a28; box-shadow: 0 24px 48px rgb(31 58 95 / .28); background: #0f1a28; }
.hero-img .cel img { display: block; width: 100%; height: auto; }

/* problemas */
.problemas { padding: 56px 0; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.tres article { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 18px; box-shadow: var(--shadow); position: relative; }
.tres .num { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--primary); font-weight: 800; margin-bottom: 12px; }
.tres h3 { font-size: 19px; margin-bottom: 8px; }
.tres .dolor { color: var(--muted); }
.tres .dolor::before { content: "✕ "; color: var(--danger); font-weight: 700; }
.tres .sol::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.tres .sol { margin: 0; }

/* funciones */
.funciones { padding: 40px 0 56px; background: var(--surface-2); }
.funciones .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.funciones article { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.funciones svg { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.funciones h3 { font-size: 17px; margin-bottom: 6px; }
.funciones p { margin: 0; color: var(--muted); font-size: 15px; }

/* galería */
.galeria { padding: 56px 0; }
.celulares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.celulares figure { margin: 0; text-align: center; }
.celulares img { display: block; width: 100%; height: auto; border-radius: 26px; border: 6px solid #0f1a28; background: #0f1a28; box-shadow: 0 20px 44px rgb(31 58 95 / .2); }
.celulares figcaption { margin-top: 12px; font-weight: 600; }

/* nosotros y contacto */
.nosotros { padding: 56px 0; background: var(--surface-2); }
.dos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.dos h2 { text-align: left; }
.valores { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.valores li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.valores strong { font-size: 16px; }
.valores span { color: var(--muted); font-size: 14px; }
.contacto { padding: 56px 0 64px; }
.caja-entrar { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.caja-entrar h3, .dlg h3 { font-size: 20px; margin-bottom: 6px; }

/* precio */
.precio { padding: 56px 0; background: linear-gradient(135deg, var(--primary), #2a8cc4); color: #fff; text-align: center; }
.precio h2, .precio .sub { color: #fff; }
.precio .sub { opacity: .85; }
.monto { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; margin-bottom: 6px; }
.precio .btn.primario { background: #fff; color: var(--primary, #1f3a5f); box-shadow: 0 10px 24px rgb(0 0 0 / .18); }
:root[data-theme="dark"] .precio .btn.primario, :root:not([data-theme="light"]) .precio .btn.primario { color: #1f3a5f; }

/* formulario de entrar (caja y diálogo) */
.form-entrar label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
.slug-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slug-wrap input { flex: 1; min-width: 0; padding: 11px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.slug-wrap input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.slug-dom { color: var(--muted); font-size: 14px; white-space: nowrap; }
.form-entrar .error { color: var(--danger); font-size: 14px; margin: 8px 0 0; }
.form-entrar .error:empty { display: none; }
.form-entrar .btn { width: 100%; margin-top: 12px; }

/* diálogo */
.dlg { border: 1px solid var(--border); border-radius: 18px; padding: 24px; width: min(440px, calc(100% - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgb(0 0 0 / .3); }
.dlg::backdrop { background: rgb(15 26 40 / .55); backdrop-filter: blur(3px); }
.dlg-cerrar { position: absolute; top: 10px; right: 10px; margin: 0; }
.dlg-cerrar button { border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.dlg > p.small:last-child { margin: 14px 0 0; }
.dlg a { color: var(--accent); font-weight: 600; }

/* pie */
.pie-sansy { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: 14px; }
.pie-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pie-in nav { display: flex; gap: 16px; flex-wrap: wrap; }
.pie-in a { color: var(--muted); text-decoration: none; }
.pie-in a:hover { color: var(--accent); }

/* registro cerrado */
.registro-cerrado .solo-registro { display: none !important; }

/* celular */
@media (max-width: 900px) {
  .hero-in, .dos { grid-template-columns: 1fr; gap: 28px; }
  .tres, .funciones .grid { grid-template-columns: 1fr 1fr; }
  .celulares { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-img { margin-top: 8px; }
}
@media (max-width: 720px) {
  .cab-in { gap: 10px; }
  .menu { display: none; }
  .acciones { display: none; }
  .hamb { display: flex; }
  .cab.abierta .menu, .cab.abierta .acciones { display: flex; }
  .cab.abierta .cab-in { flex-wrap: wrap; height: auto; padding: 12px 0 14px; }
  .cab.abierta .menu { order: 5; width: 100%; flex-direction: column; gap: 10px; margin: 6px 0 0; }
  .cab.abierta .acciones { order: 6; width: 100%; }
  .cab.abierta .acciones .btn { flex: 1; }
  .idiomas { margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .cta .btn { width: 100%; }
  .hero-img .cel { width: 34%; right: 0; }
  .tres, .funciones .grid { grid-template-columns: 1fr; }
  .celulares { grid-template-columns: 1fr; max-width: 300px; }
  .problemas, .funciones, .galeria, .nosotros, .precio, .contacto { padding: 40px 0; }
}
@media (max-width: 360px) {
  .marca img { height: 34px; }
  .idiomas button { padding: 6px 6px; }
  .hamb { width: 38px; height: 38px; }
  .cab-in { gap: 8px; }
}
