@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@font-face {
  font-family: HyundaiMedium;
  src: url(/fuentes/HyundaiSansHeadOffice-Medium.ttf);
}
*{
  margin: 0;
  padding: 0;
  font-family: "HyundaiMedium";  
}
body{
  overflow: hidden;
  background-color: #000 !important;
}
h2{
  font-size: 2.5rem !important;
  color: #f47c21 !important;
}

#cabecera{
  background-color: #00000000;
  display: flex;
  position: fixed;
  width: 100%;
  z-index: 900;
}
#cabecera .nav-link.active {
  font-weight: bold;
  color: #ffffff; /* Color cuando el item está activo */
}

#animacion-intro .intro{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  transition: 1s;
}
#animacion-intro .intro img{
  top: 0px;
  left: 0px;
  position: absolute;
  height: 100vh;
  width: 100%;
}
#animacion-intro .intro .logo{
  font-size: 2.5rem;
  color: white;
}
#animacion-intro .intro .logo .partes-logo{
  position: relative;
  display: inline-block;
  bottom: -40px;
  opacity: 0;
}
#animacion-intro .intro .logo .partes-logo.active{
  bottom: 0;
  opacity: 1;
  transition: ease-in-out .5s;
}
#animacion-intro .intro .logo .partes-logo.fade{
  bottom: 250px;
  opacity: 0;
  transition: ease-in-out .5s; 
}

/*Hero----------------------------------------------------------------------------------*/
#hero{
    padding-top: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    color: white;
    background-repeat: no-repeat;
    background-image: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.5),    
        rgba(0, 0, 0, 0.5)
    )    
    ,url(/media/fondos/fondo-desarrollo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 70%;
}
#hero h1{
    font-size: 50px;
    padding-left: 30px;
    letter-spacing: 5px;
    animation: aparecer 3s forwards;
}
@keyframes aparecer {
    0%{
        margin-left: -30px;
        opacity: 0;
    }
    100%{
        margin-left: 0;
        opacity: 1;
    }
}

/*Servicios-----------------------------------------------------------------------------*/
#serviciosof h2{
  color:#f47c21
}
#serviciosof .lead{
  color:white
}
#serviciosof{
    background-color: black;
}
#serviciosof .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}
#serviciosof .block {
  background-color: #ffffff;
  width: 200px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  border-radius: 5px;
  transition: transform 0.2s;
  flex: 1 1 calc(33.333% - 40px);
  box-sizing: border-box;
}
#serviciosof .block .icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px auto;
}
#serviciosof h3 {
  margin: 10px 0;
  color: #333;
}
#serviciosof span {
  font-size: 8vh;
}
#serviciosof .block:hover {
    transform: scale(1.05);
    background-color: #f47c21;
    color: white;
}
#serviciosof .block:hover h3{
    color: white;
}

/*Equipos--------------------------------------------------------------------------------*/

/*Carrusel-------------------------------------------------------------------------------*/

/*Galeria--------------------------------------------------------------------------------*/
#galeria {
  padding: 60px 0;
}

#galeria h2 {
  margin-bottom: 20px;
  color:  #f47c21
}

#galeria p.lead {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 30px;
}

#galeria img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 370px;
  height: 370px;
  object-fit: cover;
  position: relative;
}
/*Reel----------------------------------------------------------------------------------*/

/* ---------------------- */
#bloques {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

#bloques .column {
  flex: 1 1 calc(50% - 10px); /* 2 elementos por fila, con margen */
  margin: 5px; /* Margen para separar columnas */
  position: relative;
  height: 300px; /* Ajusta la altura según tus necesidades */
}

#bloques .overlay {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#bloques img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen para que se vea completa dentro del contenedor */
  transition: transform 0.5s ease;
}

#bloques .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  text-align: center;
}
/* Hover effect */
#bloques .overlay:hover img {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  #bloques .column {
      flex: 1 1 100%; /* 1 elemento por fila en pantallas pequeñas */
      height: 200px;
  }
}


#clientes {
  background-color: #000000; /* Color de fondo opcional */
  color: rgb(255, 255, 255);
}

#clientes h2{
  color:  #f47c21;
}

#clientes .carousel-control-prev,
#clientes .carousel-control-next {
  display: none;
}
.carousel-item {
  display: flex;
  justify-content: center; /* Centra el contenido horizontalmente */
}

.carousel-item img {
  width: 100%; /* Ancho ajustable */
  max-width: 150px; /* Ancho máximo del logo */
  transition: filter 0.3s ease;
  filter: grayscale(100%); /* Blanco y negro */
}

.carousel-item img:hover {
  filter: grayscale(0%); /* Color normal al pasar el ratón */
}

.video-section {
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.video-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #f47c21;
  letter-spacing: 1.5px;
}

.video-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* Relación de aspecto 16:9 */
  border-radius: 15px;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .video-title {
      font-size: 24px;
  }

  .video-description {
      font-size: 16px;
  }
}


#miniaturas span{
  color: #f47c21;
}

#miniaturas .container {
  max-width: 100%;
}

/* SOLUCIÓN 1: Container con padding para dar espacio al zoom */
#miniaturas .gallery-item {
  position: relative;
  overflow: visible; /* ← CAMBIO: Permite que la imagen escalada se vea */
  border-radius: 12px;
  max-width: 200px;
  margin: 0 auto;
  padding: 15px; /* ← NUEVO: Espacio para el zoom */
  transition: all 0.3s ease;
}

#miniaturas .gallery-item:hover {
  transform: translateY(-5px); /* ← NUEVO: Efecto sutil en el container */
}

#miniaturas .gallery-item img {
  width: 100%;
  height: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(100%) brightness(0.8);
}

#miniaturas .gallery-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(1.1);
}

#miniaturas .row {
  justify-content: center;
  gap: 1rem;
}

#miniaturas .section-title {
  font-size: 2.5rem;
  color: #f47c21;
  margin-bottom: 0.5rem;
}

#miniaturas .section-text {
  font-size: 1.25rem;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}