/* =========================================================
   DR. OCUPACIONAL · ALIEMN
   Tema visual general
   ========================================================= */

:root {
    /* Compatibilidad con vistas actuales */
    --orange: #97BE57 !important;
    --orange-dark: #7EA342 !important;
    --orange-soft: #F1F7E8 !important;

    --brand: #97BE57 !important;
    --brand2: #074045 !important;
    --accent: #97BE57 !important;

    --charcoal: #074045 !important;
    --ink: #074045 !important;
    --text: #074045 !important;

    --gray: #6F7F80 !important;
    --gray-secondary: #A7B0AE !important;
    --muted: #6F7F80 !important;

    --gray-light: #F5F7F3 !important;
    --bg: #F5F7F3 !important;
    --background: #F5F7F3 !important;

    --white: #FFFFFF !important;
    --card: #FFFFFF !important;
    --surface: #FFFFFF !important;

    --border: #D8E1DA !important;

    --orange-soft-2: rgba(151, 190, 87, .16) !important;
    --gray-soft: rgba(7, 64, 69, .08) !important;
    --ink-soft: rgba(7, 64, 69, .08) !important;
}


/* =========================================================
   FONDOS GENERALES
   ========================================================= */

body {
    color: #074045;
}

body:not(.filament-body) {
    background:
        radial-gradient(
            circle at 10% 8%,
            rgba(151, 190, 87, .11),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #F5F7F3 100%
        );
}


/* =========================================================
   LOGIN / REGISTRO / PERFIL
   ========================================================= */

.brand-panel {
    background:
        linear-gradient(
            145deg,
            #074045 0%,
            #0B555A 100%
        ) !important;
}

.brand-panel::before {
    background:
        rgba(151, 190, 87, .22) !important;
}

.brand-panel::after {
    border-color:
        rgba(151, 190, 87, .12) !important;
}

.logo-box {
    background: #FFFFFF !important;
}

.eyebrow,
.form-kicker {
    color: #97BE57 !important;
}

.eyebrow::before {
    background: #97BE57 !important;
}

.brand-feature span:first-child {
    color: #97BE57 !important;
}

.submit-btn {
    background: #97BE57 !important;
    border-color: #97BE57 !important;
    color: #074045 !important;
}

.submit-btn:hover {
    background: #86AA4E !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #97BE57 !important;
    box-shadow:
        0 0 0 3px rgba(151, 190, 87, .14) !important;
}


/* =========================================================
   HOSPITAL
   ========================================================= */

.topbar {
    background: #074045 !important;
    border-bottom-color: #97BE57 !important;
}

.topbar a:hover {
    color: #97BE57 !important;
}

.nav2 {
    border-bottom-color:
        rgba(7, 64, 69, .15) !important;
}

.nav2__menu a:hover,
.nav2__mobile a:hover {
    background:
        rgba(151, 190, 87, .13) !important;
    color: #074045 !important;
}

.nav2__btn--primary {
    background: #97BE57 !important;
    border-color: #97BE57 !important;
    color: #074045 !important;
}

.nav2__btn--primary:hover {
    background: #86AA4E !important;
}

header {
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(151, 190, 87, .18),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #F5F7F3 100%
        ) !important;
}

footer {
    background: #074045 !important;
}

footer h4::after {
    background: #97BE57 !important;
}

footer a:hover {
    color: #97BE57 !important;
}


/* Botón invitado del hospital */
#dr-login-launcher {
    background: #97BE57 !important;
    border-color: #FFFFFF !important;
    color: #074045 !important;
}


/* =========================================================
   ENCUESTAS
   ========================================================= */

.survey-page {
    background:
        radial-gradient(
            circle at top right,
            rgba(151, 190, 87, .17),
            transparent 35%
        ),
        #F5F7F3 !important;
}

.survey-card {
    border:
        1px solid rgba(7, 64, 69, .10);
}

.survey-top {
    border-bottom-color: #D8E1DA !important;
}

.survey-top .brand {
    color: #074045 !important;
}

.survey-top .company,
.survey-meta,
.survey-intro p,
.progress-info {
    color: #6F7F80 !important;
}

.survey-brand-logo {
    width: 115px;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

.survey-top .brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.survey-top .brand span {
    font-weight: 800;
}

.survey-content .btn {
    background: #97BE57 !important;
    color: #074045 !important;
}

.survey-content .btn:hover {
    background: #86AA4E !important;
}

.progress-bar {
    background: #97BE57 !important;
}

.option:hover,
.scale label:hover {
    border-color: #97BE57 !important;
}

.option:hover {
    background: #F4F8EC !important;
}


/* =========================================================
   LOGOS
   ========================================================= */

.logo-box img,
.mobile-logo img {
    max-width: 200px;
    max-height: 72px;
    object-fit: contain;
}

.jvjv-logo {
    max-width: 220px !important;
    height: 58px !important;
    object-fit: contain !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
    .survey-brand-logo {
        width: 95px;
    }

    .survey-top .brand {
        gap: 10px;
    }
}

/* =========================================================
   LOGOS ALIEMN - CORRECCIÓN DEFINITIVA
   ========================================================= */

/*
 * El SVG de Aliemn contiene colores que no siempre contrastan
 * con los fondos del Dr. Ocupacional.
 *
 * En lugar de alterar el SVG, usamos el SVG como máscara.
 * De esta forma TODO el logo se pinta del color que queremos.
 */


/* =========================================================
   LOGIN / REGISTRO / PERFIL - ESCRITORIO
   Fondo verde: logo completamente blanco
   ========================================================= */

.logo-box {
    position: relative !important;

    width: 170px !important;
    height: 52px !important;

    padding: 0 !important;
    margin-bottom: 46px !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: visible !important;
}

/* Conservamos el IMG del HTML pero no lo mostramos */
.logo-box > img {
    opacity: 0 !important;

    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    pointer-events: none !important;
}

/* Dibujamos el logo completo en blanco */
.logo-box::after {
    content: "" !important;

    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    background-color: #FFFFFF !important;

    -webkit-mask-image: url("/img/aliemn-logo.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    -webkit-mask-size: contain;

    mask-image: url("/img/aliemn-logo.svg");
    mask-repeat: no-repeat;
    mask-position: left center;
    mask-size: contain;

    pointer-events: none !important;
}


/* =========================================================
   LOGIN / REGISTRO / PERFIL - MÓVIL
   ========================================================= */

.mobile-logo {
    position: relative !important;

    width: 175px !important;
    height: 58px !important;

    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 28px !important;

    padding: 10px 14px !important;

    background: #074045 !important;

    border-radius: 12px !important;

    overflow: hidden !important;
}

/* Ocultar solamente la imagen física */
.mobile-logo > img {
    opacity: 0 !important;

    width: 1px !important;
    height: 1px !important;
}

/* Logo blanco sobre base verde */
.mobile-logo::after {
    content: "" !important;

    position: absolute !important;

    top: 10px !important;
    right: 14px !important;
    bottom: 10px !important;
    left: 14px !important;

    background-color: #FFFFFF !important;

    -webkit-mask-image: url("/img/aliemn-logo.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-image: url("/img/aliemn-logo.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    pointer-events: none !important;
}


/* =========================================================
   HOSPITAL
   Reemplaza visualmente el espacio que antes usaba JVJV
   sin importar que la clase siga llamándose jvjv-logo
   ========================================================= */

.nav2__brand {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    width: 165px !important;
    height: 50px !important;

    flex: 0 0 165px !important;
}

/* Ya no mostramos visualmente el logo viejo */
.nav2__brand .jvjv-logo {
    display: none !important;
}

/* ALIEMN en verde oscuro sobre navbar blanca */
.nav2__brand::before {
    content: "" !important;

    display: block !important;

    width: 165px !important;
    height: 46px !important;

    background-color: #074045 !important;

    -webkit-mask-image: url("/img/aliemn-logo.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    -webkit-mask-size: contain;

    mask-image: url("/img/aliemn-logo.svg");
    mask-repeat: no-repeat;
    mask-position: left center;
    mask-size: contain;

    pointer-events: none !important;
}


/* =========================================================
   ENCUESTAS
   ========================================================= */

.survey-brand-logo {
    display: none !important;
}

.survey-top .brand::before {
    content: "" !important;

    display: block !important;

    width: 125px !important;
    height: 44px !important;

    flex: 0 0 125px !important;

    background-color: #074045 !important;

    -webkit-mask-image: url("/img/aliemn-logo.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    -webkit-mask-size: contain;

    mask-image: url("/img/aliemn-logo.svg");
    mask-repeat: no-repeat;
    mask-position: left center;
    mask-size: contain;
}


/* =========================================================
   RESPONSIVE HOSPITAL
   ========================================================= */

@media (max-width: 760px) {

    .nav2__brand {
        width: 125px !important;
        height: 44px !important;
        flex-basis: 125px !important;
    }

    .nav2__brand::before {
        width: 125px !important;
        height: 40px !important;
    }

}