/* =========================================================
   MiraQueHay — web informativa (miraquehay.com.ar)
   Estilos compartidos por inicio, planes, ayuda, contacto y legal
   (gastronomía tiene su propia hoja: gastronomia.css).
   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; }

/* ---------- Portada: bloque que lleva a /gastronomia ---------- */
.rubro-gastro { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--brand-soft); border: 1px solid #c7d7fe; border-radius: var(--radius); padding: 32px; text-align: left; margin-top: 48px; }
.rubro-gastro h3 { font-size: 1.4rem; }
.rubro-gastro p { color: var(--ink-soft); margin: 0; }

/* ---------- 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, .rubro-gastro { 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; }
}

/* Logo del menú y del pie (21/10/2026): el muñequito asomado sobre el nombre, en un SVG. */
.logo .logo-img { display: block; width: auto; height: 60px; }
@media (max-width: 640px) { .logo .logo-img { height: 52px; } }

/* Planes: tabla de qué incluye cada uno (planes.html). */
.tabla-planes-marco { overflow-x: auto; margin-top: 16px; text-align: left; }
.tabla-planes { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; overflow: hidden; font-size: .97rem; }
.tabla-planes th, .tabla-planes td { padding: 11px 14px; border-bottom: 1px solid var(--line, #e5e7eb); }
.tabla-planes th { background: #f8fafc; font-weight: 700; }
.tabla-planes th:not(:first-child), .tabla-planes td:not(:first-child) { text-align: center; width: 18%; }
.tabla-planes td:not(:first-child) { color: var(--brand); font-weight: 700; }
.tabla-planes tr:last-child td { border-bottom: 0; }

/* Planes: "por mes" separado del precio, lo clave del Básico y "Incluye todo lo del…" (19/10/2026). */
.plan .precio small { letter-spacing: 0; margin-left: 6px; }
.plan li.clave { color: var(--ink, #0f172a); background: #eff6ff; border-radius: 8px; margin: 2px -8px; padding-left: 34px; padding-right: 8px; }
.plan li.clave::before { left: 8px; }
.plan-base { margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px dashed #93c5fd; color: var(--ink-soft, #334155); font-size: .95rem; }
.plan-base b { color: var(--brand); }
.plan ul.con-base { margin-top: 12px; }
.plan ul.con-base li::before { content: "+"; }

/* Planes con color (19/10/2026, idea de Carlos): cabecera de color con nombre y precio, lista y botón del mismo color. */
.planes-color { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; text-align: left; margin-top: 8px; }
.pc { --c1: #10b981; --c2: #059669; --suave: #ecfdf5; position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); border: 1px solid #e2e8f0; transition: transform .2s, box-shadow .2s; }
.pc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }
.pc-profesional { --c1: #6366f1; --c2: #2563eb; --suave: #eef2ff; }
.pc-gastronomia { --c1: #fb923c; --c2: #ea580c; --suave: #fff7ed; }
.pc-cabeza { position: relative; padding: 28px 26px 34px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); text-align: center; }
.pc-cabeza::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 26px; height: 26px; background: linear-gradient(135deg, var(--c1), var(--c2)); transform: translateX(-50%) rotate(45deg); border-radius: 4px; }
.pc-cabeza h3 { margin: 0 0 6px; color: #fff; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.pc-precio { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pc-precio small { display: block; margin-top: 2px; font-size: .95rem; font-weight: 600; letter-spacing: 0; opacity: .9; }
.pc-cuerpo { display: flex; flex-direction: column; flex: 1; padding: 30px 24px 24px; }
.pc-cuerpo > p { margin: 0 0 14px; color: var(--ink-soft); text-align: center; }
.pc ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.pc li { position: relative; padding: 8px 0 8px 30px; color: var(--ink-soft); border-bottom: 1px dashed #e2e8f0; }
.pc li:last-child { border-bottom: 0; }
.pc li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--suave); color: var(--c2); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
/* Listas completas (Carlos, 25/10/2026): lo heredado del plan anterior, normal; lo que suma, resaltado. */
.pc ul.heredado { flex: none; margin-bottom: 0; }
.pc ul.heredado li { color: #64748b; }
.pc ul.heredado li.clave { color: var(--ink); }
.pc-ademas { margin: 14px 0 4px; color: var(--c2); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pc ul.suma li { color: var(--ink); font-weight: 600; }
/* El "+" dibujado con dos rayitas (la letra "+" de la fuente quedaba corrida dentro del círculo). */
.pc ul.suma li::before, .pc ul.suma li.clave::before { content: ""; background: linear-gradient(#fff, #fff) center / 10px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 10px no-repeat, linear-gradient(135deg, var(--c1), var(--c2)); }
.pc li.clave { color: var(--ink); background: var(--suave); border-radius: 10px; border-bottom: 0; margin: 4px -10px; padding: 9px 10px 9px 40px; }
.pc li.clave::before { left: 10px; top: 12px; background: #fff; }
.pc-boton { display: block; padding: 13px 16px; border-radius: 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-weight: 700; text-align: center; text-decoration: none; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.pc-boton:hover { color: #fff; filter: brightness(1.05); }
.pc-cinta { position: absolute; top: 14px; right: -34px; z-index: 2; padding: 4px 40px; transform: rotate(35deg); background: #fbbf24; color: #78350f; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.pc-profesional { border-color: #c7d2fe; }
@media (max-width: 900px) { .planes-color { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }

/* Para esconder el Básico (se usó del 24 al 25/10/2026): <body class="sin-basico"> en planes.html.
   Oculta su tarjeta y su columna; los otros planes ya muestran su lista completa. */
.sin-basico .pc-basico { display: none; }
.sin-basico .planes-color { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
.sin-basico .tabla-planes th:nth-child(2), .sin-basico .tabla-planes td:nth-child(2) { display: none; }
.sin-basico .tabla-planes { min-width: 0; }
.sin-basico .tabla-planes th:not(:first-child), .sin-basico .tabla-planes td:not(:first-child) { width: 26%; }
@media (max-width: 600px) { .sin-basico .tabla-planes { font-size: .85rem; } .sin-basico .tabla-planes th, .sin-basico .tabla-planes td { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 900px) { .sin-basico .planes-color { grid-template-columns: 1fr; max-width: 440px; } }
