/* =========================================================
   MiraQueHay — web informativa (miraquehay.com.ar)
   Estilos compartidos por inicio, planes, ayuda, contacto y legal.
   Se sirve como /web/css/estilos.css.
   ========================================================= */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff4ff;
  --accent: #f59e0b;
  --wa: #25d366;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.angosto { max-width: 760px; }
.seccion { padding: 80px 0; }
.seccion.blanca { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.centrado { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.centrado .lead { margin-left: auto; margin-right: auto; }
.resaltado { color: var(--brand); }

/* ---------- Barra superior ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 250, 252, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .contenedor { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a.actual { color: var(--ink); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
}
.btn-principal { background: var(--brand); color: #fff; }
.btn-principal:hover { background: var(--brand-dark); }
.btn-borde { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-borde:hover { border-color: var(--ink-soft); }
.btn-wa { background: var(--wa); color: #fff; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.centrado .botones { justify-content: center; }

/* ---------- Portada ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pastilla {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: .85rem; font-weight: 700;
}
.url-demo { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.url-demo code { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--ink); }
.url-demo em { color: var(--brand); font-style: normal; font-weight: 700; }

/* Dibujo de una tienda de ejemplo (no es una captura real). */
.muestra { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.muestra-titulo { font-weight: 800; text-align: center; margin-bottom: 4px; }
.muestra-sub { text-align: center; color: var(--muted); font-size: .8rem; margin-bottom: 14px; }
.muestra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.muestra-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .85rem; }
.muestra-foto { aspect-ratio: 1 / 1; }
.muestra-item div:last-child { padding: 8px 10px; }
.muestra-item b { display: block; }
.f1 { background: linear-gradient(135deg, #bfdbfe, #93c5fd); }
.f2 { background: linear-gradient(135deg, #fde68a, #fbbf24); }
.f3 { background: linear-gradient(135deg, #fecaca, #f87171); }
.f4 { background: linear-gradient(135deg, #bbf7d0, #4ade80); }
.chips { display: flex; gap: 4px; margin-top: 4px; }
.chips span { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: .72rem; color: var(--ink-soft); }

/* ---------- Tarjetas ---------- */
.grilla { display: grid; gap: 20px; margin-top: 40px; }
.grilla.tres { grid-template-columns: repeat(3, 1fr); }
.grilla.dos { grid-template-columns: repeat(2, 1fr); }
.tarjeta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: left; }
.tarjeta p { color: var(--ink-soft); margin-bottom: 0; }
.numero {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
}
.rubros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.rubros span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }

/* ---------- Planes ---------- */
.plan { display: flex; flex-direction: column; }
.plan.destacado { border-color: var(--brand); border-width: 2px; }
.plan .precio { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.plan .precio small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* ---------- Ayuda ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; }
details p, details ol { color: var(--ink-soft); margin: 12px 0 0; }
details ol { padding-left: 20px; }

/* ---------- Textos largos (legal) ---------- */
.texto h2 { font-size: 1.4rem; margin-top: 2em; }
.texto p, .texto li { color: var(--ink-soft); }

/* Aviso de contenido provisorio: se quita cuando se cargan los datos definitivos. */
.provisorio { background: #fffbeb; border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 12px 16px; color: #92400e; font-size: .95rem; margin-bottom: 24px; }

/* ---------- Cierre y pie ---------- */
.cierre { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 56px 28px; text-align: center; }
.cierre p { color: #cbd5e1; max-width: 560px; margin: 0 auto 8px; }
.pie { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 80px; color: var(--muted); font-size: .92rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 18px; }
.pie a { color: var(--ink-soft); text-decoration: none; }
.pie a:hover { color: var(--ink); }

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  .seccion { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-grid, .grilla.tres, .grilla.dos { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav-links.abierto { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a.btn { text-align: center; margin-top: 8px; }
}
