/* ========= 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;
  --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 DE REQUISITOS ========= */
/* ========= 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;
}

/* ========= ESTILOS GENERALES DE LA SECCIÓN ========= */
.seccion-requisitos {
  padding: 4rem 1rem;
  background-color: var(--gris-claro);
  text-align: center;
}

/* ========= TÍTULO CON LÍNEA Y FRASE ========= */
.seccion-requisitos h2 {
  font-size: 2.5rem;
  color: var(--azul-claro);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.seccion-requisitos h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--naranja);
  margin: 0.5rem auto 0;
  border-radius: 5px;
}

.seccion-requisitos p.subtitulo {
  font-size: 1.2rem;
  color: var(--gris-medio);
  margin-bottom: 2.5rem;
}

/* ========= TARJETAS DE REQUISITOS ========= */
.tarjetas-requisitos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tarjeta-requisito {
  background-color: var(--blanco);
  box-shadow: 0 4px 8px var(--sombra-suave);
  border-radius: 15px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 5px solid var(--azul-claro);
}

.tarjeta-requisito:hover {
  transform: translateY(-5px);
}

.tarjeta-requisito i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tarjeta-requisito h5 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--azul-oscuro);
}

.tarjeta-requisito p {
  font-size: 1rem;
  color: var(--texto-principal);
}

/* ICONOS DE COLORES PARA CADA TARJETA (según HTML inline) */
/* Si quieres definir colores fijos aquí, puedes usar clases o estilos inline en HTML */

/* ========= RESPONSIVO ========= */
@media (max-width: 768px) {
  .tarjetas-requisitos {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-requisito {
    width: 90%;
  }
}

/* ========= RESPONSIVO ========= */
@media (max-width: 768px) {
  .tarjetas-requisitos {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-requisito {
    width: 90%;
  }
}

/* ====== ACORDEÓN POSTULANTES ====== */
.acordeon-extra {
  background-color: var(--gris-claro);
  padding: 60px 0;
}

.acordeon-extra .titulo-acordeon {
  font-size: 2.2rem;
  color: var(--azul-oscuro);
  position: relative;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.acordeon-extra .titulo-acordeon::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--naranja);
  margin: 0.5rem auto 0;
  border-radius: 5px;
}

/* Botones del acordeón */
.acordeon-extra .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  background-color: var(--blanco);
  color: var(--azul-oscuro);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  justify-content: flex-start;
  padding: 1rem 1.5rem;
}

.acordeon-extra .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(26,188,156,0.4);
}

.acordeon-extra .accordion-button:not(.collapsed) {
  background-color: var(--azul-claro);
  color: var(--blanco);
  font-weight: 700;
}

/* Estilo de los items */
.acordeon-extra .accordion-item {
  margin-bottom: 1.2rem;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.acordeon-extra .accordion-item:hover {
  transform: translateY(-2px);
}

/* Cuerpo del acordeón */
.acordeon-extra .accordion-body {
  background-color: #fefefe;
  padding: 1.2rem 1.5rem;
  border-left: 5px solid var(--naranja);
  color: var(--texto-principal);
  font-size: 0.95rem;
  line-height: 1.6;
  border-radius: 0 0 8px 8px;
}

/* Listas dentro del acordeón */
.acordeon-extra ol,
.acordeon-extra ul {
  padding-left: 1.3rem;
}

.acordeon-extra li {
  margin-bottom: 0.5rem;
}

/* ========= 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;
  }
}

/* ===== 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;
  }
}

/*======== 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; }
}

/* ==== 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); }
}