/* ========= VARIABLES ========= */
:root {
  --azul-oscuro: #003366;        
  --azul-claro: #4A90E2;         
  --verde-agua: #1ABC9C;         
  --gris-claro: #F5F7FA;         
  --gris-medio: #8A8D91;         
  --blanco: #FFFFFF;
  --naranja: #f57c00;
  --texto-principal: #212529;
  --sombra-suave: rgba(0, 0, 0, 0.1);
  --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Nuevas variables */
  --azul-dropdown: #2c3e50;
  --azul-dropdown-hover: #34495e;
}

/* ========= BASE ========= */
body {
  font-family: var(--fuente-principal);
  line-height: 1.6;
  background-color: var(--gris-claro);
  color: var(--texto-principal);
  margin: 0;
  padding: 0;
  padding-top: 72px;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: var(--azul-oscuro);
}

a:hover {
  text-decoration: underline;
  color: var(--azul-claro);
}

/* ========= NAVBAR ========= */
@keyframes fadeInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar {
  background-color: var(--azul-oscuro);
  padding: 0.7rem 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: all 0.4s ease;
  animation: fadeInDown 0.6s ease-out forwards;
}

.navbar.scrolled {
  padding: 0.4rem 1rem; 
  backdrop-filter: blur(8px);
  background-color: rgba(0, 40, 85, 0.95);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* Logo */
.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blanco);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-brand img {
  width: clamp(36px, 2.8vw, 44px);
  height: auto;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--naranja);
}

/* Links */
.nav-link {
  color: var(--blanco) !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  margin: 0 0.15rem;
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background-color: var(--azul-claro);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::before {
  width: 50%;
}

.nav-link:hover {
  color: var(--naranja) !important;
}

.nav-link.active,
.nav-link:focus {
  color: var(--azul-claro) !important;
}

.nav-link.active::before,
.nav-link:focus::before {
  width: 50%;
}

/* Dropdown */
.dropdown-menu {
  background-color: var(--azul-dropdown);
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  margin-top: 0.4rem;
  min-width: 190px;
}

.dropdown-item {
  color: var(--blanco) !important;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  border-radius: 5px;
}

.dropdown-item:hover {
  background-color: var(--azul-dropdown-hover) !important;
  color: var(--naranja) !important;
}

.dropdown-item i {
  color: var(--naranja) !important;
  font-size: 0.9rem;
}

/* Toggler */
.navbar-toggler {
  border: none;
  padding: 0.4rem;
  z-index: 1101;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--naranja);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========= NAVBAR MOBILE ASIDE ========= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -270px; 
    height: 100vh;
    width: 270px; 
    background-color: var(--azul-oscuro);
    padding: 2.5rem 1.2rem 2rem;
    transition: left 0.3s ease;
    box-shadow: 4px 0 12px rgba(0,0,0,0.25);
    z-index: 1100;
    text-align: center; 
  }

  .navbar-collapse.show {
    left: 0;
  }

  /* Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0,0,0,0.6);
    z-index: 1099;
    display: none;
  }
  .menu-overlay.active {
    display: block;
  }

  /* Botón cerrar (X) */
  .btn-close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.7rem;    
    font-weight: bold;     
    color: var(--blanco);
    cursor: pointer;
    background: none;
    border: none;
  }
  .btn-close-menu:hover {
    color: var(--naranja);
  }

  /* Links en columna */
  .nav-link {
    display: block;
    font-size: 0.9rem;
    padding: 0.65rem 0; 
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Dropdown en sidebar */
  .dropdown-menu {
    position: static;
    float: none;
    background-color: var(--azul-dropdown-hover);
    box-shadow: none;
    margin: 0.3rem 0 0 1rem; 
    border-radius: 6px;
  }
}

/* ======================================== */
/* ESTADO DEL BOTÓN HAMBURGUESA */
/* ======================================== */

@media (max-width: 991.98px) {

.navbar-toggler {
border: 2px solid transparent !important;
border-radius: 6px;
padding: 0.5rem;
background-color: transparent !important;
outline: none !important;
transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* El botón NO tiene efecto al pasar el mouse */
.navbar-toggler:hover {
background-color: transparent !important;
transform: none !important;
}

/* MENÚ ABIERTO → BORDE NARANJA */
.navbar-toggler[aria-expanded="true"] {
border: 2px solid var(--naranja) !important;
box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.15) !important;
}

/* Mantener naranja mientras el menú está abierto */
.navbar-toggler[aria-expanded="true"]:hover,
.navbar-toggler[aria-expanded="true"]:focus,
.navbar-toggler[aria-expanded="true"]:active {
border: 2px solid var(--naranja) !important;
box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.15) !important;
background-color: transparent !important;
transform: none !important;
}

/* MENÚ CERRADO → SIN BORDE */
.navbar-toggler[aria-expanded="false"] {
border: 2px solid transparent !important;
box-shadow: none !important;
}

/* Evitar rotación del icono */
.navbar-toggler-icon,
.navbar-toggler:hover .navbar-toggler-icon {
transform: none !important;
transition: none !important;
}
}

/* ====== CARRUSEL ====== */
:root {
  --naranja-oscuro: #e65100;
  --degradado-naranja: linear-gradient(135deg, var(--naranja), var(--naranja-oscuro));
}

/* Contenedor principal */
.carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Imágenes */
.img-carrusel {
  height: 90vh;
  width: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1); /* Imagen clara */
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Overlay */
.info-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  z-index: 10;
  pointer-events: auto;
}

/* Mensaje y botón sin fondo oscuro */
.info-content {
  background-color: transparent; /* Sin cuadro negro */
  padding: 2rem;
  text-align: center;
  max-width: 800px;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease;
}

/* Animación de aparición al cambiar slide */
.carousel-item.active .info-content {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Textos */
.info-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: 0.5px;
  background: var(--degradado-naranja);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.info-content p {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.text-highlight {
  color: var(--naranja);
}

/* Botón CTA */
.btn-cta {
  background: var(--degradado-naranja);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: auto; 
}

.carousel-item.active .btn-cta {
  animation: fadeInUp 1s 0.3s ease-out forwards;
}

/* Controles */
.carousel-control-prev, 
.carousel-control-next {
  width: 60px; height: 60px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  opacity: 0.3; 
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 0.7;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
  background-color: var(--naranja);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Indicadores */
.carousel-indicators {
  bottom: 30px;
  gap: 8px;
}

.carousel-indicators button {
  width: 14px; height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  margin: 0;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--naranja);
  border-color: white;
  transform: scale(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .img-carrusel { height: 70vh; }
  .info-content { padding: 1.5rem; width: 90%; }
  .carousel-control-prev, .carousel-control-next { width: 45px; height: 45px; }
}

@media (max-width: 576px) {
  .img-carrusel { height: 60vh; }
  .info-content { padding: 1rem; }
  .info-content h2 { font-size: 1.8rem; }
}

/* Animación inicial */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ====== CARRERAS NUEVAS ====== */
.seccion-carreras-nuevas {
  position: relative; /* Necesario para ::before */
  padding: 80px 0;
}

.seccion-carreras-nuevas::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.96) 100%);
  backdrop-filter: blur(3px);
  z-index: -1;
}

/* ENCABEZADO */
.seccion-header {
  margin-bottom: 60px;
  text-align: center;
}

.titulo-seccion {
  font-size: 2.8rem;
  font-weight: 800;
  color: #2c3e50;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.titulo-seccion::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #f57c00;
  border-radius: 2px;
}

.descripcion-seccion {
  font-size: 1.15rem;
  color: #5a6a7e;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* TARJETAS */
.carrera-nueva {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2);
  background: #fff;
  border: none;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  border-top: 3px solid transparent;
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.carrera-nueva:nth-child(1) { animation-delay: 0.1s; }
.carrera-nueva:nth-child(2) { animation-delay: 0.2s; }

.carrera-nueva:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-top-color: #f57c00;
}

/* Imagen con degradado */
.carrera-nueva .img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.carrera-nueva .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease;
}

.carrera-nueva .img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
}

.carrera-nueva:hover .img-wrapper img {
  filter: brightness(0.97);
}

/* Cuerpo de la tarjeta */
.card-body {
  padding: 25px;
  position: relative;
  text-align: center;
}

/* Icono flotante */
.icono-carrera {
  font-size: 2.3rem;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  z-index: 2;
  color: #2c3e50;
}

.carrera-nueva:hover .icono-carrera {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Textos */
.card-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 32px;
  margin-bottom: 15px;
  transition: color 0.3s;
}

.card-title:hover {
  color: #f57c00;
}

.card-text {
  font-size: 1.05rem;
  color: #5a6a7e;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Botón CTA */
.btn-ver-mas {
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-ver-mas:hover {
  background: #f57c00;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(245, 124, 0, 0.25);
}

/* Etiqueta "NUEVO" */
.etiqueta-nuevo {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f57c00;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .titulo-seccion {
    font-size: 2.4rem;
  }
  .carrera-nueva .img-wrapper { height: 180px; }
}

@media (max-width: 768px) {
  .titulo-seccion { font-size: 2.1rem; }
  .icono-carrera {
    width: 56px;
    height: 56px;
    font-size: 2rem;
    top: -28px;
  }
  .card-title { font-size: 1.3rem; }
}

@media (max-width: 576px) {
  .row.justify-content-center { gap: 1.8rem; }
  .carrera-nueva .img-wrapper { height: 160px; }
  .card-body { padding: 20px; }
}

/* ========= SECCIÓN CARRERAS GENERALES ========= */
.carrera-seccion {
  background: linear-gradient(135deg, var(--gris-claro) 0%, #eef2f5 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Encabezado */
.carrera-titulo {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--azul-oscuro);
  text-align: center !important;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.carrera-titulo::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--naranja) 0%, #ff9e4f 100%);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3);
}

.carrera-descripcion {
  font-size: 1.15rem;
  color: var(--gris-medio);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* === TARJETAS === */
.carrera-item {
  margin-bottom: 2rem;
  opacity: 0;
  animation: cardEntrance 0.6s ease-out forwards;
  transition: all 0.4s ease;
}

.carrera-card {
  border: none;
  border-radius: 15px;
  background: var(--blanco);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.carrera-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* Imagen */
.carrera-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: transform 0.6s ease;
}

.carrera-card:hover .carrera-img {
  transform: scale(1.05);
}

/* Título */
.carrera-title {
  background: var(--azul-oscuro); /* aquí queda el resaltado azul */
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 10px;
  border-top: 4px solid var(--naranja); /* detalle extra: borde arriba en naranja */
}

.carrera-card:hover .carrera-title {
  color: var(--naranja);
}

/* Lista de detalles */
.carrera-card ul {
  padding-left: 0;
  margin: 15px 0 20px;
  list-style: none;
}

.carrera-card ul li {
  font-size: 0.95rem;
  color: var(--texto-principal);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.carrera-card ul li i {
  font-size: 1rem;
  color: var(--azul-claro);
  margin-right: 8px;
}

/* Botón */
.carrera-btn {
  background: var(--azul-oscuro);
  color: var(--blanco);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.carrera-btn:hover {
  background: var(--naranja);
  transform: translateY(-2px) scale(1.03);
}

.carrera-btn:active {
  transform: scale(0.95);
}

/* === Animaciones === */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.carrera-item:nth-child(1) { animation-delay: 0.1s; }
.carrera-item:nth-child(2) { animation-delay: 0.2s; }
.carrera-item:nth-child(3) { animation-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 992px) {
  .carrera-titulo { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .carrera-seccion { padding: 3rem 0; }
  .carrera-img { height: 200px; }
}

@media (max-width: 576px) {
  .carrera-titulo { font-size: 2rem; }
  .carrera-descripcion { font-size: 1rem; }
}


/* ====== MODAL DE IMAGEN ====== */
.imagen-modal {
  display: none;
  position: fixed;
  z-index: 20000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(0px);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease, backdrop-filter 0.6s ease;
}

.imagen-modal.mostrar {
  display: flex;
  opacity: 1;
  transform: scale(1);
  backdrop-filter: blur(4px);
}

.imagen-modal-contenido {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.5s ease;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 21000;
}

.cerrar-modal:hover {
  color: var(--naranja);
}

/* Animaciones */
@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.85); opacity: 0; }
}

/* === BOTONES DE FILTRO === */
.filtro-btn-custom {
  background: transparent;
  color: var(--azul-oscuro);
  border: 2px solid var(--azul-oscuro);
  border-radius: 25px;
  padding: 8px 20px;
  margin: 0 5px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filtro-btn-custom:hover {
  background: var(--azul-oscuro);
  color: var(--blanco);
  transform: translateY(-2px);
}

.filtro-btn-custom.active {
  background: var(--naranja);
  border-color: var(--naranja);
  color: var(--blanco);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.25);
}

/* === EFECTO AL FILTRAR TARJETAS === */
.carrera-item {
  transition: all 0.4s ease;
  opacity: 1;
  transform: scale(1);
}

.carrera-item.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
}

/* ====== SECCIÓN PARALLAX ====== */
.seccion-parallax {
  position: relative;
  height: 90vh; /* Mantiene impacto visual */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
  z-index: 1;

  background: url("../imagenes/Itsa2.jpg") center / cover no-repeat;
  background-attachment: fixed;
  transition: background-position 8s ease-out;
}

.seccion-parallax:hover {
  background-position: center 85%;
}

/* Capa overlay degradada */
.seccion-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 0;
  transition: opacity 0.5s ease;
}

.seccion-parallax:hover::before {
  opacity: 0.9;
}

/* Contenido con fade-in */
.contenido-parallax {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contenido-parallax h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* Botón estilo moderno */
.btn-parallax {
  background: linear-gradient(135deg, var(--naranja) 0%, #ff9e4f 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
  transition: all 0.35s ease;
  position: relative;
  display: inline-block;
  overflow: hidden;
  cursor: pointer;
}

.btn-parallax:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(245, 124, 0, 0.6);
}

/* Efecto de brillo */
.btn-parallax::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(30deg);
  transition: left 0.5s ease;
}

.btn-parallax:hover::after {
  left: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
  .seccion-parallax {
    height: 70vh;
    background-attachment: scroll !important; /* Forzamos scroll en móviles */
  }

  .contenido-parallax h2 {
    font-size: 2rem;
  }

  .btn-parallax {
    padding: 12px 28px;
  }
}

/* Extra seguridad contra “scroll fantasma” */
html, body {
  overflow-x: hidden;
}

/* ====== SECCIÓN NOTICIAS Y EVENTOS ====== */
.seccion-noticias-eventos {
  padding: 5rem 0;
  background: #f8f9fa;
}

.titulo-seccion-ne {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--azul-oscuro);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.titulo-seccion-ne::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--naranja);
  border-radius: 2px;
}

/* Contenedor de tarjetas */
.contenedor-ne {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ======= TARJETAS VERTICALES (EVENTOS) ======= */
.card-ne.vertical {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1);
}

.card-ne.vertical:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-ne.vertical .img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-ne.vertical .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.card-ne.vertical:hover .img-wrapper img {
  transform: scale(1.1);
}

.card-body-ne {
  padding: 1.5rem;
}

.label-ne {
  display: inline-block;
  font-size: 0.75rem;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bg-naranja { background: linear-gradient(135deg, var(--naranja) 0%, #ff9e4f 100%); }
.bg-verde { background: linear-gradient(135deg, #2ecc71 0%, #1abc9c 100%); }
.bg-azul { background: linear-gradient(135deg, var(--azul-claro) 0%, #4a89dc 100%); }

.titulo-ne {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.card-ne.vertical:hover .titulo-ne {
  color: var(--naranja);
}

.detalles-ne {
  padding-left: 0;
  margin: 1rem 0;
}

.detalles-ne li {
  font-size: 0.9rem;
  color: #5a6a7e;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  transition: transform 0.3s;
}

.detalles-ne li:hover {
  color: var(--azul-oscuro);
  transform: translateX(5px);
}

.detalles-ne i {
  color: var(--naranja);
  font-size: 1rem;
  margin-right: 8px;
  transition: all 0.3s;
}

.detalles-ne li:hover i {
  transform: scale(1.2);
}

.descripcion-ne {
  font-size: 0.9rem;
  color: #5a6a7e;
  line-height: 1.6;
  margin: 1rem 0;
}

.btn-ne {
  background: var(--azul-oscuro);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.btn-ne:hover {
  background: var(--naranja);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245,124,0,0.3);
}

/* ======= TARJETAS HORIZONTALES (NOTICIAS) ======= */
.card-ne.horizontal {
  display: flex;
  flex-direction: row;
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card-ne.horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-ne.horizontal .img-wrapper {
  flex: 0 0 25%;
  max-width: 25%;
  overflow: hidden;
}

.card-ne.horizontal .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.card-ne.horizontal:hover .img-wrapper img {
  transform: scale(1.03);
  filter: brightness(1.02) contrast(1.05);
}

.card-ne.horizontal .card-body-ne {
  flex: 1;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; /* para que tag-ne quede bien */
}

.tag-ne {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--naranja);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 992px) {
  .card-ne.horizontal .img-wrapper {
    flex: 0 0 35%;
    max-width: 35%;
  }
}

@media (max-width: 768px) {
  .card-ne.horizontal {
    flex-direction: column;
  }
  .card-ne.horizontal .img-wrapper {
    width: 100%;
    height: 200px;
    flex: none;
    margin-bottom: 1rem;
    border-radius: 12px 12px 0 0;
  }
  .card-ne.horizontal .card-body-ne {
    padding: 20px 15px 15px 15px;
  }
  .tag-ne {
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 576px) {
  .titulo-seccion-ne {
    font-size: 2rem;
  }
  .card-ne.horizontal .card-body-ne h5,
  .card-ne.vertical .titulo-ne {
    font-size: 1.2rem;
  }
}

/* ===== Ajuste final para grid ===== */
.card-ne.horizontal {
  display: flex;
  flex-direction: row;
  width: 100%;
}
@media (max-width: 991px) {
  .card-ne.horizontal {
    flex-direction: column;
  }
}

/* ===== Sección: Sé parte del ITSA 2026 - Versión Mejorada ===== */
.itsa-2026 {
  /* Estilos base full-width (responsive) */
  background: linear-gradient(135deg, #001a33, #003366);
  color: #ffffff;
  width: 100%; /* Cambiado a 100% */
  padding: 5rem 0;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 45, 96, 0.3);
  z-index: 1;
  transition: all 0.4s ease;
}

/* Contenedor interno centrado */
.itsa-2026 .container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Efecto hover para toda la sección */
.itsa-2026:hover {
  box-shadow: 0 15px 40px rgba(0, 45, 96, 0.4);
  transform: translateY(-2px);
}

/* Título principal */
.itsa-2026 h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
  display: inline-block;
}

/* Línea decorativa bajo el título */
.itsa-2026 h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff7043, #ffab40);
  margin: 1.5rem auto;
  border-radius: 3px;
}

/* Texto descriptivo */
.itsa-2026 p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 2rem;
}

/* Botón destacado */
.btn-inscribete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff7043, #ff8f50);
  color: white;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

/* Efecto hover del botón */
.btn-inscribete:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 112, 67, 0.5);
  color: white;
}

.btn-inscribete::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f4511e, #ff7043);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-inscribete:hover::before {
  opacity: 1;
}

/* Icono del botón */
.btn-inscribete i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn-inscribete:hover i {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .itsa-2026 {
    padding: 4rem 0;
  }
  
  .itsa-2026 h2 {
    font-size: 2.2rem;
  margin-bottom: 0.8rem;
  }
  
  .itsa-2026 p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .itsa-2026 {
    padding: 3rem 0;
  box-shadow: 0 8px 20px rgba(0, 45, 96, 0.3);
  }
  
  .itsa-2026 h2 {
    font-size: 2rem;
  }
  
  .itsa-2026 h2::after {
    margin: 1rem auto;
    width: 60px;
  }
  
  .btn-inscribete {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .itsa-2026 h2 {
    font-size: 1.8rem;
  }
  
  .itsa-2026 p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
}

/* ========= FOOTER ========= */
.footer-dark {
  background-color: #0a0a0a;
  color: #f5f5f5;
  font-size: 0.95rem;
}

.footer-dark h5 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-dark ul {
  padding-left: 0;
  list-style: none;
}

.footer-dark ul li {
  margin-bottom: 8px;
}

.footer-dark ul li a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-dark ul li a:hover {
  color: #0d6efd;
}

.footer-dark .footer-social-icons i {
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
}

.footer-dark .footer-social-icons i:hover {
  color: #0d6efd;
  transform: scale(1.2);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991.98px) {
  .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* ====== AJUSTES PARA MÓVIL ====== */
@media (max-width: 576px) {
  footer {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  footer .row > div {
    margin-bottom: 1.5rem;
  }

  footer .footer-social-icons {
    flex-direction: row !important; /* horizontal */
    justify-content: center !important;
  }

  footer .footer-social-icons a {
    font-size: 1.5rem;
    margin: 0 10px; /* espacio entre botones */
  }

  footer a {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
  }

  footer p, footer h5 {
    font-size: 1.1rem;
  }
}

/*==== SECCION DE VIDEO ====*/
#video-seccion {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#video-seccion h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--azul-oscuro);
}

#video-seccion p {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.7;
  max-width: 500px;
}

#video-seccion .ratio {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#video-seccion .btn-video {
  margin-top: 1.5rem;
  background: var(--azul-oscuro);
  color: #fff;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

#video-seccion .btn-video:hover {
  background: var(--naranja);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245,124,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  #video-seccion h2 {
    font-size: 2rem;
  }
  #video-seccion p {
    max-width: 100%;
  }
}

/* ===== Sección Informativa ITSA con Parallax ===== */
#info-itsa {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}

#info-itsa .parallax-background {
  background-image: url('../imagenes/Itsa4.jpg'); /* Reemplaza con tu imagen */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 50px 0;
  position: relative;
  z-index: 1;
}

#info-itsa .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* oscurece la imagen para mejor legibilidad */
  z-index: 2;
}

#info-itsa .container {
  position: relative;
  z-index: 3;
}

.info-box {
  padding: 20px;
  transition: transform 0.3s ease;
  border-radius: 15px;
}

.info-box:hover {
  transform: translateY(-10px);
}

.icono-info {
  font-size: 60px;
  color: #00ff55; /* verde neón */
  margin-bottom: 15px;
}

.info-num {
  font-size: 38px;
  font-weight: 800;
  color: #ff5722; /* naranja vivo */
  margin-bottom: 5px;
}

.info-text {
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .icono-info {
    font-size: 45px;
  }

  .info-num {
    font-size: 28px;
  }

  .info-text {
    font-size: 16px;
  }

  #info-itsa .parallax-background {
    background-attachment: scroll;
  }
}

/* ===== EFECTO DE CARGA DE LA PAGINA ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-content {
  text-align: center;
}

.logo-loader {
  width: 100px;
  margin-bottom: 20px;
  animation: zoom 2s infinite alternate;
}

/* Contenedor de la barra */
.progress-bar-container {
  width: 200px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

/* Barra animada */
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff5722, #ff9800);
  border-radius: 10px;
  animation: loadBar 2s infinite;
}

@keyframes loadBar {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

@keyframes zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ====== BOTONES FLOTANTES ====== */
/* Contenedor fijo con efecto fade + slide */
.botones-flotantes {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) translateX(100px); /* fuera de pantalla a la derecha */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

/* Activar animación */
.botones-flotantes.mostrar {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0); /* posición final */
}

/* Botones individuales */
.btn-flotante {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* Animación flotante */
  animation: flotante 2.5s ease-in-out infinite alternate;
}

/* Colores */
.whatsapp { background: #25D366; }
.facebook { background: #1877f2; }

/* Hover */
.btn-flotante:hover {
  transform: scale(1.2); /* zoom al pasar mouse */
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Animación flotante vertical */
@keyframes flotante {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==== BOTON SUBIR ====*/
/* Botón */
  #btnSubir {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* azul suave */
    color: white;
    font-size: 24px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
  }

  /* Estado visible */
  #btnSubir.mostrar {
    opacity: 1;
    visibility: visible;
  }

  /* Hover con efecto */
  #btnSubir:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.5);
  }

  /* Ícono con animación suave */
  #btnSubir i {
    transition: transform 0.3s ease;
  }

  #btnSubir:hover i {
    transform: translateY(-3px);
  }

  /* ======= SECCIÓN FERIAS CTA ======= */
.seccion-ferias-cta {
  background: var(--gris-claro);
  text-align: center;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
  font-family: var(--fuente-principal);
  padding: 80px 0;
}

.titulo-ferias-cta {
  color: var(--azul-oscuro);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 15px;
}

.subtexto-ferias-cta {
  color: var(--gris-medio);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 25px auto;
}

/* ===== BOTÓN FERIAS ===== */
.btn-ferias {
  background: linear-gradient(135deg, #4fa8e3, #6ec6ff); /* Celestes claros */
  color: var(--blanco);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.35s ease;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 70, 150, 0.25);
  position: relative;
  overflow: hidden;
}

/* Efecto hover con brillo suave */
.btn-ferias:hover {
  background: linear-gradient(135deg, #6ec6ff, #4fa8e3); /* Inversión del degradado */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 70, 150, 0.35);
  color: var(--blanco); /* Mantiene el texto visible */
}

/* Pequeño resplandor al pasar el mouse */
.btn-ferias::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.4s ease;
}

.btn-ferias:hover::after {
  left: 100%;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .titulo-ferias-cta {
    font-size: 1.6rem;
  }

  .subtexto-ferias-cta {
    font-size: 1rem;
    padding: 0 15px;
  }

  .btn-ferias {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}

