/* ============================================================
   Inloff — Lista de espera "avísame cuando vuelva" (producto agotado)
   Subordinado al sistema EPO: tokens inloff-*, receta de inputs, botón navy,
   motion de la casa. Toque editorial: título en Playfair + barra heart.
   ============================================================ */

.inloff-wl {
    margin: 22px 0 4px;
}

/* Mensaje "no personalizable" — reusa .inloff-notice, solo separa del card. */
.inloff-wl__unavailable {
    margin-bottom: 16px;
}

/* ---- Tarjeta ---- */
.inloff-wl__card {
    box-sizing: border-box;
    padding: 24px 24px 20px;
    background: var(--inloff-cream-light, #FBF6EB);
    border: 1px solid var(--inloff-cream-deep, #EFE7D9);
    border-radius: var(--inloff-radius, 14px);
    box-shadow: var(--inloff-shadow-sm, 0 2px 10px rgba(27, 37, 64, 0.06));
    animation: inloff-notice-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.inloff-wl__intro {
    margin-bottom: 18px;
}

/* Eyebrow con barra heart (motivo .tm-section-label). */
.inloff-wl__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--inloff-font-sans, "Outfit", sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--inloff-heart-dark, #AD8763);
}
.inloff-wl__eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--inloff-heart, #C5A184);
}

.inloff-wl__title {
    margin: 10px 0 8px;
    font-family: var(--inloff-font-serif, "Playfair Display", Georgia, serif);
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--inloff-navy, #1B2540);
}

.inloff-wl__text {
    margin: 0;
    max-width: 46ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--inloff-ink-soft, #4A4A4A);
}

/* ---- Formulario ---- */
.inloff-wl__form {
    margin: 0;
}

.inloff-wl__row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.inloff-wl__field {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.inloff-wl__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    box-sizing: border-box;
    background: #fff;
    border: 1.5px solid var(--inloff-border, #E5E0D5);
    border-radius: 8px;
    font-family: var(--inloff-font-sans, "Outfit", sans-serif);
    font-size: 15px;
    color: var(--inloff-text-primary, #1A1612);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}
.inloff-wl__input::placeholder {
    color: #8C8984;
    opacity: 1;
}
.inloff-wl__input:hover:not(:focus) {
    border-color: var(--inloff-heart-light, #CAB397);
}
.inloff-wl__input:focus {
    outline: none;
    border-color: var(--inloff-heart, #C5A184);
    box-shadow: 0 0 0 3px rgba(197, 161, 132, 0.18);
}
.inloff-wl.is-error-email .inloff-wl__input {
    border-color: var(--inloff-danger, #A32D2D);
    box-shadow: 0 0 0 3px rgba(163, 45, 45, 0.14);
}

/* Botón navy (receta ATC). */
.inloff-wl__submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    background: var(--inloff-navy, #1B2540);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-family: var(--inloff-font-sans, "Outfit", sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.inloff-wl__submit:hover {
    background: var(--inloff-navy-soft, #2A3656);
    transform: translateY(-1px);
}
.inloff-wl__submit:active {
    transform: translateY(0);
}
.inloff-wl__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 37, 64, 0.22);
}
.inloff-wl__submit[disabled] {
    opacity: 0.72;
    cursor: default;
    transform: none;
}

/* Spinner de carga. */
.inloff-wl__spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: inloff-wl-spin 0.7s linear infinite;
}
.inloff-wl.is-loading .inloff-wl__spinner {
    display: inline-block;
}
.inloff-wl.is-loading .inloff-wl__submit-label {
    opacity: 0.85;
}
@keyframes inloff-wl-spin {
    to { transform: rotate(360deg); }
}

/* Honeypot: fuera de pantalla, no display:none (algunos bots lo detectan). */
.inloff-wl__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Consentimiento. */
.inloff-wl__consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--inloff-text-secondary, #5F5E5A);
    cursor: pointer;
}
.inloff-wl__check {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--inloff-heart, #C5A184);
    cursor: pointer;
}
.inloff-wl__consent a {
    color: var(--inloff-heart-dark, #AD8763);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.inloff-wl.is-error-consent .inloff-wl__consent {
    color: var(--inloff-danger, #A32D2D);
}

.inloff-wl__error {
    margin: 11px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--inloff-danger, #A32D2D);
}

/* ---- Estado de éxito (positivo cálido, no verde) ---- */
.inloff-wl__success {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    animation: inloff-notice-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.inloff-wl__success-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(197, 161, 132, 0.16);
    color: var(--inloff-heart-dark, #AD8763);
}
.inloff-wl__success-icon svg {
    width: 22px;
    height: 22px;
}
.inloff-wl__success-title {
    margin: 2px 0 4px;
    font-family: var(--inloff-font-sans, "Outfit", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--inloff-navy, #1B2540);
}
.inloff-wl__success-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--inloff-ink-soft, #4A4A4A);
}

/* ---- Nota de baja ---- */
.inloff-wl__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--inloff-line, rgba(27, 37, 64, 0.10));
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--inloff-muted, #6B6B6B);
}
.inloff-wl__note svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--inloff-heart, #C5A184);
}

/* Al confirmar, se colapsan intro y nota: el bloque de éxito queda solo y limpio. */
.inloff-wl.is-done .inloff-wl__intro,
.inloff-wl.is-done .inloff-wl__note {
    display: none;
}

/* ---- Móvil: apilar input + botón ---- */
@media (max-width: 560px) {
    .inloff-wl__card {
        padding: 20px 18px 18px;
    }
    .inloff-wl__row {
        flex-direction: column;
    }
    .inloff-wl__input {
        font-size: 16px; /* evita el zoom de iOS */
    }
    .inloff-wl__submit {
        width: 100%;
    }
    .inloff-wl__title {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inloff-wl__card,
    .inloff-wl__success {
        animation: none;
    }
    .inloff-wl__submit,
    .inloff-wl__input {
        transition: none;
    }
    .inloff-wl__spinner {
        animation-duration: 1.4s;
    }
}
