/* ════════════════════════════════════════════════════════════════
   GUÍA ATENCIÓN WHATSAPP — Lead Magnet (port fiel de
   LeadMagnetLayout.jsx, Tailwind → CSS puro).
   Página BlankLayout: siempre dark, sin navbar/footer globales.
   ════════════════════════════════════════════════════════════════ */

.lm-page {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #FDFDFD;
}

/* pt-24 pb-16 min-h-screen flex flex-col justify-center */
.lm-main {
    padding-top: 6rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

/* container mx-auto px-4 max-w-6xl */
.lm-container {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ─── Badge superior ─── */
.lm-badge-wrap { text-align: center; margin-bottom: 3rem; }
.lm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(219, 177, 85, 0.10);
    color: #DBB155;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    border: 1px solid rgba(219, 177, 85, 0.30);
}
.lm-badge .icon { width: 1rem; height: 1rem; }

/* ─── Layout de dos columnas ─── */
.lm-columns {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}
.lm-col-content { flex: 1 1 0%; width: 100%; }
.lm-col-form { width: 100%; flex-shrink: 0; }

@media (min-width: 1024px) {
    .lm-columns { flex-direction: row; }
    .lm-col-content { padding-right: 2rem; }
    .lm-col-form { width: 450px; }
}

/* ─── Columna izquierda ─── */
/* h1: text-4xl md:text-5xl lg:text-6xl font-black mb-6 leading-tight */
.lm-title {
    font-size: 2.25rem;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .lm-title { font-size: 3rem; } }
@media (min-width: 1024px) { .lm-title { font-size: 3.75rem; } }
.lm-title span {
    color: transparent;
    background-image: linear-gradient(to right, #DBB155, #F1D88E);
    -webkit-background-clip: text;
    background-clip: text;
}

/* text-xl md:text-2xl text-white/80 mb-8 leading-relaxed font-light */
.lm-subtitle {
    font-size: 1.25rem;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 2rem;
    font-weight: 300;
}
@media (min-width: 768px) { .lm-subtitle { font-size: 1.5rem; } }

/* mb-10 text-white/70 text-lg */
.lm-description {
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.70);
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* ─── Beneficios ─── */
.lm-benefits { margin-bottom: 3rem; }
.lm-benefits > * + * { margin-top: 1rem; }
.lm-benefits h3 {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #ffffff;
}
.lm-benefit {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.lm-benefit-check {
    background: rgba(4, 44, 231, 0.20);
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(4, 44, 231, 0.50);
    margin-top: 0.25rem;
}
.lm-benefit-check .icon { width: 1rem; height: 1rem; color: #DBB155; }
.lm-benefit p {
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.625;
    font-weight: 500;
}

/* ─── Autor / Confianza ─── */
.lm-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(10, 21, 54, 0.50);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
}
.lm-author > img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}
.lm-author h4 {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.lm-author-verified {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.lm-author-verified::before {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lm-author-verified img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.lm-author-role { color: rgba(255, 255, 255, 0.50); font-size: 0.875rem; line-height: 1.25rem; }

/* ─── Mockup del libro ─── */
/* Nota: en el original la clase Tailwind `perspective-1000` no existe,
   por lo que la rotación se renderiza plana (sin trapecio). Se replica
   ese resultado visual omitiendo la perspectiva. */
.lm-book-wrap {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}
.lm-book {
    position: relative;
    z-index: 10;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(4, 44, 231, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #0a1536;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
}
.lm-book:hover { transform: rotateY(0) rotateX(0); }
.lm-book-cover {
    width: 300px;
    height: 400px;
    background: linear-gradient(to bottom right, #042CE7, #0A1536);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    border-left: 8px solid #DBB155;
}
.lm-book-cover .icon {
    width: 4rem;
    height: 4rem;
    color: #DBB155;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}
.lm-book-cover h3 {
    font-size: 1.875rem;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 1rem;
}
.lm-book-divider { width: 3rem; height: 0.25rem; background: #DBB155; margin-bottom: 1.5rem; }
.lm-book-cover p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgba(255, 255, 255, 0.70);
    font-style: italic;
    font-weight: 500;
}
.lm-book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(4, 44, 231, 0.30);
    filter: blur(60px);
    border-radius: 9999px;
    z-index: 0;
}

/* ─── Caja de formulario ─── */
.lm-form-box {
    background: rgba(10, 21, 54, 0.80);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.lm-form-deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: rgba(219, 177, 85, 0.10);
    border-radius: 9999px;
    filter: blur(40px);
}
.lm-form-head { text-align: center; margin-bottom: 1.5rem; position: relative; z-index: 10; }
.lm-form-head h3 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.lm-form-head p { color: rgba(255, 255, 255, 0.60); font-size: 0.875rem; line-height: 1.25rem; }

.lm-form { position: relative; z-index: 10; }
.lm-form > * + * { margin-top: 1rem; }
.lm-form-group > * + * { margin-top: 0.25rem; }
.lm-form-group label {
    display: block;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
    margin-left: 0.25rem;
}
.lm-form-group input {
    width: 100%;
    background: rgba(10, 21, 54, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}
.lm-form-group input::placeholder { color: rgba(255, 255, 255, 0.30); }
.lm-form-group input:focus { border-color: #DBB155; }

.lm-form-error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.30);
    color: #f87171;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
    text-align: center;
    display: none;
}
.lm-form-error.show { display: block; }

.lm-submit {
    width: 100%;
    background: linear-gradient(to right, #DBB155, #F1D88E);
    color: #0A1536;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border: none;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.15s;
    margin-top: 1rem;
}
.lm-submit:hover:not(:disabled) {
    transform: translateY(-0.25rem);
    box-shadow: 0 0 20px rgba(219, 177, 85, 0.4);
}
.lm-submit:disabled { opacity: 0.7; cursor: wait; }
.lm-submit .icon { width: 1.25rem; height: 1.25rem; }

.lm-form-note {
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.40);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.lm-form-note .icon {
    width: 0.75rem;
    height: 0.75rem;
    display: inline;
    vertical-align: baseline;
    margin-right: 0.25rem;
}

/* ─── Testimonio ─── */
.lm-testimonial {
    margin-top: 5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 4rem;
}
.lm-stars { display: inline-flex; gap: 0.25rem; color: #DBB155; margin-bottom: 1.5rem; }
.lm-stars svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.lm-quote {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 1.5rem;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}
.lm-testimonial-name { font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; color: #DBB155; }
.lm-testimonial-role { color: rgba(255, 255, 255, 0.50); font-size: 0.875rem; line-height: 1.25rem; }

/* ─── Pantalla de éxito ─── */
.lm-success {
    padding-top: 8rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}
.lm-success.show { display: flex; }
.lm-page.success .lm-main { display: none; }
@keyframes lm-fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.lm-success-inner { animation: lm-fade-in-up 0.5s ease; }
.lm-success-icon {
    width: 6rem;
    height: 6rem;
    background: rgba(34, 197, 94, 0.20);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 1px solid rgba(34, 197, 94, 0.50);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}
.lm-success-icon .icon { width: 3rem; height: 3rem; color: #4ade80; }
.lm-success h2 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.lm-success p { color: rgba(255, 255, 255, 0.70); font-size: 1.125rem; line-height: 1.75rem; }
