/**
 * ============================================================================
 *  identidad.css  (2026-11-20)  -  Identidad corporativa de la cabecera
 * ----------------------------------------------------------------------------
 *  Que hace este archivo
 *  ---------------------
 *  Aplica la identidad visual de Superando y Educando S.A.S. a la CABECERA del
 *  sitio (barra superior de contacto + barra de navegacion + menus desplegables
 *  + menu movil) en TODAS las paginas, sin tocar el HTML visible ni la
 *  distribucion original (solo tipografia y color).
 *
 *  Analisis del logo (assets/images/logo.png)
 *  ------------------------------------------
 *  Se extrajo la paleta dominante del logo:
 *    - Azul  (~#0C5484 / #0C6CB4)  -> el "check" con birrete: color PRIMARIO.
 *    - Azul marino (~#0C3C6C)      -> sombras del check: color de AUTORIDAD.
 *    - Verde (~#9CCC3C)            -> las franjas: color de ACENTO (crecimiento).
 *    - Bronce (~#9C6C3C)           -> el contorno del logo: detalle secundario.
 *  Se ajustaron ligeramente para cumplir contraste WCAG AA con texto blanco:
 *    texto blanco sobre #0B4F86 = 8.6:1 ; sobre #0A2F57 = 13.5:1.
 *  El verde NO se usa como color de texto sobre blanco (contraste insuficiente):
 *  solo como linea/subrayado de acento y sobre fondos oscuros.
 *
 *  Tipografia
 *  ----------
 *  Inter (Rasmus Andersson, licencia SIL OFL 1.1: gratuita, uso comercial
 *  permitido). Sans-serif neutra disenada para pantallas: letras de proporcion
 *  normal, muy legible a tamanos pequenos y de aspecto sobrio/corporativo.
 *  (Se probo antes Montserrat, pero sus letras son muy anchas y en la barra de
 *  navegacion se veian "achatadas"; Inter es mas compacta.) Se AUTOALOJA
 *  (assets/fonts/inter/, fuente variable 100-900) en lugar de cargarla de
 *  Google Fonts: evita enviar la IP del visitante a terceros (coherente con la
 *  Politica de Privacidad), mejora el rendimiento y no depende de servicios
 *  externos. Antes la cabecera mezclaba Arial, Source Sans Pro y Poppins (estas
 *  dos ultimas ni siquiera se descargaban en muchos equipos).
 *
 *  Orden de carga: despues de style.css / custom-fixes.css, por eso gana en
 *  caso de conflicto. Los !important son necesarios porque el template y
 *  algunos estilos en linea ya usan !important.
 * ============================================================================
 */

/* ---- Fuente autoalojada (variable: un solo archivo cubre todos los pesos) ---- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Poppins autoalojada (2026-11-20) ----
   El template ya pedia 'Poppins' para los titulos (hero, h2, pie) pero NUNCA la
   cargaba: solo se veia en equipos que la tenian instalada; el resto caia a
   Raleway/sans-serif. Al incluirla, los titulos se ven igual en todos los
   dispositivos y las paginas legales usan la misma fuente de titulos que el
   inicio. Licencia SIL OFL 1.1 (assets/fonts/poppins/OFL-LICENSE.txt). */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins/poppins-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins/poppins-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins/poppins-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins/poppins-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens de marca (reutilizables en el resto del sitio) ---- */
:root {
    --sye-azul-900: #0A2F57;   /* azul marino: barra superior, textos de autoridad */
    --sye-azul-700: #0B4F86;   /* azul primario: barra de navegacion */
    --sye-azul-500: #0C6CB4;   /* azul vivo: enlaces/hover sobre fondo claro */
    --sye-verde:    #9CCC3C;   /* verde del logo: acento (lineas, subrayados) */
    --sye-bronce:   #9C6C3C;   /* bronce del logo: detalle secundario */
    --sye-fuente-titulos: 'Poppins', 'Raleway', sans-serif;   /* igual que los titulos de la pagina principal */
    --sye-fuente-corporativa: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Tipografia de la cabecera (no se usa "*" para no pisar las fuentes de
        iconos: ElegantIcons/FontAwesome en span.social_* y svg) ---- */
.react-header .topbar-area,
.react-header .topbar-area li,
.react-header .topbar-area a,
.react-header .nav-text,
.react-header .dropdown-item,
.react-header .react-menus > li > a,
.react-header .react-menus li a {
    font-family: var(--sye-fuente-corporativa) !important;
}
.react-header .topbar-area.style1 { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.react-header .nav-text,
.react-header .react-menus > li > a {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.react-header .dropdown-item { font-size: 14px; font-weight: 500; letter-spacing: 0; }

/* ---- Colores: barra superior y barra de navegacion ---- */
.react-header .topbar-area.style1 { background: var(--sye-azul-900) !important; }
.react-header .topbar-area.style1 li a,
.react-header .topbar-area.style1 li a:visited { color: #fff !important; }
.react-header .topbar-area.style1 li a:hover,
.react-header .topbar-area.style1 li a:focus-visible { color: var(--sye-verde) !important; }
.react-header .topbar-area.style1 li svg { color: var(--sye-verde); }

/* Home: barra de navegacion en azul primario + linea verde de acento (las
   franjas del logo). En subpaginas (encabezado blanco) se usa el mismo acento
   como borde inferior. */
.react-header .header_information,
.react-header .react-inner-menus[style] { background: var(--sye-azul-700) !important; }
.react-header .menu-part { border-bottom: 3px solid var(--sye-verde); }
.react-header .menu-toggle #menu-btn { background: var(--sye-azul-700) !important; }

/* Enlaces del menu: blanco sobre azul (home); azul marino sobre blanco (subpaginas) */
.react-header .nav-text { color: #fff !important; }
.react-header .react-menus li a,
.react-header .react-menus li a.react-current-page { color: var(--sye-azul-900) !important; }

/* Hover / foco: subrayado verde grueso (identidad del logo) sin mover el layout */
.react-header .nav-text:hover,
.react-header .nav-text:focus-visible,
.react-header .react-menus li a:hover,
.react-header .react-menus li a:focus-visible {
    text-decoration: underline !important;
    text-decoration-color: var(--sye-verde);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}
.react-header .react-menus li a:hover { color: var(--sye-azul-500) !important; }
.react-header .nav-text:hover { color: #fff !important; }

/* Menus desplegables */
.react-header .dropdown-menu.new,
.react-header .dropdown-menu.new.sub-menu {
    background-color: var(--sye-azul-900) !important;
    border-top: 3px solid var(--sye-verde);
    border-radius: 0 0 6px 6px;
}
.react-header .dropdown-menu.new .dropdown-item { color: #fff !important; }
.react-header .dropdown-menu.new .dropdown-item:hover,
.react-header .dropdown-menu.new .dropdown-item:focus-visible {
    background: var(--sye-azul-700) !important;
    color: var(--sye-verde) !important;
}

/* Foco de teclado visible sobre fondos azules (WCAG 2.4.7) */
.react-header a:focus-visible { outline: 3px solid var(--sye-verde); outline-offset: 2px; }

/* Correccion: los <span> de texto dentro de los enlaces de la barra superior
   (p. ej. "Trabaja con nosotros", que lleva data-i18n) heredaban un azul oscuro
   del template y quedaban casi invisibles sobre el fondo azul. Heredan el color
   del enlace (blanco; verde en hover). Los iconos mantienen su propia fuente. */
.react-header .topbar-area a span:not([class^="social_"]):not([class*=" social_"]) { color: inherit !important; }


/* ============================================================================
 *  Pie de pagina: tamano de texto mas sobrio (2026-11-20)
 * ----------------------------------------------------------------------------
 *  El template usaba 16-18px en negrita para enlaces y contacto, y 22px en los
 *  titulos: demasiado grande frente al resto del sitio. Se reduce y se unifica
 *  con la tipografia corporativa. Los iconos (svg / span.social_*) no se tocan.
 * ============================================================================ */
.react-footer .footer-title,
.react-footer .footer-menu li a,
.react-footer .footer-address li a,
.react-footer .footer3__form p,
.react-footer .footer-subtitle,
.react-footer .copyright .react-copy-left,
.react-footer .copyright .react-copy-legal a,
.react-footer .copyright .follow {
    font-family: var(--sye-fuente-corporativa) !important;
}
/* !important: el template define estos tamanos con selectores muy especificos
   (".react-footer .footer-top .footer-widget .footer-menu ul li a", etc.). */
.react-footer .footer-top .footer-widget .footer-title { font-size: 18px !important; font-weight: 700 !important; line-height: 1.3 !important; }
.react-footer .footer-top .footer-widget .footer-menu li a { font-size: 14px !important; font-weight: 500 !important; line-height: 28px !important; }
.react-footer .footer-top .footer-widget .footer-address li a { font-size: 14px !important; font-weight: 500 !important; line-height: 22px !important; }
.react-footer .footer-top .footer-widget .footer3__form p,
.react-footer .footer-top .footer-widget .footer-subtitle { font-size: 14px !important; line-height: 22px !important; font-weight: 400 !important; text-align: left !important; }
.react-footer .copyright .react-copy-left { font-size: 13px !important; font-weight: 500 !important; }
.react-footer .copyright .react-copy-legal a { font-size: 13px !important; font-weight: 500 !important; }
.react-footer .copyright .follow { font-size: 14px !important; }

/* ============================================================================
 *  Tarjetas de "Unidades de negocio" (2026-11-20)
 * ----------------------------------------------------------------------------
 *  La descripcion de cada unidad (p.react-text) se movio FUERA de la tarjeta
 *  (index.php) porque dentro del overlay absoluto del template quedaba
 *  encima del logo y era ilegible. Ahora la tarjeta conserva su diseno
 *  original (logo + nombre sobre degradado) y el texto va debajo, en gris
 *  oscuro, centrado y con contraste AA.
 * ============================================================================ */
#unidades-negocio .col-md-20 > .react-text {
    position: static;
    margin: -6px 4px 30px;
    color: #374151;
    font-family: var(--sye-fuente-corporativa);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}
