/* CSS para el sitio web de Orozcomex */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* Reset básico */
* {
    margin: 0;
    /*padding: 0;*/
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
  }
  
  /* Estilos generales */
  header {
    position: relative;
    height: 100vh;
    background: url('../img/nuevas 19052025/WEB 1.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    color: white;
    text-align: center;
    width: 100%;
  }
  
  /*header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }*/
  
  header h1 {
    z-index: 2;
    font-size: 3rem;
    font-style: italic; /* Hace la fuente itálica */
    font-weight: 300;
    /*text-transform: uppercase;*/
    /*border: 3px solid #e63946;*/
    background-color: #ff443a86;
    /*padding: 1rem 2rem;*/
    /*backdrop-filter: blur(5px);*/
  
  }

  .logo {
    width: 30vw; /* Ajusta el tamaño del logo de forma flexible al 10% del ancho de la pantalla */
    max-width: 500px; /* Tamaño máximo del logo */
    min-width: 60px; /* Tamaño mínimo del logo */
    position: absolute; /* Posiciona el logo en la esquina */
    top: 10px; /* Margen superior */
    left: 10px; /* Margen izquierdo */
    z-index: 10; /* Asegura que esté encima de otros elementos */
    filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 1));
  }
  
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
  }
  
  nav ul li {
    margin: 0 1rem;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #e63946;
  }
 
  /* Sección "Quienes Somos" */
  #quienes-somos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    /*background-color: #1a4789;*/
    background-color: #f4f4f4;
    /*color: white;*/
  }

  #quienes-somos .text .title{
    text-align: left;
  } 

  #quienes-somos h2 {
    
    /*font-size: 2rem;*/
    color: #f4f4f4;
    background-color: #ff3131; 
    padding: 0 3rem;
    margin-bottom: 20px;
    display: inline-block;
}
  
  #quienes-somos img {
    width: 100%;
    /*border-radius: 10px;*/
  }
  
  #quienes-somos div.text {
    max-width: 50%;
  }

    /* Sección Intermedia */
    #intermedia {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        /*height: 100vh; /* Ocupa toda la altura de la ventana */
        background-color: #f5f5f5; /* Color de fondo, opcional */
        }
    
        .imagen-intermedia {
            height: auto;
        }
    
        .imagen-intermedia img {
            max-width: 100%; /* Asegura que la imagen no se desborde */
            height: auto; /* Mantiene la proporción de la imagen */
        }
    
        #intermedia .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.2);
            z-index: 1;
        }
  
  /* Sección "Misión y Visión" */
  .mision-vision {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 5%;
    background-color: #1a4789;
    color: white;
  }

  .mision-vision h3 {
    font-size: 2rem;
    text-decoration: underline;
    
  }
  
  .mision-vision div.text {
    max-width: 50%;

  }
  
  .mision-vision img {
    width: 90%;
  }

.vision h3 {
    padding-top: 25px;
}

  /* Valores */
  .valores {
    padding: 5rem 5%;
    background-color: #1d3557;
    color: white;
    text-align: center;
  }
  
  .valores h2 {
    margin-bottom: 2rem;
    text-transform: uppercase;
  }
  
  .tarjetas {
    display: flex;
    justify-content:space-between;
    gap: 1.5rem;
  }
  
  .tarjeta {
    background: #ff3131;
    padding: 1rem;
    border-style: solid;
    border-color: #f4f4f4;
    border-radius: 10px;
    border-width: thick;
    /*width: 20%;*/
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .tarjeta:hover {
    transform: translateY(-10px);
  }
  
  .tarjeta i {
    font-size: 2.5rem; /* Tamaño del ícono */
    color: #ffffff; /* Color blanco para los íconos */
    margin-bottom: 10px; /* Espacio debajo del ícono */
    /*background-color: #ff7f50; /* Fondo para los íconos */
    padding: 15px; /* Espaciado interno del fondo */
    /*border-radius: 50%; /* Hace el fondo circular */
    display: inline-block;
}

  .tarjeta h3 {
    margin-bottom: 1rem;
    background-color: #1a4789;
  }

  /* Sección Servicios */

  #servicios .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 5rem 5%;*/
    background-color: #f4f4f4;
    /*color: white;*/
  }  

#servicios .image img {
    height: 100vh;
}

#servicios .text {
    padding: 2rem 4%;
}

#servicios .text-title{
    text-align: center;
}
#servicios h2 {
    
    /*font-size: 2rem;*/
    color: #f4f4f4;
    background-color: #ff3131; 
    padding: 0 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

#servicios .contenido {
    display: flex;
    flex-wrap:nowrap;
    gap: 20px;
    font-size: 1.4rem;
}

#servicios .contenido img {
    width: 25%;
    height: 25%;
}

#servicios h3 { 
    display: inline-block;
    color: #f4f4f4;
    background-color: #ff3131;
    padding: 0 1rem;
    text-transform: uppercase;
}

#servicios .contenido ul {
    list-style-type: disc;
    padding-left: 20px;
}

#servicios .contenido ul li {
    margin-bottom: 10px;
}

/* Sección Preguntas Frecuentes */
#preguntas-frecuentes {
    padding: 5rem 5%;
    background-color: #f9f9f9; /* Fondo gris claro */

}

#preguntas-frecuentes h2 {
    text-align: center;
    font-size: 2rem;
    background-color: #1a4789;
    color: #f4f4f4;
    margin-bottom: 20px;
}

#preguntas-frecuentes .contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#preguntas-frecuentes span {
    font-weight: bold;
}

#preguntas-frecuentes .pregunta {
    font-weight: bold;
    margin-bottom: 10px;
}

#preguntas-frecuentes .respuesta {
    margin-bottom: 20px;
    line-height: 1.6;
}

#preguntas-frecuentes img {
    width: 100%;
}

#preguntas-frecuentes .boton-consulta {
    display: inline-block;
    background-color: #ff7f50; /* Naranja */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
}

#preguntas-frecuentes .boton-consulta:hover {
    background-color: #e66030; /* Naranja oscuro */
}

/* Sección Contacta con Nosotros 
#contacto {
    padding: 50px 20px;
    background-color: #1a4789; 
    color: white;
    text-align: center;
}

#contacto h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#contacto .info {
    margin-bottom: 20px;
}

#contacto .info p {
    margin: 5px 0;
    line-height: 1.6;
}

#contacto .mapa {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

#contacto .botones-redes a {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    border-radius: 25px;
    background-color: white;
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

#contacto .botones-redes a:hover {
    background-color: #0056b3;
    color: white;
}
*/

#contacto {

    position: relative;
    height: 100vh;
    background: url('../img/nuevas 19052025/WEB FINAL.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    color: white;
    text-align: center;
    width: 100%;
  
/*    
  background-color: #003366;
  color: white; */
  padding: 50px 20px;
  text-align: center;

}

#contacto .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#contacto .text {
  width: 100%; /* Ocupa el 75% del ancho */
}

/*#contacto .image{
  width: 24%; /* Ocupa el 25% del ancho 
  height: 100%;
}/*

#contacto .image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
}

#contacto h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#contacto .content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

#contacto .mapa {
  flex: 1 1 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

#contacto .details {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

#contacto .details .info,
#contacto .details .horarios {
  flex: 1 1 calc(50% - 10px);
  background-color: #ffffff;
  color: #003366;
  padding: 15px;
  border-radius: 10px;
  text-align: left;
}

#contacto .details h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

#contacto .botones-contacto {
  display: flex;
  justify-content: space-evenly;
  margin-top: 20px;
}

#contacto .boton-contacto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #003366;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s;
}

#contacto .boton-contacto span {
  margin-right: 5px;
}

#contacto .boton-contacto:hover {
  background-color: #ff7f50;
  color: white;
}

#contacto .social {
  margin-top: 30px;
}

#contacto .social a img {
  width: 40px;
  margin: 0 10px;
  transition: transform 0.3s;
}

#contacto .social a:hover img {
  transform: scale(1.1);
}


/* Estilos para el botón flotante */

#servicios .btn-consulta {
  margin-top: 7rem;
}

.boton-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff0202;
  border-color: #ff0202;
  border-style: dashed;
  border-radius: 50%;
  /*color: white;*/
  padding: 20px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  height: fit-content;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  z-index: 1000; /* Asegura que esté sobre otros elementos */
}

.boton-flotante img {
  width: 60px;
  height: 60px;
  color: white;
}

/*
.boton-flotante:hover {
  /*background-color: #be0000; /* Azul más oscuro 
} */

/* Ocultar el botón cuando el usuario está en la sección de contacto */
.boton-oculto {
  display: none;
}
  
  /* Responsive */
  @media (max-width: 1200px) {
    header h1 {
      font-size: 2rem;
    }
  
    #quienes-somos,
    .mision-vision {
      flex-direction: column;
    }
  
    #quienes-somos img,
    .mision-vision img {
      width: 100%;
      margin-bottom: 2rem;
    }
  
    #quienes-somos div.text,
    .mision-vision div.text {
      max-width: 100%;
    }
  
    .tarjetas {
      flex-direction: column;
      gap: 1rem;
    }
  
    .tarjeta {
      width: 100%;
    }

    #servicios .container {
        flex-direction: column;
    }  

    #preguntas-frecuentes .contenido {
      display:inline;
    }

    #contacto .container {
      flex-direction: column;
    }

    #contacto .text {
        width: 100%;
    }

    #contacto .image {
        display: none;
    }
  }

  @media (max-width: 700px) {
    #quienes-somos .text .title{
      text-align: center;
    } 
    #contacto .details .info,
    #contacto .details .horarios {
      flex: 1 1 100%;
    }
  }

  @media (max-width: 600px) {
    #servicios .image img {
      height:50vh;
    }
  }