/* ========= VARIABLES ========= */
:root {
  --azul-oscuro: #003366;        /* Azul oscuro principal */
  --azul-claro: #4A90E2;         /* Azul claro secundario */
  --verde-agua: #1ABC9C;         /* Verde agua suave */
  --gris-claro: #F5F7FA;         /* Fondo general */
  --gris-medio: #8A8D91;         /* Texto secundario y bordes */
  --blanco: #FFFFFF;
  --naranja: #f57c00;
  --rojo-suave: #e74c3c;  /* Rojo elegante y visible */
  --texto-principal: #212529;
  --sombra-suave: rgba(0, 0, 0, 0.1);
  --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --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-top: 68px;
}

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; /* 🔥 antes estaba sticky */
  top: 0;
  left: 0;
  right: 0; /* asegura que ocupe todo el ancho */
  z-index: 1030;
  transition: all 0.4s ease;
  animation: fadeInDown 0.6s ease-out forwards; /* 👈 animación */
}

.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; /* más chico */
  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; /* mantiene proporción */
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--naranja);
}

/* Links */
.nav-link {
  color: var(--blanco) !important;
  font-weight: 600;
  font-size: 0.85rem; /* más chico */
  padding: 0.35rem 0.6rem; /* más compacto */
  margin: 0 0.15rem;
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  white-space: nowrap; /* evita que se partan */
}

.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; /* más compacto */
  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: 0;
  height: 100vh;
  width: 270px;
  background-color: var(--azul-oscuro);
  padding: 2.5rem 1.2rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.35s ease-in-out;
  box-shadow: 4px 0 12px rgba(0,0,0,0.25);
  z-index: 1100;
  text-align: center;
}

.navbar-collapse.show {
  transform: translateX(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;
}
}

/* ===== Sección: Sé parte del ITSA 2026 ===== */
.itsa-2026 {
  background: linear-gradient(135deg, #002d60, #005a9e);
  color: #ffffff;
  border-radius: 12px;
  margin-top: 3rem;
}

.itsa-2026 h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.itsa-2026 p {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: #e0e0e0;
}

.btn-inscribete {
  background-color: #ff7043;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn-inscribete:hover {
  background-color: #f4511e;
  color: #fff;
}

/* ========= 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;
  }
}

/*======== BANNER ITSA ========*/
.banner-itsa {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-itsa img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene proporción sin deformar */
  z-index: 0;
}

.banner-overlay {
  background: transparent; /* 🔹 Quitado el oscurecimiento */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-content {
  color: #fff;
  max-width: 700px;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Animaciones por etapas */
.animate-title, .animate-text, .animate-btn {
  opacity: 0;
  transform: translateY(50px);
  animation-fill-mode: forwards;
}

.animate-title { animation: fadeInUp 1s ease 0.3s forwards; }
.animate-text { animation: fadeInUp 1s ease 0.8s forwards; }
.animate-btn  { animation: fadeInUp 1s ease 1.3s forwards; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Textos */
.banner-content h1 { font-size: 2.5rem; font-weight: bold; margin-bottom: 20px; }
.banner-content p  { font-size: 1.2rem; margin-bottom: 25px; line-height: 1.6; }

/* Botón */
.banner-content .btn {
  padding: 12px 35px;
  font-size: 1.2rem;
  border-radius: 25px;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s;
}
.banner-content .btn:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* Responsivo */
@media (max-width: 768px) {
  .banner-itsa { height: 400px; }
  .banner-content h1 { font-size: 2rem; }
  .banner-content p  { font-size: 1rem; }
}

/*IMAGEN MODAL */
.imagen-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.imagen-modal.mostrar {
  display: flex;
  opacity: 1;
}

.imagen-modal-contenido {
  max-width: 85%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: zoomIn 0.5s ease;
}

.cerrar-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cerrar-modal:hover {
  transform: scale(1.2);
}

/* Animaciones */
@keyframes zoomIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.6); opacity: 0; }
}


/* =======SECCIÓN FERIA ACADÉMICA====== */
.seccion-feria {
    background-color: #f4f6f9; /* fondo suave */
    color: #333;
    padding: 60px 0;
    font-family: 'Poppins', sans-serif;
}

.titulo-seccion {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0d1b5a; /* azul profundo */
    text-align: center;
    margin-bottom: 10px;
}

.subtitulo-seccion {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

/* ====== Contenedor principal ====== */
.container-feria-principal {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

/* Columnas con flex fijo */
.center-column {
    flex: 0 0 70%; /* ocupa 70% fijo */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.right-column {
    flex: 0 0 28%; /* ocupa 28% fijo */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ======= SECCIÓN FERIA ACADÉMICA ====== */
.seccion-feria {
    background-color: #f4f6f9;
    color: #333;
    padding: 60px 0;
    font-family: 'Poppins', sans-serif;
}

.titulo-seccion {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0d1b5a;
    text-align: center;
    margin-bottom: 10px;
}

.subtitulo-seccion {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

/* ====== Contenedor principal con Grid ====== */
.container-feria-principal {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 25px;
}

/* Columnas */
.center-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    overflow: hidden; /* Oculta el contenido de páginas no visibles */
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 20px; /* Mantener visible */
}

/* ====== PAGINACIÓN y PAGES WRAPPER ====== */
/* Contenedor principal de las páginas */
.project-pages-wrapper {
  position: relative;
  height: 100%; /* Igualar al alto de la columna */
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
}

/* Cada página de proyectos */
.project-page {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
  pointer-events: none; /* Evita clics en las que no se ven */
}

/* Página activa */
.project-page.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Animación suave al cambiar */
.project-pages-wrapper.animate {
  transition: transform 0.8s ease-in-out;
}

/* PAGINACIÓN */
.project-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.project-pagination button {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.project-pagination button:hover {
  background: #084298;
}

.project-pagination .active {
  background: #ff6600;
}


/* ====== TARJETAS DE PROYECTO ====== */
.career-card {
    background: linear-gradient(145deg, #ffffff, #f0f3f7);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.career-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.career-image {
    width: 90%;
    height: 320px;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 18px;
    transition: transform 0.4s ease;
}

.career-card:hover .career-image {
    transform: scale(1.05);
}

.career-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d1b5a;
    margin-bottom: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.project-type {
    font-weight: 600;
    color: #ff6f00;
}

.label {
    background-color: #e9ecef;
    color: #555;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 12px;
}

.career-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-more {
    background-color: #ff6f00;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #e65c00;
    transform: translateY(-3px) scale(1.05);
}

/* ====== COLUMNA DERECHA ====== */
.organizer-section button.btn-organizer {
    width: 100%;
    background-color: #0d1b5a;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.organizer-section button.btn-organizer:hover {
    background-color: #08103f;
    transform: translateY(-2px);
}

.organizer-card {
    background: linear-gradient(145deg, #ffffff, #f0f3f7);
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organizer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.organizer-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 3px solid #ff6f00;
}

.organizer-name {
    font-weight: 700;
    color: #0d1b5a;
    margin-bottom: 4px;
}

.organizer-role, .organizer-career {
    color: #666;
    font-size: 0.9rem;
    margin: 2px 0;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    justify-content: center;
}

.social-icons i {
    color: #ff6f00;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icons i:hover {
    transform: scale(1.2);
}

.organizer-message {
    font-size: 0.9rem;
    color: #666;
}

/* ====== Secciones de comida, ganadores, negocios, áreas ====== */
.food-section, .winners-section, .business-section, .areas-section {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.food-section h3, .winners-title, .business-title, .areas-title {
    font-weight: 700;
    color: #0d1b5a;
    margin-bottom: 12px;
}

.food-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.food-item img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
}

.food-info h5 {
    margin: 0;
    color: #0d1b5a;
}

.food-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.winners-message, .areas-list, .business-description {
    color: #666;
    font-size: 0.9rem;
}

/* HOVER GENERAL */
button, .btn-more, .btn-organizer {
    transition: all 0.3s ease;
}

button:hover, .btn-more:hover, .btn-organizer:hover {
    transform: translateY(-3px);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .container-feria-principal {
        grid-template-columns: 1fr;
    }
    .right-column {
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .titulo-seccion {
        font-size: 2rem;
    }
    .subtitulo-seccion {
        font-size: 1rem;
    }
    .career-title {
        font-size: 1.3rem;
    }
    .career-image {
        height: 250px;
    }
    .organizer-photo {
        width: 90px;
        height: 90px;
    }
}

/* ===== EFECTO DE DESPLAZAMIENTO SUAVE ENTRE COLUMNAS ===== */
@media (min-width: 992px) {
  .container-feria-principal {
    position: relative;
    align-items: flex-start;
  }

  .right-column {
    position: sticky;
    top: 80px;
    align-self: flex-start;
    height: fit-content;
    transition: transform 0.3s ease-out;
  }

  .scroll-sync-active .right-column {
    transform: translateY(-20px);
  }
}


/* ===== 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;
  }
}

/* ==== 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);
  }

  /* ====== 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); }
}

/*===== VOLVER SECCION =====*/
.volver-seccion {
  text-align: center;
  margin: 40px 0;
}

.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #4da3ff, #0078d7); /* Azul claro a azul medio */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 120, 215, 0.25);
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background: linear-gradient(90deg, #0078d7, #4da3ff); /* Inversión del degradado */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 120, 215, 0.35);
  color: #fff;
}

.btn-volver i {
  font-size: 1.1rem;
}


