@font-face {
            font-family: "Quicksand";
            src: url("/assets/fonts/Quicksand.ttf") format("truetype");
            font-style: normal;
            font-weight: 400 700;
            font-display: swap;
        }

        @font-face {
            font-family: "Nunito";
            src: url("/assets/fonts/Nunito-Bold.ttf") format("truetype");
            font-style: normal;
            font-weight: 700;
            font-display: swap;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            font-family: "Quicksand", Arial, Helvetica, sans-serif;
            background: var(--background);
            color: var(--text-primary);
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        a {
            color: inherit;
        }

        button,
        a {
            -webkit-tap-highlight-color: transparent;
        }

        .container {
            width: min(var(--content-width), calc(100% - 40px));
            margin: 0 auto;
        }

        /* =====================================================
           Header
           Inspirado en la estructura limpia de MOQ Omnicanal,
           usando exclusivamente la identidad PAESPlus.
           ===================================================== */

        .app-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
        }

        .app-header__main {
            min-height: var(--header-height);
            width: min(var(--content-width), calc(100% - 40px));
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .brand {
            min-width: 0;
            display: inline-flex;
            align-items: center;
            gap: 11px;
            text-decoration: none;
        }

        .brand__mark {
            width: 42px;
            height: 42px;
            flex: 0 0 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background:
                linear-gradient(
                    145deg,
                    var(--primary-dark),
                    var(--primary)
                );
            color: #fff;
            font-family: "Nunito", sans-serif;
            font-size: 16px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -.03em;
            box-shadow:
                0 8px 18px color-mix(
                    in srgb,
                    var(--primary-dark) 18%,
                    transparent
                );
        }

        .brand__copy {
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        .brand__copy strong {
            overflow: hidden;
            font-family: "Nunito", sans-serif;
            color: var(--primary-dark);
            font-size: 16px;
            font-weight: 700;
            line-height: 1.2;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .brand__copy small {
            overflow: hidden;
            margin-top: 2px;
            color: var(--text-secondary);
            font-size: 10.5px;
            font-weight: 500;
            line-height: 1.25;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .app-header__actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /*
         * Acceso unido y deliberadamente liviano:
         * comportamiento visual equivalente al patrón user-menu
         * de Omni: borde transparente en reposo, fondo suave en hover.
         */
        .access-control {
            min-height: 42px;
            display: inline-flex;
            align-items: stretch;
            overflow: hidden;
            border: 1px solid transparent;
            border-radius: 12px;
            background: transparent;
            transition:
                background-color 160ms ease,
                border-color 160ms ease;
        }

        .access-control:hover,
        .access-control:focus-within {
            border-color: var(--border);
            background: var(--background);
        }

        .access-control a {
            min-height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 12px;
            text-decoration: none;
            font-family: "Nunito", sans-serif;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
            transition:
                color 160ms ease,
                background-color 160ms ease;
        }

        .access-control__login {
            color: var(--text-primary);
        }

        .access-control__login:hover {
            color: var(--primary-dark);
        }

        .access-control__start {
            position: relative;
            color: var(--primary);
        }

        .access-control__start::before {
            content: "";
            position: absolute;
            top: 10px;
            bottom: 10px;
            left: 0;
            width: 1px;
            background: var(--border);
        }

        .access-control__start:hover {
            color: var(--primary-dark);
            background:
                color-mix(
                    in srgb,
                    var(--primary) 7%,
                    transparent
                );
        }

        .mobile-menu-button {
            width: 42px;
            height: 42px;
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 4px;
            padding: 0;
            border: 1px solid transparent;
            border-radius: 12px;
            background: transparent;
            cursor: pointer;
            transition:
                background-color 160ms ease,
                border-color 160ms ease;
        }

        .mobile-menu-button:hover,
        .mobile-menu-button[aria-expanded="true"] {
            border-color: var(--border);
            background: var(--background);
        }

        .mobile-menu-button span {
            width: 17px;
            height: 2px;
            border-radius: 2px;
            background: var(--primary-dark);
        }

        .main-navigation {
            min-height: var(--navigation-height);
            border-top: 1px solid var(--soft);
            background: var(--surface);
        }

        .main-navigation__inner {
            min-height: var(--navigation-height);
            width: min(var(--content-width), calc(100% - 40px));
            margin: 0 auto;
            display: flex;
            align-items: stretch;
            gap: 3px;
        }

        .nav-link {
            position: relative;
            display: inline-flex;
            align-items: center;
            padding: 0 13px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
            transition:
                color 160ms ease,
                background-color 160ms ease;
        }

        .nav-link:hover {
            color: var(--primary-dark);
            background: var(--background);
        }

        .nav-link:first-child {
            margin-left: -13px;
        }

        /* =====================================================
           Contenido
           ===================================================== */

        section {
            padding: 72px 0;
        }

        .hero {
            min-height: 560px;
            display: flex;
            align-items: center;
        }

        .hero h1 {
            max-width: 780px;
            margin: 0 0 24px;
            font-family: "Nunito", sans-serif;
            font-size: clamp(2.6rem, 7vw, 5rem);
            font-weight: 700;
            line-height: .98;
            letter-spacing: -.025em;
        }

        .hero p {
            max-width: 700px;
            margin: 0;
            font-size: 1.2rem;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .section-title {
            margin: 0 0 12px;
            font-family: "Nunito", sans-serif;
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 700;
            letter-spacing: -.015em;
        }

        .section-subtitle {
            max-width: 780px;
            margin: 0;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .tabs {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-top: 32px;
        }

        .tab {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 22px;
        }

        .tab strong {
            display: block;
            margin-bottom: 8px;
            font-family: "Nunito", sans-serif;
            color: var(--primary);
        }

        .tab h3 {
            margin-top: 0;
            font-family: "Nunito", sans-serif;
            font-weight: 700;
        }

        .section-actions {
            margin-top: 28px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .button {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 16px;
            border: 1px solid transparent;
            border-radius: 11px;
            text-decoration: none;
            font-family: "Nunito", sans-serif;
            font-size: 13px;
            font-weight: 700;
            transition:
                background-color 160ms ease,
                border-color 160ms ease,
                color 160ms ease;
        }

        .button-primary {
            color: #fff;
            background: var(--primary);
            border-color: var(--primary);
        }

        .button-primary:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
        }

        .button-outline {
            color: var(--primary);
            background: transparent;
            border-color: var(--border);
        }

        .button-outline:hover {
            color: var(--primary-dark);
            background: var(--background);
        }

        @media (max-width: 900px) {
            .tabs {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 760px) {
            :root {
                --header-height: 62px;
            }

            .app-header__main,
            .main-navigation__inner,
            .container {
                width: min(100% - 28px, var(--content-width));
            }

            .brand__copy small {
                display: none;
            }

            .mobile-menu-button {
                display: inline-flex;
            }

            .main-navigation {
                display: none;
                max-height: calc(100vh - var(--header-height));
                overflow-y: auto;
                border-top: 1px solid var(--border);
            }

            .main-navigation--open {
                display: block;
            }

            .main-navigation__inner {
                display: flex;
                align-items: stretch;
                flex-direction: column;
                gap: 2px;
                padding: 10px 0 14px;
            }

            .nav-link,
            .nav-link:first-child {
                min-height: 42px;
                margin-left: 0;
                padding: 0 13px;
                border-radius: 9px;
            }

            .nav-link:hover {
                background:
                    color-mix(
                        in srgb,
                        var(--primary) 8%,
                        transparent
                    );
            }

            .hero {
                min-height: auto;
                padding-top: 76px;
                padding-bottom: 76px;
            }

            .tabs {
                grid-template-columns: 1fr;
            }

            section {
                padding: 52px 0;
            }
        }

        @media (max-width: 520px) {
            .brand__copy {
                display: none;
            }

            .app-header__actions {
                gap: 5px;
            }

            .access-control a {
                padding: 0 10px;
                font-size: 11.5px;
            }

            .brand__mark {
                width: 40px;
                height: 40px;
                flex-basis: 40px;
            }
        }
