/* ==========================================================================
   Roplio — Landing page (standalone, dark brand theme)
   Reuses the brand tokens; not dependent on KaiAdmin/Bootstrap.
   ========================================================================== */

.roplio-landing {
    --brand-blue: #2E6FFF;
    --brand-violet: #6A45FF;
    --brand-gradient: linear-gradient(135deg, #2E6FFF 0%, #6A45FF 100%);
    --accent-ia: #1CB4FF;
    --surface-base: #1A1D24;
    --surface-raised: #23262D;
    --surface-sunken: #14171E;
    --bg-navy: #050D1E;
    --text-on-dark: #EAECEF;
    --text-muted: #9AA3B2;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --maxw: 1200px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text-on-dark);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(46, 111, 255, 0.16), transparent 60%),
        radial-gradient(1000px 500px at 0% 10%, rgba(106, 69, 255, 0.12), transparent 55%),
        linear-gradient(180deg, #14171E 0%, #1A1D24 55%, #23262D 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.roplio-landing a { text-decoration: none; color: inherit; }
.roplio-landing img { max-width: 100%; display: block; }

/* Smooth, eased anchor scrolling (modern, no jump) + offset for the sticky nav */
html { scroll-behavior: smooth; }
:where(#producto, #como-funciona, #resultados) { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.l-container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.l-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.l-btn:hover { transform: translateY(-2px); }
.l-btn svg { flex: none; }
.l-btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 12px 28px rgba(46, 111, 255, 0.32);
}
.l-btn-primary:hover { box-shadow: 0 16px 36px rgba(46, 111, 255, 0.42); }
.l-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text-on-dark);
}
.l-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.l-btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.l-btn-whatsapp {
    background: #25D366;
    color: #07351a;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.26);
}
.l-btn-whatsapp:hover {
    background: #2de072;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.34);
}

/* ---- Navbar ---- */
.l-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(16, 19, 26, 0.66);
    border-bottom: 1px solid var(--border);
}
.l-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.l-brand { display: flex; align-items: center; gap: 11px; }
.l-brand img { height: 34px; width: auto; }
.l-brand span {
    font-weight: 800;
    font-size: 1.34rem;
    letter-spacing: -0.02em;
}
.l-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.l-nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color .15s ease;
}
.l-nav-links a:hover { color: #fff; }
.l-nav-actions { display: flex; align-items: center; gap: 14px; }
.l-nav-login { color: var(--text-on-dark); font-weight: 700; font-size: 0.95rem; }
.l-nav-login:hover { color: var(--accent-ia); }
.l-nav-toggle { display: none; }
.l-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}
.l-language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}
.l-language-switcher a:hover,
.l-language-switcher a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.l-language-switcher a.is-active {
    color: #0f1526;
    background: #fff;
}
.l-language-switcher span[aria-hidden="true"] {
    font-size: 1rem;
    line-height: 1;
}

/* ---- Hero — show the full panorama (wall ~52% / office ~48%), text over office ---- */
.l-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;   /* matches the hero image so cover does NOT crop sides */
    min-height: 560px;
    max-height: 880px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(10, 12, 18, 0.30) 0%, rgba(10, 12, 18, 0) 22%),
        var(--hero-img);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    isolation: isolate;
}
/* darkening scrim: logo stays crisp on the left, office darkens on the right for the text */
.l-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(8, 10, 15, 0.10) 0%,
            rgba(8, 10, 15, 0.00) 30%,
            rgba(8, 10, 15, 0.45) 48%,
            rgba(8, 10, 15, 0.82) 68%,
            rgba(8, 10, 15, 0.92) 100%),
        linear-gradient(180deg, transparent 60%, rgba(8, 10, 15, 0.55) 100%);
}
.l-hero .l-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1380px;          /* nudge the copy off the wall seam, toward the office */
    padding-right: clamp(24px, 4vw, 72px);
}
.l-hero-copy {
    width: 44%;
    min-width: 420px;
    max-width: 520px;
    padding: 40px 0;
    text-shadow: 0 2px 18px rgba(5, 8, 16, 0.55);
}
.l-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(28, 180, 255, 0.08);
    color: var(--accent-ia);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.l-eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-ia);
    box-shadow: 0 0 0 4px rgba(28, 180, 255, 0.18);
}
.l-hero h1 {
    margin: 22px 0 0;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.l-hero h1 .grad {
    background: linear-gradient(120deg, #4D86FF 0%, #8A6BFF 60%, #1CB4FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.l-hero p.lead {
    margin: 22px 0 0;
    max-width: 520px;
    font-size: 1.14rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.l-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.l-hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.l-hero-trust svg { color: #34C759; flex: none; }
.l-hero-trust { text-shadow: none; }

/* floating "responding now" badge anchored to the hero */
.l-hero-badge {
    position: absolute;
    left: 6%; bottom: 7%;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    border-radius: 14px;
    background: rgba(20, 23, 30, 0.78);
    border: 1px solid var(--border-strong);
    box-shadow: 0 18px 40px rgba(5, 13, 30, 0.5);
    backdrop-filter: blur(10px);
}
.l-hero-badge .pulse {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--brand-gradient);
    color: #fff;
}
.l-hero-badge strong { display: block; font-size: 0.95rem; }
.l-hero-badge small { color: var(--text-muted); font-size: 0.8rem; }

/* ---- Section scaffolding ---- */
.l-section { padding: 76px 0; }
.l-section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.l-section-head .kicker {
    color: var(--accent-ia);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.l-section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    letter-spacing: -0.02em;
    font-weight: 800;
}
.l-section-head p {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

/* ---- Feature cards ---- */
.l-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.l-card {
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.l-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 50px rgba(5, 13, 30, 0.4);
}
.l-card-icon {
    width: 50px; height: 50px; border-radius: 13px;
    display: grid; place-items: center;
    background: rgba(46, 111, 255, 0.14);
    color: var(--accent-ia);
    margin-bottom: 18px;
}
.l-card h3 { margin: 0 0 8px; font-size: 1.22rem; font-weight: 750; letter-spacing: -0.01em; }
.l-card p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 0.98rem; }

/* ---- Steps ---- */
.l-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.l-step { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); }
.l-step .num {
    counter-increment: step;
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--brand-gradient); color: #fff;
    font-weight: 800; margin-bottom: 16px;
}
.l-step .num::before { content: counter(step); }
.l-step h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; }
.l-step p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 0.96rem; }

/* ---- Stats band ---- */
.l-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 38px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
}
.l-stat { text-align: center; }
.l-stat strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #4D86FF, #8A6BFF);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.l-stat span { color: var(--text-muted); font-size: 0.92rem; }

/* ---- CTA ---- */
.l-cta-wrap { padding: 0 0 90px; }
.l-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 64px 32px;
    border-radius: 24px;
    background:
        radial-gradient(600px 300px at 50% -20%, rgba(255, 255, 255, 0.16), transparent 60%),
        var(--brand-gradient);
    box-shadow: 0 30px 70px rgba(46, 111, 255, 0.35);
}
.l-cta h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.l-cta p { margin: 16px auto 0; max-width: 520px; color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; line-height: 1.6; }
.l-cta .l-hero-cta { justify-content: center; }
.l-cta .l-btn-primary { background: #fff; color: #1B2030; box-shadow: 0 14px 30px rgba(5, 13, 30, 0.35); }
.l-cta .l-btn-primary:hover { background: #f1f3f8; }
.l-cta .l-btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.l-cta .l-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---- Footer ---- */
.l-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.l-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.l-footer .l-brand img { height: 28px; }
.l-footer .l-brand span { font-size: 1.15rem; }
.l-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.l-footer nav a { color: var(--text-muted); font-size: 0.92rem; }
.l-footer nav a:hover { color: #fff; }
.l-footer .copy { color: var(--text-muted); font-size: 0.86rem; width: 100%; text-align: center; margin-top: 8px; }

/* ---- Landing assistant demo widget ---- */
.landing-assistant-root {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    color: #222938;
}
.landing-assistant-launcher,
.landing-assistant-panel,
.landing-assistant-chip,
.landing-assistant-send,
.landing-assistant-icon-button {
    font: inherit;
}
.landing-assistant-launcher {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 190px;
    min-height: 50px;
    padding: 7px 14px 7px 8px;
    border: 5px solid #fff;
    border-radius: 999px;
    background: #2f7bff;
    color: #fff;
    box-shadow: 0 18px 45px rgba(3, 9, 22, 0.32), 0 4px 12px rgba(46, 111, 255, 0.28);
    cursor: pointer;
    transition: transform .24s cubic-bezier(.2, .9, .2, 1), box-shadow .2s ease, opacity .2s ease, visibility .2s ease;
}
.landing-assistant-launcher:hover,
.landing-assistant-launcher:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(3, 9, 22, 0.42);
    outline: none;
}
.landing-assistant-root.is-open .landing-assistant-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(10px, 12px, 0) scale(0.82);
    visibility: hidden;
}
.landing-assistant-launcher-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(46, 111, 255, 0.15);
    flex: none;
}
.landing-assistant-launcher-avatar::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #18b77b;
    border: 2px solid #fff;
}
.landing-assistant-launcher-avatar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.landing-assistant-launcher-copy {
    display: grid;
    gap: 2px;
    text-align: left;
}
.landing-assistant-launcher-copy strong {
    font-size: 0.84rem;
    line-height: 1.1;
    white-space: nowrap;
}
.landing-assistant-launcher-copy small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
    line-height: 1.1;
    white-space: nowrap;
}
.landing-assistant-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    width: min(344px, calc(100vw - 28px));
    height: min(512px, calc(100vh - 92px));
    height: min(512px, calc(100dvh - 92px));
    overflow: hidden;
    border-radius: 20px;
    background: #eee8df;
    border: 1px solid rgba(24, 32, 50, 0.18);
    box-shadow: 0 26px 70px rgba(2, 8, 24, 0.40), 0 12px 26px rgba(2, 8, 24, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(20px, 24px, 0) scale(0.86);
    transform-origin: bottom right;
    transition: opacity .34s ease, transform .38s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
}
.landing-assistant-root.is-open .landing-assistant-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}
.landing-assistant-panel[hidden] {
    display: none !important;
}
.landing-assistant-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 77px;
    padding: 14px 18px;
    color: #fff;
    background: #2d876f;
}
.landing-assistant-header-logo {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    flex: none;
    box-shadow: 0 2px 8px rgba(7, 32, 25, 0.12);
}
.landing-assistant-header-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.landing-assistant-header-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.landing-assistant-header-copy strong {
    font-size: 1.02rem;
    line-height: 1.15;
}
.landing-assistant-header-copy small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    line-height: 1.2;
}
.landing-assistant-icon-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    flex: none;
}
.landing-assistant-icon-button:hover,
.landing-assistant-icon-button:focus-visible {
    background: rgba(0, 0, 0, 0.10);
    color: #fff;
    outline: none;
}
.landing-assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 12px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}
.landing-assistant-message {
    display: flex;
}
.landing-assistant-message.is-new {
    animation: landing-assistant-message-in .2s ease both;
}
.landing-assistant-message-user {
    justify-content: flex-end;
}
.landing-assistant-message-assistant {
    justify-content: flex-start;
}
.landing-assistant-bubble {
    max-width: 100%;
    padding: 11px 13px;
    border-radius: 15px;
    font-size: 0.88rem;
    line-height: 1.44;
    word-break: break-word;
}
.landing-assistant-bubble strong {
    font-weight: 850;
}
.landing-assistant-message-assistant .landing-assistant-bubble strong {
    color: #174ea6;
}
.landing-assistant-bubble em {
    color: #516071;
    font-style: italic;
}
.landing-assistant-bubble u {
    text-decoration-color: rgba(52, 111, 255, 0.42);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.landing-assistant-message-user .landing-assistant-bubble em {
    color: rgba(255, 255, 255, 0.86);
}
.landing-assistant-message-assistant .landing-assistant-bubble {
    background: #fff;
    color: #222938;
    border-bottom-left-radius: 7px;
    box-shadow: 0 9px 24px rgba(24, 32, 50, 0.09);
}
.landing-assistant-message-user .landing-assistant-bubble {
    background: #2e6fff;
    color: #fff;
    border-bottom-right-radius: 7px;
    max-width: 86%;
}
.landing-assistant-message.is-error .landing-assistant-bubble {
    background: #fff3f1;
    color: #9f2a1f;
}
.landing-assistant-loading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 54px;
}
.landing-assistant-loading span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b95a8;
    animation: landing-assistant-pulse 1s ease-in-out infinite;
}
.landing-assistant-loading span:nth-child(2) { animation-delay: .14s; }
.landing-assistant-loading span:nth-child(3) { animation-delay: .28s; }
@keyframes landing-assistant-pulse {
    0%, 100% { opacity: .35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}
@keyframes landing-assistant-message-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.landing-assistant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 0;
    max-height: 74px;
    overflow-y: auto;
    padding: 0 18px 14px;
}
.landing-assistant-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 7px 11px;
    border: 1px solid rgba(45, 135, 111, 0.22);
    border-radius: 999px;
    background: #fff;
    color: #21312d;
    font-size: 0.74rem;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.landing-assistant-chip:hover,
.landing-assistant-chip:focus-visible {
    border-color: rgba(45, 135, 111, 0.62);
    color: #216f5b;
    transform: translateY(-1px);
    outline: none;
}
.landing-assistant-chip-primary {
    background: #2d876f;
    color: #fff;
    border-color: #2d876f;
}
.landing-assistant-chip-primary:hover,
.landing-assistant-chip-primary:focus-visible {
    color: #fff;
    border-color: #216f5b;
}
.landing-assistant-whatsapp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 13px 10px;
    padding: 9px 10px;
    border: 1px solid rgba(37, 211, 102, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: #4b5b57;
    font-size: 0.76rem;
    line-height: 1.25;
}
.landing-assistant-whatsapp span {
    min-width: 0;
}
.landing-assistant-whatsapp a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #25D366;
    color: #07351a;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.18);
}
.landing-assistant-whatsapp a:hover,
.landing-assistant-whatsapp a:focus-visible {
    background: #2de072;
    outline: none;
}
.landing-assistant-whatsapp svg { flex: none; }
.landing-assistant-form {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 40px;
    align-items: end;
    gap: 8px;
    padding: 11px 13px 13px;
    border-top: 1px solid rgba(24, 32, 50, 0.08);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 -12px 24px rgba(238, 232, 223, 0.76);
}
.landing-assistant-input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    max-height: 96px;
    resize: none;
    border: 1px solid rgba(24, 32, 50, 0.12);
    border-radius: 15px;
    padding: 10px 12px;
    background: #fff;
    color: #182032;
    font-size: 0.86rem;
    line-height: 1.3;
    outline: none;
}
.landing-assistant-input:focus {
    border-color: rgba(45, 135, 111, 0.68);
    box-shadow: 0 0 0 3px rgba(45, 135, 111, 0.13);
}
.landing-assistant-send {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: #35cf5b;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(35, 171, 79, 0.24);
}
.landing-assistant-send:disabled,
.landing-assistant-input:disabled {
    opacity: .62;
    cursor: wait;
}
.landing-assistant-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    /* On narrower screens the text needs the office crop, not the wall logo crop. */
    .l-hero { aspect-ratio: auto; background-position: center, 74% center; min-height: 84vh; }
    .l-hero::before {
        background:
            linear-gradient(90deg, rgba(8, 10, 15, 0.92) 0%, rgba(8, 10, 15, 0.82) 52%, rgba(8, 10, 15, 0.46) 100%),
            linear-gradient(180deg, rgba(8, 10, 15, 0.30) 0%, rgba(8, 10, 15, 0.54) 45%, rgba(8, 10, 15, 0.88) 100%);
    }
    .l-hero .l-container { justify-content: flex-start; }
    .l-hero-copy { width: auto; min-width: 0; max-width: 600px; }
}
@media (max-width: 900px) {
    .l-grid-3, .l-steps { grid-template-columns: 1fr; }
    .l-stats { grid-template-columns: repeat(2, 1fr); }
    .l-nav-links { display: none; }
}
@media (max-width: 540px) {
    .l-stats { grid-template-columns: 1fr; }
    .l-hero {
        min-height: 82vh;
        background-position: center, 82% center;
    }
    .l-hero-copy { padding: 24px 0; }
    .l-hero-badge { display: none; }
    .l-nav-actions .l-nav-login { display: none; }
    .l-nav-actions { gap: 8px; }
    .l-nav-actions > .l-btn {
        padding: 11px 14px;
        font-size: 0.86rem;
    }
    .l-language-switcher {
        gap: 2px;
        padding: 3px;
    }
    .l-language-switcher a {
        min-width: 34px;
        min-height: 31px;
        padding: 5px 7px;
    }
    .l-language-switcher .language-text { display: none; }
    .landing-assistant-root {
        left: 10px;
        right: 10px;
        bottom: 14px;
    }
    .landing-assistant-launcher {
        margin-left: auto;
        min-width: 56px;
        width: 56px;
        height: 56px;
        padding: 0;
    }
    .landing-assistant-launcher-copy { display: none; }
    .landing-assistant-panel {
        left: auto;
        right: 0;
        bottom: 0;
        width: min(344px, 100%);
        height: min(500px, calc(100vh - 132px));
        height: min(500px, calc(100dvh - 132px));
        border-radius: 20px;
        transform-origin: bottom center;
    }
    .landing-assistant-header {
        min-height: 68px;
        padding: 12px 14px;
        gap: 10px;
    }
    .landing-assistant-header-logo {
        width: 42px;
        height: 42px;
    }
    .landing-assistant-header-logo img {
        width: 30px;
        height: 30px;
    }
    .landing-assistant-messages {
        padding: 14px 14px 10px;
    }
    .landing-assistant-actions {
        max-height: 70px;
        padding: 0 14px 12px;
    }
    .landing-assistant-form {
        padding: 10px;
    }
    .landing-assistant-whatsapp {
        align-items: stretch;
        flex-direction: column;
    }
    .landing-assistant-whatsapp a { width: 100%; }
}

/* ===================== DEMO BOOKING (/demo) ===================== */
.demo-wrap { padding: 120px 0 80px; }
.demo-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.demo-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 12px; }
.demo-head .lead { color: var(--text-muted); font-size: 1.08rem; }

.demo-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    padding: 24px;
}
.demo-unavailable { text-align: center; max-width: 560px; margin: 0 auto; }
.demo-unavailable h2 { margin-bottom: 10px; }
.demo-unavailable p { color: var(--text-muted); margin-bottom: 20px; }

/* Guided stepper */
.demo-stepper {
    max-width: 560px;
    margin: 0 auto;
    padding: 22px 24px 28px;
    scroll-margin-top: 90px;
}
.demo-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.demo-steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.demo-steps li:not(:last-child)::after {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--border-strong);
    margin-left: 8px;
}
.demo-step-num {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    font-size: 0.78rem;
}
.demo-steps li.is-active { color: var(--text-on-dark); }
.demo-steps li.is-active .demo-step-num {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}
.demo-steps li.is-done .demo-step-num {
    background: rgba(46, 111, 255, 0.18);
    border-color: transparent;
    color: var(--accent-ia);
}

.demo-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.demo-summary-chip {
    border: 1px solid var(--border-strong);
    background: rgba(46, 111, 255, 0.1);
    color: var(--text-on-dark);
    border-radius: 999px;
    padding: 7px 14px;
    font: 600 0.85rem var(--font);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.demo-summary-chip:hover { background: rgba(46, 111, 255, 0.2); border-color: var(--brand-blue); }

.demo-step-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}
.demo-back {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--text-muted);
    font: 600 0.86rem var(--font);
    cursor: pointer;
    padding: 0;
    transition: color .15s ease;
}
.demo-back:hover { color: var(--brand-blue); }
.demo-form-hint { color: var(--text-muted); font-size: 0.9rem; margin: -6px 0 16px; }

.demo-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.demo-cal-head strong { font-size: 1.1rem; text-transform: capitalize; }
.demo-cal-nav {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-on-dark);
    font-size: 1.3rem; line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.demo-cal-nav:hover { background: rgba(255, 255, 255, 0.1); }
.demo-cal-weekdays, .demo-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.demo-cal-weekdays {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.demo-cal-blank { aspect-ratio: 1; }
.demo-cal-day {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-on-dark);
    font: 600 0.95rem var(--font);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.demo-cal-day:hover:not(:disabled) { background: rgba(46, 111, 255, 0.22); transform: translateY(-1px); }
.demo-cal-day:disabled { opacity: 0.28; cursor: default; }
.demo-cal-day:not(:disabled) { border-color: var(--border-strong); }
.demo-cal-day.is-selected {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(46, 111, 255, 0.4);
}

.demo-panel-title { font-size: 1.1rem; margin-bottom: 16px; }
.demo-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 10px;
}
.demo-slots-empty { color: var(--text-muted); grid-column: 1 / -1; }
.demo-slot {
    padding: 12px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-on-dark);
    font: 600 0.95rem var(--font);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.demo-slot:hover { background: rgba(46, 111, 255, 0.22); transform: translateY(-1px); }
.demo-slot.is-selected { background: var(--brand-gradient); border-color: transparent; color: #fff; }

.demo-form { display: flex; flex-direction: column; gap: 14px; }
.demo-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.demo-form input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface-sunken);
    color: var(--text-on-dark);
    font: 500 0.98rem var(--font);
}
.demo-form input:focus { outline: none; border-color: var(--brand-blue); }
.demo-form-error { color: #ff8a8a; font-size: 0.9rem; margin: 0; }
.demo-form button { margin-top: 6px; }

.demo-confirm { text-align: center; padding: 16px 0; }
.demo-confirm-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(46, 111, 255, 0.16);
    color: var(--accent-ia);
}
.demo-confirm h2 { margin-bottom: 8px; }
.demo-confirm p { color: var(--text-muted); }
.demo-confirm [data-confirm-when] { color: var(--text-on-dark); font-weight: 700; font-size: 1.1rem; }
.demo-confirm button { margin-top: 18px; }

@media (max-width: 820px) {
    .demo-wrap { padding: 100px 0 56px; }
    .demo-head { margin-bottom: 28px; }
    .demo-stepper { padding: 18px 16px 24px; }
    .demo-slots { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}
