/* Landing comercial del SaaS (marca propia: verde Blank Page). */
:root {
  --marca: #16181d;        /* Blank Page: negro/gris/blanco (minimalista) */
  --marca-osc: #000000;
  --texto: #16181d;
  --suave: #5b6472;
  --borde: #e7e9ee;
  --fondo: #ffffff;
  --crema: #f5f6f7;
  --radio: 18px;
  --sombra: 0 1px 2px rgba(0,0,0,.04), 0 16px 44px rgba(0,0,0,.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
/* Navegación suave entre secciones, con espacio para el header fijo. */
html { scroll-behavior: smooth; scroll-padding-top: 5.2rem; }
body { margin: 0; background: var(--fondo); color: var(--texto); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--marca); text-decoration: none; }
.contenedor { max-width: 64rem; margin: 0 auto; padding: 0 1.2rem; }

/* Aparición suave de las secciones al entrar en pantalla (solo con JS, para
   que sin JS todo el contenido se vea normal). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Navegación */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); transition: box-shadow .2s ease; }
.nav.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.07); }
.nav .contenedor { display: flex; align-items: center; gap: 1rem; height: 4.2rem; position: relative; }
.nav .logo { display: flex; align-items: center; gap: .55rem; margin-right: auto; text-decoration: none; }
.logo-ico { width: 2.05rem; height: 2.05rem; border-radius: 8px; display: block; flex: none; }
.logo-txt { font-family: 'Jura', sans-serif; font-weight: 400; font-size: 1.2rem; letter-spacing: .03em; color: var(--suave); white-space: nowrap; line-height: 1; }
.logo-txt b { font-weight: 600; color: var(--texto); }
.nav-check { display: none; }
/* El menú es SIEMPRE hamburguesa (en todos los anchos): barra limpia con solo
   logo + botón, y un desplegable ordenado al tocarlo. */
.nav-burger { display: flex; cursor: pointer; padding: .4rem; color: var(--texto); }
.nav-burger svg { width: 1.6rem; height: 1.6rem; display: block; }
.menu {
  position: absolute; top: 4.2rem; left: 0; right: 0; display: none;
  flex-direction: column; align-items: stretch; gap: 0;
  background: #fff; border-bottom: 1px solid var(--borde);
  box-shadow: var(--sombra); padding: .4rem 1.2rem 1.1rem;
}
.nav-check:checked ~ .menu { display: flex; animation: menu-in .22s ease; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* Los grupos (enlaces / acciones) se disuelven: todo fluye en la columna. */
.menu-links, .menu-acciones { display: contents; }
.menu a:not(.btn), .menu .idioma-land { padding: .85rem 0; border-bottom: 1px solid var(--borde); color: var(--suave); font-weight: 600; font-size: .95rem; }
.menu a:not(.btn):hover { color: var(--texto); }
.menu .idioma-land select { width: 100%; }
.menu .btn-primario { color: #fff; padding: .6rem 1rem; margin-top: .9rem; text-align: center; }

/* En pantallas con sitio, el desplegable se ve como una tarjeta alineada a la
   derecha (bajo el botón), no como una franja a todo lo ancho. */
@media (min-width: 34rem) {
  .nav .menu {
    left: auto; right: 0; width: max-content; min-width: 15rem;
    border: 1px solid var(--borde); border-radius: 14px; margin-top: .5rem;
    padding: .7rem 1rem 1.1rem;
  }
  .nav .menu a:not(.btn):last-of-type { border-bottom: 0; }
  .menu .btn-primario { margin-top: 1rem; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.25rem; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent; transition: transform .12s, filter .15s, box-shadow .15s; }
.btn-primario { background: var(--marca); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-primario:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.btn-borde { border-color: var(--borde); color: var(--texto); }
.btn-borde:hover { border-color: var(--marca); color: var(--marca); }
.btn-grande { padding: .9rem 1.6rem; font-size: 1.05rem; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--marca) 14%, #fff), #fff); padding: 4rem 0 3rem; text-align: center; }
.hero .pill { display: inline-block; background: color-mix(in srgb, var(--marca) 12%, #fff); color: var(--marca-osc); font-weight: 700; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
.hero h1 .resalte { color: var(--marca); }
.hero p.lead { font-size: 1.15rem; color: var(--suave); max-width: 40rem; margin: 0 auto 1.8rem; }
.hero .acciones { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .nota { color: var(--suave); font-size: .85rem; margin-top: 1rem; }

/* Secciones */
section { padding: 3.5rem 0; }
.titulo { text-align: center; font-size: 2rem; letter-spacing: -.01em; margin: 0 0 .5rem; }
.subtitulo { text-align: center; color: var(--suave); max-width: 38rem; margin: 0 auto 2.5rem; }

/* Características */
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; }
.feature { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra); transition: transform .15s; }
.feature:hover { transform: translateY(-3px); }
.feature .ico { width: 2.8rem; height: 2.8rem; border-radius: 12px; background: color-mix(in srgb, var(--marca) 12%, #fff); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature .ico svg { width: 1.5rem; height: 1.5rem; stroke: var(--marca); }
.feature h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--suave); font-size: .95rem; }

/* Cómo funciona */
.pasos { background: var(--crema); border-radius: 24px; }
.pasos .rejilla { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.paso-card { text-align: center; padding: 1rem; }
.paso-card .num { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--marca); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.paso-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.paso-card p { margin: 0; color: var(--suave); font-size: .95rem; }

/* Precios */
.precios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.4rem; max-width: 44rem; margin: 0 auto; align-items: start; }
.precio-card { position: relative; background: #fff; border: 1px solid var(--borde); border-radius: 22px; box-shadow: var(--sombra); padding: 2rem; text-align: center; }
.precio-card.destacado { border: 2px solid var(--marca); box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.precio-badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--marca); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.precio-nombre { display: block; font-size: 1.15rem; font-weight: 800; }
.precio-para { color: var(--suave); font-size: .86rem; margin: .3rem 0 1rem; min-height: 2.4em; }
.precio-monto { font-size: 3rem; font-weight: 800; letter-spacing: -.02em; }
.precio-monto .moneda { font-size: 1.6rem; vertical-align: super; margin-right: .1rem; }
.precio-monto .periodo { font-size: 1rem; font-weight: 600; color: var(--suave); }
.precio-lista { list-style: none; padding: 0; margin: 1.4rem 0; text-align: left; }
.precio-lista li { padding: .5rem 0 .5rem 1.8rem; position: relative; color: var(--texto); border-bottom: 1px solid var(--borde); }
.precio-lista li:last-child { border-bottom: 0; }
.precio-lista li::before { content: "✓"; position: absolute; left: 0; color: var(--marca); font-weight: 800; }
.btn-bloque { width: 100%; }
.precio-nota { color: var(--suave); font-size: .85rem; margin: .9rem 0 0; }

/* CTA final */
.cta { background: linear-gradient(135deg, var(--marca), var(--marca-osc)); color: #fff; border-radius: 24px; text-align: center; padding: 3rem 1.5rem; }
.cta h2 { font-size: 2rem; margin: 0 0 .6rem; }
.cta p { opacity: .92; margin: 0 0 1.6rem; }
.cta .btn-primario { background: #fff; color: var(--marca); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* Pie */
.pie { border-top: 1px solid var(--borde); padding: 2rem 0; color: var(--suave); font-size: .9rem; text-align: center; }
.pie-ico { width: 2.4rem; height: 2.4rem; border-radius: 9px; display: block; margin: 0 auto .7rem; }
.pie-marca { font-family: 'Jura', sans-serif; font-weight: 600; letter-spacing: .02em; color: var(--texto); }

.idioma-land select { border: 1px solid var(--borde); border-radius: 8px; padding: .3rem .5rem; background: #fff; color: var(--texto); font-size: .85rem; }

/* Datos que hacen crecer el negocio */
.datos-lista { max-width: 40rem; margin: 0 auto; list-style: none; padding: 0; }
.datos-lista li { padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid var(--borde); position: relative; color: var(--suave); }
.datos-lista li:last-child { border-bottom: 0; }
.datos-lista li::before { content: "✓"; position: absolute; left: 0; color: var(--marca); font-weight: 800; }
.datos-lista strong { color: var(--texto); }
.datos-cierre { text-align: center; max-width: 40rem; margin: 1.6rem auto 0; font-weight: 600; color: var(--texto); }

/* Ahorro vs comisiones */
.ahorro { background: var(--crema); }
.comparativa { max-width: 44rem; margin: 0 auto; overflow-x: auto; }
.comparativa table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.comparativa th, .comparativa td { padding: .9rem 1rem; text-align: center; border-bottom: 1px solid var(--borde); font-size: .95rem; }
.comparativa thead th { background: #fff; font-size: .85rem; color: var(--suave); font-weight: 700; }
.comparativa tbody td:first-child { font-weight: 700; }
.comparativa tbody tr:last-child td { border-bottom: 0; }
.comparativa td.caro { color: var(--suave); }
.comparativa .col-marca { background: color-mix(in srgb, var(--marca) 9%, #fff); color: var(--marca-osc); font-weight: 800; }
.comparativa thead th.col-marca { color: var(--marca-osc); font-weight: 800; }
.comparativa-nota { text-align: center; color: var(--suave); font-size: .8rem; margin: 1rem auto 0; max-width: 38rem; }

/* Páginas legales (Términos / Privacidad) */
.legal { max-width: 48rem; margin: 0 auto; padding: 2.5rem 1.2rem 1rem; }
.legal-caja { background: #fff; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.01em; margin: 0 0 .3rem; }
.legal-meta { color: var(--suave); font-size: .85rem; margin: 0 0 2rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; padding-top: .4rem; }
.legal p, .legal li { color: #2a2f38; font-size: .98rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .3rem 0; }
.legal a { color: var(--marca); text-decoration: underline; }
.legal hr { border: 0; border-top: 1px solid var(--borde); margin: 2.2rem 0 1.2rem; }
.legal-contacto { color: var(--suave); font-size: .92rem; }
.legal-volver { margin: 1.4rem 0 0; font-weight: 600; }

/* Micro-garantías bajo el CTA del hero */
.garantias { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: 1.1rem 0 0; padding: 0; }
.garantias li { color: var(--suave); font-size: .9rem; font-weight: 600; position: relative; padding-left: 1.3rem; }
.garantias li::before { content: "✓"; position: absolute; left: 0; color: var(--marca); font-weight: 800; }

/* Sección activa en el menú (scroll-spy) */
.menu a.activo:not(.btn) { color: var(--texto); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Preguntas frecuentes (acordeón) */
.faq { max-width: 44rem; margin: 1.5rem auto 0; }
.faq details { background: #fff; border: 1px solid var(--borde); border-radius: 14px; margin: .6rem 0; box-shadow: var(--sombra); overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.05rem 1.2rem; font-weight: 700; list-style: none; position: relative; padding-right: 2.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--suave); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--suave); }

/* CTA flotante en móvil */
.cta-flotante { display: none; }
@media (max-width: 50rem) {
  body { padding-bottom: 4.8rem; }
  .cta-flotante {
    display: block; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30;
    background: var(--marca); color: #fff; text-align: center; font-weight: 700;
    padding: .9rem 1rem; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  }
}

/* Titulos de pilar en la seccion de caracteristicas */
.pilar-titulo {
  margin: 2.4rem 0 1rem; font-size: 1.05rem; font-weight: 800;
  letter-spacing: -.01em; color: #1a1d23;
  padding-bottom: .4rem; border-bottom: 2px solid #1a1d23;
  display: inline-block;
}
.rejilla + .pilar-titulo { margin-top: 2.8rem; }

/* ── Demo: mockups del pedido por WhatsApp y del panel de cocina ── */
.demo { background: var(--crema); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.6rem; max-width: 46rem; margin: 0 auto; }
.mock { margin: 0; }
.mock figcaption { color: var(--suave); font-size: .9rem; text-align: center; margin: .9rem .3rem 0; }

/* Chat de WhatsApp */
.mock-wa { border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); border: 1px solid var(--borde); background: #efe7de; }
.wa-top { display: flex; align-items: center; gap: .6rem; background: #075e54; color: #fff; padding: .7rem .9rem; }
.wa-avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #128c7e; color: #fff; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex: none; }
.wa-name { display: flex; flex-direction: column; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.wa-name small { font-weight: 400; font-size: .72rem; opacity: .85; }
.wa-body { padding: 1rem .8rem 1.4rem; background-color: #efe7de;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wa-msg { position: relative; background: #fff; border-radius: 10px; border-top-left-radius: 2px; padding: .7rem .85rem 1.4rem; max-width: 20rem; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.wa-line { margin: 0; font-size: .84rem; color: #1f2c34; line-height: 1.5; }
.wa-line.wa-h { margin-top: .5rem; }
.wa-line b { color: #111b21; }
.wa-time { position: absolute; right: .7rem; bottom: .45rem; font-size: .68rem; color: #667781; }

/* Panel de cocina */
.mock-panel { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); border: 1px solid var(--borde); padding: .9rem; }
.mp-top { display: flex; align-items: center; gap: .6rem; padding: .3rem .3rem .9rem; font-size: 1rem; }
.mp-badge { margin-left: auto; background: color-mix(in srgb, var(--marca) 12%, #fff); color: var(--marca-osc); font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.mp-card { border: 1px solid var(--borde); border-radius: 12px; padding: .7rem .8rem; margin-bottom: .7rem; }
.mp-card:last-child { margin-bottom: 0; }
.mp-card.mp-off { opacity: .6; }
.mp-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.mp-row b { font-size: .95rem; }
.mp-chip { margin-left: auto; font-size: .68rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; }
.mp-chip.nuevo { background: #fef3c7; color: #92400e; }
.mp-chip.prep { background: #dbeafe; color: #1e40af; }
.mp-chip.listo { background: #dcfce7; color: #166534; }
.mp-cli { font-size: .82rem; color: var(--suave); }
.mp-items { font-size: .82rem; color: var(--texto); margin: .2rem 0; }
.mp-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--suave); margin-top: .35rem; padding-top: .45rem; border-top: 1px solid var(--borde); }
.mp-foot b { color: var(--texto); font-size: .95rem; }

.demo-cta { text-align: center; margin-top: 2rem; }
.demo-nota { color: var(--suave); font-size: .82rem; margin: .7rem 0 0; }
