/* Mobile welcome panel — white background */
@media (max-width: 768px) {
    html,
    body {
        min-height: 100dvh;
        margin: 0;
        background: #ffffff !important;
        overflow: hidden;
    }

    body::before,
    body::after {
        display: none !important;
    }

    body .menu-logo,
    body .main-content,
    body .home-calendar-backdrop {
        display: none !important;
    }

    body .header {
        display: flex !important;
        justify-content: flex-end;
        align-items: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 600;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        pointer-events: none;
    }

    body .header .logo-container {
        display: none !important;
    }

    body .header .hamburger-menu {
        pointer-events: auto;
    }

    body.mobile-menu-open > .header.header--home {
        z-index: 50000;
    }

    #mobile-home-flow {
        box-sizing: border-box;
        position: fixed;
        inset: 0;
        z-index: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        padding:
            max(1.25rem, env(safe-area-inset-top, 0px))
            max(1.25rem, env(safe-area-inset-right, 0px))
            max(1.25rem, env(safe-area-inset-bottom, 0px))
            max(1.25rem, env(safe-area-inset-left, 0px));
        background: #ffffff;
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        -webkit-font-smoothing: antialiased;
        color: #1f3344;
    }

    #mobile-home-flow[hidden] {
        display: none !important;
    }

    #mobile-home-flow *,
    #mobile-home-flow *::before,
    #mobile-home-flow *::after {
        box-sizing: border-box;
    }

    #mobile-home-flow .mobile-flow-intro-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 380px;
        animation: mobileFlowCardIn 0.28s ease;
    }

    #mobile-home-flow .mobile-flow-intro-panel[hidden] {
        display: none !important;
    }

    #mobile-home-flow .mobile-flow-card {
        width: 100%;
        max-width: 380px;
        margin: 0;
        background: #ffffff;
        border: 1px solid rgba(31, 51, 68, 0.12);
        border-radius: 22px;
        padding: 1.75rem 1.5rem;
        box-shadow: 0 8px 32px rgba(31, 51, 68, 0.08);
    }

    #mobile-home-flow > .mobile-flow-card {
        animation: mobileFlowCardIn 0.28s ease;
    }

    @keyframes mobileFlowCardIn {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #mobile-home-flow .mobile-flow-logo {
        display: block;
        width: min(120px, 44vw);
        height: auto;
        margin: 0 auto 1rem;
    }

    #mobile-home-flow .mobile-flow-intro {
        margin: 0 0 1.5rem;
        font-size: 1.125rem;
        font-weight: 400;
        line-height: 1.6;
        letter-spacing: 0.01em;
        color: #1f3344;
    }

    #mobile-home-flow #mobile-flow-intro-card {
        --hero-space-actions: 10px;
        --hero-cta-width: 15rem;
    }

    #mobile-home-flow .mobile-flow-intro--contact {
        margin-bottom: 1.25rem;
        font-weight: 500;
    }

    #mobile-home-flow .mobile-flow-back {
        display: inline-flex;
        align-items: center;
        margin: 0 0 1rem;
        padding: 0;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 500;
        color: rgba(31, 51, 68, 0.82);
        background: none;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    #mobile-home-flow .mobile-flow-back:hover,
    #mobile-home-flow .mobile-flow-back:focus-visible {
        color: #1f3344;
    }

    #mobile-home-flow .mobile-flow-back:focus-visible {
        outline: 2px solid rgba(31, 51, 68, 0.35);
        outline-offset: 2px;
        border-radius: 4px;
    }

    #mobile-home-flow .mobile-flow-actions {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #mobile-home-flow .mobile-flow-btn {
        display: block;
        width: 100%;
        min-height: 52px;
        margin: 0;
        padding: 0.875rem 1.25rem;
        font: inherit;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: 0.01em;
        color: #1f3344;
        text-align: center;
        text-decoration: none;
        background: #f4f6f8;
        border: 1px solid rgba(31, 51, 68, 0.12);
        border-radius: 14px;
        box-shadow: none;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        transition: background 0.18s ease, border-color 0.18s ease;
        -webkit-tap-highlight-color: transparent;
    }

    #mobile-home-flow .mobile-flow-btn--stacked {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-height: 58px;
    }

    #mobile-home-flow .mobile-flow-btn-label {
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.2;
    }

    #mobile-home-flow .mobile-flow-btn-detail {
        font-size: 0.8125rem;
        font-weight: 400;
        line-height: 1.3;
        color: rgba(31, 51, 68, 0.82);
    }

    #mobile-home-flow .mobile-flow-btn--whatsapp {
        background: #eefbf3;
        border-color: rgba(37, 211, 102, 0.35);
        color: #14532d;
    }

    #mobile-home-flow .mobile-flow-btn--whatsapp .mobile-flow-btn-label {
        color: #14532d;
    }

    #mobile-home-flow .mobile-flow-btn--whatsapp .mobile-flow-btn-detail {
        color: rgba(20, 83, 45, 0.88);
    }

    #mobile-home-flow .mobile-flow-btn:hover,
    #mobile-home-flow .mobile-flow-btn:focus-visible {
        background: #e8edf2;
        border-color: rgba(31, 51, 68, 0.22);
        color: #1f3344;
    }

    #mobile-home-flow .mobile-flow-btn--whatsapp:hover,
    #mobile-home-flow .mobile-flow-btn--whatsapp:focus-visible {
        background: #dff5e8;
        border-color: rgba(37, 211, 102, 0.5);
    }

    #mobile-home-flow .mobile-flow-btn:active {
        transform: scale(0.985);
    }

    #mobile-home-flow .mobile-flow-btn:focus-visible {
        outline: 2px solid rgba(31, 51, 68, 0.35);
        outline-offset: 2px;
    }
}

@media (min-width: 769px) {
    #mobile-home-flow {
        display: none !important;
    }
}

.home-copy-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10000;
    margin: 0;
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    color: #1f3344;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(31, 51, 68, 0.12);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(31, 51, 68, 0.15);
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.home-copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
