:root {
    --color-fondo: #e3f6ff;
    --color-texto: #1f2937;
    --color-primario: #1a73b8;
    --color-primario-hover: #005c97;
    --color-secundario: #ffffff;
    --color-borde: #9fd4ff;
    --color-azul-texto: #1e3a5f;
    --marca-gradiente: linear-gradient(90deg, #0d9488 0%, #6d28d9 55%, #f0645a 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #e3f6ff 0%, #b3e0ff 60%, #eaf6ff 100%);
    color: var(--color-texto);
}

.presentation-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 255, 255, .55), transparent 58%);
}

.home-welcome {
    position: relative;
    width: min(720px, calc(100% - 2rem));
    padding: 2.5rem 1rem 2rem;
    text-align: center;
}

.home-welcome__intro {
    font-size: 1.35rem;
    color: #3b4a63;
    font-weight: 500;
}

.home-welcome__brand {
    margin: .1rem 0 0;
    font-size: clamp(3.5rem, 12vw, 4.2rem);
    line-height: 1.1;
}

.brand-text__app--grc {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-reg {
    color: var(--color-azul-texto);
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: .75rem;
    vertical-align: top;
}

.home-welcome__latin {
    color: var(--color-azul-texto);
    font-weight: 700;
    letter-spacing: 8px;
    font-size: .95rem;
    margin-top: -.2rem;
}

.home-welcome__sub {
    color: #5b5b6b;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: .8rem;
    margin-top: .35rem;
}

.home-welcome__hint {
    color: #6c757d;
    margin: 1.6rem 0 2rem;
    font-size: 1.05rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.button {
    display: inline-block;
    min-width: 130px;
    padding: .7rem 1.5rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

    .button.primary {
        background: var(--color-primario);
        color: #ffffff;
        box-shadow: 0 .25rem .75rem rgba(0, 92, 151, .18);
    }

        .button.primary:hover {
            background: var(--color-primario-hover);
            transform: translateY(-2px);
        }

@media (max-width: 480px) {
    .home-welcome {
        padding-inline: .5rem;
    }

    .home-welcome__sub {
        letter-spacing: 2px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Acciones de la landing: acabado translúcido sin borde lineal. */
.actions .button.primary,
.actions .button.secondary {
    border: 0;
    background: rgba(255, 255, 255, .23);
    color: #1e3a5f !important;
    -webkit-text-fill-color: #1e3a5f;
    box-shadow: 0 .2rem .55rem rgba(0, 92, 151, .1);
}

.actions .button.primary:hover,
.actions .button.secondary:hover {
    border: 0;
    background: rgba(231, 240, 251, .35);
    color: #1e3a5f !important;
    -webkit-text-fill-color: #1e3a5f;
    transform: translateY(-2px);
}

    .button.secondary {
        background: var(--color-secundario);
        color: var(--color-primario);
        border: 1px solid var(--color-primario);
    }

        .button.secondary:hover {
            background: #ecfdf5;
            transform: translateY(-2px);
        }

html,
body {
    min-width: 320px;
    min-height: 100%;
}

body.presentation-page {
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fafdff 0%, #e3f6ff 100%);
}

.presentation-page::before {
    z-index: 0;
    background-image: url("/images/brand/FondoWorkerArea.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .14;
}

.landing-page {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: center;
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
    min-height: calc(100vh - 74px);
}

.presentation-copy {
    max-width: 700px;
    padding: 2rem 0;
    text-align: left;
}

.brand-presentation {
    margin-bottom: 1.5rem;
    text-align: center;
}

.brand-presentation__name {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
}

.brand-text__app {
    background: linear-gradient(90deg, #0d9488 0%, #6d28d9 55%, #f0645a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 4px;
}

.brand-presentation__name sup {
    color: #1e3a5f;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: .7rem;
    vertical-align: top;
}

.brand-presentation__latin {
    margin-top: .2rem;
    color: #1e3a5f;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .35em;
}

.brand-presentation__sub {
    margin-top: .25rem;
    color: #1e3a5f;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.brand-presentation__tagline {
    margin-top: .45rem;
    color: #536579;
    font-size: .9rem;
    font-style: italic;
}

.presentation-copy__eyebrow {
    margin: 0 0 .75rem;
    color: #0d9488;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.presentation-copy h1 {
    max-width: 650px;
    margin: 0 0 1.25rem;
    color: #1e3a5f;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.presentation-copy__text {
    max-width: 620px;
    margin: 0 auto 1rem;
    color: #536579;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    text-align: center;
}

.presentation-copy__lead {
    max-width: 650px;
    margin: 0 auto 1rem;
    color: #1e3a5f;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.feature-card {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(30, 58, 95, .12);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .26);
}

.feature-card h2 {
    margin: 0 0 .65rem;
    color: #1e3a5f;
    font-size: 1.05rem;
}

.feature-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #536579;
    font-size: .9rem;
    line-height: 1.5;
}

.feature-card li + li {
    margin-top: .35rem;
}

.site-footer {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
    padding: .8rem 0 1rem;
    border-top: 1px solid rgba(30, 58, 95, .12);
    color: #6c7d8f;
    font-size: .78rem;
    line-height: 1.5;
    text-align: center;
}

.public-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
    padding: .5rem clamp(1rem, 6vw, 5rem);
    color: #fff;
    background: linear-gradient(135deg, #1a73b8 0%, #1a73b8 45%, #9fd4ff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #fff;
    text-decoration: none;
}

.public-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.public-brand__logo {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
}

.public-brand__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.public-brand__name {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.public-brand__name sup {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: .55rem;
    vertical-align: top;
}

.public-brand__tagline {
    margin-top: .15rem;
    color: rgba(255, 255, 255, .9);
    font-size: .7rem;
    white-space: nowrap;
}

.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.language-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: .55rem;
    font-weight: 700;
    line-height: 1;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 133px;
    padding: .35rem .55rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    color: #1f2937;
    background: #e9ecef;
    font: .85rem "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
}

.language-chevron {
    margin-left: auto;
    font-size: .9rem;
}

.language-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    z-index: 10;
    width: 128px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    border: 1px solid #adb5bd;
    border-radius: 0 0 .35rem .35rem;
    background: #fff;
    box-shadow: 0 .2rem .4rem rgba(0, 0, 0, .12);
}

.language-menu button {
    display: block;
    width: 100%;
    padding: .38rem .55rem;
    border: 0;
    color: #212529;
    background: #fff;
    font: .85rem "Segoe UI", system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
}

.language-menu button img {
    width: 16px;
    height: 11px;
    margin-right: .35rem;
    object-fit: cover;
    vertical-align: -1px;
}

.language-menu button:hover,
.language-menu button.active {
    color: #fff;
    background: #0d6efd;
}

.language-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: .38rem .55rem;
    color: #212529;
    background: #fff;
    font: .85rem "Segoe UI", system-ui, sans-serif;
    text-decoration: none;
}

.language-menu a:hover,
.language-menu a.active {
    color: #fff;
    background: #0d6efd;
}

.language-menu .flag-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 11px;
    margin-right: .35rem;
    object-fit: cover;
    vertical-align: -1px;
}

@media (max-width: 700px) {
    .landing-page {
        grid-template-columns: 1fr;
        width: min(100% - 2rem, 720px);
        gap: 0;
        padding: 1rem 0 2rem;
    }

    .presentation-copy {
        padding: 1rem 0 0;
        text-align: center;
    }

    .presentation-copy h1 {
        font-size: 2.25rem;
    }

    .presentation-copy__text {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        width: min(100% - 2rem, 720px);
    }
}

.layout-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    flex: 0 0 24px;
    width: 24px;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a73b8 0%, #1a73b8 45%, #9fd4ff 100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, .04);
}

.main-content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #fafdff 0%, #e3f6ff 100%);
}

.main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/brand/FondoWorkerArea.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .12;
    pointer-events: none;
}

.work-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 .45rem;
    color: #fff;
    background: linear-gradient(135deg, #1a73b8 0%, #1a73b8 45%, #9fd4ff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.sidebar-toggle {
    border: 0;
    padding: .2rem .45rem;
    color: #fff;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
}

.user-badge {
    margin-left: auto;
    margin-right: .55rem;
    color: #1f2937;
    font-size: .72rem;
    line-height: 1.05;
    text-align: right;
}

.user-badge span {
    display: block;
    color: #5b6778;
}

.security-badge {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #3e8ed0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 2px 5px rgba(0, 92, 151, .25);
}

#mainContent {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.home-welcome {
    width: 100%;
    max-width: 720px;
    padding: 2rem 1rem;
    text-align: center;
}

.home-welcome__intro {
    font-size: 1.1rem;
}

.home-welcome__logo {
    display: block;
    width: min(230px, 55vw);
    height: auto;
    margin: .25rem auto 0;
}

.home-welcome__hint {
    margin: 1.25rem 0 2rem;
    color: #6c757d;
    font-size: .95rem;
}

.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding: .75rem 10%;
    border-top: 1px solid rgba(255, 255, 255, .45);
    color: #6c757d;
    font-size: .75rem;
}

.footer-brand {
    color: #0d9488;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 700;
}

@media (max-width: 480px) {
    .public-header {
        min-height: 62px;
        padding-inline: .75rem;
    }

    .public-brand img {
        width: 42px;
        height: 42px;
    }

    .public-brand__name {
        font-size: 1.2rem;
    }

    .language-toggle {
        min-width: 128px;
    }

    .home-welcome {
        padding-top: 2.5rem;
    }

    .site-footer {
        padding-inline: 1rem;
    }
}
