/* ===========================================================================
   popup-suscripcion.css — Ventana de suscripción de la tienda.

   Antes vivía en la landing. Se movió aquí porque la landing es el portafolio
   de servicios, y quien entra a la tienda es quien puede terminar comprando:
   ahí el correo vale para avisarle de sus pedidos y de las promociones.

   Usa los colores y las tipografías que ya define style.css (--color-primary,
   --font-heading, --font-body), con valores de respaldo por si esta hoja se
   carga antes que aquélla.
   =========================================================================== */

.lnt-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;               /* por encima del banner de mantenimiento */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 14, 20, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lnt-overlay.lnt-visible {
    opacity: 1;
    visibility: visible;
}

.lnt-modal {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
}

.lnt-overlay.lnt-visible .lnt-modal {
    transform: translateY(0) scale(1);
}

/* ── Cabecera ───────────────────────────────────────────────────────────── */
.lnt-header {
    background: var(--color-black, #0a1118);
    border-radius: 18px 18px 0 0;
    padding: 26px 26px 22px;
    text-align: center;
}

.lnt-logo {
    max-width: 148px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ── Cuerpo ─────────────────────────────────────────────────────────────── */
.lnt-body {
    padding: 24px 26px 26px;
}

.lnt-title {
    margin: 0 0 8px;
    font-family: var(--font-heading, "Outfit", sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-black, #0a1118);
    text-align: center;
    text-wrap: balance;
}

.lnt-title span { color: var(--color-primary, #00df89); }

.lnt-text {
    margin: 0 0 20px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #4b5763;
    text-align: center;
}

.lnt-ventajas {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lnt-ventajas li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #34404b;
}

.lnt-ventajas svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary, #00df89);
}

/* ── Entrar con Google ──────────────────────────────────────────────────── */
/* El botón lo dibuja el propio SDK de Google dentro de .lnt-google; aquí sólo
   se lo centra. Si el SDK no carga, el script esconde esta zona y el separador
   junto con ella, y queda sólo el formulario de correo. */
.lnt-google {
    display: flex;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 18px;
}

.lnt-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #9aa6b1;
    font-size: 0.8rem;
}

.lnt-sep::before,
.lnt-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4eaee;
}

/* ── Formulario ─────────────────────────────────────────────────────────── */
.lnt-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.lnt-form input[type="text"],
.lnt-form input[type="email"] {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #dfe5ea;
    border-radius: 10px;
    background: #f8fafb;
    color: var(--color-black, #0a1118);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.lnt-form input::placeholder { color: #9aa6b1; }

.lnt-form input:focus {
    border-color: var(--color-primary, #00df89);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 223, 137, 0.18);
}

/* Trampa para robots: un humano nunca ve este campo, y menos lo rellena. */
.lnt-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.lnt-submit {
    margin-top: 4px;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: var(--color-primary, #00df89);
    color: var(--color-black, #0a1118);
    font-family: var(--font-heading, "Outfit", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.lnt-submit:hover:not(:disabled) {
    background: var(--color-primary-hover, #00c277);
    transform: translateY(-1px);
}

.lnt-submit:disabled { opacity: 0.6; cursor: default; }

/* ── Mensajes ───────────────────────────────────────────────────────────── */
.lnt-msg {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    min-height: 1.2em;
}

.lnt-msg.lnt-ok    { color: #0f7a4f; font-weight: 600; }
.lnt-msg.lnt-error { color: #c0392b; }

.lnt-later {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 8px;
    border: none;
    background: none;
    color: #7b8791;
    font-family: inherit;
    font-size: 0.87rem;
    cursor: pointer;
    text-decoration: underline;
}

.lnt-later:hover { color: #4b5763; }

.lnt-privacy {
    margin: 14px 0 0;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #93a0aa;
    text-align: center;
}

/* ── Cerrar ─────────────────────────────────────────────────────────────── */
.lnt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lnt-close:hover { background: rgba(255, 255, 255, 0.28); }

.lnt-close:focus-visible,
.lnt-submit:focus-visible,
.lnt-later:focus-visible {
    outline: 2px solid var(--color-primary, #00df89);
    outline-offset: 2px;
}

@media (max-width: 420px) {
    .lnt-header { padding: 22px 20px 18px; }
    .lnt-body   { padding: 20px 20px 22px; }
    .lnt-title  { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lnt-overlay,
    .lnt-modal { transition: none; }
}
