/* ==========================================================================
   DIVEX — Landing pública
   Hoja única, sin build step: el Dockerfile solo compila el bundle de React,
   así que esta página se sirve como CSS estático desde /landing/landing.css.
   ========================================================================== */

:root {
    --divex-primary: #7c3aed;
    --divex-secondary: #8b5cf6;
    --divex-accent: #c4b5fd;
    --divex-soft: #f8fafc;
    --divex-border: #e2e8f0;
    --divex-text: #475569;
    --divex-ink: #0f172a;
    --divex-dark: #0b0a14;
    --divex-success: #059669;

    --font-heading: "Poppins", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;

    --shell: 1180px;
    --radius: 16px;
    --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.06);
    --shadow-float: 0 24px 60px -20px rgba(15, 23, 42, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--divex-text);
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    /* Los <img> declaran width/height para reservar el espacio y evitar CLS.
       Sin `height: auto` el atributo height gana y la imagen sale estirada. */
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--divex-ink);
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
}

h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

p {
    margin: 0;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: clamp(64px, 8vw, 112px);
}

.section--soft {
    background: var(--divex-soft);
}

.section--dark {
    background: var(--divex-dark);
    color: #cbd5e1;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: #fff;
}

/* ---------- eyebrow ---------- */
.eyebrow {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--divex-primary);
    margin-bottom: 14px;
}

.section--dark .eyebrow {
    color: var(--divex-accent);
}

.lead {
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    max-width: 62ch;
}

/* ---------- botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 28px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
        border-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--divex-primary);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.6);
}

.btn--primary:hover {
    background: var(--divex-secondary);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -10px rgba(124, 58, 237, 0.65);
}

.btn--ghost {
    background: transparent;
    color: var(--divex-ink);
    border-color: var(--divex-border);
}

.btn--ghost:hover {
    border-color: var(--divex-primary);
    color: var(--divex-primary);
}

.section--dark .btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.section--dark .btn--ghost:hover {
    border-color: #fff;
    color: #fff;
}

.btn--light {
    background: #fff;
    color: var(--divex-ink);
}

.btn--light:hover {
    transform: translateY(-2px);
}

.btn--sm {
    padding: 11px 20px;
    font-size: 0.92rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--divex-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 76px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-right: auto;
}

/* Más grande que los 38px originales: al sacar el texto "DIVEX" de al lado,
   el logo quedó solo cargando la marca y necesita peso propio para no
   perderse contra los links del nav. */
.nav__brand img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.nav__links {
    display: flex;
    gap: 26px;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav__links a:hover {
    color: var(--divex-primary);
}

.nav-cta__short {
    display: none;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(56px, 7vw, 92px) clamp(64px, 8vw, 104px);
    background:
        radial-gradient(1100px 480px at 78% -8%, rgba(196, 181, 253, 0.4), transparent 62%),
        radial-gradient(760px 420px at 4% 10%, rgba(139, 92, 246, 0.14), transparent 60%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero h1 {
    margin-bottom: 22px;
}

.hero h1 em {
    font-style: normal;
    color: var(--divex-primary);
}

.hero__note {
    margin-top: 30px;
    padding: 16px 20px;
    border-left: 3px solid var(--divex-primary);
    background: rgba(124, 58, 237, 0.05);
    border-radius: 0 12px 12px 0;
    font-size: 0.99rem;
    color: var(--divex-ink);
}

.hero__meta {
    margin-top: 22px;
    font-size: 0.88rem;
    color: #64748b;
}

/* composición hero: escritorio + teléfono */
.stage {
    position: relative;
    padding-bottom: 44px;
}

.stage__phone {
    position: absolute;
    right: -10px;
    bottom: 0;
    width: 29%;
    max-width: 172px;
    z-index: 2;
}

/* ---------- marcos ---------- */
.frame {
    border-radius: var(--radius);
    border: 1px solid var(--divex-border);
    background: #fff;
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.frame__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--divex-border);
}

.frame__bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.frame__bar i:first-child {
    background: #f87171;
}

.frame__bar i:nth-child(2) {
    background: #fbbf24;
}

.frame__bar i:nth-child(3) {
    background: #34d399;
}

.frame img {
    width: 100%;
}

.phone {
    border-radius: 26px;
    border: 8px solid #0f172a;
    background: #0f172a;
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.phone img {
    width: 100%;
    border-radius: 18px;
}

/* ---------- tira de capacidades ---------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.pillar h3 {
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.pillar__mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.1);
    color: var(--divex-primary);
    margin-bottom: 16px;
}

.pillar__mark svg {
    width: 24px;
    height: 24px;
}

.pillar p {
    font-size: 0.98rem;
}

/* ---------- dolor ---------- */
.pain__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.pain__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pain__list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

.pain__list svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: #fb7185;
}

.quote {
    margin: 34px 0 0;
    padding-left: 22px;
    border-left: 3px solid var(--divex-accent);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.5;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.01em;
}

/* ---------- bloques de feature ---------- */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(32px, 5.5vw, 78px);
    align-items: center;
}

.feature + .feature {
    margin-top: clamp(64px, 8vw, 108px);
}

/* En los bloques invertidos el media pasa a la izquierda, y la columna ancha
   viaja con él para que la proporción no se dé vuelta. */
.feature--flip {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}

.feature--flip .feature__media {
    order: -1;
}

.checks {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 13px;
}

.checks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 1rem;
}

.checks svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 2px;
    color: var(--divex-primary);
}

.feature__media--duo {
    position: relative;
    padding-bottom: 46px;
}

.feature__media--duo .phone {
    position: absolute;
    right: -18px;
    bottom: 0;
    width: 30%;
    max-width: 182px;
    z-index: 2;
}

/* ---------- flujo customer first ---------- */
.flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    counter-reset: step;
}

.flow__step {
    position: relative;
    padding: 26px 18px 22px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--divex-border);
    box-shadow: var(--shadow-card);
}

.flow__step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -15px;
    left: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--divex-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
}

.flow__step h3 {
    font-size: 0.97rem;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.flow__step p {
    font-size: 0.87rem;
    line-height: 1.5;
}

.flow__key {
    margin-top: 40px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.02rem, 1.7vw, 1.2rem);
    color: var(--divex-ink);
}

/* ---------- beneficios ---------- */
.benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.benefit-card {
    padding: 34px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--divex-border);
    box-shadow: var(--shadow-card);
}

.benefit-card--accent {
    background: linear-gradient(160deg, #7c3aed 0%, #6d28d9 100%);
    border-color: transparent;
    color: rgba(255, 255, 255, 0.9);
}

.benefit-card--accent h3,
.benefit-card--accent .eyebrow {
    color: #fff;
}

.benefit-card .eyebrow {
    margin-bottom: 8px;
}

.benefit-card h3 {
    text-transform: none;
    letter-spacing: -0.015em;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.benefit-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.benefit-card li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.benefit-card li svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--divex-primary);
}

.benefit-card--accent li svg {
    color: #fff;
}

.benefit-card li strong {
    display: block;
    color: var(--divex-ink);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.98rem;
}

.benefit-card--accent li strong {
    color: #fff;
}

.benefit-card li span {
    font-size: 0.93rem;
    line-height: 1.5;
}

/* ---------- galería de capturas ---------- */
/* Dos columnas y no cuatro: son capturas de pantallas densas — a un cuarto
   del ancho el contenido deja de leerse y la sección pierde el sentido. */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
}

.shot {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--divex-border);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.shot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

.shot figcaption {
    padding: 13px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--divex-ink);
    border-top: 1px solid var(--divex-border);
}

/* ---------- oferta ---------- */
.offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.offer__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.offer__items li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--divex-border);
    box-shadow: var(--shadow-card);
}

.offer__items svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    color: var(--divex-primary);
}

.offer__items strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--divex-ink);
    margin-bottom: 2px;
}

.offer__items span {
    font-size: 0.93rem;
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 860px;
    margin-inline: auto;
}

.faq details {
    border-bottom: 1px solid var(--divex-border);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 44px 24px 0;
    position: relative;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--divex-ink);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--divex-primary);
    border-bottom: 2px solid var(--divex-primary);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.faq details p {
    padding: 0 44px 26px 0;
    font-size: 0.99rem;
}

/* ---------- CTA final ---------- */
.final {
    text-align: center;
    background:
        radial-gradient(900px 400px at 50% 0%, rgba(124, 58, 237, 0.36), transparent 66%),
        var(--divex-dark);
}

.final .lead {
    margin-inline: auto;
    margin-top: 18px;
}

.final .btn-row {
    justify-content: center;
}

.final__note {
    margin-top: 22px;
    font-size: 0.88rem;
    color: #94a3b8;
}

/* ---------- footer ---------- */
.footer {
    background: #06050d;
    color: #94a3b8;
    padding-block: 54px 34px;
    font-size: 0.92rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

/* Igual que en el nav: sin el texto al lado, el logo sube de 36px a 52px.

   El fondo claro NO es decorativo. El PNG es transparente y su wordmark es
   oscuro, así que sobre el footer negro quedaba ilegible — antes eso pasaba
   desapercibido porque al lado había un <span>DIVEX</span> en blanco que
   cargaba la marca, y al sacarlo el logo quedó solo.

   Se resuelve con un chip claro en vez de aplanarlo a blanco con
   `filter: brightness(0) invert(1)`: el filtro lo haría legible pero también
   mataría el morado del isotipo, que es el color de la marca. */
.footer__brand img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}

.footer h4 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: #fff;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer a:hover {
    color: #fff;
}

.footer__bottom {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .hero__grid,
    .pain__grid,
    .feature,
    .offer {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature--flip .feature__media {
        order: 0;
    }

    .flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 34px;
    }

    .nav__links {
        display: none;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .pillars,
    .benefits,
    .gallery,
    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* En escritorio el teléfono va superpuesto sobre la esquina del monitor
       (position:absolute). En móvil se apila debajo, y ahí el solape deja de
       ser un efecto para volverse un choque: las dos capturas se tocan y se
       leen como una sola imagen cortada.

       El margen superior era -30px, que las pegaba a propósito imitando el
       solape del escritorio. Acá va POSITIVO para que se lean como dos
       pantallas distintas, que es lo que son. */
    .stage__phone,
    .feature__media--duo .phone {
        position: static;
        width: 58%;
        max-width: 220px;
        margin: 28px auto 0;
    }

    .stage,
    .feature__media--duo {
        padding-bottom: 0;
    }

    /* Solo los CTA de cuerpo ocupan todo el ancho. El del nav NO: si se estira
       se come la marca. */
    .btn-row .btn {
        width: 100%;
    }

    .btn-row {
        flex-direction: column;
    }

    .nav__inner {
        gap: 12px;
    }

    .nav .btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .nav-cta__long {
        display: none;
    }

    .nav-cta__short {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* ==========================================================================
   Modal de "Solicita tu demo"
   Solo llega al documento con features.demo_publica en ON (lo decide el Blade).
   ========================================================================== */

.demo-modal {
    width: min(440px, calc(100vw - 32px));
    padding: 32px;
    border: 1px solid var(--divex-border);
    border-radius: 18px;
    background: #fff;
    color: var(--divex-ink);
    font-family: var(--font-body);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.demo-modal::backdrop {
    background: rgba(11, 10, 20, 0.55);
}

.demo-modal h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--divex-ink);
}

.demo-modal__bajada {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--divex-text);
}

.demo-modal__cerrar-form {
    margin: 0;
    text-align: right;
}

.demo-modal__cerrar {
    border: 0;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--divex-text);
    cursor: pointer;
    padding: 0 4px;
}

.demo-modal__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--divex-ink);
}

.demo-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--divex-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--divex-ink);
}

.demo-modal__input:focus {
    outline: 2px solid var(--divex-primary);
    outline-offset: 1px;
}

.demo-modal__error {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #b91c1c;
}

.demo-modal__enviar {
    width: 100%;
    margin-top: 18px;
    justify-content: center;
}

.demo-modal__enviar[disabled] {
    opacity: 0.65;
    cursor: progress;
}

.demo-modal__legal {
    margin: 14px 0 0;
    font-size: 0.78rem;
    color: var(--divex-text);
}
