/* ====== RESET ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* ====== HEADER ====== */
header {
  background-color: rgba(189, 69, 69);
  padding: 10px 30px;
  color: #fff;
  height: 70px; 
  display: flex;
  align-items: center; 
  position: fixed;      /* ← Siempre visible */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; 
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px; 
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo {
  height: 90px; 
  width: auto;  
}

nav a {
  margin-left: 20px;
  color: #fff;
  text-decoration: none;
}

/* ====== SECCIÓN INICIO ====== */
#inicio {
  margin-top: 100px;
  width: 100%;
  height: 45vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  background-image: linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("imgTransporte/transporte.JPG");
  background-size: cover;
  background-position: center;
}

#inicio h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ====== SECCIONES GENERALES ====== */
section {
  padding: 40px 20px;
}

.bloque {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.bloque h2 {
  color: #b30000;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.bloque p {
  font-size: 1.15rem;
}

.bloque ul {
  margin-top: 10px;
  padding-left: 25px;
}

.bloque ul li {
  margin-bottom: 5px;
}

/* ====== PRESENTACIÓN ====== */
#presentacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.video video {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.informacion {
  max-width: 600px;
}

.informacion h2 {
  color: #b30000;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.informacion p {
  text-align: justify;
  font-size: 1.15rem;
}

/* ====== VEHÍCULOS ====== */
.vehiculos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.vehiculo {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  flex: 1 1 250px;
}

.vehiculo img {
  width: 100px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.vehiculo-info h4 {
  margin: 0;
  font-size: 1rem;
  color: #b30000;
}

.vehiculo-info p {
  margin: 5px 0 0 0;
  font-size: 0.85rem;
}



.redes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 15px;
  justify-content: center; 
}

.redes a.red {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
  color: #333;
  background-color: #f8f8f8;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 260px;
}

.redes a.red img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.redes a.red span {
  font-size: 1rem;
  font-weight: 500;
}

.redes a.red:hover {
  background-color: #b30000;
  color: #fff;
  transform: translateY(-2px);
}


.mapa {
  margin-top: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.mapa h3 {
  margin-bottom: 10px;
}

.mapa-container {
  display: flex;
  justify-content: center;
}

.mapa-container iframe {
  display: block;
  max-width: 100%; 
  height: auto;    
  border-radius: 8px;
}

/* ====== FOOTER ====== */
footer {
  background-color:rgba(189, 69, 69);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 40px;
  text-align: left;
}

footer img {
  width: 260px;
  flex-shrink: 0;
  align-self: center;
}

.footer-bloque {
  max-width: 380px;
}

.footer-bloque h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.footer-bloque p {
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: justify;
}



/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  footer {
    justify-content: center;
  }

   #inicio{
    margin-top: 15px;
  }
}

@media (max-width: 768px) {

  #presentacion {
    flex-direction: column;
  }

  #inicio h1 {
    font-size: 1.8rem;
  }

  #inicio{
    margin-top: 15px;
  }

  .video video {
    max-width: 250px;
  }

  .bloque {
    padding: 20px 10px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .redes {
    flex-direction: column;
    align-items: center;
  }

  .footer-bloque {
    max-width: 100%;
  }

  .footer-bloque p {
    text-align: center;
  }

  /* HEADER MÓVIL */
  header {
    padding: 8px 15px;
  }

  .logo {
    height: 88px; /* más proporcional */
  }

  .logo-text {
    display: none;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 1rem; /* un poco más legible */
    padding: 6px;
  }
}

@media (min-width: 1400px) {
  header {
    height: 100px;
    padding: 20px 60px;
  }

  .logo {
    height: 130px; 
  }

  .logo-link {
    font-size: 1.3rem; 
  }

  nav a {
    font-size: 1.2rem;
    margin-left: 25px;
  }
}
