/* ═════════════════════════════════════════════════════════════════
   PORTAL PÚBLICO LSOFT
   Hoja única del portal (Home + PublicLayout). Todos los colores salen
   de la paleta del tema activo (atributo data-theme en <html>), así que
   al cambiar el tema cambia todo el portal.
   Para agregar un tema nuevo basta con definir --p1, --p2, --p3 y --p-ink.
═════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sora";
    src: url("../fonts/sora-latin-wght.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

/* ── Paletas por tema ───────────────────────────────────────────────
   --p1 y --p2 llevan texto blanco encima (contraste ≥ 4.5:1).
   --p3 es un acento decorativo. --p-ink es el fondo de las zonas oscuras. */
:root,
:root[data-theme="lsoft"] {
    --p1: #2563EB;
    --p2: #7C3AED;
    --p3: #06B6D4;
    --p-ink: #0B1026;
}

:root[data-theme="lsoft-logistics"] {
    --p1: #0369A1;
    --p2: #0F766E;
    --p3: #F59E0B;
    --p-ink: #0B1F33;
}

:root[data-theme="lsoft-ocean"] {
    --p1: #0E7490;
    --p2: #4338CA;
    --p3: #22D3EE;
    --p-ink: #082F49;
}

:root[data-theme="lsoft-emerald"] {
    --p1: #047857;
    --p2: #B45309;
    --p3: #84CC16;
    --p-ink: #052E2B;
}

:root[data-theme="lsoft-violet"] {
    --p1: #6D3EF2;
    --p2: #A21CAF;
    --p3: #13B8C4;
    --p-ink: #1E1240;
}

/* ── Tokens derivados (se recalculan solos con cada tema) ─────────── */
:root {
    --p-grad: linear-gradient(120deg, var(--p1), var(--p2));
    --p-grad-3: linear-gradient(110deg, var(--p1) 0%, var(--p2) 60%, var(--p3) 100%);
    --p1-soft: color-mix(in srgb, var(--p1) 10%, #ffffff);
    --p2-soft: color-mix(in srgb, var(--p2) 10%, #ffffff);
    --p3-soft: color-mix(in srgb, var(--p3) 16%, #ffffff);
    --p-bg: color-mix(in srgb, var(--p1) 3%, #ffffff);
    --p-surface: #ffffff;
    --p-text: #0F172A;
    --p-muted: #475569;
    --p-border: color-mix(in srgb, var(--p1) 12%, #E2E8F0);
    --p-glow: color-mix(in srgb, var(--p1) 34%, transparent);
    --p-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .07);
    --p-shadow-lg: 0 30px 70px color-mix(in srgb, var(--p-ink) 28%, transparent);
    --p-font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --p-font-display: "Sora", "Inter", "Segoe UI", Arial, sans-serif;
    --p-radius: 20px;
    --p-gutter: clamp(18px, 5vw, 72px);
}

/* ═════════════════════════════ ESTRUCTURA ═════════════════════════════ */
.lsoft-public-shell {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--p-bg);
    color: var(--p-text);
    font-family: var(--p-font);
    -webkit-font-smoothing: antialiased;
}

.lsoft-public-shell *,
.lsoft-public-shell *::before,
.lsoft-public-shell *::after {
    box-sizing: border-box;
}

.lsoft-public-shell h1,
.lsoft-public-shell h2,
.lsoft-public-shell h3 {
    font-family: var(--p-font-display);
    letter-spacing: -0.02em;
}

/* ── Encabezado ── */
.lsoft-public-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 10px var(--p-gutter);
    background: color-mix(in srgb, #ffffff 82%, transparent);
    border-bottom: 1px solid var(--p-border);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.lsoft-public-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 52px;
}

.lsoft-public-brand-logo {
    display: block;
    height: 100%;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.lsoft-public-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
}

.lsoft-public-nav a {
    position: relative;
    padding: 8px 0;
    color: #334155;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: color .2s ease;
}

.lsoft-public-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--p-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.lsoft-public-nav a:hover {
    color: var(--p1);
}

.lsoft-public-nav a:hover::after {
    transform: scaleX(1);
}

.lsoft-public-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lsoft-link-button {
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: #334155;
    font: 600 .95rem var(--p-font);
    cursor: pointer;
}

.lsoft-link-button:hover {
    color: var(--p1);
}

.lsoft-public-quote {
    min-height: 44px;
    padding: 10px 20px;
}

.lsoft-public-quote-short {
    display: none;
}

.lsoft-public-theme-selector .theme-selector-trigger {
    width: 44px;
    height: 44px;
    color: var(--p1) !important;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: #ffffff;
}

.lsoft-public-theme-selector .theme-selector-trigger:hover {
    color: #ffffff !important;
    background: var(--p-grad);
}

/* ═════════════════════════════ BOTONES ═════════════════════════════ */
.lsoft-gradient-button,
.lsoft-outline-button,
.lsoft-light-button,
.lsoft-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid transparent;
    font: 600 1rem var(--p-font);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}

.lsoft-gradient-button {
    color: #ffffff;
    background: linear-gradient(120deg, var(--p1), var(--p2), var(--p1));
    background-size: 200% 100%;
    box-shadow: 0 12px 28px var(--p-glow);
}

.lsoft-gradient-button:hover {
    color: #ffffff;
    background-position: 100% 0;
    box-shadow: 0 18px 38px var(--p-glow);
}

.lsoft-gradient-button[disabled] {
    opacity: .6;
    cursor: wait;
}

.lsoft-outline-button {
    color: var(--p-text);
    background: #ffffff;
    border-color: color-mix(in srgb, var(--p1) 24%, #CBD5E1);
}

.lsoft-outline-button:hover {
    color: var(--p1);
    border-color: var(--p1);
}

.lsoft-light-button {
    color: var(--p1);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.lsoft-light-button:hover {
    color: var(--p2);
}

.lsoft-whatsapp-button {
    color: #0B6B3A;
    background: #E7F8EE;
    border-color: #BFE9CF;
}

.lsoft-whatsapp-button:hover {
    color: #08532D;
}

.lsoft-gradient-button:hover,
.lsoft-outline-button:hover,
.lsoft-light-button:hover,
.lsoft-whatsapp-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.lsoft-public-shell a:focus-visible,
.lsoft-public-shell button:focus-visible,
.lsoft-public-shell input:focus-visible,
.lsoft-public-shell textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--p1) 40%, transparent);
    outline-offset: 3px;
}

/* ═════════════════════════════ HERO ═════════════════════════════ */
.lsoft-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(56px, 8vw, 110px) var(--p-gutter) clamp(64px, 8vw, 120px);
    background: var(--p-bg);
}

/* Manchas de color animadas: toman los tres colores del tema. */
.lsoft-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.lsoft-hero-bg span {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: lsoft-float 18s ease-in-out infinite alternate;
}

.lsoft-hero-bg span:nth-child(1) {
    width: 46vw;
    height: 46vw;
    max-width: 640px;
    max-height: 640px;
    top: -18%;
    right: -8%;
    background: var(--p1);
    opacity: .32;
}

.lsoft-hero-bg span:nth-child(2) {
    width: 34vw;
    height: 34vw;
    max-width: 480px;
    max-height: 480px;
    bottom: -20%;
    right: 22%;
    background: var(--p2);
    opacity: .28;
    animation-delay: -6s;
}

.lsoft-hero-bg span:nth-child(3) {
    width: 28vw;
    height: 28vw;
    max-width: 380px;
    max-height: 380px;
    top: 8%;
    left: -10%;
    background: var(--p3);
    opacity: .26;
    animation-delay: -12s;
}

/* Cuadrícula sutil que se desvanece hacia los bordes. */
.lsoft-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--p1) 9%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--p1) 9%, transparent) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

@keyframes lsoft-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4%, 6%) scale(1.08); }
    100% { transform: translate(5%, -4%) scale(.96); }
}

.lsoft-hero-grid,
.lsoft-section-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.lsoft-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.lsoft-hero-copy > * {
    animation: lsoft-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}

.lsoft-hero-copy > *:nth-child(2) { animation-delay: .08s; }
.lsoft-hero-copy > *:nth-child(3) { animation-delay: .16s; }
.lsoft-hero-copy > *:nth-child(4) { animation-delay: .24s; }
.lsoft-hero-copy > *:nth-child(5) { animation-delay: .32s; }

@keyframes lsoft-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.lsoft-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--p1) 22%, transparent);
    background: color-mix(in srgb, #ffffff 75%, transparent);
    color: var(--p1);
    font-size: .88rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.lsoft-badge-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p1);
}

.lsoft-badge-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--p1);
    opacity: 0;
    animation: lsoft-ping 2s ease-out infinite;
}

@keyframes lsoft-ping {
    0% { transform: scale(.6); opacity: .8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.lsoft-hero-title {
    margin: 22px 0 20px;
    max-width: 680px;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    font-weight: 800;
    line-height: 1.04;
    color: var(--p-text);
}

.lsoft-gradient-text {
    background: var(--p-grad-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.lsoft-hero-subtitle {
    max-width: 600px;
    margin: 0;
    color: var(--p-muted);
    font-size: clamp(1.02rem, 1.3vw, 1.18rem);
    line-height: 1.7;
}

.lsoft-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.lsoft-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 600px;
    margin-top: 40px;
}

.lsoft-stat {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, #ffffff 60%, var(--p-border));
    background: color-mix(in srgb, #ffffff 70%, transparent);
    backdrop-filter: blur(10px);
}

.lsoft-stat strong {
    display: block;
    font: 800 1.6rem/1.1 var(--p-font-display);
    background: var(--p-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.lsoft-stat span {
    display: block;
    margin-top: 4px;
    color: var(--p-muted);
    font-size: .85rem;
    line-height: 1.35;
}

/* ── Maqueta del producto ── */
.lsoft-hero-visual {
    position: relative;
    padding: clamp(14px, 2vw, 22px);
    border-radius: 28px;
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--p1) 55%, transparent), transparent 60%),
        radial-gradient(90% 90% at 100% 100%, color-mix(in srgb, var(--p2) 60%, transparent), transparent 60%),
        var(--p-ink);
    box-shadow: var(--p-shadow-lg);
    animation: lsoft-rise .9s .15s cubic-bezier(.2, .7, .2, 1) both;
}

.lsoft-mockup-frame {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: color-mix(in srgb, var(--p-ink) 88%, #ffffff 4%);
    color: #E2E8F0;
}

.lsoft-mockup-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 38px;
    padding: 0 14px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.lsoft-chrome-dots {
    display: flex;
    gap: 6px;
}

.lsoft-chrome-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.lsoft-chrome-url {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 260px;
    height: 22px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    color: #94A3B8;
    font-size: .7rem;
}

.lsoft-chrome-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.lsoft-chrome-pill {
    width: 30px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
}

.lsoft-chrome-pill--sm { width: 18px; }

.lsoft-mockup-body {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 330px;
}

.lsoft-mock-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 10px;
    border-right: 1px solid rgba(255, 255, 255, .06);
    background: rgba(0, 0, 0, .15);
}

.lsoft-mock-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px 10px;
}

.lsoft-mock-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--p-grad);
}

.lsoft-mock-sep {
    height: 1px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, .06);
}

.lsoft-mock-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .55);
    font-size: .72rem;
}

.lsoft-mock-nav-active {
    color: #ffffff;
    background: color-mix(in srgb, var(--p1) 45%, transparent);
}

.lsoft-mock-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.lsoft-mock-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lsoft-mk-line {
    border-radius: 4px;
    background: rgba(255, 255, 255, .14);
}

.lsoft-mk-title { width: 90px; height: 8px; }
.lsoft-mk-sub { width: 60px; height: 5px; margin-top: 5px; opacity: .6; }

.lsoft-mock-header-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 7px;
    background: var(--p-grad);
    color: #ffffff;
    font-size: .66rem;
    font-weight: 600;
}

.lsoft-mock-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lsoft-mock-kpi {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .04);
}

.lsoft-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.lsoft-kpi-label {
    color: #94A3B8;
    font-size: .6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lsoft-kpi-delta {
    padding: 1px 5px;
    border-radius: 4px;
    font-size: .56rem;
    font-weight: 700;
}

.lsoft-kpi-delta--up {
    color: #4ADE80;
    background: rgba(74, 222, 128, .12);
}

.lsoft-kpi-number {
    margin: 4px 0 6px;
    color: #ffffff;
    font: 700 1.05rem var(--p-font-display);
}

.lsoft-kpi-spark {
    display: block;
    width: 100%;
    height: 28px;
}

.lsoft-kpi-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
}

.lsoft-kpi-bar {
    flex: 1;
    border-radius: 2px;
    background: color-mix(in srgb, var(--p1) 55%, transparent);
}

.lsoft-kpi-bar--hl {
    background: var(--p3);
}

.lsoft-kpi-donut-wrap {
    display: flex;
    justify-content: center;
}

.lsoft-kpi-donut {
    width: 34px;
    height: 34px;
    transform: rotate(-90deg);
}

.lsoft-kpi-donut text {
    transform: rotate(90deg);
    transform-origin: 22px 22px;
}

/* Colores de las gráficas: siguen el tema. */
.mk-c1 { stop-color: var(--p1); }
.mk-c2 { stop-color: var(--p2); }
.mk-c3 { stop-color: var(--p3); }

.lsoft-mock-chart-area {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .03);
}

.lsoft-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lsoft-chart-legend {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lsoft-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.lsoft-legend-dot--a { background: var(--p1); }
.lsoft-legend-dot--b { background: var(--p2); }

.lsoft-legend-lbl {
    margin-right: 4px;
    color: #94A3B8;
    font-size: .58rem;
}

.lsoft-bar-svg {
    display: block;
    width: 100%;
    height: 64px;
}

.lsoft-month-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: #64748B;
    font-size: .52rem;
}

.lsoft-mock-table-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lsoft-mock-trow {
    display: grid;
    grid-template-columns: 8px 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
}

.lsoft-trow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lsoft-trow-dot--1 { background: var(--p1); }
.lsoft-trow-dot--2 { background: var(--p2); }
.lsoft-trow-dot--3 { background: var(--p3); }

.lsoft-trow-progress {
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.lsoft-trow-bar {
    height: 100%;
    border-radius: 3px;
    background: var(--p-grad);
}

.lsoft-trow-badge {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: .56rem;
    font-weight: 700;
    white-space: nowrap;
}

.lsoft-trow-badge--ok {
    color: #4ADE80;
    background: rgba(74, 222, 128, .12);
}

.lsoft-trow-badge--run {
    color: #ffffff;
    background: color-mix(in srgb, var(--p1) 50%, transparent);
}

.lsoft-floating-card {
    position: absolute;
    left: -28px;
    bottom: -30px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 290px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, .18);
    animation: lsoft-bob 6s ease-in-out infinite;
}

.lsoft-floating-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--p-grad);
    color: #ffffff;
}

.lsoft-floating-card strong {
    display: block;
    color: var(--p-text);
    font: 700 .95rem var(--p-font-display);
}

.lsoft-floating-card span {
    display: block;
    margin-top: 2px;
    color: var(--p-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.lsoft-floating-badge {
    position: absolute;
    top: -16px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--p-text);
    font-size: .82rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}

.lsoft-floating-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

@keyframes lsoft-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ═════════════════════════════ SECCIONES ═════════════════════════════ */
.lsoft-section {
    position: relative;
    padding: clamp(64px, 8vw, 112px) var(--p-gutter);
    scroll-margin-top: 80px;
}

.lsoft-section-header {
    max-width: 760px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    text-align: center;
}

.lsoft-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--p1-soft);
    color: var(--p1);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lsoft-section-title {
    margin: 16px 0 14px;
    color: var(--p-text);
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
}

.lsoft-section-description {
    margin: 0;
    color: var(--p-muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.lsoft-section-description + .lsoft-section-description {
    margin-top: 12px;
}

/* Zonas oscuras: textos claros. */
.lsoft-dark-zone .lsoft-section-title { color: #ffffff; }
.lsoft-dark-zone .lsoft-section-description { color: rgba(255, 255, 255, .78); }

.lsoft-dark-zone .lsoft-section-eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, .14);
}

/* ── Quiénes somos ── */
.lsoft-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.lsoft-sector-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lsoft-sector-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--p-border);
    background: var(--p-surface);
    color: var(--p-text);
    font-weight: 600;
    box-shadow: var(--p-shadow);
    transition: transform .2s ease;
}

.lsoft-sector-list li:hover {
    transform: translateY(-3px);
}

.lsoft-sector-list li::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--p1);
    box-shadow: 0 0 0 5px var(--p1-soft);
}

.lsoft-sector-list li:nth-child(3n+2)::before {
    background: var(--p2);
    box-shadow: 0 0 0 5px var(--p2-soft);
}

.lsoft-sector-list li:nth-child(3n)::before {
    background: var(--p3);
    box-shadow: 0 0 0 5px var(--p3-soft);
}

/* ── Tarjetas (servicios y proyectos) ── */
.lsoft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.lsoft-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--p-radius);
    border: 1px solid var(--p-border);
    background: var(--p-surface);
    box-shadow: var(--p-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Brillo de color en la esquina, distinto por tarjeta. */
.lsoft-card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--card-color, var(--p1));
    opacity: .08;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.lsoft-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--card-color, var(--p1)) 40%, transparent);
    box-shadow: 0 24px 48px color-mix(in srgb, var(--card-color, var(--p1)) 18%, transparent);
}

.lsoft-card:hover::after {
    opacity: .16;
    transform: scale(1.2);
}

.lsoft-grid > .lsoft-card:nth-child(3n+1),
.lsoft-project-grid > .lsoft-card:nth-child(3n+1) { --card-color: var(--p1); --card-grad: linear-gradient(135deg, var(--p1), var(--p2)); }
.lsoft-grid > .lsoft-card:nth-child(3n+2),
.lsoft-project-grid > .lsoft-card:nth-child(3n+2) { --card-color: var(--p2); --card-grad: linear-gradient(135deg, var(--p2), color-mix(in srgb, var(--p2) 55%, var(--p3))); }
.lsoft-grid > .lsoft-card:nth-child(3n),
.lsoft-project-grid > .lsoft-card:nth-child(3n) { --card-color: var(--p3); --card-grad: linear-gradient(135deg, color-mix(in srgb, var(--p3) 70%, var(--p1)), var(--p1)); }

.lsoft-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--card-grad, var(--p-grad));
    color: #ffffff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--card-color, var(--p1)) 30%, transparent);
}

.lsoft-card h3 {
    margin: 0 0 10px;
    color: var(--p-text);
    font-size: 1.2rem;
    font-weight: 700;
}

.lsoft-card p {
    margin: 0;
    color: var(--p-muted);
    line-height: 1.65;
}

/* ── Financiación (banda de color) ── */
.lsoft-financing {
    overflow: hidden;
    isolation: isolate;
    background: var(--p-grad);
    color: #ffffff;
}

.lsoft-financing::before,
.lsoft-financing::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.lsoft-financing::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -80px;
    background: var(--p3);
    opacity: .45;
}

.lsoft-financing::after {
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: 10%;
    background: var(--p-ink);
    opacity: .35;
}

.lsoft-financing-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
}

.lsoft-financing .lsoft-section-title {
    margin-top: 16px;
}

.lsoft-financing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.lsoft-financing-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    font-size: .92rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.lsoft-financing-list span::before {
    content: "✓";
    font-weight: 800;
}

/* ── Proyectos ── */
.lsoft-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lsoft-project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.lsoft-project-card::after {
    display: none;
}

.lsoft-project-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 150px;
    padding: 18px 22px;
    overflow: hidden;
    background: var(--card-grad, var(--p-grad));
}

/* Patrón de puntos sobre la portada. */
.lsoft-project-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.2px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 100%);
    mask-image: linear-gradient(120deg, transparent 20%, #000 100%);
}

.lsoft-project-initial {
    position: absolute;
    right: 18px;
    top: -12px;
    color: rgba(255, 255, 255, .18);
    font: 800 8rem/1 var(--p-font-display);
    pointer-events: none;
}

.lsoft-project-cover h3 {
    position: relative;
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
}

.lsoft-project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
}

.lsoft-project-link {
    color: var(--p1);
    font-size: .9rem;
    font-weight: 600;
    word-break: break-all;
    text-decoration: none;
}

.lsoft-project-link:hover {
    text-decoration: underline;
}

.lsoft-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.lsoft-chip-list span {
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--card-color, var(--p1)) 12%, #ffffff);
    color: color-mix(in srgb, var(--card-color, var(--p1)) 70%, #0F172A);
    font-size: .8rem;
    font-weight: 600;
}

/* ── Por qué elegirnos (zona oscura) ── */
.lsoft-reasons-zone {
    overflow: hidden;
    isolation: isolate;
    background: var(--p-ink);
}

.lsoft-reasons-zone::before,
.lsoft-reasons-zone::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.lsoft-reasons-zone::before {
    width: 520px;
    height: 520px;
    top: -200px;
    left: -120px;
    background: var(--p1);
    opacity: .5;
}

.lsoft-reasons-zone::after {
    width: 460px;
    height: 460px;
    bottom: -200px;
    right: -100px;
    background: var(--p2);
    opacity: .5;
}

.lsoft-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.lsoft-reason {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
    backdrop-filter: blur(10px);
    transition: background .2s ease, transform .2s ease;
}

.lsoft-reason:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-3px);
}

.lsoft-reason-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--p-grad);
    color: #ffffff;
}

.lsoft-reason:nth-child(3n+2) .lsoft-reason-icon { background: linear-gradient(135deg, var(--p2), var(--p3)); }
.lsoft-reason:nth-child(3n) .lsoft-reason-icon { background: linear-gradient(135deg, var(--p3), var(--p1)); }

/* ── Proceso ── */
.lsoft-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lsoft-step {
    position: relative;
    padding: 24px;
    border-radius: var(--p-radius);
    border: 1px solid var(--p-border);
    background: var(--p-surface);
    box-shadow: var(--p-shadow);
}

.lsoft-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--p-grad);
    color: #ffffff;
    font: 700 1.2rem var(--p-font-display);
    box-shadow: 0 0 0 6px var(--p1-soft), 0 10px 22px var(--p-glow);
}

.lsoft-step:nth-child(even) .lsoft-step-number {
    background: linear-gradient(135deg, var(--p2), var(--p1));
    box-shadow: 0 0 0 6px var(--p2-soft), 0 10px 22px var(--p-glow);
}

.lsoft-step h3 {
    margin: 0 0 8px;
    color: var(--p-text);
    font-size: 1.1rem;
}

.lsoft-step p {
    margin: 0;
    color: var(--p-muted);
    line-height: 1.6;
}

/* ── Contacto ── */
.lsoft-contact-section {
    background:
        radial-gradient(60% 60% at 0% 100%, var(--p1-soft), transparent 70%),
        radial-gradient(50% 50% at 100% 0%, var(--p2-soft), transparent 70%);
}

.lsoft-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.lsoft-contact-copy .lsoft-section-title {
    margin-top: 16px;
}

.lsoft-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 28px 0 24px;
}

.lsoft-contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--p-border);
    background: var(--p-surface);
    color: var(--p-muted);
    text-decoration: none;
    box-shadow: var(--p-shadow);
    transition: transform .2s ease, border-color .2s ease;
}

a.lsoft-contact-method:hover {
    transform: translateX(4px);
    border-color: var(--p1);
}

.lsoft-contact-method > .mud-icon-root {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: var(--p1-soft);
    color: var(--p1);
}

.lsoft-contact-method:nth-child(2) > .mud-icon-root {
    background: var(--p2-soft);
    color: var(--p2);
}

.lsoft-contact-method:nth-child(3) > .mud-icon-root {
    background: var(--p3-soft);
    color: color-mix(in srgb, var(--p3) 60%, #0F172A);
}

.lsoft-contact-method strong {
    display: block;
    color: var(--p-text);
    font-size: .95rem;
}

.lsoft-contact-card {
    position: relative;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 24px;
    border: 1px solid var(--p-border);
    background: var(--p-surface);
    box-shadow: 0 30px 60px color-mix(in srgb, var(--p1) 12%, transparent);
}

/* Línea de color en el borde superior de la tarjeta. */
.lsoft-contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--p-grad-3);
}

.lsoft-contact-card h3 {
    margin: 0 0 20px;
    color: var(--p-text);
    font-size: 1.35rem;
}

.lsoft-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lsoft-contact-form input,
.lsoft-contact-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #D5DCE7;
    background: #ffffff;
    color: var(--p-text);
    font: 400 .98rem var(--p-font);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.lsoft-contact-form textarea {
    grid-column: 1 / -1;
    min-height: 130px;
    resize: vertical;
}

.lsoft-contact-form input::placeholder,
.lsoft-contact-form textarea::placeholder {
    color: #64748B;
}

.lsoft-contact-form input:focus,
.lsoft-contact-form textarea:focus {
    border-color: var(--p1);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--p1) 14%, transparent);
    outline: none;
}

.lsoft-contact-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

/* ── Información de la aplicación ── */
.lsoft-application-info {
    background: color-mix(in srgb, var(--p1) 5%, #ffffff);
    border-top: 1px solid var(--p-border);
}

.lsoft-application-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.lsoft-application-info-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--p-border);
    background: var(--p-surface);
}

.lsoft-application-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: var(--p1-soft);
    color: var(--p1);
}

.lsoft-application-info-card span {
    color: var(--p-muted);
    font-size: .85rem;
}

.lsoft-application-info-card strong {
    color: var(--p-text);
}

/* ── Pie de página ── */
.lsoft-footer {
    position: relative;
    padding: 48px var(--p-gutter);
    background: var(--p-ink);
    color: rgba(255, 255, 255, .75);
}

.lsoft-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--p-grad-3);
}

.lsoft-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.lsoft-footer-inner > div:first-child {
    max-width: 520px;
}

.lsoft-footer img {
    display: block;
    height: 56px;
    width: auto;
    max-width: 200px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #ffffff;
    object-fit: contain;
}

.lsoft-footer p {
    margin: 16px 0 8px;
    line-height: 1.6;
}

.lsoft-footer strong {
    color: #ffffff;
}

.lsoft-footer-inner > div:last-child {
    text-align: right;
    font-size: .9rem;
    line-height: 1.8;
}

/* ── Botón volver arriba ── */
.lsoft-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: var(--p-grad);
    color: #ffffff;
    box-shadow: 0 14px 30px var(--p-glow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.9);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.lsoft-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.lsoft-back-to-top:hover {
    transform: translateY(-3px);
}

.lsoft-back-to-top.is-over-dark {
    background: #ffffff;
    color: var(--p1);
}

.lsoft-back-to-top .mud-icon-root {
    font-size: 30px;
}

/* ═════════════════════════════ RESPONSIVE ═════════════════════════════ */
@media (max-width: 1080px) {
    .lsoft-public-nav {
        display: none;
    }

    .lsoft-hero-grid,
    .lsoft-about-grid,
    .lsoft-contact-grid,
    .lsoft-financing-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .lsoft-hero-visual {
        margin: 12px 8px 36px;
    }

    .lsoft-floating-card {
        left: 12px;
    }
}

@media (max-width: 680px) {
    .lsoft-public-header {
        gap: 10px;
        min-height: 64px;
    }

    .lsoft-public-brand {
        height: 42px;
    }

    .lsoft-public-brand-logo {
        max-width: 120px;
    }

    .lsoft-public-actions {
        gap: 8px;
    }

    .lsoft-public-quote {
        min-height: 42px;
        padding: 8px 14px;
        font-size: .9rem;
    }

    .lsoft-hero-stats,
    .lsoft-sector-list,
    .lsoft-contact-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .lsoft-mockup-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .lsoft-mock-sidebar,
    .lsoft-mock-table-rows {
        display: none;
    }

    .lsoft-floating-card {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        margin-top: 16px;
        animation: none;
    }

    .lsoft-hero-actions > a,
    .lsoft-contact-actions > * {
        width: 100%;
    }

    .lsoft-footer-inner > div:last-child {
        text-align: left;
    }
}

@media (max-width: 430px) {
    .lsoft-link-button {
        display: none;
    }

    .lsoft-public-quote-full {
        display: none;
    }

    .lsoft-public-quote-short {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lsoft-public-shell *,
    .lsoft-public-shell *::before,
    .lsoft-public-shell *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
