html, body {
  overflow-x: hidden;
}



.logo-principal {
  height: 200px; 
  width: auto;
  transition: transform 0.3s;
}


@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    margin-left: 0;
    margin-right: 15px;
  }

  .logos-principales {
    flex-direction: column;
    gap: 20px;
  }

 .logos-principales {
    flex-direction: row;
    gap: 30px;
  }

  .logo-principal {
    height: 130px;
  }
  #igualar{
    height: 160px;
  }

  .footer-logos {
    flex-direction: column;
    gap: 20px;
  }

  .footer-seccion {
    text-align: center;
  }

  #mitadIzq{
    margin-bottom: 100px;
  }
}

 
*{box-sizing: border-box;}

body{
font-family: 'Montserrat', sans-serif;
    margin: 0px;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
   background: linear-gradient(
    to right,
    rgba(255, 0, 0, 0.2) 0%,    
    rgba(255, 0, 0, 0.2) 20%,   
    transparent 20%,            
    transparent 100%
  );
  background-color: #fff; 
}

#igualar{
  height: 265px;
}


#contenedor{
    font-family: sans-serif;
    background: linear-gradient(
    to down ,
    rgba(242, 242, 242,0.2) 0%,  
    rgba(242, 242, 242,0.2) 30%,   
    transparent 30%,           
    transparent 100%
  );
    background-color: #cdc8c874;
    height: 55vh;

}

#contenedor img{
  margin-bottom: 25%;
}

#contenedor #igualar{
  margin-bottom: 36%;
  height: 140px;
}

#mitadIzq, #mitadDer{
    margin-top: 90px;
    cursor: pointer;
    background-position: center;
    background-size: cover;
    width: 45%;
    height: 30vh;
    border-radius: 5vh;
    color: white;
    display: inline-block;
    text-align: center;
    flex-direction: column;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ) ;
    
    background-position: center center;
    

}

.centrar{
    display: flex;
    height: 100%;
    margin-top: 35px;
    align-items: center;
    justify-content: center;
}

#igualar{
  margin-top: 50px;
height: 205px;
}

#mitadDer{
    margin-right: 10px;
    float: right;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ), url("imgTransporte/turismo.jpg");
}

#mitadIzq{
    margin-left: 10px;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ), url("imgTransporte/transporte.JPG");
}

#mitadIzq:hover, #mitadDer:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

#rectangulo{
 position: absolute;
 right: 6vh;
 margin-top: 20px;
  width: 30%;            
  height: 20px;             
  background-color: rgba(100, 100, 100, 0.5);

}





img{
    float: left;
    position: relative;
    display: inline-block;
}

#informacion {
  margin-top: 50px;
  padding: 20px;
  width: 100%;
  background-color: #fff;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
}

/* Contenedor general */
.contenedor-info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Imagen */
.imagen-info {
  width: 100%;
  position: relative;
  height: 75vh;
  overflow: hidden;
}

.imagen-info img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Texto sobre la imagen en celular */
.texto-info {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  border-radius: 10px;
  padding: 15px;
  text-align: justify;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.texto-info h1 {
  text-align: center;
  font-weight: 700;             
  font-size: 1.3rem;            
  letter-spacing: 1px;         
  color: #1a1a1a;                
  margin-bottom: 10px;
}

.texto-info p {
  font-size: 0.95rem;
  line-height: 1.6;             
  color: #333;                   
}

footer {
  background-color: rgba(189, 69, 69);
  color: #f1f1f1;
  padding: 40px 20px 20px 20px;
  font-family: 'Poppins', sans-serif;
}

/* Contenedor de todo el footer */
.footer-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

/* Logos en footer */
.footer-logos {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

/* Secciones de información */
.footer-seccion {
  text-align: center;
}

.footer-seccion h3 {
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
}

.footer-seccion p {
  margin: 3px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Copy rights */
.footer-copy {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}



.footer-copy {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}


/*Versión para pantallas grandes*/
@media (min-width: 768px)
{
  body{
    margin-top: -100px;
  }

  .contenedor{
    margin-top: 100px;

  }
  .contenedor-info {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
  }
  

  .imagen-info, .texto-info {
    position: static;
    transform: none;
    width: 45%;
    box-shadow: none;
    background: transparent;
  }

  .texto-info {
    padding: 0;
    text-align: justify;
  }

  .texto-info h1 {
  text-align: center;
  font-weight: 700;             
  font-size: 2rem;            
  letter-spacing: 1px;         
  color: #1a1a1a;                
  margin-bottom: 10px;
}

.texto-info p {
  font-size: 1.1rem;
  line-height: 1.6;             
  color: #333;                   
}

 #contenedor {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

section{
    margin: 5%;
  }

  #mitadIzq, #mitadDer {
    width: 35%;           
    height: 300px;       
    font-size: 1.4rem;
}

#contenedor img{
  margin-top: 25%;
}

#contenedor #igualar{
  margin-top: 49%;
  height: 205px;
}
 

.centrar{
    display: flex;
    height: 70%;
    align-items: center;
    justify-content: center;
}

#mitadIzq{
    margin-left: 100px;
}

#contenedor h1{
    margin-top: 120px;
}

#mitadDer{
margin-right: 100px;
}


.footer-contenedor {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo {
    width: 100px;
  }
}

@media (min-width: 1400px){
#mitadIzq{
}

#mitadDer{
  margin-left: 150px;
}

/* Limitar expansión en pantallas grandes */
#contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;         
  max-width: 1200px;      
  margin: 0 auto;        
}

#mitadIzq, #mitadDer {
  flex: 1 1 45%;           /* ocupa 45% del contenedor, pero con límite */
  max-width: 600px;        /* evita que crezcan demasiado */
  min-width: 400px;        /* asegura que no se encojan de más */
  height: 300px;           /* altura controlada */
}

#rectangulo{
  height: 30px;

  margin-top: 450px;
}

}