*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* border: 1px solid black; */
}

body{
  background-color: rgba(255, 195, 0, 0.5);
}

/* Loader Styles */
#loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #d98800;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



header, main{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


.visual-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.logo-container {
  display: inline-block;
  width: 100%;
  max-width: 260px; /* El tamaño máximo que quieres en PC */
}



.banners{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.container-products{
  border: 1px solid grey;
  border-radius: 10px;
  padding: 0.3rem;
  padding-bottom: 3rem;
  background-color: rgba(255, 255, 255, 0.5);
}

.navbar-collapse span{
  cursor: pointer;
}

.titulo-seccion{
  border: 1px solid grey;
  border-radius: 10px;
  padding: 0.3rem;
  background-color: rgba(255, 255, 255, 0.5);
}

#case, #fiatallis, #newHolland{
  scroll-snap-align: start;
  scroll-margin-top: 150px;
  margin-top: 15rem;
  margin-bottom: 15rem;
}

#otrasMarcas, #marcas, #products, #services{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 6rem;
}

#contactUs{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 0rem;
}

#aboutUs{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 15rem;
}


.call-us {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border: 2px solid grey;
  border-radius: 10px;
  font-size: 30px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  gap: 0.5rem;
}

.call-us:hover {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid black;
  border-radius: 10px;
  font-size: 30px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  gap: 0.5rem;
}





.caption-banner{
  color: red;
  position: absolute;
  top: 0.25em;
  left: 0.65em;
  width: 260px;
  font-size: larger;
  height: fit-content;
  max-height: 522px;
  font-weight: bolder;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 3px solid rgb(255, 195, 0);
  padding: 1em;
  z-index: 9;
  /* Aplica la animación */
  animation-name: slideInFromLeft;
  animation-duration: 1.5s; /* Duración de 1 segundo */
  animation-timing-function: ease-out; /* Suaviza la salida */
  animation-fill-mode: forwards; /* Mantiene el estado final */
}

/* 1. Define la animación */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%); /* Empieza 100% a la izquierda */
        opacity: 0; /* Opcional: empieza invisible */
    }
    100% {
        transform: translateX(0); /* Termina en su posición normal */
        opacity: 1; /* Termina visible */
    }
}

#case, #fiatallis, #newHolland, #aboutUs article{
  background-color: rgba(255, 255, 255, 1);
}

.banner-phone{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid grey;
  border-radius: 10px;
}

a {
  text-decoration: none;
}

.carousel-control-prev-icon{
  color: red;
}

.marcas div .col{
  border: 1px solid grey;
  border-radius: 10px;
}

.marcas div .col:hover{
  background-color: rgba(255, 255, 255, 0.5);
}

#carouselProducts article, #carouselServices article{
  margin: 0.5em;
  padding: 0.2em;
}


/*FOOTER --------------------------------------------------------------------------------------------------------------*/

.link-color{
  color: red;
}

.link-color:hover{
  color: black;
}

.font-caption-banner{
  font-weight: bold;
  color: red;
}

.contact-us {
  background-color: rgb(255, 195, 0);
  background-image: url(../img/contacto/fondo.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
  
  padding: 2rem;
  margin-left: 10%;
  margin-right  : 10%;
  border: 1px solid grey;
  border-radius: 10px;
}

.redes {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  font-size: 35px;
  gap: 1rem;
}


.facebook {
  color: rgb(24, 119, 242);
}
.instagram {
  background: linear-gradient(to bottom, #405DE6, #833AB4, #C13584, #F56040, #FFDC80);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.threads {
  color: black;
}
.twitter {
  color: black;
}

.facebook:hover {
  color: hsl(214, 89%, 32%);
}
.instagram:hover {
  background: linear-gradient(to bottom, hsl(230, 77%, 38%), hsl(276, 51%, 27%), hsl(326, 57%, 28%), hsl(11, 90%, 41%), hsl(43, 100%, 55%));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.threads:hover {
  color: grey;
}
.twitter:hover {
  color: grey;
}

.chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  width: fit-content;
  bottom: 35px;
  right: 10px;
  z-index: 5;
}

.whatsapp {
  color: #25D366;
}

.telegram {
  color: #0088CC;
}

.email{
  color: orange;
}

.phone{
  color: grey;
}

.whatsapp:hover {
  color: hsl(142, 70%, 29%);
}
.telegram:hover {
  color: #0041cc;
}

.email:hover{
  color: red;
}

.phone:hover{
  color: black;
}


.chat div {
  margin-top: 10px;
  border: 4px solid #d98800;;
  border-radius: 10px;
  display: flex;
  flex-direction:column;
  align-items: center;
  background-color: white;
}
.home {
  font-size: 28px;
  color: #d98800;
  border-bottom: 2px solid #d98800;;
}

.foot {
  font-size: 28px;
  color: #d98800;
  border-top: 2px solid #d98800;;
}

.tyc {
  padding: 15px;
  border: 1px solid grey;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 195, 0, 1);
  color: brown;
  font-size: smaller;
 }


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



@media (max-width: 991px){

#case, #fiatallis, #newHolland{
  scroll-snap-align: start;
  scroll-margin-top: 150px;
  margin-top: 6rem;
  margin-bottom: 6rem;
}

#otrasMarcas, #marcas {
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 6rem;
}

#contactUs{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 0rem;
}

#aboutUs{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 6rem;
}

}

@media (max-width: 939px){

.caption-banner{
  color: red;
  position: absolute;
  top: 0.25em;
  left: 0.65em;
  width: 260px;
  font-size: medium;
  height: fit-content;
  max-height: 428px;
  font-weight: bolder;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 3px solid rgb(255, 195, 0);
  padding: 2.5em;
  padding-top: 1em;
  z-index: 9;
  /* Aplica la animación */
  animation-name: slideInFromLeft;
  animation-duration: 1.5s; /* Duración de 1 segundo */
  animation-timing-function: ease-out; /* Suaviza la salida */
  animation-fill-mode: forwards; /* Mantiene el estado final */
}

}



@media (max-width: 356px){
 .img-logo{
  width: 100%;
  margin-right: auto;;
 }
 .burger{
  width: 100%; /* Ancho completo por defecto */
  padding-right: 15px; /* Espacio a la derecha */
  padding-left: 15px;  /* Espacio a la izquierda */
  margin-right: auto;  /* Centrado */
  margin-left: auto;   /* Centrado */
 }


.banners{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-top: 8.25rem;
  margin-bottom: 6rem;
}

#case, #fiatallis, #newHolland{
  scroll-snap-align: start;
  scroll-margin-top: 150px;
  margin-top: 6rem;
  margin-bottom: 6rem;
}

#otrasMarcas, #marcas{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 6rem;
}


#contactUs{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 0rem;
}

#aboutUs{
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-bottom: 6rem;
}

}

@media (max-width: 228px){
 .call-us{
  flex-direction: column;
  justify-content: center;
  align-items: center 
 }
}