@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

    body{
      font-family: "Jost", sans-serif;
      font-optical-sizing: auto;
      font-style: normal;
    }

    :root{
      --fca-azul:#0B2E72; /* azul UNAM aproximado */
      --fca-oro:#DEA62A;
      --gris:#f5f7fb;
    }
  


    .overlay-button {
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 10;
    }
  
    .sub-menu {
      background-color: #112f4b;
    }
  
    .sub-menu .nav-link,
    .navbar-light .navbar-nav .nav-link {
      color: #fff;
      font-weight: 500;
      position: relative;
      transition: color 0.3s;
      font-size: 14px;
    }
  
    .navbar-light .navbar-nav .nav-link {
      color: #000;
      font-size: 14px;
    }
  
    .sub-menu .nav-link::after,
    .navbar-light .navbar-nav .nav-link::after {
      content: "";
      position: absolute;
      width: 0;
      height: 2px;
      left: 0;
      bottom: -3px;
      background-color: #007bff; /* azul para efecto hover */
      transition: width 0.3s ease-in-out;
    }
  
    .sub-menu .nav-link:hover,
    .navbar-light .navbar-nav .nav-link:hover {
      color: #007bff;
    }
  
    .sub-menu .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link:hover::after {
      width: 100%;
    }
  
    .navbar-secondary {
      background-color: #112f4b;
      border-bottom: 1px solid #9c6e09;
    }
  
    .navbar-secondary .navbar-brand,
    .navbar-secondary .btn {
      color: white;
    }


   .btn:hover {
      background-color:#9c6e09;
      border: none !important;
    }
  
  
    @media (max-width: 768px) {
      .overlay-button {
        top: 10px;
        right: 10px;
      }
    }

    .btn-primary{
      background-color: #112f4b;
      border:1px solid #9c6e09;
    }


    

  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .dropdown-menu {
    background-color: #072944;
    border: none;
    border-radius: 0;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #072944 transparent;
  }

  .dropdown-item {
    color: #fff;
  }

  .dropdown-item:hover {
    background-color: #DEA62A;
    color: #000;
  }

  .navbar-nav .nav-link {
    color: #fff;
  }

  .text-shadow {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-caption h3 {
font-size: 2.5rem;
font-weight: bold;
}

.carousel-caption p {
font-size: 1.2rem;
}

.custom-carousel {
max-height: 500px;
overflow: hidden;
}

.custom-carousel .carousel-item img {
object-fit: cover;
height: 500px;
}

/* Transición más suave y vistosa */
.carousel-fade .carousel-item {
opacity: 0;
transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
opacity: 1;
z-index: 1;
}

/* Suaviza el texto mientras cambia */
.carousel-caption {
animation: fadeInUp 1.2s ease both;
}

@keyframes fadeInUp {
0% {
  opacity: 0;
  transform: translateY(20px);
}
100% {
  opacity: 1;
  transform: translateY(0);
}
}


  h4.section-title {
    text-align: center;
    margin: 5px 0 20px;
    display: inline-block;
    padding-bottom: 5px;
    color: #ba8a38 !important;
  }

  h4,h2{
    color: #ba8a38;
  }



#titulo-portal{
  border-left: 2px solid #fff;
  padding: 10px;
  font-size: 20px;
  color: #fff;
  margin: 0;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 2px;
}

a{
  color:#C0985A;
}


/* Noticias background */
#noticias{
  background: url('https://www.fca.unam.mx/primer_ingreso/img/facultad.jpg') center/cover no-repeat;
  position:relative;
}
#noticias::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}
#noticias .container{position:relative; z-index:1; color:#fff}
#noticias .card{background:#fff; color:#000}

/* Eventos */
.event-card{background:#fff; border:1px solid #e9ecef; padding:16px}
.date-pill{width:64px; min-width:64px; text-align:center; border-radius:12px; background:var(--fca-azul); color:#fff;}
.date-pill .day{font-size:1.4rem; font-weight:800; line-height:1}
.date-pill .mon{font-size:.8rem; text-transform:uppercase; opacity:.9}
.event-card .badge-venue{background:var(--fca-oro); color:#111}

/* Secciones */
section.section{padding:64px 0}
.section-title2{border-bottom:2px solid var(--fca-oro)}

 /* Servicios cards */
 .service-card{background:#3d4d6a; border-radius:16px; padding:32px 20px; text-align:center; box-shadow:0 3px 6px rgba(0,0,0,.08); transition:.3s ease; height:100%;}
 .service-card i{font-size:2.5rem; margin-bottom:12px; color:var(--fca-azul); transition:.3s ease;color: #fff;}
 .service-card h6{margin:0; font-weight:600;color: #fff;}
 .service-card:hover{background:var(--fca-oro); color:#fff; transform:translateY(-6px);}
 .service-card:hover i{color:#fff; transform:scale(1.2);}
.card-text{text-align: justify;}

#aprende{background: #eef9fc;padding: 10px;}
#moc{background: #feeede;padding: 10px;}
#ponteenlinea{background: #e9fbeb;padding: 10px;}


.navbar-custom {
    background-color: #112f4b !important; /* Azul institucional de la FCA */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 0.6rem 1rem; /* Asegura que esté encima de cualquier banner */
  }

  .navbar-custom .nav-link {
    color: white;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .navbar-custom .nav-link:hover {
    color: #f0c040;
  }
  .navbar-custom .dropdown-menu {
    
    border-radius: 0.5rem;
  }
  .navbar-custom .dropdown-item:hover {

    color: #fff;
  }
  .navbar-toggler {
    border-color: white;
  }
  .navbar-toggler-icon {
    filter: invert(1);
  }
  /* Elimina la flecha de los dropdowns */
  .dropdown-toggle::after {
    display: none !important;
  }

/* Contenedor del scroll horizontal */
.nav-scroll-wrapper {
overflow-x: auto;
white-space: nowrap;
scrollbar-width: none;
}
.nav-scroll-wrapper::-webkit-scrollbar {
display: none;
}

/* Mantén el comportamiento normal de los dropdowns */
.navbar-custom .navbar-nav {
flex-wrap: nowrap !important;
}
.navbar-custom .nav-item {
flex: 0 0 auto;
}
  @media (max-width: 991px) {
    .navbar-custom .fw-bold {
      font-size: 0.9rem;
    }

    .dropdown-menu::before{
      display: none;
    }
  }


  .navbar-expand-lg .navbar-nav .nav-link{
    font-size: 15px !important;
  }

  .navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    color: #fff;;
  }

  #btnSubir {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    display: flex; /* SIEMPRE visible */
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0.9;
    border: none;
    border-radius: 50%;
    background: #DEA62A;  
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

  
  #btnSubir:hover {
    background-color: #c7951f;  /* dorado más oscuro al pasar el mouse */
    transform: scale(1.1);
    opacity: 1;
  }
  

  .icon-azul-fca {
    color: #0055A5 !important;
    text-decoration: none;
  }

  .link-negro{
    color: #000;
    text-decoration: none;
  }

  .link-dorado{
    color: #DEA62A !important;
    text-decoration: none;
    text-align: center;
  }

  .form-label{
    font-weight: 600;
    color: #072572;
  }

    /* Botón institucional azul */
    .fca-btn {
      background-color: #e1af3f !important;
      color: #fff !important;
      border: none;
      padding: 10px 20px;
      font-weight: 600;
      border-radius: 8px;
  }

  .fca-btn:hover {
      background-color: #081637 !important;
      color: #fff !important;
  }

  .color_dorado{
    color: #e1af3f;
  }

  .ancho-icon-button{
    width: 50px;
  }
  
  .links-redes{
    color: #072572;
    text-decoration: none;
  }