/* ===========================================================================
   app-landing.css — estilos propios de /app (landing de la app móvil).

   Va DESPUÉS de landing.css y lp-centros.css, de los que hereda el hero, la
   barra de navegación, los botones y el pie. Acá solo vive lo que esa página
   no tenía: los badges de tienda, los bloques por perfil y el marco de los
   mockups. Los mockups en sí son de app-mockups.css.
   =========================================================================== */

/* Bootstrap fija su propio stack de sistema en `body`, y `landing.css` no lo
   pisa: la regla que lo hace vive en `lp-software-terapias.css`, que es la hoja
   de una landing de campaña y no corresponde arrastrar entera acá. Sin esto la
   página se ve con la tipografía del sistema y no con la de marca. */
body.page-landing {
    font-family: var(--lexa-font-family-base);
}

.app-hero {
    /* El hero de la home ocupa 100dvh porque ahí el scroll es el enemigo. Acá el
       teléfono ya es el argumento visual y estirarlo a pantalla completa deja un
       hueco enorme bajo el mockup en monitores anchos. */
    min-height: auto;
    padding: 8rem 0 4rem;
}

.app-hero-phone {
    display: flex;
    justify-content: center;
}

.app-hero-caption {
    margin: 1.25rem auto 0;
    max-width: 34ch;
    text-align: center;
    font-size: .8125rem;
    line-height: 1.6;
    color: #6b7280;
}

/* ------------------------------------------------------------- badges ----- */

.app-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: 1.75rem;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    padding: .625rem 1.25rem;
    border-radius: .75rem;
    background: #111827;
    color: #fff;
    text-decoration: none;
    border: 1px solid #111827;
    transition: transform .15s ease, box-shadow .15s ease;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(17, 24, 39, .7);
}

.app-store-badge i { font-size: 1.65rem; line-height: 1; }
.app-store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.app-store-badge small { font-size: .6875rem; opacity: .78; }
.app-store-badge strong { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }

/* Estado previo a la publicación: mismo tamaño y peso visual, pero sin
   afordancia de clic — no es un enlace, así que no debe verse como uno. */
.app-store-badge.is-soon {
    background: transparent;
    color: #374151;
    border: 1px dashed #9ca3af;
    cursor: default;
}

.app-store-badge.is-soon:hover { transform: none; box-shadow: none; }

.app-cta-note {
    margin-top: 1rem;
    font-size: .875rem;
    color: #4b5563;
}

/* ------------------------------------------------------------ secciones --- */

.app-section { padding: 5rem 0; }
.app-section-alt { background: #faf9fc; }

.app-section-deck {
    max-width: 68ch;
    margin: 1rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #4b5563;
}

.app-principles { margin-top: 2.5rem; }

.app-principle {
    height: 100%;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
}

.app-principle i { font-size: 1.5rem; color: #6D28D9; }

.app-principle h3 {
    margin-top: .875rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: #1e1b4b;
}

.app-principle p { margin: .625rem 0 0; font-size: .9375rem; line-height: 1.65; color: #4b5563; }

/* --------------------------------------------------------------- perfiles - */

.app-profile {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 340px);
    gap: 3.5rem;
    align-items: center;
    padding: 3.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.app-profile:last-child { border-bottom: 0; }

/* Alterna el lado del teléfono. `order` en vez de reordenar el HTML para que el
   orden de lectura y el de tabulación sigan siendo copy → mockup en todos los
   bloques, que es el orden con sentido cuando la rejilla se apila en móvil. */
.app-profile-flip .app-profile-copy { order: 2; }
.app-profile-flip .app-profile-phone { order: 1; }

.app-profile-phone { display: flex; justify-content: center; }

.app-profile-tag {
    display: inline-block;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: #EDE9FE;
    color: #4C1D95;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.app-profile h3 {
    margin-top: .875rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: #1e1b4b;
}

.app-profile > .app-profile-copy > p {
    margin-top: .875rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #4b5563;
}

.app-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }

.app-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: .75rem;
    font-size: .9375rem;
    line-height: 1.65;
    color: #4b5563;
}

.app-list li::before {
    content: "";
    position: absolute;
    left: .25rem;
    top: .6rem;
    width: .4rem;
    height: .4rem;
    border-radius: 1px;
    background: #6D28D9;
    transform: rotate(45deg);
}

.app-list b { color: #1e1b4b; font-weight: 650; }

.app-badge-pilot {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #FEF3C7;
    color: #92400E;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* --------------------------------------------------------- lo que no hace - */

.app-not {
    height: 100%;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #d1d5db;
    border-radius: 0 1rem 1rem 0;
    background: #fff;
}

.app-not h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; color: #1e1b4b; }
.app-not p { margin: .625rem 0 0; font-size: .9375rem; line-height: 1.65; color: #4b5563; }

/* ------------------------------------------------------------ privacidad -- */

.app-privacy { margin: 0; padding: 0; list-style: none; }

.app-privacy li {
    padding: 1.25rem 1.5rem;
    margin-bottom: .875rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    font-size: .9375rem;
    line-height: 1.7;
    color: #4b5563;
}

.app-privacy li:last-child { margin-bottom: 0; }
.app-privacy b { color: #1e1b4b; font-weight: 700; }

/* ----------------------------------------------------------------- pasos -- */

.app-steps { margin-top: 2.5rem; }

.app-step {
    height: 100%;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
}

.app-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    background: #6D28D9;
    color: #fff;
    font-weight: 800;
    font-size: 1.0625rem;
}

.app-step h3 { margin-top: .875rem; font-size: 1.0625rem; font-weight: 700; color: #1e1b4b; }
.app-step p { margin: .5rem 0 0; font-size: .9375rem; line-height: 1.65; color: #4b5563; }

/* ------------------------------------------------------------------- faq -- */

.app-faq { margin-top: 2.5rem; max-width: 60rem; }
.app-faq .accordion-item { border: 1px solid #e5e7eb; border-radius: .875rem; margin-bottom: .75rem; overflow: hidden; }
.app-faq .accordion-button { font-weight: 650; color: #1e1b4b; background: #fff; }
.app-faq .accordion-button:not(.collapsed) { background: #F5F3FF; color: #4C1D95; box-shadow: none; }
.app-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(109, 40, 217, .18); }
.app-faq .accordion-body { font-size: .9375rem; line-height: 1.7; color: #4b5563; }

/* ------------------------------------------------------------- cta final -- */

.app-final {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
}

.app-final h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: #1e1b4b;
}

.app-final p { max-width: 56ch; margin: 1rem auto 0; font-size: 1.0625rem; line-height: 1.7; color: #4b5563; }
.app-final .app-cta-row { justify-content: center; margin-top: 2rem; }
.app-final-note { font-size: .875rem; margin-top: 1.75rem; }

.lp-footer a + a { margin-left: 1.25rem; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 991.98px) {
    .app-hero { padding: 6.5rem 0 3rem; }

    .app-profile {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        padding: 2.75rem 0;
    }

    /* Apilado, el teléfono siempre va después del texto: invertirlo dejaría el
       mockup sobre el título en la mitad de los bloques. */
    .app-profile-flip .app-profile-copy { order: 0; }
    .app-profile-flip .app-profile-phone { order: 0; }
}

@media (max-width: 575.98px) {
    .app-section { padding: 3.5rem 0; }
    .app-cta-row { gap: .625rem; }
    .app-store-badge { flex: 1 1 auto; justify-content: center; }
}
