/* ═══════════════════════════════════════════════════════════════════
   "Sitio seguro": el sello y su ventana (js/seguro.js). Hoja aparte y
   con sus propios valores: la usan páginas con tres pieles distintas
   (portada.css, landing.css + piel.css, ezra.css + piel-cuenta.css).
   ═══════════════════════════════════════════════════════════════════ */

/* ── El sello: un botón chico con candado ────────────────────────── */
.sg-sello {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  height: 34px; padding: 0 13px 0 8px; border-radius: 999px;
  border: 1px solid #d4e8dc; background: #f1f9f4; color: #1d5c3a;
  font: inherit; font-size: 13.5px; font-weight: 550; letter-spacing: -.005em; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.sg-sello:hover { background: #e6f4ec; border-color: #b9dcc8; }
.sg-sello:focus-visible { outline: 2px solid #1d5c3a; outline-offset: 3px; }
.sg-sello svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sg-sello small { font-size: 13px; font-weight: 450; color: #3f7a59; }
.sg-sello-fila { margin-top: 18px; }
.sg-sello-centro { display: flex; justify-content: center; margin-top: 16px; }
/* El renglón debajo de un formulario (registro, ingresar, pago). */
.sg-linea {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin-top: 14px; font-size: 13.5px; color: #57564f; text-align: center;
}
.sg-linea svg { width: 15px; height: 15px; fill: none; stroke: #1d5c3a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sg-linea button {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: #1d5c3a;
  font-weight: 550; text-decoration: underline; text-underline-offset: 2px;
}

/* ── La ventana ──────────────────────────────────────────────────── */
html.sg-abierta { overflow: hidden; }
.sg-ventana {
  width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: 22px; background: #fff; color: #1c1b19; overflow: auto;
  box-shadow: 0 1px 2px rgba(28, 27, 25, .06), 0 40px 80px -24px rgba(28, 27, 25, .45);
  font-family: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sg-ventana::backdrop { background: rgba(28, 27, 25, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sg-ventana[open] { animation: sg-entra .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes sg-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sg-caja { position: relative; padding: 28px 28px 22px; }
.sg-cerrar {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #e7e5e0; background: #fff; cursor: pointer; display: grid; place-items: center;
}
.sg-cerrar:hover { background: #f3f2ee; }
.sg-cerrar svg { width: 14px; height: 14px; stroke: #1c1b19; stroke-width: 2; stroke-linecap: round; fill: none; }
.sg-cabeza { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.sg-sello-grande {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #f1f9f4; border: 1px solid #d4e8dc;
}
.sg-sello-grande svg { width: 22px; height: 22px; fill: none; stroke: #1d5c3a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sg-cabeza h2 { margin: 0; font-size: 24px; font-weight: 480; letter-spacing: -.035em; line-height: 1.1; }
.sg-cabeza p { margin: 4px 0 0; font-size: 15px; color: #57564f; }
.sg-lista { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid #efede8; }
.sg-lista li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #efede8; }
.sg-icono svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: #1c1b19; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sg-lista strong { display: block; font-size: 15.5px; font-weight: 580; letter-spacing: -.01em; }
.sg-lista span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: #57564f; }
.sg-pie { margin: 16px 0 0; font-size: 14px; color: #57564f; }
.sg-pie a { color: #5b4ce6; font-weight: 550; }

@media (max-width: 760px) {
  .sg-caja { padding: 24px 18px 18px; }
  .sg-cabeza h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .sg-ventana[open] { animation: none; } }

/* El "Sitio seguro" del pie, como un link más. */
.pt-link-seguro, .lz-pie .pt-link-seguro {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit;
}
.pt-link-seguro:hover { text-decoration: underline; }

/* El renglón que suma js/seguro.js solo: ocupa todo el ancho aunque el
   formulario sea una grilla o una fila. */
.sg-linea[data-sg-auto] { grid-column: 1 / -1; flex-basis: 100%; width: 100%; margin: 14px 0 0; }
