/*

TemplateMo 573 EduWell — Adaptado para Tecnológico Nacional de México
Paleta principal: #1B396A (Azul TecNM)

*/

/* ---------------------------------------------
Table of contents
------------------------------------------------
01. font & reset css
02. reset
03. global styles
04. header
05. banner
06. features
07. testimonials
08. contact
09. footer
10. preloader
11. search
12. portfolio

--------------------------------------------- */

/* 
---------------------------------------------
Variables de color — TecNM
--------------------------------------------- 
*/
:root {
  --tecnm-azul-profundo: #1B396A;
  --tecnm-azul-medio: #24518F;
  --tecnm-azul-claro: #2D6DB5;
  --tecnm-azul-cielo: #4A90C4;
  --tecnm-rojo: #C0392B;
  --tecnm-rojo-hover: #A93226;
  --tecnm-blanco: #FFFFFF;
  --tecnm-gris-claro: #F4F7FB;
  --tecnm-gris-texto: #4a4a4a;
  --tecnm-negro: #111111;
  --tecnm-verde: #2ECC71;
  --tecnm-verde-hover: #27AE60;
}

/* 
---------------------------------------------
font & reset css
--------------------------------------------- 
*/
@import url("https://fonts.googleapis.com/css?family=Open+Sans:100,200,300,400,500,600,700,800,900");

/* 
---------------------------------------------
reset
--------------------------------------------- 
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
div pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
figure,
header,
nav,
section,
article,
aside,
footer,
figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

html[xmlns] .clearfix {
  display: block;
}

* html .clearfix {
  height: 1%;
}

ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}

header,
nav,
section,
article,
aside,
footer,
hgroup {
  display: block;
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  background-color: #fff;
  font-size: 16px;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0px;
  margin-bottom: 0px;
}

ul {
  margin-bottom: 0px;
}

p {
  font-size: 14px;
  line-height: 25px;
  color: var(--tecnm-gris-texto);
}

img {
  width: 100%;
  overflow: hidden;
}

/* 
---------------------------------------------
global styles
--------------------------------------------- 
*/
html,
body {
  background: #fff;
  font-family: 'Open Sans', sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--tecnm-azul-profundo);
  color: #fff;
}

::-moz-selection {
  background: var(--tecnm-azul-profundo);
  color: #fff;
}

@media (max-width: 991px) {

  html,
  body {
    overflow-x: hidden;
  }

  .mobile-top-fix {
    margin-top: 30px;
    margin-bottom: 0px;
  }

  .mobile-bottom-fix {
    margin-bottom: 30px;
  }

  .mobile-bottom-fix-big {
    margin-bottom: 60px;
  }
}

.main-button-gradient a {
  font-size: 13px;
  color: #fff;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  padding: 12px 30px;
  display: inline-block;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all .3s;
  position: relative;
  z-index: 2;
}

.main-button-gradient a:hover {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  opacity: 0.9;
}

.white-button a {
  font-size: 13px;
  color: var(--tecnm-azul-profundo);
  background-color: #fff;
  padding: 12px 30px;
  display: inline-block;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all .3s;
}

.white-button a:hover {
  opacity: 0.9;
}

.text-button a {
  font-size: 14px;
  font-weight: 500;
  color: var(--tecnm-azul-profundo);
  text-decoration: underline !important;
  transition: all .3s;
}

.text-button a:hover {
  opacity: 0.75;
}

section {
  margin-top: 140px;
}

#contact-section {
  padding-top: 20px;
}

.section-heading {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  margin-top: 0px;
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h6 {
  font-size: 13px;
  text-transform: uppercase;
  color: #7a7a7a;
  font-weight: 600;
}

.section-heading h4 {
  margin-top: 10px;
  line-height: 1.2;
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 900;
  text-transform: capitalize;
  color: #111;
}

.section-heading h4 em {
  font-style: normal;
  color: var(--tecnm-azul-profundo);
}

.section-heading p {
  margin-top: 30px;
}


/* 
---------------------------------------------
header
--------------------------------------------- 
*/

/* Fuerza sin transicion en el header y todos sus hijos (excepto menu-trigger para animar) */
.header-area,
.header-area *:not(.menu-trigger):not(.menu-trigger span),
.background-header,
.background-header *:not(.menu-trigger):not(.menu-trigger span) {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
  animation: none !important;
  -webkit-animation: none !important;
}

.header-area.header-sticky,
.header-area .main-nav .nav,
.background-header .main-nav .nav {
  -webkit-transition: none !important;
  transition: none !important;
}

.background-header {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%) !important;
  height: 80px !important;
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15) !important;
}

.header-area {
  background-image: none !important;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 110px;
  z-index: 100;
}

.header-area .main-nav {
  min-height: 80px;
  background: transparent;
}

.header-area .main-nav .logo {
  line-height: 100px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  float: left;
}

.background-header .main-nav .logo {
  line-height: 75px;
}

.background-header .nav {
  margin-top: 20px !important;
}

.header-area .main-nav .nav {
  float: right;
  margin-top: 35px;
  margin-right: 0px;
  background-color: transparent;
  position: relative;
  z-index: 999;
  display: flex; /* Asegurar flexbox */
  align-items: flex-start; /* Evitar estiramiento vertical */
  height: 40px; /* Limitar altura del contenedor */
}


.header-area .main-nav .nav li {
  padding-left: 0px;
  padding-right: 0px;
  margin: 0 5px; /* Espaciado más compacto */
  height: 40px !important;
  display: inline-block;
}






.header-area .main-nav .nav li:last-child {
  padding-right: 0px;
  margin-right: 0;
}


.header-area .main-nav .nav li a {
  display: block;
  font-weight: 500;
  font-size: 14px;
  text-transform: capitalize;
  color: #fff;
  height: 40px;
  line-height: 40px;
  border: transparent;
  letter-spacing: 1px;
  position: relative;
  transition: all .3s ease;
  padding: 0 20px !important;
  border-radius: 20px;
}

/* Eliminada la regla que ocultaba las flechas */


.header-area .main-nav .nav li:hover a,
.header-area .main-nav .nav li a.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}


.background-header .main-nav .nav li:hover a,
.background-header .main-nav .nav li a.active {
  color: #fff !important;
  opacity: 1;
}

.header-area .main-nav .nav li.has-sub {
  position: relative;
}

.header-area .main-nav .nav li.has-sub > a {
  display: inline-block !important;
  vertical-align: top;
  padding: 0 6px 0 15px !important; /* Relleno mínimo absoluto */
  width: auto !important;
  min-width: 0 !important;
}




.header-area .main-nav .nav li.has-sub > a:after {
  font-family: FontAwesome;
  content: "\f107";
  font-size: 12px;
  color: #fff;
  position: static !important;
  margin-left: 4px !important; /* Pegadísima al texto */
  display: inline-block !important;
  vertical-align: middle;
  transition: all 0.3s ease !important;
}



.header-area .main-nav .nav li.has-sub:hover > a:after,
.header-area .main-nav .nav li.has-sub.is-open-sub > a:after {
  transform: rotate(180deg) !important;
}









/* ── Herramientas dropdown (desktop) ── */

/* 
   Submenú rediseñado con un estilo "premium":
   - Línea de acento superior.
   - Sombra suave y profunda.
   - Iconos descriptivos para cada herramienta.
   - Efecto de flotado suave.
*/
.header-area .main-nav .nav li.has-sub ul.sub-menu {
  position: absolute !important; /* Evita que el submenú estire el botón padre */
  left: 0;
  width: 180px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
  border: none;
  border-top: 3px solid var(--tecnm-azul-medio);
  top: 40px;
  overflow: visible;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease !important;
}


/* Puente invisible */
.header-area .main-nav .nav li.has-sub ul.sub-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.header-area .main-nav .nav li.has-sub:hover ul.sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li {
  padding: 0;
  margin: 0;
  width: 100%;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a {
  background: #ffffff !important;
  color: var(--tecnm-azul-profundo) !important;
  padding: 12px 20px !important;
  height: auto !important;
  line-height: 1.5 !important;
  font-size: 14px !important; /* Mismo tamaño que en el header */
  font-weight: 500 !important; /* Mismo peso de letra que en el header */
  text-transform: none !important; /* Mayúsculas y minúsculas (preserva TutorIA y Aprendizaje) */
  letter-spacing: 1px !important; /* Mismo espaciado que en el header */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 0 !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; /* Transición premium más suave */
  display: block;
  position: relative;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a:hover {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%) !important;
  color: #ffffff !important;
  padding-left: 25px !important;
}


.header-area .main-nav .nav li.has-sub ul.sub-menu li:last-child a {
  border-bottom: none !important;
  border-radius: 0 0 10px 10px !important;
}




.header-area .main-nav .menu-trigger {
  cursor: pointer;
  display: block;
  position: absolute;
  top: 33px;
  width: 32px;
  height: 40px;
  text-indent: -9999em;
  z-index: 99;
  right: 40px;
  display: none;
}

.background-header .main-nav .menu-trigger {
  top: 23px;
}

.header-area .main-nav .menu-trigger span,
.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  background-color: #fff;
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  left: 0;
  transition: all .3s ease;
}

.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  content: "";
  width: 100%;
}

.header-area .main-nav .menu-trigger span {
  top: 16px;
}

.header-area .main-nav .menu-trigger span:before {
  transform-origin: 33% 100%;
  top: -10px;
  z-index: 10;
}

.header-area .main-nav .menu-trigger span:after {
  transform-origin: 33% 0;
  top: 10px;
}

.header-area .main-nav .menu-trigger.active span,
.header-area .main-nav .menu-trigger.active span:before,
.header-area .main-nav .menu-trigger.active span:after {
  background-color: transparent;
  width: 100%;
}

.header-area .main-nav .menu-trigger.active span:before {
  transform: translateY(6px) translateX(1px) rotate(45deg);
  background-color: #fff;
}

.header-area .main-nav .menu-trigger.active span:after {
  transform: translateY(-6px) translateX(1px) rotate(-45deg);
  background-color: #fff;
}

.header-area.header-sticky {
  min-height: 80px;
}

.header-area .nav {
  margin-top: 30px;
}

.header-area.header-sticky .nav li a.active {
  color: #fff !important;
}


@media (max-width: 1200px) {
  .header-area .main-nav .nav li {
    padding-left: 5px;
    padding-right: 5px;
  }

  .header-area .main-nav .nav li a {
    padding: 0 10px !important; /* Reducir padding de 20px a 10px para evitar saltos de línea */
    font-size: 13px !important; /* Fuente ligeramente más compacta en laptops */
    letter-spacing: 0.5px !important;
  }

  .header-area .main-nav:before {
    display: none;
  }

  .header-area {
    background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%) !important;
  }
}

@media (max-width: 1023px) {
  .header-area .main-nav .logo {
    color: #fff;
  }

  .header-area.header-sticky .nav li a:hover,
  .header-area.header-sticky .nav li a.active {
    color: #fff !important;
    opacity: 1;
  }

  .header-area {
    background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%) !important;
    padding: 0px 15px;
    height: 80px !important;
    z-index: 1000000 !important; /* El header siempre encima de la sidebar */



    box-shadow: 0 4px 20px rgba(27,57,106,0.3);
    text-align: center;
    transition: box-shadow 0.3s ease;
  }

  /* Homogeneidad total: Quitar cualquier rastro de sombra en el header */
  body.menu-is-open .header-area,
  body.menu-is-open .background-header,
  body.menu-is-open .header-sticky {
    box-shadow: none !important;
  }



  .header-area .container {
    padding: 0px;
  }

  .header-area .logo {
    position: absolute !important;
    left: 15px !important;
    margin-left: 0px !important;
    line-height: 80px !important;
    font-size: 22px !important;
    letter-spacing: 1px !important;
  }

  .header-area .menu-trigger {
    display: block !important;
    top: 20px !important; /* Unificado para evitar el salto al hacer scroll */
    right: 15px !important;
  }


  .header-area .main-nav {
    overflow: visible !important;
    background: transparent !important;
  }

  /* REGLA DE MÁXIMA PRIORIDAD PARA EL ESTADO BASE (SIN TRANSICIÓN PARA CIERRE INSTANTÁNEO) */
  body .header-area .main-nav ul.nav {
    float: none;
    width: 300px !important;
    position: fixed !important;
    top: 80px !important;
    right: -320px !important;
    left: auto !important;
    height: calc(100vh - 80px) !important;
    background: var(--tecnm-azul-profundo) !important; 
    padding-top: 0 !important;
    margin: 0 !important;
    z-index: 999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important; /* Animación de salida suave (Caso B) */
    box-shadow: none !important;
    border: none !important;
  }

  /* Caso A: Cierre instantáneo forzado por el JS al elegir una opción */
  body.instant-close .header-area .main-nav ul.nav {
    transition: none !important;
    right: -320px !important;
  }












  /* Despliegue lateral suave forzado (SOLO AL ABRIR) */
  body.menu-is-open .header-area .main-nav ul.nav {
    right: 0 !important;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important; /* La animación solo vive aquí */
  }














  .header-area .main-nav .nav li:first-child {
    border-top: none !important; /* Eliminar el borde superior del primer elemento */
  }


  .header-area.header-sticky .nav {
    margin-top: 0px !important; /* Corregido el hueco doble en móvil */
  }


  .header-area .main-nav .nav li {
    width: 100% !important;
    background: transparent !important;
    border: none !important; /* Fuera bordes */
    padding: 0 !important;
    text-align: left !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
  }




  .header-area .main-nav .nav li a {
    height: auto !important;
    line-height: normal !important;
    padding: 22px 30px !important;
    border: none !important;
    background: transparent !important;
    color: rgba(255,255,255,1) !important;
    font-weight: 600 !important;
    font-size: 15px !important; /* Tamaño más balanceado */
    text-transform: none !important; /* Mayúsculas y minúsculas (respeta escritura exacta de HTML) */
    letter-spacing: 1px !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    position: relative;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
  }





  .header-area .main-nav .nav li a:hover,
  .header-area .main-nav .nav li a.active {
    background: rgba(255,255,255,0.1) !important; /* Resaltado sutil */
    color: #fff !important;
    border-radius: 0 !important;
  }

  /* Barra blanca para indicar sección activa (ESTILIZADA Y DELGADA) */
  .header-area .main-nav .nav li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px; /* Más delgada para un look minimalista */
    background: #fff;
    border-left: 2px solid var(--tecnm-azul-profundo); 
    z-index: 10;
  }




  /* Limpiamos el ::after que antes usábamos para la barra */
  .header-area .main-nav .nav li a.active::after {
    display: none !important;
  }

  /* La flecha sigue usando ::after pero solo en elementos con submenú */
  .header-area .main-nav .nav li.has-sub > a::after {
    display: inline-block !important;
    font-family: FontAwesome;
    content: "\f107";
    font-size: 12px;
    color: #fff;
    margin-left: 8px;
    transition: transform 0.3s ease !important;
  }






  .header-area .main-nav .nav li.has-sub ul.sub-menu {
    position: static !important;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
    transform: none !important;
    visibility: visible;
    opacity: 0; /* Iniciamos invisible */
    transition: max-height 0.3s ease-out, opacity 0.3s ease !important;
  }

  .header-area .main-nav .nav li.has-sub.is-open-sub ul.sub-menu {
    max-height: 150px; /* Un poco más de margen para seguridad */
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease !important;
  }






  .header-area .main-nav .nav li.has-sub ul.sub-menu li a {
    padding-left: 45px !important; /* Un poco más de sangría de texto para jerarquía */
    background: transparent !important;
    text-transform: none !important; /* Submenús en minúsculas para contraste */
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
  }






  /* El JS usa slideToggle, por lo que display: none es correcto arriba */

  .header-area .main-nav .nav li.has-sub ul.sub-menu::before {
    display: none;
  }

  .header-area .main-nav .nav li.has-sub ul.sub-menu li a {
    background: transparent !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 12px 25px 12px 40px !important; /* Sangría clara */
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    border-bottom: none !important;
    height: auto !important;
    line-height: normal !important;
    display: block !important;
  }


  .header-area .main-nav .nav li.has-sub ul.sub-menu li a:hover {
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    transform: none !important;
  }

  /* Reintroducción de indicadores de submenú para mayor usabilidad */
  .header-area .main-nav .nav li.has-sub > a {

    display: block !important; 
    position: relative;
    padding: 18px 30px !important; 
  }

  /* Flecha del submenú simplificada */
  .header-area .main-nav .nav li.has-sub > a:after {
    display: block !important;
    font-family: FontAwesome;
    content: "\f107";
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: transform 0.3s ease;
  }

  .header-area .main-nav .nav li.has-sub.is-open-sub > a:after {
    transform: translateY(-50%) rotate(180deg) !important;
    color: #fff;
  }

  /* Desactivar rotación por hover en móvil con fuerza bruta para anular reglas globales */
  .header-area .main-nav .nav li.has-sub:hover > a:after {
    transform: translateY(-50%) rotate(0deg) !important;
  }

  .header-area .main-nav .nav li.has-sub.is-open-sub > a:after {
    transform: translateY(-50%) rotate(180deg) !important;
    color: #fff;
  }



  /* Animación de la X perfecta, centrada y nítida */
  .header-area .main-nav .menu-trigger.active span {
    background-color: transparent !important;
  }
  .header-area .main-nav .menu-trigger.active span:before,
  .header-area .main-nav .menu-trigger.active span:after {
    transform-origin: center !important; /* Reset del punto de rotación */
    height: 3px !important; /* Más nítido */
    width: 30px !important;
    top: 0 !important;
    background-color: #fff !important;
  }
  .header-area .main-nav .menu-trigger.active span:before {
    transform: rotate(45deg) !important;
  }
  .header-area .main-nav .menu-trigger.active span:after {
    transform: rotate(-45deg) !important;
  }






}

@media (max-width: 1023px) {
  body.menu-is-open {
    overflow-x: hidden !important;
  }





}


@media (min-width: 1023px) {
  .header-area .main-nav .nav {
    display: flex !important;
  }
}


/* 
---------------------------------------------
banner
--------------------------------------------- 
*/

section.main-banner {
  margin-top: 0px;
  padding-top: 200px !important;
}

.main-banner .right-image {
  margin-left: 120px;
  position: relative;
  z-index: 2;
}

.main-banner .right-image img {
  position: relative;
  z-index: 2;
}

.main-banner .right-image::after {
  position: absolute;
  background-image: url(../images/banner-right-dec.png);
  width: 378px;
  height: 378px;
  content: '';
  right: -25%;
  z-index: 1;
}

.main-banner .header-text::after {
  position: absolute;
  background-image: url(../images/banner-left-dec.png);
  width: 214px;
  height: 429px;
  content: '';
  left: 0;
  bottom: -240px;
  z-index: 1;
}

.main-banner .header-text h6 {
  position: relative;
  z-index: 2;
  font-size: 17px;
  font-weight: 500;
  text-transform: capitalize;
  color: #777777;
}

.main-banner .header-text h2 {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  font-size: clamp(2rem, 8vw, 4rem);
  color: #111111;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 40px;
}

.main-banner .header-text h2 em {
  font-style: normal;
  color: var(--tecnm-azul-profundo);
}

.main-banner .main-button-gradient {
  position: relative;
  z-index: 2;
}


/*
---------------------------------------------
services
---------------------------------------------
*/

.services .item {
  border-radius: 15px;
  text-align: center;
  padding: 50px 30px;
  margin: 15px;
  transition: all .3s;
}

.services .item:hover {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
}

.services .item .icon {
  max-width: 75px;
  margin: 0 auto;
  min-height: 80px;
  line-height: 80px;
  vertical-align: middle;
}

.services .item h4 {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 800;
}

/* .services .owl-dots {
  text-align: center;
  margin-top: 30px;
}

.services .owl-dots .owl-dot {
  width: 10px;
  height: 10px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0px 4px;
}

.services .owl-dots .active {
  background-color: var(--tecnm-azul-profundo);
} */


/*
---------------------------------------------
our courses
---------------------------------------------
*/

section.our-courses {
  position: relative;
}

section.our-courses .section-heading p {
  padding: 0px 60px;
}

section.our-courses:before {
  position: absolute;
  content: '';
  background-image: url(../images/our-courses-left-dec.png);
  left: 45px;
  top: -140px;
  width: 291px;
  height: 231px;
  z-index: -1;
  pointer-events: none;
}

section.our-courses:after {
  position: absolute;
  content: '';
  background-image: url(../images/our-courses-right-dec.png);
  right: 45px;
  top: -140px;
  width: 291px;
  height: 231px;
  z-index: -1;
  pointer-events: none;
}

section.our-courses .naccs {
  position: relative;
}

section.our-courses .naccs .menu div {
  padding: 15px 30px;
  text-align: center;
  border-radius: 5px !important;
  margin-bottom: 40px;
  font-size: 20px;
  color: #111;
  background-color: #fff;
  cursor: pointer;
  vertical-align: middle;
  font-weight: 900;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
  border: 3px solid rgba(27, 57, 106, 0.5);
}

section.our-courses .naccs .menu div.active {
  color: var(--tecnm-azul-profundo);
  border: 3px solid rgba(27, 57, 106, 1);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
}

section.our-courses ul.nacc {
  margin-left: 100px !important;
  position: relative;
  min-height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

section.our-courses ul.nacc li {
  background-color: #fff;
  overflow: hidden;
  opacity: 0;
  transform: translateX(50px);
  position: absolute;
  list-style: none;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
  border-radius: 15px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
  padding-right: 50px;
}

section.our-courses ul.nacc li .left-image {
  position: absolute;
  margin-right: 50px;
  top: 50%;
  transform: translateY(-50%);
}

section.our-courses ul.nacc li .left-image img {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

section.our-courses ul.nacc li .right-content {
  padding: 40px 0px;
  margin-left: 350px;
}

section.our-courses ul.nacc li .right-content h4 {
  font-size: 20px;
  color: #111;
  margin-bottom: 25px;
  font-weight: 800;
}

section.our-courses ul.nacc li .right-content ul {
  margin-top: 20px;
  margin-bottom: 20px;
}

section.our-courses ul.nacc li .right-content span {
  font-size: 14px;
  font-weight: 600;
  margin-right: 30px;
  padding-right: 30px;
  border-right: 2px solid #111;
}

section.our-courses ul.nacc li .right-content .last-span {
  margin-right: 0px;
  padding-right: 0px;
  border-right: none;
}

section.our-courses ul.nacc li .right-content p {
  margin-bottom: 20px;
}

section.our-courses ul.nacc li .right-content .text-button {
  margin-top: 20px;
}

section.our-courses ul.nacc li.active {
  position: relative;
  transition-delay: 0.3s;
  z-index: 2;
  opacity: 1;
  transform: translateX(0px);
}

section.our-courses ul.nacc li p {
  margin: 0;
}


/*
---------------------------------------------
cta
---------------------------------------------
*/

section.simple-cta {
  background-image: url(../images/cta-bg.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 100%;
  padding: 180px 0px;
}

section.simple-cta .left-image {
  margin-right: 45px;
}

section.simple-cta h6 {
  font-size: 17px;
  color: #fff;
}

section.simple-cta h4 {
  font-size: clamp(1.8rem, 8vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-top: 20px;
}

section.simple-cta p {
  color: #fff;
  margin-top: 30px;
  margin-bottom: 40px;
}


/* 
---------------------------------------------
testimonials
--------------------------------------------- 
*/

section.testimonials {
  position: relative;
}

section.testimonials:before {
  position: absolute;
  content: '';
  left: 0px;
  top: -140px;
  width: 593px;
  height: 352px;
  z-index: -1;
  pointer-events: none;
}

section.testimonials:after {
  position: absolute;
  content: '';
  ;
  right: 0px;
  bottom: -140px;
  width: 632px;
  height: 352px;
  z-index: -1;
  pointer-events: none;
}

.testimonials .item {
  border-radius: 15px;
  padding: 30px;
  background-color: #fff;
  margin: 15px;
  transition: all .3s;
  position: relative;
  z-index: 2;
}

.testimonials .item:hover {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
}

.testimonials .item p {
  font-size: 16px;
  font-style: italic;
}

.testimonials .item h4 {
  margin-top: 30px;
  font-size: 20px;
  font-weight: 900;
  position: relative;
}

.testimonials .item span {
  font-size: 13px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
}

.testimonials .item img {
  max-width: 44px;
  z-index: 2;
  position: absolute;
  right: 30px;
  bottom: 30px;
}

/* .testimonials .owl-dots {
  text-align: center;
  margin-top: 30px;
}

.testimonials .owl-dots .owl-dot {
  width: 10px;
  height: 10px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0px 4px;
}

.testimonials .owl-dots .active {
  background-color: var(--tecnm-azul-profundo);
} */


/* 
---------------------------------------------
contact us
--------------------------------------------- 
*/

section.contact-us {
  background-color: #f8fafc;
  background-image: none;
  padding: 60px 0 40px 0;
  position: relative;
}

section.contact-us:after {
  display: none;
}


section.contact-us .contact-info {
  background-color: #fff;
  margin-top: -30px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  z-index: 5;
  position: relative;
  padding: 20px;
}

section.contact-us .contact-info .icon i {
  float: left;
  margin-right: 15px;
  width: 50px;
  height: 50px;
  display: inline-block;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  color: #fff;
}

section.contact-us .contact-info h4 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

section.contact-us .contact-info span {
  font-size: 15px;
  color: var(--tecnm-azul-profundo);
  font-weight: 700;
}

section.contact-us .section-heading {
  text-align: left;
  margin-bottom: 40px;
}

section.contact-us #contact {
  margin-left: -100px;
  position: relative;
  z-index: 5;
  background-color: #fff;
  margin-top: 40px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  padding: 40px;
}

section.contact-us #contact input {
  width: 100%;
  height: 40px;
  border-radius: 5px;
  background-color: var(--tecnm-gris-claro);
  outline: none;
  border: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  color: #7a7a7a;
  padding: 0px 15px;
  margin-bottom: 30px;
}

section.contact-us #contact textarea {
  width: 100%;
  min-height: 140px;
  max-height: 180px;
  border-radius: 5px;
  background-color: var(--tecnm-gris-claro);
  outline: none;
  border: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  color: #7a7a7a;
  padding: 15px;
  margin-bottom: 30px;
}

section.contact-us #contact button {
  float: right;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  padding: 12px 30px;
  display: inline-block;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all .3s;
  border: none;
  outline: none;
}

section.contact-us #contact button:hover {
  opacity: 0.9;
}

section.contact-us ul.social-icons {
  text-align: center;
  margin-top: 70px;
}

section.contact-us ul.social-icons li {
  display: inline-block;
  margin: 0px 5px;
}

section.contact-us ul.social-icons li a {
  width: 44px;
  height: 44px;
  display: inline-block;
  text-align: center;
  line-height: 44px;
  background-color: #fff;
  color: var(--tecnm-azul-profundo);
  border-radius: 50%;
  transition: all .5s;
}

section.contact-us ul.social-icons li a:hover {
  background-color: var(--tecnm-azul-profundo);
  color: #fff;
}

p.copyright {
  text-align: center;
  color: #fff;
  margin: 40px 0px;
}

p.copyright a {
  font-weight: 700;
  color: #fff;
}

/* ---------------------------------------------
Clean White Institutional Footer
--------------------------------------------- */
.site-footer {
  background-color: #ffffff;
  border-top: none;
  background-image: linear-gradient(90deg, transparent 0%, rgba(27, 57, 106, 0.25) 15%, var(--tecnm-azul-profundo, #1B396A) 50%, rgba(27, 57, 106, 0.25) 85%, transparent 100%);
  background-size: 100% 2.5px;
  background-repeat: no-repeat;
  background-position: top;
  box-shadow: 0 -8px 25px rgba(27, 57, 106, 0.04);
  padding: 40px 0 32px 0;
  color: #475569;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-top: 60px;
  position: relative;
  z-index: 10;
}

.site-footer .footer-brand-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--tecnm-azul-profundo, #1B396A);
  letter-spacing: -0.2px;
}

.site-footer .footer-brand-inst {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.site-footer .footer-copy-text {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 8px;
}

.site-footer .footer-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.site-footer .footer-nav-links a {
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px 6px;
  border-radius: 4px;
}

.site-footer .footer-nav-links a:hover {
  color: var(--tecnm-azul-profundo, #1B396A);
  background-color: #f1f5f9;
  text-decoration: none;
}

.site-footer .footer-nav-links .dot {
  color: #cbd5e1;
  font-size: 12px;
}

.site-footer .footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 991px) {
  .site-footer .footer-social,
  .site-footer .footer-nav-links {
    justify-content: center;
    margin: 14px 0;
  }
}

.site-footer .footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.site-footer .footer-social a:hover {
  background-color: var(--tecnm-azul-profundo, #1B396A);
  color: #ffffff;
  border-color: var(--tecnm-azul-profundo, #1B396A);
  transform: translateY(-2px);
}


/* ---------------------------------------------
Documento Legal / Institucional
--------------------------------------------- */
.legal-doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 48px 52px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 50px;
}

.legal-doc-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
}

.legal-doc-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--tecnm-azul-profundo, #1B396A);
  margin-bottom: 8px;
}

.legal-doc-meta {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
}

.legal-doc-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo, #1B396A);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-doc-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 14px;
}

.legal-doc-body ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.legal-doc-body ul li {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 8px;
}

.legal-doc-note {
  background-color: #f8fafc;
  border-left: 3.5px solid var(--tecnm-azul-profundo, #1B396A);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  color: #1e293b;
  margin: 22px 0;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .legal-doc-card {
    padding: 28px 20px;
  }
  .legal-doc-header h2 {
    font-size: 20px;
  }
}


/*
---------------------------------------------
heading page
---------------------------------------------
*/

section.page-heading {
  margin-top: 190px;
  text-align: center;
}

section.page-heading .header-text {
  border-bottom: 3px solid #eee;
  padding-bottom: 80px;
}

section.page-heading .header-text h4 {
  font-size: 17px;
  text-transform: capitalize;
  color: #7a7a7a;
}

section.page-heading .header-text h1 {
  font-size: clamp(1.8rem, 8vw, 3.8rem);
  font-weight: 900;
  color: #111;
  margin-top: 10px;
}


/*
---------------------------------------------
about us page
---------------------------------------------
*/

section.get-info .left-image {
  margin-right: 30px;
}

section.get-info .section-heading {
  text-align: left;
}

section.get-info .info-item {
  border-radius: 15px;
  text-align: left;
  padding: 60px 30px 30px 30px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  position: relative;
}

section.get-info .info-item .icon {
  position: absolute;
  left: 30px;
  top: -30px;
  width: 80px;
  height: 80px;
  display: inline-block;
  border-radius: 15px;
  text-align: center;
  line-height: 80px;
  background-color: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
}

section.get-info .info-item .icon img {
  max-width: 60%;
}

section.get-info .info-item h4 {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 800;
}

section.our-team {
  position: relative;
}

section.our-team .section-heading p {
  padding: 0px 60px;
}

section.our-team:before {
  position: absolute;
  content: '';
  background-image: url(../images/our-courses-left-dec.png);
  left: 45px;
  top: -140px;
  width: 291px;
  height: 231px;
  z-index: 1;
}

section.our-team:after {
  position: absolute;
  content: '';
  background-image: url(../images/our-courses-right-dec.png);
  right: 45px;
  top: -140px;
  width: 291px;
  height: 231px;
  z-index: 1;
}

section.our-team .naccs {
  position: relative;
  text-align: center;
}

section.our-team .naccs .menu {
  position: relative;
  display: inline-block;
}

section.our-team .naccs .menu div {
  margin: 0px 15px;
  text-align: center;
  display: inline-block;
  width: 15%;
  font-size: 20px;
  color: #111;
  background-color: #fff;
  cursor: pointer;
  vertical-align: middle;
  font-weight: 900;
}

section.our-team .naccs .menu div img {
  border-radius: 50%;
  max-width: 120px;
}

section.our-team .naccs .menu div h4 {
  font-size: 15px;
  font-weight: 900;
  margin-top: 15px;
  margin-bottom: 5px;
}

section.our-team .naccs .menu div span {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--tecnm-azul-profundo);
  font-weight: 700;
  display: block;
}

section.our-team .naccs .menu div.active h4 {
  color: var(--tecnm-azul-profundo);
}

section.our-team ul.nacc {
  margin-top: 40px !important;
  position: relative;
  min-height: 100%;
  height: 100% !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

section.our-team ul.nacc li {
  z-index: -1;
  opacity: 0;
  transform: translateX(50px);
  background-color: #fff;
  position: absolute;
  list-style: none;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
  border-radius: 15px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

section.our-team ul.nacc li.active {
  position: relative !important;
  overflow: hidden;
}

section.our-team ul.nacc li .right-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

section.our-team ul.nacc li .right-image img {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

section.our-team ul.nacc li .left-content {
  text-align: left;
  margin-right: 380px;
}

section.our-team ul.nacc li .left-content h4 {
  font-size: 20px;
  color: #111;
  margin-bottom: 25px;
  font-weight: 800;
}

section.our-team ul.nacc li .left-content span a {
  font-size: 14px;
  font-weight: 600;
  margin-right: 30px;
  padding-right: 30px;
  color: #111;
  border-right: 2px solid #111;
  transition: all .3s;
}

section.our-team ul.nacc li .left-content span a:hover {
  color: var(--tecnm-azul-profundo);
}

section.our-team ul.nacc li .left-content .last-span a {
  margin-right: 0px;
  padding-right: 0px;
  border-right: none;
}

section.our-team ul.nacc li .left-content p {
  margin-bottom: 30px;
}

section.our-team ul.nacc li .left-content .text-button {
  margin-top: 30px;
}

section.our-team ul.nacc li.active {
  transition-delay: 0.3s;
  z-index: 2;
  opacity: 1;
  transform: translateX(0px);
}

section.our-team ul.nacc li p {
  margin: 0;
}

section.our-office .left-info {
  margin-right: 0px;
  position: relative;
  z-index: 5;
  background-color: #fff;
  margin-top: 40px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  padding: 40px;
}

section.our-office .left-info p {
  margin-bottom: 40px;
}

section.our-office .left-info ul li {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
  font-style: italic;
  margin-bottom: 20px;
}

section.our-office .left-info ul li:last-child {
  margin-bottom: 0px;
}

section.our-office .left-info .main-button-gradient {
  margin-top: 40px;
}

section.our-office #video {
  margin-left: -70px;
}

section.our-office #video .thumb {
  position: relative;
}

section.our-office #video .thumb .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
}

section.our-office #video .thumb .play-button a {
  width: 80px;
  height: 80px;
  display: inline-block;
  text-align: center;
  line-height: 80px;
  border-radius: 50%;
  transform: translate(-40px, -40px);
  color: #fff;
  font-size: 22px;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
}

section.our-office #video img {
  border-radius: 20px;
}


/*
---------------------------------------------
our services page
---------------------------------------------
*/

section.featured-product {
  position: relative;
}

section.featured-product:before {
  position: absolute;
  content: '';
  background-image: url(../images/testimonials-left-dec.png);
  left: 0px;
  top: -140px;
  width: 593px;
  height: 352px;
  z-index: 1;
}

section.featured-product:after {
  position: absolute;
  content: '';
  background-image: url(../images/testimonials-right-dec.png);
  right: 0px;
  bottom: -140px;
  width: 632px;
  height: 352px;
  z-index: 1;
}

section.featured-product .info-item {
  border-radius: 15px;
  text-align: left;
  padding: 60px 30px 30px 30px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  margin-bottom: 90px;
}

section.featured-product .last-info {
  margin-bottom: 0px;
}

section.featured-product .left-info .info-item .icon {
  right: 30px;
  top: -30px;
}

section.featured-product .left-info .info-item {
  text-align: right;
}

section.featured-product .right-info .info-item .icon {
  left: 30px;
  top: -30px;
}

section.featured-product .info-item .icon {
  position: absolute;
  width: 80px;
  height: 80px;
  display: inline-block;
  border-radius: 15px;
  text-align: center;
  line-height: 80px;
  background-color: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
}

section.featured-product .info-item .icon img {
  max-width: 60%;
}

section.featured-product .info-item h4 {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 800;
}

section.featured-product .product-image {
  margin: 0px 60px;
}


/*
---------------------------------------------
contact us page
---------------------------------------------
*/

section.more-info .section-heading {
  margin-bottom: 40px;
  text-align: left;
}

section.more-info p {
  margin-bottom: 40px;
}

section.more-info ul li {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
  font-style: italic;
  margin-bottom: 20px;
}

section.more-info ul li:last-child {
  margin-bottom: 0px;
}

section.more-info .count-area-content {
  margin-bottom: 20px;
  margin-top: 20px;
}

section.more-info .count-area-content .count-digit {
  background-color: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  text-align: center;
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-40px);
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 28px;
  color: var(--tecnm-azul-profundo);
  font-weight: 900;
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}

section.more-info .count-area-content .count-title {
  background-color: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: #111;
  padding: 50px 30px 30px 30px;
  position: relative;
  z-index: 1;
}


/* 
---------------------------------------------
responsive
--------------------------------------------- 
*/

body {
  overflow-x: hidden;
}

@media (max-width: 1330px) {
  .services .owl-nav .owl-next {
    right: -30px;
  }

  .services .owl-nav .owl-prev {
    left: -25px;
  }

  .our-courses .owl-nav .owl-next {
    right: -30px;
  }

  .our-courses .owl-nav .owl-prev {
    left: -25px;
  }
}

@media (max-width: 1085px) {
  .services .owl-nav .owl-next {
    right: -30px;
  }

  .services .owl-nav .owl-prev {
    left: -25px;
  }

  .our-courses .owl-nav .owl-next {
    right: -30px;
  }

  .our-courses .owl-nav .owl-prev {
    left: -25px;
  }
}

@media (max-width: 1005px) {
  .services .owl-nav .owl-next {
    display: none;
  }

  .services .owl-nav .owl-prev {
    display: none;
  }

  .our-courses .owl-nav .owl-next {
    display: none;
  }

  .our-courses .owl-nav .owl-prev {
    display: none;
  }
}

@media (max-width: 992px) {
  .main-banner .header-text {
    text-align: center;
    margin-bottom: 60px;
  }

  .main-banner .right-image {
    margin-left: 0px;
  }

  section.our-courses ul.nacc {
    margin-left: 0px !important;
  }

  section.simple-cta {
    margin-top: 0px;
  }

  section.simple-cta .left-image {
    margin-right: 0px;
    margin-bottom: 45px;
  }

  section.contact-us .contact-info {
    margin-top: 15px;
  }

  section.contact-us #contact {
    margin-left: 0px;
  }

  section.contact-us #contact button {
    float: none;
  }

  section.get-info .left-image {
    margin-right: 0px;
    margin-bottom: 30px;
  }

  section.get-info .info-item {
    margin-top: 60px;
  }

  section.our-office #video {
    margin-left: 0px;
    margin-top: 30px;
  }

  section.featured-product .left-info .info-item,
  section.featured-product .right-info .info-item {
    text-align: center;
    background-color: #fff;
    position: relative;
    z-index: 2;
  }

  section.featured-product .left-info .info-item .icon {
    right: 50%;
    transform: translateX(40px);
  }

  section.featured-product .right-info .info-item .icon {
    left: 50%;
    transform: translateX(-40px);
  }

  section.featured-product .product-image {
    margin: 60px;
  }

  section.our-team ul.nacc li .left-content span a,
  section.our-courses ul.nacc li .right-content span {
    margin-right: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 1023px) {
  .header-area .main-nav .nav li.has-sub ul.sub-menu {
    display: none;
  }

  section.our-courses ul.nacc li .left-image,
  section.our-team ul.nacc li .right-image {
    position: relative;
    margin-right: 0px;
    margin-left: 0px;
    transform: translateY(-0%);
  }

  section.our-courses ul.nacc li .left-image img,
  section.our-team ul.nacc li .right-image img {
    border-radius: 15px;
  }

  section.our-courses ul.nacc li,
  section.our-team ul.nacc li {
    padding: 0px;
  }

  section.our-courses ul.nacc li .right-content {
    margin-left: 0px;
    padding: 30px;
  }

  section.our-team ul.nacc li .left-content {
    margin-right: 0px;
    padding: 30px;
  }

  section.our-team .naccs .menu div {
    width: 14%;
    margin: 0px 5px;
  }

  section.our-team .naccs .menu div.active img {
    border: 3px solid var(--tecnm-azul-profundo);
  }

  section.our-team .naccs .menu div h4,
  section.our-team .naccs .menu div span {
    display: none;
  }

  section.more-info .count-area-content .count-title {
    font-size: 22px;
  }
}


/*
---------------------------------------------
Tutores activos — index
---------------------------------------------
*/
.tutor-coordinadora {
  border-radius: 15px;
  padding: 35px 40px;
  background: #fff;
  margin: 15px;
  box-shadow: 0px 0px 20px rgba(27, 57, 106, 0.12);
  display: flex;
  align-items: center;
  gap: 30px;
  border-left: 5px solid var(--tecnm-azul-profundo);
}

.tutor-coordinadora .tutor-avatar {
  font-size: 80px;
  color: var(--tecnm-azul-profundo);
  flex-shrink: 0;
}

.tutor-coordinadora .tutor-rol {
  font-size: 12px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.tutor-coordinadora h4 {
  font-size: 22px;
  font-weight: 900;
  color: #111;
  margin: 8px 0 5px 0;
}

.tutor-coordinadora .tutor-grado {
  font-size: 13px;
  font-weight: 700;
  color: #7a7a7a;
  display: block;
}

.tutor-coordinadora p {
  margin-top: 12px;
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .tutor-coordinadora {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

/* ── Variante para resultado de búsqueda ── */
.tutor-result-card {
  padding: 25px 30px !important;
  margin: 15px 0 !important;
  gap: 20px !important;
}

.tutor-result-card .tutor-avatar {
  font-size: 60px !important;
}

.tutor-result-card h4 {
  font-size: 20px !important;
}

.tutor-result-card .tutor-info-header {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.tutor-result-card h4 {
  font-size: 24px !important;
  color: var(--tecnm-azul-profundo) !important;
}

.tutor-result-card .tutor-contact-hint {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
  font-size: 13px;
  color: #777;
  font-style: italic;
}

.tutor-result-card .tutor-contact-hint i {
  color: var(--tecnm-azul-medio);
  margin-right: 5px;
}

@media (max-width: 576px) {
  .tutor-result-card {
    padding: 22px 18px !important;
    gap: 0px !important;
  }

  .tutor-result-card h4 {
    font-size: 20px !important;
  }
}

.tutor-extra-info {
  margin-top: 15px;
}

.tutor-session-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 10px;
}

.tutor-session-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.info-badge {

  background-color: #edf2f7;
  color: var(--tecnm-azul-profundo);
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 3px solid var(--tecnm-azul-medio);
}

.info-badge i {
  font-size: 14px;
}

.info-badge span {
  white-space: nowrap;
}



/*
---------------------------------------------
Programas de asesoría (PAPAS / PARSIS)
---------------------------------------------
*/

.programa-card {
  border-radius: 15px;
  padding: 30px;
  background: #fff;
  margin: 15px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
}

.programa-card h4 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #111;
}

.programa-card .programa-nombre {
  font-size: 13px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
  display: block;
}

.programa-card p {
  margin-top: 15px;
}

.programa-card .main-button-gradient {
  margin-top: 20px;
}


/*
---------------------------------------------
Servicio médico
---------------------------------------------
*/

.servicio-medico-card {
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  transition: all .3s;
}

.servicio-medico-card:hover {
  box-shadow: 0px 0px 25px rgba(27, 57, 106, 0.12);
}

.servicio-medico-card .servicio-icon {
  font-size: 48px;
  color: var(--tecnm-azul-profundo);
  display: block;
  margin-bottom: 20px;
}

.servicio-medico-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #111;
}


/*
---------------------------------------------
Secciones ¿Qué es? / Tipos / Créditos / Constancia
---------------------------------------------
*/

section.que-es {
  margin-top: 140px;
}

section.que-es .section-heading {
  text-align: left;
}

.info-card {
  border-radius: 15px;
  padding: 35px 30px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  height: 100%;
  margin-bottom: 30px;
}

.info-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(-145deg, #1B396A 0%, #24518F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.info-card .card-icon i {
  color: #fff;
  font-size: 22px;
}

.info-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 15px;
}

.info-card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.info-card ul li {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 28px;
  padding-left: 22px;
  position: relative;
}

.info-card ul li::before {
  content: '✓';
  color: #1B396A;
  font-weight: 700;
  position: absolute;
  left: 0;
}

section.tipos-tutoria {
  margin-top: 140px;
}

.tipo-card {
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
  margin-bottom: 30px;
  transition: all .3s;
}

.tipo-card:hover {
  box-shadow: 0px 0px 25px rgba(27, 57, 106, 0.15);
  transform: translateY(-5px);
}

.tipo-card .tipo-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(-145deg, #1B396A 0%, #24518F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.tipo-card .tipo-icon i {
  color: #fff;
  font-size: 28px;
}

.tipo-card h4 {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-bottom: 15px;
}

section.creditos-section {
  margin-top: 140px;
  background: linear-gradient(-145deg, #1B396A 0%, #24518F 100%);
  padding: 80px 0;
}

section.creditos-section .section-heading h6 {
  color: rgba(255, 255, 255, 0.75);
}

section.creditos-section .section-heading h4 {
  color: #fff;
}

section.creditos-section .section-heading h4 em {
  color: #A8C4E0;
}

section.creditos-section .section-heading p {
  color: rgba(255, 255, 255, 0.85);
}

.credito-step {
  text-align: center;
  padding: 30px 20px;
}

.credito-step .step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.credito-step h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.credito-step p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.credito-large-icon i {
  font-size: 60px;
  background: linear-gradient(-145deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 20px;
}

.credito-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 30px;
  padding-top: 55px;
}

.credito-alert {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 20px 30px;
  margin-top: 40px;
  text-align: center;
}

.credito-alert p {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.credito-alert i {
  color: #FFD700;
  margin-right: 8px;
}

section.constancia {
  margin-top: 140px;
}

.constancia-box {
  background: #f9fbff;
  border-radius: 20px;
  border: 1px solid rgba(27, 57, 106, 0.1);
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.constancia-box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 40px rgba(27, 57, 106, 0.1);
}

.constancia-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #1B396A, #24518F);
}

.constancia-box i {
  font-size: 70px;
  background: linear-gradient(-145deg, #1B396A 0%, #24518F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  margin-bottom: 25px;
  display: block;
}

.constancia-box h4 {
  font-size: clamp(1.3rem, 5vw, 1.75rem);
  font-weight: 900;
  color: #1B396A;
  margin-bottom: 20px;
}

.constancia-box p {
  color: #555;
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.constancia-note {
  display: inline-block;
  background-color: rgba(27, 57, 106, 0.05);
  border-left: 3px solid #1B396A;
  padding: 8px 15px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #555;
  font-style: italic;
  margin-top: 15px;
  margin-bottom: 25px;
}









/*
---------------------------------------------
Documentos (programas.html)
---------------------------------------------
*/

.doc-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 30px;
  transition: all .3s;
}

.doc-card:hover {
  box-shadow: 0px 0px 25px rgba(27, 57, 106, 0.12);
  transform: translateY(-3px);
}

.doc-card-header {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.doc-card-header i {
  font-size: 38px;
  color: #fff;
  flex-shrink: 0;
}

.doc-card-header h4 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px;
}

.doc-card-header span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.doc-card-body {
  padding: 25px 30px;
}

.doc-periodo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--tecnm-gris-claro);
  border-left: 4px solid var(--tecnm-azul-profundo);
  border-radius: 0 8px 8px 0;
  padding: 8px 15px;
  margin-bottom: 18px;
}

.doc-periodo i {
  color: var(--tecnm-azul-profundo);
  font-size: 13px;
}

.doc-periodo span {
  font-size: 13px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
}

.doc-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.doc-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--tecnm-gris-claro);
  border-radius: 10px;
  padding: 13px 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-file-info i {
  font-size: 24px;
  color: var(--tecnm-azul-profundo);
  flex-shrink: 0;
}

.doc-file-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  display: block;
}

.doc-file-desc {
  font-size: 12px;
  color: #7a7a7a;
  display: block;
}

.doc-file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-descargar {
  font-size: 12px;
  color: #fff;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all .3s;
  text-decoration: none !important;
}

.btn-descargar:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-ver {
  font-size: 12px;
  color: var(--tecnm-azul-profundo);
  background: #fff;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid rgba(27, 57, 106, 0.25);
  transition: all .3s;
  text-decoration: none !important;
}

.btn-ver:hover {
  border-color: var(--tecnm-azul-profundo);
  color: var(--tecnm-azul-profundo);
}

.aviso-creditos {
  background-color: var(--tecnm-gris-claro);
  border: 2px solid rgba(27, 57, 106, 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  margin-top: 10px;
}

.aviso-creditos p {
  color: var(--tecnm-azul-profundo);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 1023px) {
  .doc-card-header {
    flex-direction: column;
    text-align: center;
  }

  .doc-file-row {
    flex-direction: column;
    align-items: flex-start;
  }
}


/*
---------------------------------------------
Campus footer (páginas internas)
---------------------------------------------
*/

.campus-footer {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  max-height: 280px;
}

.campus-footer img {
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.campus-footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(-145deg, rgba(27, 57, 106, 0.82) 0%, rgba(36, 81, 143, 0.68) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.campus-footer-overlay h4 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.campus-footer-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 0;
}


/*
---------------------------------------------
Contacto page
---------------------------------------------
*/

.contact-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 25px;
  transition: all .3s;
}

.contact-card:hover {
  box-shadow: 0px 0px 22px rgba(27, 57, 106, 0.12);
  transform: translateY(-3px);
}

.contact-card-inner {
  padding: 25px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon i {
  font-size: 22px;
  color: #fff;
}

.contact-card-text strong {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  display: block;
  margin-bottom: 3px;
}

.contact-card-text span {
  font-size: 13px;
  color: #7a7a7a;
  display: block;
}

.contact-card-text a {
  font-size: 14px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
  display: block;
  margin-top: 4px;
  transition: color .2s;
}

.contact-card-text a:hover {
  color: var(--tecnm-azul-claro);
  text-decoration: underline;
}

.horario-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.horario-table td {
  padding: 8px 12px;
  font-size: 13px;
}

.horario-table td:first-child {
  font-weight: 700;
  color: #111;
  width: 55%;
}

.horario-table td:last-child {
  color: #7a7a7a;
}

.horario-table tr:nth-child(odd) td {
  background-color: var(--tecnm-gris-claro);
  border-radius: 6px;
}

.ubicacion-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 25px;
}

.ubicacion-header {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ubicacion-header i {
  font-size: 26px;
  color: #fff;
}

.ubicacion-header h4 {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2px;
}

.ubicacion-header span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.ubicacion-body {
  padding: 25px 28px;
}

.mapa-placeholder {
  width: 100%;
  height: 260px;
  background-color: var(--tecnm-gris-claro);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.mapa-placeholder i {
  font-size: 42px;
  color: rgba(27, 57, 106, 0.2);
}

.mapa-placeholder p {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

.indicaciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.indicacion-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.indicacion-row i {
  font-size: 16px;
  color: var(--tecnm-azul-profundo);
  margin-top: 2px;
  flex-shrink: 0;
}

.indicacion-row span {
  font-size: 13px;
  color: var(--tecnm-gris-texto);
  line-height: 1.6;
}

.teams-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  padding: 25px 28px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all .3s;
}

.teams-card:hover {
  box-shadow: 0px 0px 22px rgba(27, 57, 106, 0.12);
  transform: translateY(-3px);
}

.teams-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #4b53bc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.teams-icon i {
  font-size: 24px;
  color: #fff;
}

.teams-card .teams-text strong {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  display: block;
  margin-bottom: 3px;
}

.teams-card .teams-text span {
  font-size: 13px;
  color: #7a7a7a;
  display: block;
  margin-bottom: 8px;
}

.redes-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  padding: 25px 28px;
  margin-bottom: 25px;
}

.redes-card h5 {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  margin-bottom: 18px;
}

.red-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none !important;
  transition: all .2s;
}

.red-row:last-child {
  border-bottom: none;
}

.red-row:hover .red-label {
  color: var(--tecnm-azul-claro);
}

.red-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.red-icon i {
  font-size: 20px;
  color: #fff;
}

.red-icon.facebook {
  background: #1877f2;
}

.red-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.red-label {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  display: block;
}

.red-handle {
  font-size: 12px;
  color: #7a7a7a;
  display: block;
}

.red-arrow {
  margin-left: auto;
  color: #ccc;
  font-size: 14px;
}

@media (max-width: 1023px) {
  .contact-card-inner {
    flex-direction: column;
    text-align: center;
  }

  .teams-card {
    flex-direction: column;
    text-align: center;
  }
}


/*
---------------------------------------------
Constancias (constancias.html)
---------------------------------------------
*/

.prox-banner {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  border-radius: 15px;
  padding: 50px 40px;
  text-align: center;
  margin-bottom: 50px;
}

.prox-banner .prox-icon {
  font-size: 56px;
  color: rgba(255, 255, 255, 0.25);
  display: block;
  margin-bottom: 20px;
}

.prox-banner h3 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.prox-banner p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

.badge-prox {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.constancia-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 30px;
}

.constancia-card-header {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  padding: 22px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.constancia-card-header i {
  font-size: 32px;
  color: #fff;
  flex-shrink: 0;
}

.constancia-card-header h4 {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2px;
}

.constancia-card-header span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.constancia-card-body {
  padding: 30px;
  position: relative;
}

.constancia-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 247, 251, 0.92);
  border-radius: 0 0 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  text-align: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.constancia-overlay i {
  font-size: 38px;
  color: var(--tecnm-azul-profundo);
  opacity: 0.5;
}

.constancia-overlay p {
  font-size: 14px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
  margin: 0;
}

.constancia-overlay small {
  font-size: 12px;
  color: #7a7a7a;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

.form-control-static {
  background-color: var(--tecnm-gris-claro);
  border: 1px solid #dde3ec;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 14px;
  color: #999;
  width: 100%;
  margin-bottom: 18px;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 5px;
}

.btn-constancia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.45;
  border: none;
}

.btn-constancia-primary {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  color: #fff;
}

.btn-constancia-outline {
  background: #fff;
  color: var(--tecnm-azul-profundo);
  border: 2px solid rgba(27, 57, 106, 0.3);
}

.btn-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.constancia-preview {
  border: 2px dashed rgba(27, 57, 106, 0.2);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  background-color: var(--tecnm-gris-claro);
  margin-bottom: 18px;
}

.constancia-preview i {
  font-size: 48px;
  color: rgba(27, 57, 106, 0.2);
  display: block;
  margin-bottom: 10px;
}

.constancia-preview p {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

.info-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row i {
  font-size: 20px;
  color: var(--tecnm-azul-profundo);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-row .info-text strong {
  font-size: 14px;
  color: #111;
  display: block;
  margin-bottom: 2px;
}

.info-row .info-text span {
  font-size: 13px;
  color: #7a7a7a;
}

@media (max-width: 1023px) {
  .constancia-card-header {
    flex-direction: column;
    text-align: center;
  }

  .btn-actions {
    flex-direction: column;
  }

  .prox-banner {
    padding: 35px 20px;
  }
}


/*
---------------------------------------------
Tutores (tutores.html)
---------------------------------------------
*/

.categoria-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.categoria-badge {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 20px;
  border-radius: 25px;
  white-space: nowrap;
  flex-shrink: 0;
}

.categoria-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, rgba(27, 57, 106, 0.2), transparent);
  border-radius: 2px;
}

.categoria-semestre {
  font-size: 12px;
  color: #7a7a7a;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tutor-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 25px;
  transition: all .3s;
}

.tutor-card:hover {
  box-shadow: 0px 0px 22px rgba(27, 57, 106, 0.12);
  transform: translateY(-3px);
}

.tutor-card-top {
  padding: 25px 25px 20px 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #f0f0f0;
}

.tutor-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tutor-avatar-circle i {
  font-size: 26px;
  color: #fff;
}

.tutor-nombre {
  font-size: 16px;
  font-weight: 900;
  color: #111;
  display: block;
  margin-bottom: 3px;
}

.tutor-grado {
  font-size: 12px;
  color: #7a7a7a;
  display: block;
  margin-bottom: 6px;
}

.tutor-grupo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--tecnm-gris-claro);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
}

.tutor-card-body {
  padding: 15px 25px 25px 25px;
}

.btn-download-tutees {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--tecnm-gris-claro);
  color: var(--tecnm-azul-profundo);
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: all .3s;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.btn-download-tutees:hover {
  background-color: var(--tecnm-azul-profundo);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0px 5px 15px rgba(27, 57, 106, 0.2);
}

.btn-download-tutees i {
  font-size: 16px;
}

.tutorados-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tutorado-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tecnm-gris-claro);
  border-radius: 8px;
  padding: 8px 14px;
}

.tutorado-nombre {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.tutorado-control {
  font-size: 12px;
  color: #7a7a7a;
}

.prox-aviso {
  background-color: var(--tecnm-gris-claro);
  border: 2px solid rgba(27, 57, 106, 0.15);
  border-radius: 12px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.prox-aviso i {
  font-size: 22px;
  color: var(--tecnm-azul-profundo);
  flex-shrink: 0;
}

.prox-aviso p {
  font-size: 13px;
  color: var(--tecnm-gris-texto);
  margin: 0;
}

.prox-aviso strong {
  color: var(--tecnm-azul-profundo);
}

@media (max-width: 1023px) {
  .categoria-semestre {
    display: none;
  }

  .tutor-card-top {
    flex-direction: column;
    text-align: center;
  }
}


/*
---------------------------------------------
Fix overflow de texto en móvil
---------------------------------------------
*/

@media (max-width: 1023px) {

  * {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .doc-file-name,
  .doc-file-desc,
  .tutor-nombre,
  .tutor-grado,
  .doc-card-header h4,
  .doc-card-header span,
  .constancia-card-header h4,
  .constancia-card-header span,
  .ubicacion-header h4,
  .ubicacion-header span,
  .contact-card-text a,
  .contact-card-text span,
  .contact-card-text strong {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .doc-file-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-file-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }

  body,
  .container {
    overflow-x: hidden;
  }

  .row {
    overflow: visible;
  }

  img,
  iframe,
  video {
    max-width: 100%;
    height: auto;
  }

}

/* ── Formulario de constancias ── */
.form-constancia-wrap {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin: 0 auto 30px auto;
  max-width: 100%;
}

.form-constancia-header {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-constancia-header i {
  font-size: 36px;
  color: #fff;
  flex-shrink: 0;
}

.form-constancia-header h4 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px;
}

.form-constancia-header span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.form-constancia-body {
  padding: 30px;
}

.spam-warning-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--tecnm-azul-profundo);
  padding: 18px 20px;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.spam-warning-form i {
  color: var(--tecnm-azul-medio);
  font-size: 22px;
  margin-top: 2px;
}

.spam-warning-form div {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

.spam-warning-form b,
.spam-warning-form strong {
  color: var(--tecnm-azul-profundo);
  font-weight: 800;
  text-decoration: none;
}

.input-control-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.input-nocontrol {
  flex: 1;
  min-width: 180px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid #dde3ec;
  background: var(--tecnm-gris-claro);
  font-size: 15px;
  font-weight: 600;
  color: #111;
  padding: 0 16px;
  outline: none;
  transition: border-color .2s;
  letter-spacing: 1px;
}

.input-nocontrol:focus {
  border-color: var(--tecnm-azul-profundo);
  background: #fff;
}

.input-nocontrol.input-error {
  border-color: #c0392b;
}

.input-nocontrol.input-ok {
  border-color: #27ae60;
}

.btn-solicitar {
  height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-solicitar:hover {
  opacity: 0.9;
}

.btn-solicitar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Modal Verificación Tutor Actions ── */
.modal-tutor-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 22px;
}

.modal-tutor-actions .btn-modal-cancelar {
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-sizing: border-box;
}

.modal-tutor-actions .btn-modal-cancelar:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #1e293b;
}

.modal-tutor-actions .btn-modal-confirmar {
  height: 46px !important;
  padding: 0 22px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .modal-tutor-actions {
    flex-direction: column-reverse !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }
  .modal-tutor-actions .btn-modal-cancelar,
  .modal-tutor-actions .btn-modal-confirmar {
    width: 100% !important;
    justify-content: center !important;
  }
}

.correo-preview {
  margin-top: 12px;
  background: var(--tecnm-gris-claro);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--tecnm-azul-profundo);
  font-weight: 600;
  transition: opacity .2s;
}

.correo-preview.hidden {
  display: none !important;
}

.correo-preview i {
  flex-shrink: 0;
  font-size: 15px;
}

.validacion-hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 6px;
  font-weight: 500;
}

.validacion-hint.hint-error {
  color: #c0392b;
}

/* ── Mensajes de resultado ── */
.msg-resultado {
  margin-top: 18px;
  border-radius: 10px;
  padding: 16px 20px;
  display: none;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}

.msg-resultado i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg-texto small {
  display: block;
  font-weight: 400;
  margin-top: 3px;
  opacity: 0.85;
  line-height: 1.5;
}

.msg-resultado.msg-ok {
  display: flex;
  background: #eafaf1;
  border: 2px solid #27ae60;
  color: #1e8449;
}

.msg-resultado.msg-ok i {
  color: #27ae60;
}

.msg-resultado.msg-error {
  display: flex;
  background: #fdedec;
  border: 2px solid #c0392b;
  color: #922b21;
}

.msg-resultado.msg-error i {
  color: #c0392b;
}

.msg-resultado.msg-loading {
  display: flex;
  background: var(--tecnm-gris-claro);
  border: 2px solid #dde3ec;
  color: #4a4a4a;
}

.msg-resultado.msg-loading i {
  color: var(--tecnm-azul-profundo);
}

/* Advertencia 429 — límite diario */
.msg-resultado.msg-warn {
  display: flex;
  background: #fef9ec;
  border: 2px solid #f39c12;
  color: #7d6000;
}

.msg-resultado.msg-warn i {
  color: #f39c12;
}

/* ── Spinner ── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-spin-anim {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 1023px) {
  .section-heading {
    text-align: center !important;
  }

  section.que-es .section-heading {
    text-align: left !important;
  }

  .constancia-note {
    display: table;
    margin: 20px auto 60px auto;
    text-align: center;
    border-radius: 8px;
    border-left: none;
    border-top: 3px solid #1B396A;
  }

  .form-constancia-header {
    flex-direction: column;
    text-align: center;
  }

  .form-constancia-body {
    text-align: center;
    padding: 40px 25px;
  }

  .input-control-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .form-constancia-wrap {
    margin-top: 30px;
  }

  .input-nocontrol {
    width: 100%;
    height: 52px;
    font-size: 16px;
    line-height: 52px;
  }

  .btn-solicitar {
    width: 100%;
    height: 52px;
    font-size: 16px;
    justify-content: center;
  }

  .validacion-hint {
    text-align: center;
  }

  .correo-preview {
    justify-content: center;
  }

  .info-card {
    text-align: center;
  }

  .info-card ul {
    text-align: left;
    display: table;
    margin: 0 auto;
  }

  .info-card .card-icon {
    margin: 0 auto 20px auto;
  }

  .info-card ul li {
    padding-left: 22px;
    text-align: left;
  }

  .info-card ul li::before {
    display: block;
  }

  .constancia-box {
    padding: 60px 20px;
  }
}


/* ── Utility Classes ── */
.tecnm-accent {
  font-style: normal;
  color: var(--tecnm-azul-profundo);
}

.section-top-margin {
  margin-top: 80px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mt-20 {
  margin-top: 20px;
}

.text-tecnm-rojo {
  color: var(--tecnm-rojo);
}

.info-row-no-border {
  border: none !important;
  padding: 0 !important;
}

/* ── Specific classes for Contact US ── */
.contact-note-card {
  border-left: 4px solid var(--tecnm-azul-profundo);
  border-radius: 0 15px 15px 0;
}

.d-inline-block {
  display: inline-block !important;
}

.mt-10 {
  margin-top: 10px;
}

.mr-8 {
  margin-right: 8px;
}

/* ── Specific classes for Index ── */
.credito-special {
  background: linear-gradient(-145deg, #FFD700 0%, #FFA500 100%) !important;
  border-color: #fff !important;
  color: #1B396A !important;
}


.tutor-item-card {
  border-radius: 15px;
  padding: 30px;
  background: #fff;
  margin: 15px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.tutor-item-card i {
  font-size: 60px;
  color: var(--tecnm-azul-profundo);
  margin-bottom: 15px;
  display: block;
}

.tutor-item-card h4 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 5px;
}

.tutor-item-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
}

.tutor-item-card p {
  margin-top: 15px;
  font-size: 13px;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

.map-container img {
  width: 100%;
  border-radius: 15px;
  display: block;
}

/* ── Utility Classes ── */
.text-center {
  text-align: center !important;
}

.mb-40 {
  margin-bottom: 40px !important;
}

.section-top-large {
  margin-top: 140px !important;
}

/* ── Specific classes for Programas-ISC ── */
.prog-card {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 50px;
  transition: all .3s;
}

.prog-card:hover {
  box-shadow: 0px 0px 25px rgba(27, 57, 106, 0.13);
  transform: translateY(-3px);
}

.prog-card-header {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  padding: 30px 35px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.prog-card-header .prog-siglas {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 18px;
  letter-spacing: 2px;
}

.prog-card-header h4 {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.prog-card-header span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.prog-card-body {
  padding: 30px 35px;
}

.prog-card-body p {
  margin-bottom: 25px;
}

/* ── Lista de servicios dentro de la card ── */
.prog-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.prog-lista li {
  font-size: 14px;
  color: var(--tecnm-gris-texto);
  line-height: 28px;
  padding-left: 22px;
  position: relative;
}

.prog-lista li::before {
  content: '→';
  color: var(--tecnm-azul-profundo);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ── Chip de área ── */
.prog-area {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--tecnm-gris-claro);
  border-left: 4px solid var(--tecnm-azul-profundo);
  border-radius: 0 8px 8px 0;
  padding: 7px 14px;
  margin-bottom: 20px;
}

.prog-area i {
  color: var(--tecnm-azul-profundo);
  font-size: 13px;
}

.prog-area span {
  font-size: 13px;
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
}

/* ── Divisor entre secciones de la card ── */
.prog-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

.prog-subtitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7a7a7a;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ── Footer imagen ── */
.campus-footer {
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  max-height: 280px;
}

.campus-footer img {
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.campus-footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(-145deg, rgba(27, 57, 106, 0.82) 0%, rgba(36, 81, 143, 0.68) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.campus-footer-overlay h4 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.campus-footer-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ── CTA Support Box ── */
.cta-support-box {
  background: linear-gradient(-145deg, var(--tecnm-azul-profundo) 0%, var(--tecnm-azul-medio) 100%);
  border-radius: 15px;
  padding: 50px 40px;
  text-align: center;
}

.cta-support-box i {
  font-size: 52px;
  color: rgba(255, 255, 255, 0.20);
  display: block;
  margin-bottom: 18px;
}

.cta-support-box h3 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.cta-support-box p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 15px;
  max-width: 540px;
  margin: 0 auto 15px auto;
}

.cta-support-box .constancia-note {
  display: block;
  background-color: rgba(0, 0, 0, 0.1);
  border-left: 3px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  margin: 0 auto 30px auto;
  max-width: 680px;
  width: fit-content;
  text-align: center;
}

@media (max-width: 1023px) {
  .prog-card-header {
    flex-direction: column;
    text-align: center;
  }

  .prog-card-header .prog-siglas {
    font-size: 28px;
  }
}

/* ── Extra utilities ── */
.section-top-60 {
  margin-top: 60px !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.w-100 {
  width: 100% !important;
}

.m-0 {
  margin: 0 !important;
}

/* 
---------------------------------------------
MODAL ÉXITO (Success Modal)
--------------------------------------------- 
*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  display: flex !important;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: all 0.3s ease;
  opacity: 1;
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

#modalExito .modal-content {
  background: #fff;
  width: 90%;
  max-width: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0 !important;
  text-align: center;
  border: none !important;
  margin: 0 15px;
}

.modal-header-success {
  background: linear-gradient(-145deg, var(--tecnm-verde) 0%, var(--tecnm-verde-hover) 100%);
  padding: 25px 20px;
  color: #fff !important;
}

.modal-header-success i {
  font-size: 32px;
  margin-bottom: 8px;
  color: #fff !important;
}

.modal-header-success h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff !important;
}

.modal-body {
  padding: 20px;
}

.modal-body p {
  color: #666;
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-email-box {
  background: var(--tecnm-gris-claro);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px dashed var(--tecnm-azul-profundo);
}

.modal-email-box strong {
  color: var(--tecnm-azul-profundo);
  font-size: 14px;
  word-break: break-all;
}

.modal-spam-notice {
  background: #fff8e1;
  border-left: 4px solid #ffca28;
  padding: 12px;
  border-radius: 0 8px 8px 0;
  text-align: left;
  margin-bottom: 15px;
}

.modal-spam-notice i {
  color: #ffa000;
  font-size: 16px;
  margin-right: 8px;
  float: left;
  margin-top: 3px;
}

.modal-spam-notice span {
  font-size: 13px;
  color: #5d4037;
  display: block;
}

.modal-footer-note {
  font-size: 11px !important;
  color: #999 !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

.modal-btn-close {
  width: 100%;
  background: var(--tecnm-azul-profundo);
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-btn-close:hover {
  background: var(--tecnm-azul-medio);
}

@media (max-width: 576px) {

  #modalExito .modal-content,
  #modalError .modal-content-error {
    width: 92%;
    max-width: 340px;
  }

  .modal-header-success,
  .modal-header-error {
    padding: 20px 15px;
  }
}

/* 
---------------------------------------------
MODAL ERROR (Error Modal)
--------------------------------------------- 
*/
#modalError .modal-content-error {
  background: #fff;
  width: 90%;
  max-width: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0 !important;
  text-align: center;
  border: none !important;
  margin: 0 15px;
}

.modal-header-error {
  background: linear-gradient(-145deg, var(--tecnm-rojo) 0%, #E74C3C 100%);
  padding: 25px 20px;
  color: #fff !important;
}

.modal-header-error i {
  font-size: 32px;
  margin-bottom: 8px;
  color: #fff !important;
}

.modal-header-error h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff !important;
}

.modal-info-box {
  background: #FDF2F2;
  border: 1px solid #FBD5D5;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
}

.modal-info-box p {
  color: #9B1C1C;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 0 !important;
}

.modal-btn-close-error {
  width: 100%;
  background: var(--tecnm-azul-profundo);
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-btn-close-error:hover {
  background: var(--tecnm-azul-medio);
}

/* ── Aviso Tutoría II ── */
.aviso-tutoria {
  margin-top: 80px !important;
  margin-bottom: 80px !important;
}

.aviso-box {
  background: #fff;
  border: 2px solid var(--tecnm-rojo);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(192, 57, 43, 0.1);
  position: relative;
  transition: all 0.3s;
}

.aviso-box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 40px rgba(192, 57, 43, 0.15);
}

.aviso-box i.fa-exclamation-triangle {
  font-size: 48px;
  color: var(--tecnm-rojo);
  margin-bottom: 20px;
}

.aviso-box h3 {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.aviso-box p {
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.aviso-requisitos {
  background-color: var(--tecnm-gris-claro);
  padding: 25px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
}

.aviso-requisitos p {
  font-weight: 700;
  color: var(--tecnm-azul-profundo);
  margin-bottom: 15px;
  text-align: center;
}

.aviso-requisitos ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aviso-requisitos li {
  font-size: 15px;
  color: #444;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.aviso-requisitos li i {
  color: var(--tecnm-rojo);
  font-size: 18px;
  margin-top: 3px;
}

.aviso-importante-nota {
  color: var(--tecnm-rojo) !important;
  font-weight: 700;
  font-style: italic;
  margin-top: 20px !important;
}

@media (max-width: 767px) {
  .aviso-box {
    padding: 30px 20px;
  }
}

/* ===== SKELETON LOADING PREMIUM ===== */
.skeleton-text,
.skeleton-title,
.skeleton-avatar,
.skeleton-card {
  background: #f1f5f9;
  background-image: linear-gradient(to right,
      #f1f5f9 0%,
      #e2e8f0 20%,
      #f1f5f9 40%,
      #f1f5f9 100%);
  background-repeat: no-repeat;
  background-size: 800px 104px;
  animation: shimmer-premium 1.5s infinite linear;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
}

.skeleton-card {
  height: 200px;
  width: 100%;
}

.skeleton-text {
  height: 12px;
  width: 100%;
}

.skeleton-text.short {
  width: 40%;
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: 20px;
}

@keyframes shimmer-premium {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

/* ===== OWL CAROUSEL MODERN NAV ===== */
.owl-service-item {
  position: relative;
  padding: 0 45px;
}

.owl-service-item .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.owl-service-item .owl-nav button {
  pointer-events: auto;
  width: 45px;
  height: 45px;
  background: #fff !important;
  color: var(--tecnm-azul-profundo) !important;
  border-radius: 50% !important;
  font-size: 24px !important;
  line-height: 45px !important;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  position: absolute;
  border: none !important;
  outline: none !important;
}

.owl-service-item .owl-nav button.owl-prev {
  left: 0;
}

.owl-service-item .owl-nav button.owl-next {
  right: 0;
}

.owl-service-item .owl-nav button:hover {
  background: var(--tecnm-azul-profundo) !important;
  color: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(27, 57, 106, 0.3) !important;
}

.owl-service-item .owl-dots {
  margin-top: 30px;
  text-align: center;
}

.owl-service-item .owl-dots .owl-dot {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.owl-service-item .owl-dots .owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background: #ddd !important;
  border-radius: 50% !important;
  display: inline-block !important;
  margin: 0 5px !important;
  transition: all 0.3s ease !important;
}

.owl-service-item .owl-dots .owl-dot.active span {
  background: var(--tecnm-azul-profundo) !important;
  width: 30px !important;
  border-radius: 10px !important;
}

@media (max-width: 991px) {
  .owl-service-item {
    padding: 0 10px;
  }

  .owl-service-item .owl-nav {
    display: none;
  }
}

/* 
---------------------------------------------
ESTILOS GENERALES ADMIN Y 404
--------------------------------------------- 
*/

/* 404 Page */
.error-page-wrapper {
  height: 100vh;
  width: 100%;
  background: #0f172a;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(27, 57, 106, 0.4) 0%, rgba(36, 81, 143, 0.4) 100%);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.blob-2 {
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
  width: 400px;
  height: 400px;
}

.blob-3 {
  top: 40%;
  right: 10%;
  animation-delay: -10s;
  width: 300px;
  height: 300px;
  opacity: 0.5;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  33% {
    transform: translate(50px, 80px) rotate(10deg) scale(1.1);
  }

  66% {
    transform: translate(-30px, 40px) rotate(-15deg) scale(0.9);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

.glass-card {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-radius: 30px;
  padding: 60px 40px;
  max-width: 550px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-code {
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  color: #800E13;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
  letter-spacing: -5px;
}

.error-title {
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.error-description {
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.back-btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(-145deg, #1B396A 0%, #24518F 100%);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(27, 57, 106, 0.3);
  text-decoration: none !important;
}

.back-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 30px rgba(27, 57, 106, 0.4);
  color: #fff;
}

.back-btn:active {
  transform: scale(0.98);
}

.icon-404 {
  font-size: 40px;
  color: #800E13;
  margin-bottom: 20px;
  display: block;
  animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  5% {
    transform: scale(1.1);
  }

  10% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.2);
  }

  20% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

.particle {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .error-code {
    font-size: 100px;
  }

  .error-title {
    font-size: 20px;
  }

  .grass-card {
    padding: 40px 20px;
  }
}

/* Coordinacion Login Page */
.login-wrapper {
  height: 100vh;
  width: 100%;
  /* Gradiente dinámico: más claro a la izquierda para ver los colores, más oscuro a la derecha para legibilidad */
  background: linear-gradient(to right, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%), url('../images/letras_itver.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12%;
  position: relative;
}

.glass-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(30px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(210%);
  padding: 65px 50px;
  border-radius: 35px;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  /* Brillo en el borde superior */
  width: 100%;
  max-width: 460px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: cardEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-title {
  color: #000;
  /* Negro puro para máximo contraste sobre el cristal */
  font-size: 30px;
  font-weight: 850;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.login-subtitle {
  color: #334155;
  /* Gris más oscuro para legibilidad */
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 35px;
}

.return-link {
  font-size: 14px;
  color: #1B396A;
  /* Azul Institucional activo */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.return-link:hover {
  color: #24518F;
  transform: translateX(-5px);
  /* Efecto sutil de movimiento hacia la izquierda */
}

.form-group-admin {
  margin-bottom: 25px;
  text-align: left;
}

.form-group-admin .form-control {
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group-admin .form-control:focus {
  border-color: #1B396A;
  box-shadow: 0 0 0 3px rgba(27, 57, 106, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #1B396A 0%, #162e55 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px -5px rgba(27, 57, 106, 0.4);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(27, 57, 106, 0.5);
  filter: brightness(1.1);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Responsividad para Móviles */
@media (max-width: 768px) {
  .login-wrapper {
    justify-content: center;
    /* Centrar en móviles */
    padding: 20px;
  }

  .glass-card {
    padding: 40px 25px;
    border-radius: 24px;
    max-width: 100%;
  }

  .login-title {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(27, 57, 106, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.error-msg {
  color: #800E13;
  font-size: 14px;
  margin-top: -15px;
  margin-bottom: 15px;
  display: none;
}

/* Dashboard Coordinacion Page */
body.admin-body {
  background: #f4f7fb;
  color: #1e293b;
  height: 100vh;
  overflow: hidden;
  /* Evitar scroll en el body, lo manejamos internamente */
}

.navbar-admin {
  background: linear-gradient(-145deg, #1B396A 0%, #24518F 100%);
  padding: 18px 40px;
  /* Mas grueso */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1005;
}

/* --- Toggle Button Styles --- */
.menu-toggle-admin {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: none; /* Oculto por defecto en PC */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 20px;
  margin-right: 15px;
}

.menu-toggle-admin:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.menu-toggle-admin:active {
  transform: scale(0.95);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

.navbar-admin .brand-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-admin .brand-area h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

.navbar-admin .brand-area span {
  font-size: 14px;
  opacity: 0.8;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 1px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  padding-left: 20px;
  height: 24px;
  display: flex;
  align-items: center;
}

.admin-layout {
  display: flex;
  height: calc(100vh - 80px);
  /* Altura fija restando el navbar */
  width: 100%;
}

/* El contenido principal con su propio scroll */
.main-content-admin,
.editor-main {
  flex: 1;
  height: 100%;
  overflow-y: auto !important;
  /* Forzar scroll vertical */
  overflow-x: auto;
  /* Permitir scroll horizontal si el canvas es ancho */
  padding: 30px;
  background: #f4f7fb;
}

/* Sidebar Styling */
.sidebar-admin {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 30px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  /* CRITICO: Para el resizer y JS */
  transition: width 0.1s ease;
}

/* Sidebar Colapsado (Solo si se activa por JS en movil, no afecta PC) */
.sidebar-collapsed {
  transform: translateX(-100%);
}

/* El manejador para arrastrar */
.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 100;
  transition: background 0.2s;
}

@media (max-width: 991px) {
  .sidebar-resizer {
    display: none !important;
  }
}

.sidebar-resizer:hover,
.sidebar-resizing .sidebar-resizer {
  background: rgba(27, 57, 106, 0.1);
}

/* Deshabilitar transiciones durante el arrastre para evitar lag */
.sidebar-resizing .sidebar-admin,
.sidebar-resizing .main-content-admin {
  transition: none !important;
}

.sidebar-resizing {
  cursor: col-resize;
  user-select: none;
  /* Evitar seleccionar texto mientras arrastra */
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.sidebar-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  border-left: 4px solid transparent;
  padding: 0;
  /* Cambio: Padding movido al enlace */
}

.sidebar-item a {
  padding: 15px 30px;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.sidebar-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.sidebar-item:hover {
  background: #f8fafc;
  color: #1B396A;
}

.sidebar-item.active {
  background: rgba(27, 57, 106, 0.05);
  color: #1B396A;
  border-left-color: #1B396A;
}

.sidebar-item i {
  width: 20px;
  text-align: center;
  font-size: 18px;
  color: var(--tecnm-azul-medio);
  opacity: 0.8;
  transition: all 0.3s;
}

/* Modo Compacto - Cuando el ancho es pequeño */
.compact-sidebar .sidebar-item span,
.compact-sidebar .logout-btn-sidebar span {
  display: none !important;
  /* Forzar ocultamiento */
}

.compact-sidebar .sidebar-item a,
.compact-sidebar .logout-btn-sidebar {
  justify-content: center;
  padding: 15px 0;
}

.compact-sidebar .sidebar-item i {
  margin: 0;
  font-size: 20px;
}

.sidebar-admin.compact-logout .logout-container {
  padding: 15px 5px;
  /* Reducimos el padding para que el botón respire */
}

/* Modo Compacto para el Botón de Salida (se activa antes) */
.sidebar-admin.compact-logout .logout-btn-sidebar span {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  opacity: 0 !important;
}

.sidebar-admin.compact-logout .logout-btn-sidebar {
  padding: 12px 0;
  margin: 10px auto 0 auto;
  width: 90%;
  /* Ahora sí ocupará espacio real */
  justify-content: center;
  border: 1px solid var(--tecnm-azul-medio);
  /* Restauramos el borde total */
  border-radius: 8px;
  /* Restauramos las esquinas suaves */
  overflow: hidden !important;
  background: #f1f5f9;
  /* Aseguramos el fondo */
  transition: all 0.3s ease;
}

.sidebar-admin.compact-logout .logout-btn-sidebar:hover {
  background: var(--tecnm-rojo) !important;
  color: #fff !important;
  border-color: var(--tecnm-rojo-hover) !important;
}

.sidebar-admin.compact-logout .logout-btn-sidebar:hover i {
  color: #fff !important;
}

.compact-logout .logout-btn-sidebar i {
  margin: 0;
}

/* Modo Compacto General - Cuando el ancho es muy pequeño */
.compact-sidebar .sidebar-item span {
  display: none !important;
  /* Forzar ocultamiento */
}

.sidebar-item:hover i,
.sidebar-item.active i {
  opacity: 1;
  transform: scale(1.1);
}

.logout-container {
  padding: 20px 25px;
  border-top: 1px solid #f1f5f9;
}

.logout-btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f1f5f9;
  color: #64748b;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 1px solid var(--tecnm-azul-medio);
  text-transform: uppercase;
  margin-top: 10px;
}

.logout-btn-sidebar i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.logout-btn-sidebar:hover {
  background: var(--tecnm-rojo);
  color: white;
  border-color: var(--tecnm-rojo-hover);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.2);
}

.logout-btn-sidebar:hover i {
  transform: translateX(5px);
}

.logout-btn-sidebar:active {
  transform: translateY(0);
}

/* Estilo para el botón de elegir archivos */
.form-control[type="file"]::file-selector-button,
.form-control[type="file"]::-webkit-file-upload-button {
  background-color: #1B396A !important;
  color: white !important;
  border: none !important;
  padding: 8px 15px !important;
  border-radius: 6px !important;
  margin-right: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
  font-family: 'Open Sans', sans-serif !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  box-shadow: 0 4px 14px rgba(27, 57, 106, 0.18) !important;
  opacity: 1 !important;
}

.form-control[type="file"]:hover::file-selector-button,
.form-control[type="file"]:hover::-webkit-file-upload-button,
.form-control[type="file"]::file-selector-button:hover,
.form-control[type="file"]::-webkit-file-upload-button:hover {
  background-color: #152d53 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(27, 57, 106, 0.28) !important;
}

.form-control[type="file"]:active::file-selector-button,
.form-control[type="file"]:active::-webkit-file-upload-button,
.form-control[type="file"]::file-selector-button:active,
.form-control[type="file"]::-webkit-file-upload-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(27, 57, 106, 0.15) !important;
}

/* Main Content Area */
.main-content-admin {
  flex-grow: 1;
  padding: 50px 40px 40px 40px;
  background: #f4f7fb;
}

.dashboard-section {
  display: none;
  animation: fadeInSec 0.4s ease-out;
  margin-top: 0 !important;
}

.dashboard-section.active {
  display: block;
}

@keyframes fadeInSec {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  margin-bottom: 10px;
}

.section-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #1B396A;
  margin-bottom: 5px;
  margin-top: 0;
}

.section-header p {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 0;
}

.panel-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f7;
  max-width: 900px;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1B396A;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group-admin {
  margin-bottom: 20px;
}

.form-label-admin {
  font-weight: 700;
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
  display: block;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 12px 15px;
  width: 100%;
  transition: border 0.3s;
}

.form-control:focus {
  border-color: #1B396A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 57, 106, 0.1);
}

.action-admin-btn {
  padding: 12px 25px;
  background: #1B396A;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
}

.action-admin-btn:hover {
  background: #152d53;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 57, 106, 0.2);
}

.action-admin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result-box {
  margin-top: 25px;
  padding: 20px;
  border-radius: 10px;
  display: none;
  font-size: 15px;
  line-height: 1.5;
}

.result-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.result-error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

#uploadQueue {
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}

@media (max-width: 991px) {
  .menu-toggle-admin {
    display: flex; /* Mostrar solo en móvil */
  }

  .navbar-admin {
    padding: 15px 20px;
  }

  .navbar-admin .brand-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .navbar-admin .brand-area h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .navbar-admin .brand-area span {
    font-size: 10px;
    padding-left: 0;
    border-left: none;
    height: auto;
    opacity: 0.9;
  }

  .admin-layout {
    height: calc(100vh - 75px);
  }

  .sidebar-admin {
    position: fixed;
    left: 0;
    top: 75px;
    height: calc(100vh - 75px);
    width: 280px;
    z-index: 1002;
    transform: translateX(-100%);
    box-shadow: none;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar-admin {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
  }

  .sidebar-item a {
    padding: 18px 30px;
  }

  .main-content-admin {
    padding: 15px;
    width: 100%;
    overflow-x: hidden;
  }

  .panel-card {
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .section-header-flex {
    flex-direction: row;
    flex-wrap: wrap; /* Clave: permitir que baje si no cabe */
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .btn-refresh-dashboard, .btn-refresh-admin, .btn-danger-admin, .action-admin-btn {
    width: auto;
    min-width: 120px; /* Evitar que se vuelvan tiras */
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .action-bar-sticky {
    left: 0;
    width: 100%;
    border-radius: 0;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  /* --- Tablas Responsivas Estilo Full Scroll --- */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    position: relative;
  }

  .activity-table, .log-table, .preview-table, #usersTable {
    min-width: 850px !important; /* Forzar el scroll para que la estructura se mantenga */
    margin-bottom: 0;
  }

  /* Indicador visual de scroll - ELIMINADO POR SOLICITUD */
  .table-responsive::after {
    display: none !important;
  }
}

.modal-content-admin {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  margin: auto;
}

.modal-title-admin {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #800E13;
}

.btn-modal-admin {
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-cancel-admin {
  background: #f1f5f9;
  color: #475569;
}

.btn-confirm-admin {
  background: #800E13;
  color: white;
}

/* Splash Screen & Loader */
#admin-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1B396A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  transition: opacity 0.5s;
}

.spinner-admin {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spinAdmin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes spinAdmin {
  to {
    transform: rotate(360deg);
  }
}

.admin-layout,
.navbar-admin {
  opacity: 0;
  transition: opacity 0.4s;
}

.admin-ready .admin-layout,
.admin-ready .navbar-admin {
  opacity: 1;
}

/* Unified Striking Notice Box in Success Modal */
.modal-notice-box {
  margin-top: 25px;
  padding: 15px;
  background-color: #f8fafc;
  border-radius: 8px;
  text-align: left;
}

.modal-notice-box .notice-header {
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.modal-notice-box .notice-header i {
  color: #64748b;
  font-size: 16px;
}

.modal-notice-box .notice-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

.modal-notice-box b {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
}

.modal-footer-note {
  margin-top: 25px;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}