/* =========================================================================
 * Lead magnet: Guía de trámites tras un fallecimiento
 * Solo se carga en public/guia-tramites-fallecimiento.php. Usa las variables de
 * style.css cuando existen, con los colores de marca como valor de reserva.
 * ========================================================================= */

.lm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 10px;
}

.lm-etiqueta {
    display: inline-block;
    background: var(--vixit-crema, #f1ebe0);
    color: var(--vixit-principal, #7c5c42);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.lm-hero h1 {
    margin-top: 0;
    line-height: 1.2;
}

.lm-hero .resumen {
    font-size: 1.1rem;
}

.lm-lista-ventajas {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
}

.lm-lista-ventajas li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.lm-lista-ventajas li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--vixit-principal, #7c5c42);
    color: #fff;
    font-size: 0.75rem;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
}

/* Tarjeta del formulario */
.lm-formulario-tarjeta {
    background: #fff;
    border: 1px solid var(--vixit-borde, #e4dccc);
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 10px 30px rgba(46, 42, 37, 0.08);
    scroll-margin-top: 90px;
}

.lm-formulario-tarjeta h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.lm-formulario-tarjeta .lm-subtitulo {
    margin: 0 0 18px;
    color: var(--vixit-texto-suave, #8a8074);
    font-size: 0.92rem;
}

.lm-portada-mini {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--vixit-crema, #f1ebe0);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.lm-portada-mini-doc {
    flex: 0 0 auto;
    width: 46px;
    height: 60px;
    background: #fff;
    border-radius: 4px;
    border-top: 6px solid var(--vixit-principal, #7c5c42);
    box-shadow: 0 2px 6px rgba(46, 42, 37, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: bold;
    color: var(--vixit-principal, #7c5c42);
}

.lm-portada-mini p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.lm-opcional {
    font-weight: normal;
    color: var(--vixit-texto-suave, #8a8074);
    font-size: 0.85em;
}

.lm-info-legal {
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--vixit-texto-suave, #8a8074);
    margin: 14px 0 0;
}

/* Campo trampa anti-bots: invisible para personas, visible para robots que rellenan todo */
.lm-trampa {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lm-exito {
    text-align: center;
    padding: 10px 0;
}

.lm-exito-icono {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--vixit-crema, #f1ebe0);
    color: var(--vixit-principal, #7c5c42);
    font-size: 1.6rem;
    line-height: 56px;
    margin: 0 auto 12px;
}

/* Índice de la guía */
.lm-indice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 22px;
    padding: 0;
    list-style: none;
    counter-reset: lm-seccion;
}

.lm-indice li {
    counter-increment: lm-seccion;
    background: #fff;
    border: 1px solid var(--vixit-borde, #e4dccc);
    border-radius: 12px;
    padding: 18px 18px 16px;
}

.lm-indice li::before {
    content: counter(lm-seccion);
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 6px;
    background: var(--vixit-principal, #7c5c42);
    color: var(--vixit-crema, #f1ebe0);
    font-weight: bold;
    margin-bottom: 10px;
}

.lm-indice h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.lm-indice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--vixit-texto-suave, #8a8074);
    line-height: 1.5;
}

/* Tabla de plazos */
.lm-tabla-envoltorio {
    overflow-x: auto;
    margin-top: 16px;
}

.lm-tabla-plazos {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}

.lm-tabla-plazos th,
.lm-tabla-plazos td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--vixit-borde, #e4dccc);
    vertical-align: top;
}

.lm-tabla-plazos th {
    background: var(--vixit-crema, #f1ebe0);
    color: var(--vixit-principal, #7c5c42);
}

.lm-tabla-plazos td:first-child {
    white-space: nowrap;
    font-weight: bold;
}

.lm-nota {
    font-size: 0.82rem;
    color: var(--vixit-texto-suave, #8a8074);
    margin-top: 10px;
}

.lm-cta-final {
    text-align: center;
    background: var(--vixit-crema, #f1ebe0);
    border-radius: 14px;
    padding: 34px 24px;
    margin-top: 44px;
}

.lm-cta-final h2 {
    margin-top: 0;
}

@media (max-width: 860px) {
    .lm-hero {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
