/***********************************************************/
/*                                                         */
/* Plataforma e-ducativa - Argentina                       */
/*                                                         */
/* Copyright (c) 2026 de e-ducativa Educación Virtual S.A. */
/*                                                         */
/***********************************************************/
/*  Skin axis2 - Tema (vista de usuario y administracion)
    Axis 2.0: la linea de Axis sobre el motor de temas. Superficies blancas
    solidas sobre gris claro, sin vidrio ni degradados, la barra lateral en
    el color del campus y tipografia Roboto. Lo mas parecido posible a Axis:
    paneles rectos, campos y botones de 4px, titulos sin negrita, rotulos como se
    escriben y la altura de los campos de Axis.

    Variables del motor de temas (ver aula/skins/axis/css/temas/motor_nav.css)
    y tipografia. La barra lateral sale de la opcion Barra de Diseno (campus
    por defecto). */

/* ---------
   Variables
   --------- */
.frontend,
.backend,
.recordatorio_box {
    --tema-brand: var(--variable-color-plataforma);
    --tema-violeta: #5b6b8c;
    --tema-cian: #2a8fb8;
    --tema-rosa: #d23c4b;
    --tema-acento-1: var(--tema-brand);
    --tema-acento-2: color-mix(in oklch, var(--tema-brand), #ffffff 18%);
    /* Color plano, como axis: el degradado queda casi imperceptible */
    --tema-grad: linear-gradient(120deg, var(--tema-brand) 0%, var(--tema-acento-2) 100%);
    --tema-tinta: #1f2329;
    --tema-tinta-rgb: 31, 35, 41;
    --tema-tinta-suave: #4b5260;
    --tema-tinta-tenue: #6b7280;
    --tema-tinta-clara: #c5cad3;
    --tema-linea: rgba(31, 35, 41, .1);
    --tema-hover: rgba(31, 35, 41, .05);
    --tema-fondo: #f1f3f6;
    --tema-vidrio: #ffffff;
    --tema-vidrio-fuerte: #ffffff;
    --tema-blur: none;
    --tema-borde-tarjeta: 1px solid #e1e4ea;
    /* Esquinas suaves (Apariencia > Diseno): los radios de esa opcion del
       catalogo de Personalizacion, que es la que declara el .conf */
    --tema-radio: 10px;
    --tema-radio-sm: 6px;
    --tema-radio-pill: 8px;
    --tema-radio-boton: 6px;
    --tema-peso-fuerte: 400;
    --tema-sombra: 0 1px 2px rgba(31, 35, 41, .06);
    --tema-sombra-alta: 0 2px 4px rgba(31, 35, 41, .06), 0 12px 28px -12px rgba(31, 35, 41, .22);
    --tema-glow: none;
    --tema-curva: ease;
    --tema-elevacion: 1;
    --tema-mezcla-violeta: var(--tema-violeta);
    --tema-mezcla-cian: var(--tema-cian);
    --tema-mezcla-rosa: var(--tema-rosa);
    --tema-mezcla-fuerza: 0;
    --tema-halo-fuerza: 0;
    --tema-rotulo-mayusculas: none;

    /* Botones y campos con la altura de axis (el motor los hace de 40px) */
    --theme-component-height-sm: 30px;
    --theme-component-height: 36px;
    --theme-component-height-lg: 44px;

    /* Navegacion: como axis, la barra superior en el color del campus (la
       lateral tambien, de navigation_main.css) */
    --topbar-bg: var(--variable-color-plataforma);
    --topbar-text: var(--variable-color-plataforma-contraste);
    --topbar-border: transparent;
}

/* ----------
   Tipografia
   ---------- */
/* Roboto, la de axis, con sus archivos de siempre */
@font-face {
    font-family: "Tema Sans";
    font-style: normal;
    font-weight: 300;
    src: url(font_roboto/roboto-light.woff2) format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Tema Sans";
    font-style: normal;
    font-weight: 400 500;
    src: url(font_roboto/roboto-regular.woff2) format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Tema Sans";
    font-style: normal;
    font-weight: 600 700;
    src: url(font_roboto/roboto-bold.woff2) format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Tema Sans";
    font-style: normal;
    font-weight: 800 900;
    src: url(font_roboto/roboto-black.woff2) format("woff2");
    font-display: swap;
}

/* ---------------------------
   Axis 2.0: navegacion global
   --------------------------- */
:is(.frontend, .backend) .topbar {
    border-bottom-color: var(--topbar-border);
    background-color: var(--topbar-bg);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Sin el hilo de color del motor: sobre el color del campus no se ve */
:is(.frontend, .backend) .topbar::after { content: none; }

:is(.frontend, .backend) .topbar-nombre-instalacion,
:is(.frontend, .backend) .topbar-nombre-instalacion:hover {
    color: var(--topbar-text);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

/* Hover, chip de la seccion actual y aros: salen del texto de la barra, asi
   se ven sobre cualquier color del campus */
:is(.frontend, .backend) .topbar :is(.topbar-user, .topbar-mensajes-btn, .edu_lang_switcher, .edu_modo_switcher, .breadcrumb-item, .aula_sel_inner, .edu-breadcrumb-ellipsis-btn):hover {
    background-color: color-mix(in oklch, var(--topbar-text) 12%, transparent);
}

/* Como axis: la seccion actual en negrita, sin el recuadro del motor */
:is(.frontend, .backend) .topbar-breadcrumb span.breadcrumb-item:last-child {
    font-weight: 700;
    color: var(--topbar-text);
    background-color: transparent;
}

:is(.frontend, .backend) .topbar-user-name { font-weight: 400; }

:is(.frontend, .backend) .topbar-user-avatar {
    box-shadow: 0 0 0 2px var(--topbar-bg), 0 0 0 4px color-mix(in oklch, var(--topbar-text) 45%, transparent);
}

:is(.frontend, .backend) :is(.edu-topbar__novedades-badge, .topbar-mensajes-btn .badge) {
    box-shadow: 0 0 0 2px var(--topbar-bg);
}

/* La barra lateral sigue la opcion Barra de Diseno (por defecto el color
   del campus, como axis) en lugar del degradado oscuro del motor */
:is(.frontend, .backend) .icon-sidebar {
    background: var(--icon-sidebar-bg);
    box-shadow: none;
}
