/* =============================================================================
   INGENIERÍA EN INTELIGENCIA ARTIFICIAL - DISEÑO INSTITUCIONAL ORGÁNICO
   Hero panorámico con fotografía integrada y curvas fluidas
   ============================================================================= */

:root {
  --azul-tecnm: #003366;
  --azul-oscuro: #002147;
  --dorado-tecnm: #d4af37;
  --dorado-hover: #c09d2f;
  --blanco: #ffffff;
  --gris-claro: #f8f9fa;
  --gris-medio: #e9ecef;
  --texto: #2c3e50;
  --sombra-suave: 0 2px 8px rgba(0, 51, 102, 0.08);
  --sombra-media: 0 8px 24px rgba(0, 51, 102, 0.12);
  --sombra-fuerte: 0 16px 48px rgba(0, 51, 102, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  background: var(--blanco);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3), 0 0 10px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.3), 0 0 45px rgba(212, 175, 55, 0.2);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HERO PANORÁMICO ORGÁNICO ========== */
.hero-ia-pro {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--azul-tecnm) 0%, var(--azul-oscuro) 100%);
  overflow: hidden;
  padding-bottom: 120px;
}

/* Fotografía institucional lado derecho */
.hero-ia-pro::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background-image: url('../assets/imagenes/Inteligenciaa.jpg');
  background-size: cover;
  background-position: center left;
  z-index: 1;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 10% 100%);
}

/* Gradiente para legibilidad */
.hero-ia-pro::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  background: linear-gradient(
    to left,
    rgba(0, 51, 102, 0.25) 0%,
    rgba(0, 51, 102, 0.65) 60%,
    rgba(0, 51, 102, 0.95) 100%
  );
  z-index: 2;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 10% 100%);
}

/* Curva orgánica inferior */
.hero-ia-pro .hero-curva-organica {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 3;
  overflow: hidden;
}

.hero-curva-organica svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
}

.hero-contenido-pro {
  position: relative;
  z-index: 4;
  color: var(--blanco);
  max-width: 650px;
  padding-top: 40px;
  animation: fadeInLeft 1s ease;
}

/* Etiqueta de modalidad */
.hero-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge-pro i {
  color: var(--dorado-tecnm);
}

/* Título grande */
.hero-titulo-pro {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-titulo-destacado-pro {
  color: var(--dorado-tecnm);
  display: block;
}

/* Descripción */
.hero-descripcion-pro {
  font-size: 19px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 36px;
  max-width: 550px;
}

/* Datos horizontales con separadores */
.hero-info-horizontal {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  position: relative;
}

.hero-info-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.hero-info-icono {
  font-size: 24px;
  color: var(--dorado-tecnm);
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.5));
}

.hero-info-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-info-numero {
  font-size: 22px;
  font-weight: 700;
  color: var(--blanco);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}

.hero-info-label {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* ========== SECCIÓN OBJETIVO ASIMÉTRICA ========== */
.seccion-objetivo-asimetrica {
  background: var(--blanco);
  padding: 80px 0;
  position: relative;
}

.objetivo-contenedor-asimetrico {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 60px;
  align-items: start;
}

.objetivo-titulo-lateral {
  position: sticky;
  top: 100px;
}

.objetivo-titulo-lateral h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--azul-tecnm);
  line-height: 1.2;
  margin-bottom: 16px;
}

.objetivo-separador {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--dorado-tecnm), transparent);
  border-radius: 2px;
  margin-bottom: 16px;
}

.objetivo-subtitulo {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dorado-tecnm);
  font-weight: 600;
}

.objetivo-contenido-texto {
  font-size: 18px;
  line-height: 1.9;
  color: var(--texto);
  font-weight: 400;
}

.objetivo-contenido-texto p {
  margin-bottom: 0;
}

/* ========== SECCIÓN CONTENIDO CON GRADIENTES ========== */
.seccion-contenido {
  padding: 80px 0;
  position: relative;
}

.seccion-contenido:nth-child(even) {
  background: linear-gradient(to bottom, var(--gris-claro), var(--blanco));
}

.seccion-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--azul-tecnm);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.seccion-titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--dorado-tecnm), transparent);
  border-radius: 2px;
}

/* ========== GRID 2 COLUMNAS ========== */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* ========== OBJETIVO CON GRADIENTE ========== */
.objetivo-texto {
  font-size: 17px;
  line-height: 1.8;
  color: var(--texto);
  padding: 36px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-left: 5px solid var(--dorado-tecnm);
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.objetivo-texto::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.objetivo-texto:hover {
  transform: translateX(8px);
  box-shadow: var(--sombra-media);
}

.info-cards {
  display: grid;
  gap: 16px;
}

.info-card-pro {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--blanco);
  border: 2px solid var(--gris-medio);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--sombra-suave);
}

.info-card-pro:hover {
  border-color: var(--dorado-tecnm);
  box-shadow: var(--sombra-media);
  transform: translateY(-4px);
}

.info-icono-pro {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--azul-tecnm), var(--azul-oscuro));
  color: var(--blanco);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
  transition: all 0.3s ease;
}

.info-card-pro:hover .info-icono-pro {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--dorado-tecnm), var(--dorado-hover));
}

.info-texto-pro h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--azul-tecnm);
  margin-bottom: 2px;
}

.info-texto-pro p {
  font-size: 13px;
  color: var(--texto);
}

/* ========== PERFIL DE INGRESO ORGÁNICO ========== */
.seccion-perfil-ingreso {
  position: relative;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef3 100%);
  padding: 100px 0;
  overflow: hidden;
}

/* Imagen decorativa lado derecho */
.seccion-perfil-ingreso::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background-image: url('../assets/imagenes/Inteligencia1.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

/* Curva dorada decorativa */
.seccion-perfil-ingreso::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.15));
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 100%);
  z-index: 2;
}

.perfil-ingreso-contenedor {
  position: relative;
  z-index: 3;
}

.perfil-ingreso-header {
  margin-bottom: 48px;
}

.perfil-ingreso-subtitulo {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dorado-tecnm);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.perfil-ingreso-subtitulo::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--dorado-tecnm), transparent);
}

.perfil-ingreso-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--azul-tecnm);
  line-height: 1.2;
  margin-bottom: 12px;
}

.perfil-ingreso-descripcion {
  font-size: 17px;
  color: var(--texto);
  opacity: 0.85;
}

/* Grid de habilidades 2 columnas */
.perfil-ingreso-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-bottom: 48px;
}

.perfil-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}

.perfil-item-numero {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 72px;
  font-weight: 700;
  color: var(--azul-tecnm);
  opacity: 0.06;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  pointer-events: none;
}

.perfil-icono-circulo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--azul-tecnm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.2);
  transition: all 0.4s ease;
}

.perfil-icono-circulo svg {
  width: 28px;
  height: 28px;
  color: var(--blanco);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.perfil-icono-circulo i {
  font-size: 26px;
}

.perfil-item:hover .perfil-icono-circulo {
  transform: scale(1.1) translateY(-4px);
  background: var(--dorado-tecnm);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.perfil-item:hover .perfil-icono-circulo svg {
  color: var(--azul-tecnm);
}

.perfil-item-contenido h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--azul-tecnm);
  margin-bottom: 8px;
  line-height: 1.3;
}

.perfil-item-contenido p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--texto);
  opacity: 0.85;
}

/* CTA final del perfil */
.perfil-cta-final {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--azul-tecnm), var(--azul-oscuro));
  border-radius: 16px;
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

.perfil-cta-final::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
  animation: float 20s ease-in-out infinite;
}

.perfil-cta-texto {
  position: relative;
  z-index: 1;
  font-size: 17px;
  line-height: 1.6;
}

.perfil-cta-highlight {
  color: var(--dorado-tecnm);
  font-weight: 700;
}

/* ========== PERFIL DE EGRESO EDITORIAL ========== */
.seccion-perfil-egreso {
  background: var(--blanco);
  padding: 100px 0;
  position: relative;
}

.perfil-egreso-header {
  max-width: 800px;
  margin-bottom: 64px;
}

.perfil-egreso-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #0B2D59;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.perfil-egreso-titulo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 120px;
  height: 3px;
  background: #DDB52F;
}

.perfil-egreso-intro {
  font-size: 17px;
  color: #687586;
  margin-top: 24px;
  line-height: 1.6;
}

/* Composición editorial asimétrica */
.competencias-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  position: relative;
}

/* Separador vertical central */
.competencias-editorial::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 5%;
  bottom: 5%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    #E0E4E8 20%,
    #E0E4E8 80%,
    transparent
  );
  transform: translateX(-50%);
}

.competencia-editorial {
  position: relative;
  padding-left: 80px;
}

/* Números grandes como elemento editorial */
.competencia-editorial-numero {
  position: absolute;
  left: 0;
  top: -8px;
  font-family: 'Montserrat', serif;
  font-size: 68px;
  font-weight: 700;
  color: #0B2D59;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
}

/* Número pequeño activo */
.competencia-editorial-numero-activo {
  position: absolute;
  left: 0;
  top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #DDB52F;
  line-height: 1;
  z-index: 1;
}

.competencia-editorial-contenido {
  position: relative;
}

.competencia-editorial-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #0B2D59;
  margin-bottom: 12px;
  line-height: 1.3;
}

.competencia-editorial-descripcion {
  font-size: 15px;
  line-height: 1.7;
  color: #687586;
}

/* Variación para competencias destacadas (1 y 3) */
.competencia-editorial.destacada {
  padding: 32px;
  background: linear-gradient(135deg, #F5F6F8 0%, #FAFBFC 100%);
  border-left: 3px solid #DDB52F;
  border-radius: 0 8px 8px 0;
}

.competencia-editorial.destacada .competencia-editorial-numero {
  left: 32px;
}

.competencia-editorial.destacada .competencia-editorial-numero-activo {
  left: 32px;
}

.competencia-editorial.destacada .competencia-editorial-contenido {
  padding-left: 0;
}

/* Separadores horizontales discretos */
.competencia-editorial:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 80px;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, #E0E4E8, transparent);
}

.competencia-editorial.destacada:not(:last-child)::after {
  left: 32px;
}

/* ========== TABLA CURRICULAR COMPACTA ========== */
.seccion-tabla-curricular {
  background: #F5F6F8;
  padding: 100px 0;
}

.tabla-curricular-header {
  margin-bottom: 48px;
}

.tabla-curricular-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #0B2D59;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.tabla-curricular-titulo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 120px;
  height: 3px;
  background: #DDB52F;
}

.tabla-curricular-intro {
  font-size: 17px;
  color: #687586;
  margin-top: 24px;
}

/* Contenedor de tabla con sombra sutil */
.tabla-curricular-contenedor {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 45, 89, 0.1);
}

/* Tabla real compacta - visible en desktop */
.tabla-curricular {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  display: table;
}

/* Encabezado de la tabla */
.tabla-curricular thead {
  background: linear-gradient(135deg, #0B2D59 0%, #123B70 100%);
  color: #FFFFFF;
}

.tabla-curricular thead th {
  padding: 18px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabla-curricular thead th:first-child {
  border-radius: 16px 0 0 0;
  width: 140px;
  text-align: center;
}

.tabla-curricular thead th:last-child {
  border-radius: 0 16px 0 0;
  width: 120px;
  text-align: center;
}

/* Filas de la tabla */
.tabla-curricular tbody tr {
  border-bottom: 1px solid #E8ECF0;
  transition: all 0.25s ease;
}

.tabla-curricular tbody tr:hover {
  background: #F8F9FA;
  transform: scale(1.005);
}

.tabla-curricular tbody tr:last-child {
  border-bottom: none;
}

/* Alternancia de fondos sutil */
.tabla-curricular tbody tr:nth-child(even) {
  background: #FAFBFC;
}

.tabla-curricular tbody tr:nth-child(even):hover {
  background: #F5F6F8;
}

/* Celdas */
.tabla-curricular tbody td {
  padding: 16px 24px;
}

/* Columna de semestre */
.tabla-semestre-cell {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #0B2D59;
  font-size: 16px;
  width: 140px;
}

/* Columna de materia */
.tabla-materia-cell {
  color: #0B2D59;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

/* Columna de créditos */
.tabla-creditos-cell {
  text-align: center;
  width: 120px;
}

.tabla-creditos-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFF8E5, #FFF4D6);
  color: #B8941F;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #F0E4C3;
}

.tabla-creditos-badge i {
  font-size: 11px;
}

/* ========== VISTA ACORDEÓN MÓVIL ========== */
.tabla-acordeon-movil {
  display: none;
}

.semestre-card-movil {
  background: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11, 45, 89, 0.08);
}

.semestre-header-movil {
  background: linear-gradient(135deg, #0B2D59, #123B70);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
}

.semestre-header-movil:active {
  background: linear-gradient(135deg, #123B70, #0B2D59);
}

.semestre-info-movil {
  display: flex;
  align-items: center;
  gap: 12px;
}

.semestre-numero-movil {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #DDB52F;
}

.semestre-texto-movil {
  font-size: 15px;
  font-weight: 600;
}

.semestre-toggle-icon {
  font-size: 14px;
  color: #DDB52F;
  transition: transform 0.3s ease;
}

.semestre-card-movil.expandido .semestre-toggle-icon {
  transform: rotate(180deg);
}

.semestre-contenido-movil {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.semestre-card-movil.expandido .semestre-contenido-movil {
  max-height: 1000px;
}

.materia-item-movil {
  padding: 14px 20px;
  border-bottom: 1px solid #E8ECF0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.materia-item-movil:last-child {
  border-bottom: none;
}

.materia-nombre-movil {
  font-size: 14px;
  color: #0B2D59;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.materia-creditos-movil {
  flex-shrink: 0;
}

/* Botón ver retícula completa */
.tabla-curricular-footer {
  text-align: center;
  margin-top: 32px;
}

.btn-reticula-completa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0B2D59, #123B70);
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 45, 89, 0.2);
}

.btn-reticula-completa:hover {
  background: linear-gradient(135deg, #123B70, #0B2D59);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 45, 89, 0.3);
  color: #FFFFFF;
}

.btn-reticula-completa i {
  color: #DDB52F;
}

/* ========== GALERÍA EDITORIAL ASIMÉTRICA ========== */
.seccion-galeria-moderna {
  background: #FAFBFC;
  padding: 100px 0;
}

.galeria-header {
  margin-bottom: 56px;
}

.galeria-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #0B2D59;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.galeria-titulo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 120px;
  height: 3px;
  background: #DDB52F;
}

.galeria-intro {
  font-size: 17px;
  color: #687586;
  margin-top: 24px;
}

/* Grid editorial asimétrico - Masonry style */
.galeria-grid-moderna {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  grid-auto-flow: dense;
}

.galeria-item-moderna {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(11, 45, 89, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Distribución editorial asimétrica */
.galeria-item-moderna:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.galeria-item-moderna:nth-child(2) {
  grid-column: span 5;
  grid-row: span 1;
}

.galeria-item-moderna:nth-child(3) {
  grid-column: span 5;
  grid-row: span 1;
}

.galeria-item-moderna:nth-child(4) {
  grid-column: span 4;
  grid-row: span 1;
}

.galeria-item-moderna:nth-child(5) {
  grid-column: span 4;
  grid-row: span 1;
}

.galeria-item-moderna:nth-child(6) {
  grid-column: span 4;
  grid-row: span 1;
}

.galeria-item-moderna img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-item-moderna:hover {
  box-shadow: 0 12px 40px rgba(11, 45, 89, 0.15);
  transform: translateY(-4px);
}

.galeria-item-moderna:hover img {
  transform: scale(1.08);
}

/* Overlay con gradiente institucional */
.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 45, 89, 0.88) 0%,
    rgba(18, 59, 112, 0.82) 50%,
    rgba(11, 45, 89, 0.88) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.galeria-item-moderna:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay-icono {
  width: 64px;
  height: 64px;
  background: rgba(221, 181, 47, 0.2);
  border: 2px solid #DDB52F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.galeria-item-moderna:hover .galeria-overlay-icono {
  background: #DDB52F;
  transform: scale(1.1);
}

.galeria-overlay-icono i {
  font-size: 24px;
  color: #DDB52F;
  transition: color 0.3s ease;
}

.galeria-item-moderna:hover .galeria-overlay-icono i {
  color: #0B2D59;
}

.galeria-overlay-texto {
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ========== LIGHTBOX MODERNO ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 45, 89, 0.96);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: lightboxFadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-contenido {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lightboxZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-imagen {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Controles del lightbox */
.lightbox-cerrar {
  position: absolute;
  top: -50px;
  right: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #FFFFFF;
  font-size: 24px;
}

.lightbox-cerrar:hover {
  background: #DDB52F;
  border-color: #DDB52F;
  color: #0B2D59;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #FFFFFF;
  font-size: 20px;
}

.lightbox-nav:hover {
  background: #DDB52F;
  border-color: #DDB52F;
  color: #0B2D59;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-contador {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== CTA CON GRADIENTE ANIMADO ========== */
.cta-compacto {
  padding: 80px 0;
  background: linear-gradient(-45deg, #003366, #0B2D59, #1a4d7a, #123B70);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-compacto::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(221, 181, 47, 0.15), transparent 70%);
  animation: floatGlow 20s ease-in-out infinite;
}

.cta-compacto::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(221, 181, 47, 0.1), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(11, 45, 89, 0.2), transparent 50%);
  animation: pulseGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.15;
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.25;
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
    opacity: 0.2;
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.cta-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-subtitulo {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-botones {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-btn-primario {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--dorado-tecnm), var(--dorado-hover));
  color: var(--azul-tecnm);
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-btn-primario::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-btn-primario:hover::before {
  left: 100%;
}

.cta-btn-primario:hover {
  background: linear-gradient(135deg, #f4d03f, var(--dorado-tecnm));
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
}

.cta-btn-secundario {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn-secundario::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.4s ease;
  z-index: -1;
}

.cta-btn-secundario:hover::before {
  width: 100%;
}

.cta-btn-secundario:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--blanco);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.cta-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-info-item i {
  color: var(--dorado-tecnm);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-ia-pro {
    min-height: 90vh;
    padding-bottom: 100px;
  }
  
  .hero-ia-pro::before {
    width: 100%;
    clip-path: none;
    opacity: 0.3;
  }
  
  .hero-ia-pro::after {
    width: 100%;
    clip-path: none;
    background: linear-gradient(
      to bottom,
      rgba(0, 51, 102, 0.85) 0%,
      rgba(0, 51, 102, 0.90) 100%
    );
  }
  
  .hero-titulo-pro {
    font-size: clamp(32px, 8vw, 48px);
  }
  
  .hero-info-horizontal {
    flex-direction: column;
    gap: 8px;
  }
  
  .hero-info-item {
    padding: 12px 20px;
  }
  
  .hero-info-item:not(:last-child)::after {
    display: none;
  }
  
  .objetivo-contenedor-asimetrico {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .objetivo-titulo-lateral {
    position: static;
  }
  
  .perfil-ingreso-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .perfil-ingreso-titulo {
    font-size: 32px;
  }
  
  .seccion-perfil-ingreso::before {
    width: 100%;
    clip-path: none;
    opacity: 0.06;
  }
  
  /* Perfil de egreso responsive */
  .perfil-egreso-titulo {
    font-size: 32px;
  }
  
  .competencias-editorial {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .competencias-editorial::before {
    display: none;
  }
  
  .competencia-editorial {
    padding-left: 60px;
  }
  
  .competencia-editorial.destacada {
    padding: 24px 24px 24px 60px;
  }
  
  .competencia-editorial.destacada .competencia-editorial-numero,
  .competencia-editorial.destacada .competencia-editorial-numero-activo {
    left: 24px;
  }
  
  .competencia-editorial:not(:last-child)::after {
    left: 60px;
  }
  
  .competencia-editorial.destacada:not(:last-child)::after {
    left: 24px;
  }
  
  /* Tabla curricular responsive */
  .tabla-curricular-titulo {
    font-size: 32px;
  }
  
  .tabla-curricular {
    font-size: 13px;
  }
  
  .tabla-curricular thead th {
    padding: 14px 16px;
    font-size: 12px;
  }
  
  .tabla-curricular tbody td {
    padding: 12px 16px;
  }
  
  .tabla-semestre-cell {
    font-size: 14px;
    width: 100px;
  }
  
  .tabla-materia-cell {
    font-size: 13px;
  }
  
  .tabla-creditos-cell {
    width: 100px;
  }
  
  .tabla-creditos-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .galeria-grid-moderna {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    grid-auto-rows: 180px;
  }
  
  .galeria-item-grande {
    grid-column: span 1;
    grid-row: span 2;
  }
  
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .galeria-grid-moderna {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  
  .galeria-item-grande,
  .galeria-item-ancho {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .hero-descripcion-pro {
    font-size: 16px;
  }
  
  .objetivo-contenido-texto {
    font-size: 16px;
  }
  
  .perfil-ingreso-descripcion {
    font-size: 15px;
  }
  
  .perfil-egreso-titulo {
    font-size: 28px;
  }
  
  .perfil-egreso-intro {
    font-size: 15px;
  }
  
  .competencia-editorial-titulo {
    font-size: 19px;
  }
  
  .competencia-editorial-descripcion {
    font-size: 14px;
  }
  
  .competencia-editorial-numero {
    font-size: 56px;
  }
  
  /* Tabla curricular móvil - cambiar a acordeón */
  .tabla-curricular-titulo {
    font-size: 28px;
  }
  
  /* Ocultar tabla, mostrar acordeón */
  .tabla-curricular-contenedor {
    display: none;
  }
  
  .tabla-acordeon-movil {
    display: block;
  }
  
  .tabla-creditos-badge i {
    font-size: 10px;
  }
  
  .btn-reticula-completa {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
  }
}
