/* ============================================
   ESTILOS MODERNOS ITSRLL - TecNM
   Mantiene identidad institucional con diseño actual
   ============================================ */

:root {
  --tecnm-azul-oscuro: #0b2652;
  --tecnm-azul-medio: #1b396a;
  --tecnm-dorado: #d4af37;
  --tecnm-gris-claro: #f8f9fa;
  --tecnm-blanco: #ffffff;
  --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.08);
  --sombra-media: 0 8px 20px rgba(0, 0, 0, 0.12);
  --transicion-rapida: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
}

/* ============================================
   ANIMACIONES SUTILES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

/* ============================================
   TÍTULOS INSTITUCIONALES
   ============================================ */

.titulo-seccion {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: clamp(28px, 5vw, 36px);
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
}

.titulo-seccion::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--tecnm-dorado), #f5e62e);
  border-radius: 2px;
}

/* ============================================
   CARDS MODERNAS
   ============================================ */

.card-moderna {
  background: white;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  overflow: hidden;
  transition: all var(--transicion-rapida);
  height: 100%;
}

.card-moderna:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-media);
}

.card-moderna img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transicion-rapida);
}

.card-moderna:hover img {
  transform: scale(1.05);
}

.card-moderna-contenido {
  padding: 20px;
}

.card-moderna h3 {
  color: var(--tecnm-azul-oscuro);
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-moderna p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* ============================================
   BOTONES INSTITUCIONALES
   ============================================ */

.btn-tecnm {
  display: inline-block;
  background: linear-gradient(135deg, var(--tecnm-dorado), #c19e2e);
  color: var(--tecnm-azul-oscuro);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transicion-rapida);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.btn-tecnm:hover {
  background: linear-gradient(135deg, #c19e2e, var(--tecnm-dorado));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
  color: var(--tecnm-azul-oscuro);
}

.btn-tecnm-secundario {
  background: var(--tecnm-azul-medio);
  color: white;
  box-shadow: 0 4px 10px rgba(27, 57, 106, 0.3);
}

.btn-tecnm-secundario:hover {
  background: var(--tecnm-azul-oscuro);
  color: white;
}

/* ============================================
   GRID RESPONSIVE
   ============================================ */

.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   VIDEO HERO MEJORADO
   ============================================ */

.video-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  box-shadow: var(--sombra-media);
}

.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(1.02);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.video-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  padding: 70px 50px 60px;
  color: white;
  text-align: center;
}

.hero-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 900;
  margin-bottom: 24px;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
  line-height: 1.15;
  color: #FFFFFF !important;
  animation: fadeInUp 1s ease-out;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8E8E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.hero-lema {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(19px, 2.5vw, 26px);
  font-weight: 600;
  color: #FFFFFF !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 3px;
  animation: fadeInUp 1.3s ease-out;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding: 12px 40px;
  background: rgba(212, 175, 55, 0.15);
  border-left: 3px solid #d4af37;
  border-right: 3px solid #d4af37;
  backdrop-filter: blur(5px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Video Hero */
@media (max-width: 768px) {
  .video-hero {
    height: 400px;
    border-radius: 0 0 20px 20px;
  }
  
  .video-hero-overlay {
    padding: 50px 30px 40px;
  }
  
  .hero-lema {
    letter-spacing: 2px;
    padding: 10px 30px;
  }
}

@media (max-width: 480px) {
  .video-hero {
    height: 350px;
  }
  
  .video-hero-overlay {
    padding: 40px 20px 30px;
  }
  
  .hero-lema {
    letter-spacing: 1.5px;
    padding: 8px 20px;
  }
}

.video-hero-overlay h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================
   BANNER CONVOCATORIA DE ADMISIÓN
   Banner llamativo y profesional
   ============================================ */

.banner-admision-seccion {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(135deg, #0b2652 0%, #1b396a 100%);
  padding: 0;
  overflow: hidden;
  margin-top: 60px;
}

.banner-admision-contenedor {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
  align-items: center;
}

.banner-admision-imagen {
  position: relative;
  height: 100%;
  min-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b2652;
}

.banner-admision-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.banner-admision-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(11, 38, 82, 0.3) 100%);
}

.banner-admision-contenido {
  padding: 60px 80px 60px 60px;
  color: white;
  position: relative;
  z-index: 2;
}

.banner-admision-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #f5e62e 100%);
  color: #0b2652;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 8px 20px;
  border-radius: 25px;
  margin-bottom: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
  }
}

.banner-admision-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.banner-admision-subtitulo {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.banner-admision-texto {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}

.banner-admision-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #f5e62e 100%);
  color: #0b2652;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-admision-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
}

.banner-admision-btn:hover {
  background: linear-gradient(135deg, #f5e62e 0%, #d4af37 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
  color: #0b2652;
}

.banner-admision-btn:hover svg {
  transform: scale(1.2) rotate(5deg);
}

/* Responsive Banner Admisión */
@media (max-width: 1200px) {
  .banner-admision-contenido {
    padding: 50px 60px 50px 50px;
  }
}

@media (max-width: 900px) {
  .banner-admision-contenedor {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .banner-admision-imagen {
    min-height: 350px;
    order: 1;
  }
  
  .banner-admision-contenido {
    order: 2;
    padding: 50px 40px;
    text-align: center;
  }
  
  .banner-admision-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(11, 38, 82, 0.3) 100%);
  }
}

@media (max-width: 768px) {
  .banner-admision-imagen {
    min-height: 300px;
  }
  
  .banner-admision-contenido {
    padding: 40px 30px;
  }
  
  .banner-admision-btn {
    font-size: 15px;
    padding: 16px 32px;
  }
}

@media (max-width: 480px) {
  .banner-admision-imagen {
    min-height: 250px;
  }
  
  .banner-admision-contenido {
    padding: 35px 25px;
  }
  
  .banner-admision-badge {
    font-size: 11px;
    padding: 6px 16px;
  }
  
  .banner-admision-btn {
    font-size: 14px;
    padding: 14px 28px;
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CARRUSEL MINIMALISTA Y PROFESIONAL
   ============================================ */

.carrusel-seccion {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
}

.carrusel-header {
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 60px;
  text-align: center;
}

.carrusel-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 0;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.carrusel-minimalista {
  width: 100%;
  margin: 0;
  padding: 0;
}

.carrusel-contenedor {
  width: 100%;
  min-height: 500px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  overflow: hidden;
  padding: 40px 20px;
}

/* Fondo azul degradado para todos los slides */
.carrusel-fondo-azul {
  background: linear-gradient(135deg, #0b2652 0%, #1b396a 100%) !important;
  padding: 50px 40px;
  min-height: 550px;
}

.carrusel-fondo-azul img {
  max-width: 85%;
  max-height: 450px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carrusel-contenedor img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.carrusel-contenedor a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.carrusel-contenedor a img {
  cursor: pointer;
}

.carrusel-contenedor a:hover img {
  transform: scale(1.02);
}

/* Slide con texto */
.carrusel-con-texto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px;
  background: linear-gradient(135deg, var(--tecnm-azul-oscuro) 0%, var(--tecnm-azul-medio) 100%);
}

/* ============================================
   SLIDE ACTIVIDADES EXTRAESCOLARES - DISEÑO MEJORADO
   ============================================ */

.carrusel-extraescolares {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  padding: 60px 80px;
  background: linear-gradient(135deg, #0b2652 0%, #1b396a 100%);
  align-items: center;
  min-height: 550px;
  height: auto;
}

.extraescolares-contenido {
  color: white;
}

.extraescolares-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #f5e62e 100%);
  color: #0b2652;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 8px 20px;
  border-radius: 25px;
  margin-bottom: 20px;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

.extraescolares-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.extraescolares-descripcion {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.extraescolares-beneficios {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.beneficio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.beneficio-item svg {
  width: 20px;
  height: 20px;
  color: #d4af37;
  flex-shrink: 0;
}

.beneficio-item span {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.extraescolares-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #f5e62e 100%);
  color: #0b2652;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.extraescolares-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

.extraescolares-btn:hover {
  background: linear-gradient(135deg, #f5e62e 0%, #d4af37 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
  color: #0b2652;
}

.extraescolares-btn:hover svg {
  transform: translateX(5px);
}

.extraescolares-qr {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-container {
  text-align: center;
}

.qr-box {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  display: inline-block;
}

.qr-box img {
  width: 250px;
  height: 250px;
  display: block;
  border-radius: 10px;
}

.qr-texto {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
  text-align: center;
}

/* Responsive Actividades Extraescolares */
@media (max-width: 1200px) {
  .carrusel-extraescolares {
    padding: 50px 60px;
    gap: 40px;
  }
  
  .qr-box img {
    width: 220px;
    height: 220px;
  }
}

/* ============================================
   SLIDE PLAN DE DIFUSIÓN - GRID 1x4 (HORIZONTAL)
   ============================================ */

.carrusel-grid-difusion {
  padding: 50px 60px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  height: auto;
}

.difusion-carrusel-wrapper {
  width: 100%;
  max-width: 1300px;
}

.difusion-carrusel-header {
  text-align: center;
  margin-bottom: 30px;
}

.difusion-mes {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #f5e62e 100%);
  color: #0b2652;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 8px 24px;
  border-radius: 25px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.difusion-titulo-carrusel {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difusion-grid-carrusel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

/* Variante de 3 columnas para Humedales */
.difusion-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
}

.difusion-grid-3 .difusion-item-carrusel {
  aspect-ratio: 1/1;
}

.difusion-item-carrusel {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  aspect-ratio: 3/4;
  display: block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.difusion-item-carrusel::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.difusion-item-carrusel:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.difusion-item-carrusel:hover::after {
  opacity: 1;
}

.difusion-item-carrusel:hover img {
  filter: brightness(0.7);
}

.difusion-item-carrusel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: filter 0.3s ease;
}

/* Responsive Grid Difusión */
@media (max-width: 1200px) {
  .carrusel-grid-difusion {
    padding: 35px 50px !important;
  }
  
  .difusion-carrusel-wrapper {
    max-width: 1100px;
  }
  
  .difusion-grid-carrusel {
    gap: 18px;
  }
  
  .difusion-carrusel-header {
    margin-bottom: 25px;
  }
}

@media (max-width: 900px) {
  .carrusel-grid-difusion {
    padding: 30px 40px !important;
  }
  
  .difusion-carrusel-wrapper {
    max-width: 650px;
  }
  
  .difusion-grid-carrusel {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .difusion-carrusel-header {
    margin-bottom: 20px;
  }
  
  .difusion-mes {
    font-size: 12px;
    padding: 6px 20px;
  }
}

@media (max-width: 768px) {
  .carrusel-grid-difusion {
    padding: 25px 30px !important;
  }
  
  .difusion-carrusel-wrapper {
    max-width: 500px;
  }
  
  .difusion-grid-carrusel {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .carrusel-grid-difusion {
    padding: 20px !important;
  }
  
  .difusion-carrusel-wrapper {
    max-width: 100%;
  }
  
  .difusion-grid-carrusel {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .difusion-item-carrusel {
    aspect-ratio: 4/5;
  }
  
  .difusion-carrusel-header {
    margin-bottom: 18px;
  }
  
  .difusion-mes {
    font-size: 11px;
    padding: 6px 18px;
  }
}

/* Responsive Actividades Extraescolares */
@media (max-width: 1200px) {
  .carrusel-extraescolares {
    padding: 50px 60px;
    gap: 40px;
  }
  
  .qr-box img {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 900px) {
  .carrusel-extraescolares {
    grid-template-columns: 1fr;
    padding: 50px 40px;
    text-align: center;
  }
  
  .extraescolares-beneficios {
    justify-content: center;
  }
  
  .qr-box img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .carrusel-extraescolares {
    padding: 40px 30px;
  }
  
  .extraescolares-badge {
    font-size: 11px;
    padding: 6px 16px;
  }
  
  .extraescolares-beneficios {
    gap: 15px;
  }
  
  .beneficio-item {
    padding: 10px 16px;
  }
  
  .qr-box {
    padding: 20px;
  }
  
  .qr-box img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .carrusel-extraescolares {
    padding: 30px 20px;
  }
  
  .extraescolares-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 28px;
  }
  
  .qr-box img {
    width: 160px;
    height: 160px;
  }
  
  .qr-texto {
    font-size: 14px;
  }
}

.carrusel-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.carrusel-texto h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.carrusel-texto p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.carrusel-imagen-texto {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-imagen-texto img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Indicadores minimalistas */
.carrusel-indicadores {
  bottom: 25px;
  margin-bottom: 0;
}

.carrusel-indicadores button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.carrusel-indicadores button.active {
  background-color: var(--tecnm-azul-oscuro);
  width: 28px;
  border-radius: 5px;
  opacity: 1;
}

/* Controles minimalistas */
.carrusel-minimalista .carousel-control-prev,
.carrusel-minimalista .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.carrusel-minimalista:hover .carousel-control-prev,
.carrusel-minimalista:hover .carousel-control-next {
  opacity: 1;
}

.carrusel-minimalista .carousel-control-prev:hover,
.carrusel-minimalista .carousel-control-next:hover {
  background-color: var(--tecnm-azul-oscuro);
  transform: translateY(-50%) scale(1.1);
}

.carrusel-minimalista .carousel-control-prev {
  left: 30px;
}

.carrusel-minimalista .carousel-control-next {
  right: 30px;
}

.carrusel-minimalista .carousel-control-prev-icon,
.carrusel-minimalista .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100%;
  filter: invert(1);
}

.carrusel-minimalista .carousel-control-prev:hover .carousel-control-prev-icon,
.carrusel-minimalista .carousel-control-next:hover .carousel-control-next-icon {
  filter: invert(0);
}

/* Transiciones suaves */
.carousel-item {
  transition: transform 0.8s ease-in-out;
}

/* Responsive */
@media (max-width: 1200px) {
  .carrusel-minimalista {
    padding: 0 40px;
  }
  
  .carrusel-header {
    padding: 0 40px;
  }
  
  .carrusel-contenedor {
    height: 450px;
  }
  
  .carrusel-con-texto {
    gap: 40px;
    padding: 50px 40px;
  }
}

@media (max-width: 768px) {
  .carrusel-seccion {
    padding: 60px 0;
  }
  
  .carrusel-minimalista {
    padding: 0 20px;
  }
  
  .carrusel-header {
    padding: 0 20px;
    margin-bottom: 40px;
  }
  
  .carrusel-contenedor {
    height: 400px;
  }
  
  .carrusel-con-texto {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 30px;
    text-align: center;
  }
  
  .carrusel-minimalista .carousel-control-prev,
  .carrusel-minimalista .carousel-control-next {
    width: 45px;
    height: 45px;
    opacity: 0.8;
  }
  
  .carrusel-minimalista .carousel-control-prev {
    left: 10px;
  }
  
  .carrusel-minimalista .carousel-control-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .carrusel-seccion {
    padding: 40px 0;
  }
  
  .carrusel-contenedor {
    height: 320px;
  }
  
  .carrusel-con-texto {
    padding: 30px 20px;
  }
  
  .carrusel-titulo {
    font-size: 28px;
  }
  
  .carrusel-indicadores {
    bottom: 15px;
  }
}

/* ============================================
   OFERTA EDUCATIVA - DISEÑO INSTITUCIONAL PROFESIONAL
   Inspirado en Tec de Monterrey
   ============================================ */

.oferta-educativa-seccion {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
}

.oferta-header {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 60px;
  text-align: center;
}

.oferta-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.oferta-subtitulo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
  color: #555555;
  max-width: 950px;
  margin: 0 auto;
  font-weight: 400;
}

.oferta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.oferta-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: #ffffff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e5e5;
}

.oferta-card-imagen {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #f0f0f0;
}

.oferta-card-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.85) contrast(1.05);
}

.oferta-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  transition: background 0.4s ease;
}

.oferta-card-contenido {
  padding: 28px 24px;
  background: #ffffff;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.oferta-card-contenido h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.oferta-modalidad {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666666;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Efectos hover */
.oferta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: #d4af37;
}

.oferta-card:hover .oferta-card-imagen img {
  transform: scale(1.08);
  filter: brightness(0.75) contrast(1.1);
}

.oferta-card:hover .oferta-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(11, 38, 82, 0.2) 50%,
    rgba(11, 38, 82, 0.6) 100%
  );
}

.oferta-card:hover .oferta-card-contenido h3 {
  color: var(--tecnm-azul-oscuro);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .oferta-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
  
  .oferta-header {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .oferta-educativa-seccion {
    padding: 60px 0;
  }
  
  .oferta-header {
    padding: 0 30px;
    margin-bottom: 40px;
  }
  
  .oferta-grid {
    grid-template-columns: 1fr;
    padding: 0 30px;
    gap: 0;
  }
  
  .oferta-card-imagen {
    height: 280px;
  }
  
  .oferta-card-contenido {
    padding: 24px 20px;
    min-height: 100px;
  }
  
  .oferta-card-contenido h3 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .oferta-educativa-seccion {
    padding: 40px 0;
  }
  
  .oferta-header {
    padding: 0 20px;
    margin-bottom: 30px;
  }
  
  .oferta-grid {
    padding: 0 20px;
  }
  
  .oferta-card-imagen {
    height: 240px;
  }
  
  .oferta-titulo {
    font-size: 28px;
  }
  
  .oferta-subtitulo {
    font-size: 15px;
  }
}

/* ============================================
   PLAN ANUAL DE DIFUSIÓN - ESTILO NOTICIAS
   Grid flexible tipo portal de noticias
   ============================================ */

.difusion-seccion {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #ffffff;
  padding: 80px 0;
}

.difusion-header {
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 60px;
  text-align: center;
}

.difusion-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 0;
  letter-spacing: -1px;
  text-transform: uppercase;
}

/* Grid flexible tipo noticias */
.difusion-grid-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.noticia-card {
  position: relative;
  overflow: hidden;
  background: #000;
  text-decoration: none;
  display: block;
  aspect-ratio: 4 / 5;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticia-imagen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.noticia-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticia-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(11, 38, 82, 0.95) 100%
  );
  transition: background 0.4s ease;
}

.noticia-contenido {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.noticia-categoria {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--tecnm-azul-oscuro);
  padding: 6px 12px;
  border-radius: 3px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.noticia-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Efectos hover */
.noticia-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.noticia-card:hover .noticia-imagen img {
  transform: scale(1.1);
}

.noticia-card:hover .noticia-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(11, 38, 82, 0.98) 100%
  );
}

.noticia-card:hover .noticia-contenido {
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1200px) {
  .difusion-grid-noticias {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 40px;
    gap: 20px;
  }
  
  .difusion-header {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .difusion-seccion {
    padding: 60px 0;
  }
  
  .difusion-grid-noticias {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0 30px;
    gap: 18px;
  }
  
  .difusion-header {
    padding: 0 30px;
    margin-bottom: 40px;
  }
  
  .noticia-contenido {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .difusion-seccion {
    padding: 40px 0;
  }
  
  .difusion-grid-noticias {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .difusion-header {
    padding: 0 20px;
  }
  
  .difusion-titulo {
    font-size: 28px;
  }
  
  .noticia-card {
    aspect-ratio: 16 / 9;
  }
}

/* ============================================
   ACCESOS INSTITUCIONALES - DISEÑO PROFESIONAL
   ============================================ */

.accesos-seccion {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
}

.accesos-header {
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 60px;
  text-align: center;
}

.accesos-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 0;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.accesos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.acceso-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.acceso-imagen {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acceso-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.acceso-contenido {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.acceso-contenido h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 48px;
}

.acceso-contenido p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.acceso-btn {
  display: inline-block;
  background: var(--tecnm-azul-oscuro);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--tecnm-azul-oscuro);
}

.acceso-btn:hover {
  background: transparent;
  color: var(--tecnm-azul-oscuro);
  transform: translateY(-2px);
}

/* Efectos hover en la tarjeta */
.acceso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--tecnm-dorado);
}

.acceso-card:hover .acceso-imagen img {
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 1200px) {
  .accesos-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 40px;
    gap: 25px;
  }
  
  .accesos-header {
    padding: 0 40px;
  }
}

@media (max-width: 900px) {
  .accesos-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 30px;
    gap: 20px;
  }
  
  .accesos-header {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .accesos-seccion {
    padding: 60px 0;
  }
  
  .accesos-header {
    margin-bottom: 40px;
  }
  
  .acceso-contenido h3 {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .accesos-seccion {
    padding: 40px 0;
  }
  
  .accesos-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .accesos-header {
    padding: 0 20px;
  }
  
  .accesos-titulo {
    font-size: 28px;
  }
  
  .acceso-imagen {
    height: 180px;
  }
}

/* ============================================
   DESCARGAS FRECUENTES - DISEÑO PROFESIONAL
   ============================================ */

.descargas-seccion {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #ffffff;
  padding: 80px 0;
}

.descargas-header {
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 60px;
  text-align: center;
}

.descargas-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 0;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.descargas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.descarga-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e5e5e5;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.descarga-icono {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--tecnm-azul-oscuro) 0%, var(--tecnm-azul-medio) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.descarga-icono svg {
  width: 36px;
  height: 36px;
  color: white;
}

.descarga-contenido {
  width: 100%;
}

.descarga-contenido h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 12px;
  line-height: 1.3;
}

.descarga-contenido p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 24px;
}

.descarga-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tecnm-dorado);
  color: var(--tecnm-azul-oscuro);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--tecnm-dorado);
}

.descarga-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.descarga-btn:hover {
  background: transparent;
  color: var(--tecnm-dorado);
  transform: translateY(-2px);
}

.descarga-btn:hover svg {
  transform: translateY(3px);
}

/* Efectos hover en la tarjeta */
.descarga-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  border-color: var(--tecnm-dorado);
  background: #ffffff;
}

.descarga-card:hover .descarga-icono {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(11, 38, 82, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
  .descargas-grid {
    padding: 0 40px;
    gap: 25px;
  }
  
  .descargas-header {
    padding: 0 40px;
  }
}

@media (max-width: 900px) {
  .descargas-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 30px;
    gap: 20px;
  }
  
  .descargas-header {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .descargas-seccion {
    padding: 60px 0;
  }
  
  .descargas-header {
    margin-bottom: 40px;
  }
  
  .descarga-card {
    padding: 35px 25px;
  }
}

@media (max-width: 480px) {
  .descargas-seccion {
    padding: 40px 0;
  }
  
  .descargas-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .descargas-header {
    padding: 0 20px;
  }
  
  .descargas-titulo {
    font-size: 28px;
  }
  
  .descarga-icono {
    width: 70px;
    height: 70px;
  }
  
  .descarga-icono svg {
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   REDES SOCIALES - DISEÑO PROFESIONAL
   ============================================ */

.redes-seccion {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
}

.redes-header {
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 60px;
  text-align: center;
}

.redes-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 16px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.redes-subtitulo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.red-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.red-card-header {
  background: linear-gradient(135deg, var(--tecnm-azul-oscuro) 0%, var(--tecnm-azul-medio) 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.red-card-header svg {
  width: 28px;
  height: 28px;
  color: white;
}

.red-card-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.red-card-contenido {
  padding: 0;
  background: #f8f9fa;
}

.red-card-contenido iframe {
  width: 100%;
  height: 340px;
  display: block;
}

/* Efectos hover */
.red-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  border-color: var(--tecnm-dorado);
}

/* Responsive Redes */
@media (max-width: 1200px) {
  .redes-grid {
    padding: 0 40px;
    gap: 25px;
  }
  
  .redes-header {
    padding: 0 40px;
  }
}

@media (max-width: 900px) {
  .redes-grid {
    grid-template-columns: 1fr;
    padding: 0 30px;
    gap: 30px;
  }
  
  .redes-header {
    padding: 0 30px;
  }
  
  .red-card-contenido iframe {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .redes-seccion {
    padding: 60px 0;
  }
  
  .redes-header {
    margin-bottom: 40px;
  }
  
  .red-card-contenido iframe {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .redes-seccion {
    padding: 40px 0;
  }
  
  .redes-grid {
    padding: 0 20px;
  }
  
  .redes-header {
    padding: 0 20px;
  }
  
  .redes-titulo {
    font-size: 28px;
  }
  
  .red-card-header {
    padding: 16px 20px;
  }
  
  .red-card-header svg {
    width: 24px;
    height: 24px;
  }
  
  .red-card-header h3 {
    font-size: 18px;
  }
  
  .red-card-contenido iframe {
    height: 300px;
  }
}

/* ============================================
   ENLACES DE INTERÉS - DISEÑO PROFESIONAL
   ============================================ */

.enlaces-seccion {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #ffffff;
  padding: 80px 0;
}

.enlaces-header {
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 60px;
  text-align: center;
}

.enlaces-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 16px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.enlaces-subtitulo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.enlaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.enlace-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.enlace-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--tecnm-dorado);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.enlace-imagen {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.4s ease;
  border: 1px solid #e5e5e5;
}

.enlace-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.enlace-contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.enlace-contenido h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--tecnm-azul-oscuro);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.enlace-contenido p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  margin: 0;
}

.enlace-flecha {
  width: 24px;
  height: 24px;
  min-width: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.enlace-flecha svg {
  width: 100%;
  height: 100%;
  color: var(--tecnm-dorado);
  transform: rotate(90deg);
}

/* Efectos hover */
.enlace-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--tecnm-dorado);
}

.enlace-card:hover::before {
  transform: scaleX(1);
}

.enlace-card:hover .enlace-imagen {
  background: #f8f9fa;
  transform: scale(1.1);
  border-color: var(--tecnm-dorado);
}

.enlace-card:hover .enlace-imagen img {
  transform: scale(1.1);
}

.enlace-card:hover .enlace-contenido h3 {
  color: var(--tecnm-dorado);
}

.enlace-card:hover .enlace-flecha {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Enlaces */
@media (max-width: 1200px) {
  .enlaces-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
    gap: 20px;
  }
  
  .enlaces-header {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .enlaces-seccion {
    padding: 60px 0;
  }
  
  .enlaces-grid {
    grid-template-columns: 1fr;
    padding: 0 30px;
  }
  
  .enlaces-header {
    padding: 0 30px;
    margin-bottom: 40px;
  }
  
  .enlace-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .enlaces-seccion {
    padding: 40px 0;
  }
  
  .enlaces-grid {
    padding: 0 20px;
  }
  
  .enlaces-header {
    padding: 0 20px;
  }
  
  .enlaces-titulo {
    font-size: 28px;
  }
  
  .enlace-imagen {
    width: 55px;
    height: 55px;
    min-width: 55px;
  }
  
  .enlace-imagen img {
    width: 100%;
    height: 100%;
  }
}


/* ============================================
   FOOTER PRINCIPAL - DISEÑO PROFESIONAL
   ============================================ */

.footer-principal {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 0 !important;
  background: linear-gradient(135deg, var(--tecnm-azul-oscuro) 0%, var(--tecnm-azul-medio) 100%);
  color: #f1f1f1;
  font-family: 'Inter', sans-serif;
  padding: 60px 0 0 0;
}

.footer-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-columna {
  display: flex;
  flex-direction: column;
}

.footer-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--tecnm-dorado);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-titulo svg {
  width: 20px;
  height: 20px;
  color: var(--tecnm-dorado);
}

.footer-columna p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.footer-columna strong {
  color: white;
  font-weight: 600;
}

.footer-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-lista li {
  margin-bottom: 10px;
}

.footer-lista a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-lista a:hover {
  color: var(--tecnm-dorado);
  transform: translateX(5px);
}

.footer-mapa iframe {
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-separador {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 40px 60px 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright {
  text-align: center;
  padding: 0 60px 30px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-copyright p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 5px 0;
}

.footer-actualizacion {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   FOOTER GOBIERNO - DISEÑO PROFESIONAL
   ============================================ */

.footer-gobierno {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 0 !important;
  background-color: #611232;
  color: white;
  font-family: 'Inter', sans-serif;
  padding: 50px 0 0 0;
}

.footer-gobierno-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-gobierno-columna h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-gobierno-columna p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.footer-gobierno-columna ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-gobierno-columna ul li {
  margin-bottom: 10px;
}

.footer-gobierno-columna a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-gobierno-columna a:hover {
  color: var(--tecnm-dorado);
  transform: translateX(3px);
}

.footer-gobierno-lista-pequena {
  font-size: 13px !important;
}

.footer-gobierno-lista-pequena li {
  margin-bottom: 8px !important;
}

.footer-redes {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.footer-redes a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-redes a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-redes img {
  width: 22px;
  height: 22px;
}

.footer-gobierno-logo {
  margin-top: 20px;
}

.footer-gobierno-logo img {
  max-width: 250px;
  width: 100%;
  height: auto;
}

.footer-gobierno-copyright {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 40px;
  margin-bottom: 0 !important;
  padding: 0 60px 30px 60px;
}

/* Responsive Footers */
@media (max-width: 1200px) {
  .footer-contenedor,
  .footer-gobierno-contenedor {
    padding: 0 40px;
    gap: 35px;
  }
  
  .footer-separador {
    margin-left: 40px;
    margin-right: 40px;
  }
  
  .footer-copyright,
  .footer-gobierno-copyright {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .footer-principal {
    padding: 50px 0 25px;
  }
  
  .footer-gobierno {
    padding: 40px 0 25px;
  }
  
  .footer-contenedor,
  .footer-gobierno-contenedor {
    grid-template-columns: 1fr;
    padding: 0 30px;
    gap: 30px;
  }
  
  .footer-separador {
    margin: 30px 30px 15px;
  }
  
  .footer-copyright,
  .footer-gobierno-copyright {
    padding: 0 30px;
  }
  
  .footer-mapa iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .footer-contenedor,
  .footer-gobierno-contenedor {
    padding: 0 20px;
  }
  
  .footer-separador {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .footer-copyright,
  .footer-gobierno-copyright {
    padding: 0 20px;
  }
  
  .footer-titulo {
    font-size: 16px;
  }
  
  .footer-gobierno-columna h4 {
    font-size: 16px;
  }
}


/* ============================================
   FIX: ELIMINAR LÍNEA BLANCA AL FINAL
   ============================================ */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
}

body::after,
html::after {
  display: none !important;
}

footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-gobierno {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-gobierno-copyright {
  margin-bottom: 0 !important;
  padding-bottom: 30px !important;
}
