/* --- Hover con columnas y ancho completo solo en pantallas grandes --- */
@media (min-width: 992px) {

  /* Contenedor del dropdown: ocupa todo el ancho de la pantalla */
  .nav-item.proyectos-terminados {
  
    position: static !important; /* para que no se limite al ancho del li */
    
    

  }

  .nav-item.proyectos-terminados .custom-dropdown {
    display: none;
    position: absolute;
    top: 65%;
    left: 0;
    width: 100vw; /* ancho completo del viewport */
    padding: 20px 60px;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;

  
    
  }

  /* Mostrar al hacer hover */
  .nav-item.proyectos-terminados:hover .custom-dropdown {
    display: flex !important;
  
  }

  /* Cada periodo será una columna */
  .nav-item.proyectos-terminados .periodo-item {
    flex: 1 1 220px;
    max-width: 260px;
    min-width: 200px;
    
  }

  /* Cabeceras */
  .nav-item.proyectos-terminados .periodo-header {
    background: transparent !important;
    color: #063678 !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 2px solid #063678;
    padding-bottom: 6px;
    margin-bottom: 8px;
    cursor: default;
    box-shadow: none !important;
  }

  /* Flecha fuera en escritorio */
  .nav-item.proyectos-terminados .periodo-arrow {
    display: none;
  }

  /* Contenido visible siempre en escritorio */
  .nav-item.proyectos-terminados .periodo-content {
    display: block !important;
    padding-left: 0;
    margin: 0;
    list-style: none;
  }

  /* Items */
  .nav-item.proyectos-terminados .dropdown-item {
    display: block;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
   
  }

  .nav-item.proyectos-terminados .dropdown-item:hover {
    color: #063678;
    transform: translateX(4px);
    
  }
}


/* *******hovver listados********** */

/* ---------- NAVBAR BASE ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Centrar los menús principales */
.menu-central {
  gap: 25px;
  text-align: center;
}

/* Línea azul debajo del link activo o hover */
.navbar .nav-link {
  position: relative;
  padding-bottom: 5px;
  transition: color 0.2s ease-in-out;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #265587;
  transition: width 0.3s ease-in-out;
  
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* ---------- CONTENEDOR LINK + FLECHA ---------- */
.nav-link-container {
  position: relative;
  width: 100%;
}

.dropdown-arrow {
  cursor: pointer;
  padding: 10px;
}

.dropdown-arrow::after {
  content: "▼";
  font-size: 12px;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s;
}

.nav-item.open .dropdown-arrow::after {
  transform: rotate(180deg);
  
}

/* ---------- MENÚ PERSONALIZADO ---------- */
.custom-dropdown {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  
}

.nav-item.open .custom-dropdown {
  display: block;
}

/* Items del dropdown */
.custom-dropdown .dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease, color 0.3s ease;
  
}

/* Guion azul oculto */
.custom-dropdown .dropdown-item::before {
  content: "—";
  position: relative;
  margin-right: 6px;
  color: rgb(11, 88, 220);
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  
}

/* Hover: aparece guion y se mueve */
.custom-dropdown .dropdown-item:hover {
  transform: translateX(5px);
  color: rgb(6, 54, 120);
  
}

.custom-dropdown .dropdown-item:hover::before {
  opacity: 1;
}

/* Activo (verde) */
.custom-dropdown .dropdown-item.activod::before {
  content: "—";
  color: rgb(145, 187, 36);
  opacity: 1;
  font-weight: bold;
}

/* ---------- SCROLL PARA TERMINADOS ---------- */
.dropdown-scroll {
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* ---------- PERIODOS ---------- */
.periodo-header {
  background: rgb(6, 54, 120);
  color: #fff;
  padding: 12px 16px;
  /* border-radius: 6px; */
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  
}

.periodo-header:hover {
  background: rgb(10, 70, 160);
  transform: translateX(3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Flecha de periodo */
.periodo-arrow::after {
  content: "▼";
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.periodo-item.open .periodo-arrow::after {
  transform: rotate(180deg);
}

/* Contenido de periodos */
.periodo-content {
  display: none;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.periodo-item.open .periodo-content {
  display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .custom-dropdown {
    position: static;
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
  }

  .dropdown-scroll {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
  }
}

@media (min-width: 992px) {
  .dropdown-arrow {
    display: none;
  }

  .nav-item {
    position: relative;
  }

  .custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    
  }

  .nav-item:hover .custom-dropdown {
    display: block;
  }
}

/* ---------------------------------------------- */

/* arriba de nav */
        .topbar {
            background: #fff;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            font-size: 0.95rem;
        }

        .topbar a {
            color: #222;
            text-decoration: none;
        }

        .topbar a:hover {
            color: #124378b3;
        }

/* para navvar imagen se hace pequeña con js */
.small-img {
    width: 250px;
    height: auto;
}

.large-img {
    width: 280px;
    height: auto;
}

#navbarBrand img {
    transition: all 0.3s ease;
}



/* ------------------------------------ */




/* Estilo para las redes sociales */
.redes-sociales a {
    color: #000; /* Color de los iconos */
    margin-left: 12px;
    transition: color 0.3s ease-in-out;
}

.redes-sociales a:hover {
    color: #0d6efd; /* Azul de Bootstrap en hover */
}



/* para cards */
@media (min-width: 770px) {
  
  .oculto {
    display: none;
  }
  .visible {
    display: block;
  }
}

@media (max-width: 770px) {
  
  .oculto {
    display: block;
  }
  .visible {
    display: none;
  }
  .ptfcontac{
    padding-top: 30px;
  }
}




/* boton conoce azul con flecha  */

.btn-conoce {
    background-color:rgb(6, 54, 120);  /* Color azul similar al de la imagen */
    color: white;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 25px;
    border-radius: 2px;
    border: none;
    transition: all 0.3s ease;
}

.btn-conoce:hover {
    transform: translateY(-4px);
    background-color: #0c1f3b; /* Un poco más oscuro al hacer hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
}




/* colores */
.azul{
color:  rgb(6, 54, 120); 

}
.verde{
    color: rgb(145, 187, 36); 
  
    font-style: italic;
}
.verdes{
   color: rgb(145, 187, 36); 
}


.vb2{
    font-size: 2.5vb;
}
.vb4{
    font-size: 4vb;
}


@media (max-width: 768px) {
    .vb2{
    font-size: 2vb;}
    .vb4{
    font-size: 3vb;}
}


/* desactiva href movil */

/* @media (max-width: 991.98px) {
  .nav-link.respon[href="proyectos-curso.html"] {
    pointer-events: none;
  }
   .nav-link.respon2[href="proyectos-terminados.html"] {
    pointer-events: none;
  }
} */

.lin{
   border: 2px solid rgb(0, 0, 0);
}


/* hover flecha */
.link-proyectos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* Texto dentro del enlace */
.texto-proyectos {
  transition: transform 0.4s ease;
}

/* Flechas base */
.flecha-icono {
  width: 35px;
  height: auto;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

/* Flecha normal (visible al inicio) */
.flecha-normal {
  filter: brightness(0) invert(1); /* blanca */
  opacity: 1;
}

/* Flecha hover (entra desde la izquierda, sin color hasta hover) */
.flecha-hover {
  position: absolute;
  left: -45px;
  opacity: 0;
  filter: brightness(0) invert(1); /* blanca antes del hover */
  transform: translateX(-20px);
}

/* Efectos hover */
.link-proyectos:hover {
  color: rgb(6, 54, 120); /* texto cambia de color */
}

/* Flecha blanca desaparece */
.link-proyectos:hover .flecha-normal {
  opacity: 0;
  transform: translateX(20px);
}

/* Flecha entra con azul más oscuro */
.link-proyectos:hover .flecha-hover {
  opacity: 1;
  transform: translateX(50px);
  filter: brightness(0) saturate(100%) invert(16%) sepia(87%) saturate(1500%) hue-rotate(210deg) brightness(90%) contrast(110%);
}

/* Texto se recorre */
.link-proyectos:hover .texto-proyectos {
  transform: translateX(40px);
}





/* -------------------------- */
/* linea atras de texto */
.titulo-seccion {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
 
  margin: 0;          
  padding: 0;         
  width: 100%;        
}


.linea-icono {
  width: 50px;
  /* height: 50px; */
  margin-right: -25px; 
  display: block;
  filter: invert(20%) sepia(100%) saturate(900%) hue-rotate(200deg);
}





.titulo-seccion h6 {
  margin: 0;
  left: 100px;
  font-weight: bold;
  color: rgb(6, 54, 120);
  font-size: 1rem;
  letter-spacing: 1px;
}

/* linea detas de cabeceros proyestcos */

.titulo-lineaatras {
  display: flex;
  gap: 12px; 
   align-items: center;

  font-weight: 600;
  color: #fff; 
  text-transform: uppercase;
  letter-spacing: 1px;
}

.titulo-lineaatras .linea2 {
  width: 60px;    
  height: 1px;   
  background-color: currentColor; 
  border-radius: 1px;
}

/* para los iconos de las secciones proyetcos en las pestañas */
.hicon {
/* filter: invert(10%) sepia(90%) saturate(800%) hue-rotate(180deg); */
  width: 20px;
  height: auto;
}















  /* controles  sliders derechos*/
.flechas {
    position: absolute;
    top: 100%;
    left: 0px;
    background: none;
    border: none;
    opacity: 1;
    font-size: 1.5rem;
    color: #000; 
    transform: translateY(20px);
}
.flechas:hover,
.flechas:focus,
.flechas:active {
    color: #000 !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* posición individual */
.carousel-control-prev.flechas {
    left: -1%;
    transform: translate(-20px, 0px);
}

.carousel-control-next.flechas {
    right: 50%;
    transform: translate(10px, 0px);
}


/* inverso */
.flechas2 {
    position: absolute;
    top: 100%;
    right: 100px;
    background: none;
    border: none;
    opacity: 1;
    font-size: 1.5rem;
    color: #000; 
    transform: translateY(20px);
}
.flechas2:hover,
.flechas2:focus,
.flechas2:active {
    color: #000 !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}


/* posición individual */
.carousel-control-prev.flechas2 {
    left: 95%;
    transform: translate(-90px, 0px);
}

.carousel-control-next.flechas2 {
    right: 2%;
    transform: translate(40px, 0px);
}