/* ==========================================================================
   LÍNEAS DE NEGOCIO — Products Showcase — Mobile-First
   Base = mobile (< 640px), scale up via min-width queries
   ========================================================================== */


/* ── Hero Mini — base (portado desde esencia.css, compartido) ── */
.hero-mini {
    position: relative;
    padding-top: calc(var(--nav-height, 72px) + var(--space-6));
    padding-bottom: var(--space-24);
    overflow: hidden;
}

.hero-mini__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Fade de transición al fondo de la siguiente sección */
#lineas-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--bg-secondary) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-mini__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-top: var(--space-8);
}

.hero-mini__title {
    font-size: var(--text-4xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-4);
}

.hero-mini__subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    max-width: 560px;
    margin-inline: auto;
}

.hero-mini__descriptor {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-4);
}

@media (min-width: 640px) {
    .hero-mini__title {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-mini {
        padding-top: calc(var(--nav-height, 72px) + var(--space-12));
        padding-bottom: var(--space-16);
    }
}

/* El container del hero tiene text-align: center desde hero-mini__content,
   pero el nav está fuera — lo centramos explícitamente */
#lineas-hero .container {
    text-align: center;
}

/* Nav — barra glass pill horizontal con los 3 productos ── */
.lines-hero__nav {
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-10);

    /* Centrado */
    margin-inline: auto;
    width: fit-content;
    max-width: 100%;

    /* Liquid Glass */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .lines-hero__nav {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Ítem de producto dentro de la barra */
.lines-hero__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    text-decoration: none;
    color: var(--text-primary);
    white-space: nowrap;
    transition: background var(--duration-fast) var(--ease-smooth),
                color var(--duration-fast) var(--ease-smooth);
}

.lines-hero__item:hover {
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    color: var(--text-primary);
}

/* Nombre de producto junto al logo */
.lines-hero__item-name {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    transition: color var(--duration-fast) var(--ease-smooth);
}

.lines-hero__item:hover .lines-hero__item-name {
    color: var(--text-primary);
}

/* Logos dentro de la barra */
.lines-hero__item-logo {
    height: 26px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
    opacity: 1;
    filter: brightness(1.15);
}

.lines-hero__item-logo--light { display: block; }
.lines-hero__item-logo--dark  { display: none;  }

[data-theme="dark"] .lines-hero__item-logo--light { display: none;  }
[data-theme="dark"] .lines-hero__item-logo--dark  { display: block; }

/* Wordmark SaaS Factory */
.lines-hero__item-wordmark {
    font-size: var(--text-sm);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
}

/* Divisor vertical entre ítems */
.lines-hero__div {
    width: 1px;
    height: 20px;
    background: var(--border-primary);
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════
   PRODUCT SECTION — base compartida por los 3 productos
   ══════════════════════════════════════════════════════════ */
.lines-product-section {
    position: relative;
    overflow: hidden;
}


/* Imagen siempre al fondo — absolute en todos los tamaños */
.lines-product-section__image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.lines-product-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.55;
    transition: transform var(--duration-slower) var(--ease-smooth);
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 18%,
        black 75%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 18%,
        black 75%,
        transparent 100%
    );
}

.lines-product-section__image-wrap:hover .lines-product-section__image {
    transform: scale(1.03);
}

/* Fade que integra la imagen con el fondo de la sección */
.lines-product-section__image-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        var(--bg-secondary) 100%
    );
    pointer-events: none;
}

.lines-product-section--factory .lines-product-section__image-fade,
[data-theme] .lines-product-section--factory .lines-product-section__image-fade {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--bg-primary) 100%
    );
}

/* En desktop SecurApp e IA Inspector ocupan solo el 55% lateral */
@media (min-width: 1024px) {
    .lines-product-section__image-wrap {
        width: 55%;
    }

    .lines-product-section__image-wrap--right {
        left: auto;
        right: 0;
    }

    /* Factory — imagen full-width, difuminada por todos los bordes */
    .lines-product-section--factory .lines-product-section__image-wrap {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        margin-bottom: 0;
    }

    /* Doble mask: izquierda/derecha + arriba/abajo — sin bordes visibles */
    .lines-product-section--factory .lines-product-section__image {
        opacity: 0.35;
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 15%, black 65%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image:
            linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 15%, black 65%, transparent 100%);
        mask-composite: intersect;
    }

    .lines-product-section--factory .lines-product-section__image-fade {
        display: none;
    }

    .lines-product-section__image-fade {
        background: linear-gradient(
            to right,
            transparent 0%,
            var(--bg-secondary) 80%,
            var(--bg-secondary) 100%
        );
    }

    .lines-product-section__image-fade--right {
        background: linear-gradient(
            to left,
            transparent 0%,
            var(--bg-secondary) 80%,
            var(--bg-secondary) 100%
        );
    }
}


/* ── Contenido interior de cada producto ────────────────── */
.lines-product-section__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-narrow);
}

/* El producto derecho (IA Inspector) alinea su contenido a la derecha */
@media (min-width: 1024px) {
    .lines-product-section__inner--right {
        margin-left: auto;
        margin-right: 0;
    }
}

/* SaaS Factory — sección centrada sin imagen lateral */
.lines-product-section--factory .lines-product-section__inner {
    margin-inline: auto;
    text-align: center;
}

.lines-product-section--factory .lines-product-section__desc {
    max-width: 56ch;
    margin-inline: auto;
}

.lines-product-section--factory .lines-stats {
    justify-content: center;
}

.lines-product-section--factory .lines-stat {
    align-items: center;
}

.lines-product-section--factory .lines-stat__label {
    text-align: center;
}

.lines-product-section--factory .lines-feat-card__list {
    text-align: left;
}


/* ── Label editorial de sección — texto con glow ───────── */
.lines-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    /* Light: color más oscuro para contraste sobre fondo claro */
    color: var(--color-primary-hover);
    margin-bottom: var(--space-6);
}

/* Dark: color más claro + glow */
[data-theme="dark"] .lines-label {
    color: var(--color-secondary);
    text-shadow: var(--glow-primary);
}

.lines-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    flex-shrink: 0;
}

[data-theme="dark"] .lines-label::before {
    box-shadow: 0 0 6px var(--color-primary);
}

/* ── Header del producto ────────────────────────────────── */
.lines-product-section__header {
    margin-bottom: var(--space-10);
}

.lines-product-section__logos {
    margin-bottom: var(--space-6);
}

.lines-product-section__logo {
    display: block;
    width: 280px;
    max-width: 100%;
}

.lines-product-section__logo--light {
    display: block;
}

.lines-product-section__logo--dark {
    display: none;
}

[data-theme="dark"] .lines-product-section__logo--light {
    display: none;
}

[data-theme="dark"] .lines-product-section__logo--dark {
    display: block;
}

.lines-product-section__title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-5);
}

.lines-product-section__title br {
    display: none;
}

.lines-product-section__title--factory {
    font-size: var(--text-4xl);
}


.lines-product-section__desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.lines-product-section__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-10);
}

@media (min-width: 640px) {
    .lines-product-section__title {
        font-size: var(--text-4xl);
    }

    .lines-product-section__title br {
        display: block;
    }

    .lines-product-section__title--factory {
        font-size: var(--text-5xl);
    }
}


/* ── Stats de impacto (SECUR APP) ───────────────────────── */
.lines-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8) var(--space-12);
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid var(--border-primary);
}

.lines-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.lines-stat__num {
    font-size: var(--text-4xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-none);
    letter-spacing: var(--tracking-tight);
}

.lines-stat__label {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    color: var(--text-secondary);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

@media (min-width: 640px) {
    .lines-stat__num {
        font-size: var(--text-5xl);
    }
}


/* ── Features bento grid — 3 cols uniformes ─────────────── */
.lines-feat-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
    .lines-feat-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lines-feat-bento {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }

    /* Featured: ocupa 2 columnas, más aire para el texto */
    .lines-feat-card--featured {
        grid-column: span 2;
    }

    .lines-feat-card--featured .lines-feat-card__desc {
        max-width: 56ch;
        line-height: 1.55;
    }

    /* Wide: ocupa las 3 columnas, layout horizontal con quote */
    .lines-feat-card--wide {
        grid-column: span 3;
    }

    .lines-feat-card--wide .lines-feat-card__inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-8);
    }

    .lines-feat-card--wide .lines-feat-card__body {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
        flex: 1;
    }

    .lines-feat-card--wide .lines-feat-card__desc {
        max-width: 48ch;
    }

    .lines-feat-card__quote {
        display: block;
        margin: 0;
        font-size: var(--text-2xl);
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1.2;
        background: var(--gradient-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        opacity: 0.45;
        white-space: nowrap;
        text-align: right;
        flex-shrink: 0;
    }
}

/* Card base */
.lines-feat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: background var(--duration-normal) var(--ease-smooth),
                box-shadow var(--duration-normal) var(--ease-smooth);
}

/* Specular highlight */
.lines-feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.45) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Número decorativo */
.lines-feat-card::after {
    content: attr(data-num);
    position: absolute;
    top: -0.15em;
    right: var(--space-6);
    font-size: 7.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
}

.lines-feat-card:hover {
    background: var(--glass-bg-hover);
}

.lines-feat-card__inner {
    display: contents;
}

.lines-feat-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.lines-feat-card__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
    border: none;
    box-shadow: var(--glass-shadow);
    color: #ffffff;
    flex-shrink: 0;
}

.lines-feat-card__name {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.lines-feat-card__desc {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.lines-feat-card__list {
    list-style: none;
    margin: var(--space-4) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
}

.lines-feat-card__list-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.lines-feat-card__list-icon svg {
    stroke-width: 3;
}

.lines-feat-card__list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
    border: none;
    box-shadow: var(--glass-shadow);
    color: #3D5CE5;
}

[data-theme="dark"] .lines-feat-card__list-icon {
    color: #b820e6;
}

.lines-feat-card__list-item span:last-child {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: var(--fw-medium);
    line-height: var(--leading-snug);
}

.lines-feat-card__quote {
    display: none;
}

[data-theme="dark"] .lines-feat-card {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

[data-theme="dark"] .lines-feat-card:hover {
    background: color-mix(in srgb, var(--color-primary) 16%, transparent);
}



/* ── SaaS Factory — tagline removida (usa .lines-product-section__desc) ──── */


/* ── CTA block SecurApp — centrado estilo Apple ─────────── */
.lines-securapp-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-primary);
    text-align: center;
}

.lines-securapp-cta__label {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--text-tertiary);
    letter-spacing: var(--tracking-wide);
}

.lines-securapp-cta__btn {
    padding-inline: var(--space-10);
}


/* ── CTA text-link estilo Apple — "Ver funcionalidades ›" ── */
.lines-cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    text-decoration: none;
    transition: gap var(--duration-fast) var(--ease-spring);
}

.lines-cta-link svg {
    color: var(--color-primary);
    transition: transform var(--duration-fast) var(--ease-spring);
}

[data-theme="dark"] .lines-cta-link svg {
    color: var(--color-secondary);
}

.lines-cta-link:hover {
    gap: var(--space-3);
}

.lines-cta-link:hover svg {
    transform: translateX(3px);
}


