html {
    scroll-behavior: smooth;
}
body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.6s ease;
    background-color: white;
}
.top-bar {
    background-color: #333; /* Dark background for contrast */
    color: #fff; /* White text for readability */
    padding: 5px 20px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.contact-info a {
    color: white; /* Highlight color for the phone number */
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #5A9;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    font-size: 1.5rem;
}


.social-links a:hover {
    color: #5A9; /* Highlight color for hover effect */
}

#Link-I{
    background-color: #C8B575;
    border-radius: 15px;
    padding: 12px;
    color: white;
    transition: background-color 0.5s ease;
    text-align: center;
}

#Link-I:hover{
    background-color: black;
    color:#C8B575;
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-nav .nav-link {
    font-size: 18px;       /* Texto grande */
    color: black;          /* Color negro */
    font-weight: bold;     /* Negrita para destacar */
    transition: color 0.3s ease; /* Transición suave */
  }
  
  .navbar-nav .nav-link:hover {
    color: gold;           /* Color dorado al pasar el cursor */
  }

  .Inicio{
    background: linear-gradient(rgba(5, 7, 12, 0.4), rgba(5, 7, 12, 0.3)), url(../imagenes/Comunes/Carro\ inicio.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Inicio h2{
   font-size: 80px;
   color: white;
   margin-bottom: 30px;
}

.Inicio h4{
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
 }

.img-custom {
    width: 100%; /* Se adapta al tamaño de la columna */
    height: 180px; /* Altura fija */
    object-fit: cover; /* Ajusta la imagen para que rellene el espacio definido */
    border-radius: 8px; /* Bordes redondeados opcionales */
  }

  .Inicio button {
    background-color: #000;
      color: #fff;
      border: none;
      padding: 15px 30px;
      font-size: 18px;
      cursor: pointer;
      border-radius: 25px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
      transition: background-color 0.3s ease, transform 0.3s ease;
      margin-top: 10px; /* Añade un margen superior para separarlo de la imagen */
      display: block; /* Esto asegura que el botón tome todo el ancho disponible */
      width: calc(100% - 40px); /* Ajusta el ancho del botón */
      max-width: 300px; /* Limita el ancho máximo del botón */
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 10px;
      margin-top: 40px;
  }

  .Inicio button:hover {
    background-color: #333;
      transform: translateY(-3px);
  }

  @media (max-width: 768px) {
      .Inicio{
          height: auto;
      }
      .Inicio h2{
        font-size: 60px;
        color: white;
     }
     
  }
  .How h2 {
    font-size: 2.5rem; /* Tamaño grande para pantallas grandes */
    font-weight: bold; /* Negrita */
    margin: 40px;
  }
  
  @media (max-width: 768px) {
    .How h2 {
      font-size: 2rem; /* Tamaño más pequeño en pantallas pequeñas */
    }
    .carousel-title{
        margin: 0;
        width: 100%;
    }
    .carousel-container {
        height: auto;
    }
  }
  
  .card-img-top{
      height: 300px !important;
  }
  .card-title{
    font-weight: bold;
  }

  .car-carousel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 750px;
}

.carousel-title {
    position: absolute;
    top: 2px; /* Ajusta esta distancia según prefieras */
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    color: white;
    z-index: 2;
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sombra para que se lea mejor sobre la imagen */
}

.carousel-image {
    width: 100%;
    height: 100%;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    position: absolute;
    left: 10px;
}

.right-arrow {
    position: absolute;
    right: 10px;
}

.car-carousel h2 {
    text-align: center;
    font-size: 32px;
    color: white; /* Puedes cambiar el color según el diseño */
    margin-bottom: 20px;
}

  footer {
    background: black;
    color: white;
    padding: 10px 0px;
    text-align: center;
    width: 100%;
}

.redes-sociales {
    display: flex;
    align-items: center;
    justify-content: center;
}

.redes-sociales a {
    color: white;
    font-size: 30px;
    margin: 0 15px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}
.redes-sociales i {
padding: 5px;
}

.redes-sociales a:hover {
    color: #0782fa; /* Color al pasar el cursor */
    transform: scale(1.2); /* Efecto de ampliación al pasar el cursor */
}

.legal {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el botón y el contenido en el centro */
    margin-top: 20px;
}

#legal-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#legal-button i {
    margin-left: 10px; /* Espacio entre el texto y la flecha */
}

#legal-button:hover {
    background-color: #333;
    transform: translateY(-3px);
}

/* Contenido oculto del menú desplegable */
#legal-content {
    display: none;
    margin-top: 10px;
    color: white;
    font-size: 14px;
}

#legal-content p {
    margin: 5px 0;
}

/* Mostrar contenido cuando el botón es presionado */
#legal-content.show {
    display: block;
}
@media (max-width: 768px) {
    .redes-sociales{
        flex-direction: column;
    }
    
    .redes-sociales a {
        margin: 5px 0;
    }

    .legal {
        margin-top: 10px;
    }

    #legal-button {
        font-size: 14px;
    }

    #legal-content {
        font-size: 12px;
    }

}