/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
/* Navbar Ubicacion letras del header y header*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: #0d2b52;
  color: #fff;
}

.navbar .logo {
  font-size: 1.3rem;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar ul li a {   /* texto para poner en negritas*/ 
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
}

.navbar ul li a:hover {
  text-decoration: underline;
}
.btn1 {
  display: initial; 
  padding: 1rem 2rem;
  background: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease; /*Ayuda a que se vea mejor el boton */
}


.btn1:hover {
  background: #e05500;
}


.hero7 { position: relative; height: 100vh; background: url("../footer/CONTACTO-\ portada.png") no-repeat center center; 
    background-size: cover; 
    display: flex; 
    align-items: center;
    padding-left: 5rem; 
    color: white; 
    overflow: hidden; 
} 
/* capa oscura */ 
.hero7::before{ content:"";
     position:absolute;
      top:0;
       left:0;
        width:100%;
         height:100%;
          background:rgba(0,0,0,0.55);
           z-index:1; 
        } 
        /* texto */ 
        .hero7 .overlay{ position: relative;
             z-index:2; display: flex;  /* 🔥 clave */ 
             align-items: center; 
             max-width: 1200px; /* 🔥 más ancho */ 
             margin: 0 auto; 
             width: 100%; 
            } 
            .hero7 h1{ font-size: 3.2rem;
                 font-weight: 800;
                 } 
                 .hero7 p{ font-size: 1.15rem;
                     color: #e5e7eb; margin-bottom: 25px; /* 🔥 separa del botón */ 
                    } .hero7 .overlay{ display:flex; align-items:center;
                         max-width:1200px; margin:0 auto;
                         } 
                         .hero-text{ width:55%;
                         } 
                         .form-container{ width:45%;
                             display:flex;
                              justify-content:flex-start;
                             }
                              @media (max-width:900px){ .hero7{ padding:2rem; height:auto;
                             } 
                             .hero7 .overlay{ flex-direction:column; 
                                text-align:center; 
                            } 
                            .hero-text{ width:100%; 
                            } 
                            .form-container{ width:100%;
                                 justify-content:center;
                                  margin-top:20px;
                                 } 
                                 .formulario{ transform: translateX(0); /* 🔥 importante */
                                 } 
                                } 
                                .formulario input, .formulario textarea{ width:100%;
                                     padding:12px;
                                      margin-bottom:14px;
                                       border:1px solid #e5e7eb; 
                                       border-radius:8px; font-size:14px;
                                        transition: all 0.3s ease;
                                     } 
                                     /* 🔥 efecto focus */ 
                                     .formulario input:focus, .formulario textarea:focus{ outline:none;
                                         border-color:#f59e0b;
                                          box-shadow:0 0 0 3px rgba(245,158,11,0.2);
                                         } 
                                         .formulario button{ width:100%;
                                             padding:14px;
                                              background: linear-gradient(90deg, #f59e0b, #f97316);
                                               color:white;
                                                border:none;
                                                 border-radius:8px;
                                                  cursor:pointer; 
                                                  font-weight:bold;
                                                   font-size:15px;
                                                    transition: all 0.3s ease; 
                                                } 
                                                .formulario button:hover{ transform: translateY(-2px);
                                                     box-shadow:0 10px 20px rgba(0,0,0,0.2);
                                                     } 
                                                     /* ===== Footer ===== */ 
                                                     .footer { background-color: #0d3b8a; /* azul corporativo */ 
                                                        color: white; 
                                                        padding: 50px 20px; 
                                                        font-family: 'Poppins', sans-serif; 
                                                    }   
/*Esta es la sección contacto sus estilos de los mapas etc*/

.contacto{
    padding:60px 10%;
    background:#f4f4f4;
    text-align: center; /*correción para poner los bloques o tarjetas alado de la otra */
}

.contacto h2{
    font-size:28px;
    color:#1b3556;
    margin-bottom:40px;
}

/* CONTENEDOR PRINCIPAL */
.contacto-contenedor{
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap; /* 🔥 clave para responsive */
}
/* tarjetas */

/* TARJETAS */
.contacto-card{
    background:white;
    width:400px;  /*anchura de la carta*/
    text-align:left;
    border-radius:5px;
    overflow:hidden;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

/* mapa */

.contacto-card iframe{
    width:100%;
    height:220px;
    border:0;
    
}

/* titulo ciudad o interno */

.contacto-card h3{
    color:#1b3556;
    margin:15px 20px 10px; /*aqui es donde se modifica la letra si esta pegada o centrada, arriba, derecha, abajo, izquierda*/ 
    
}

/* texto */

.contacto-card p{
    margin: 0 20px 15px;
    color: #0e448a;
    line-height:1.5;
    
}

.contacto-card:hover{
    transform:translateY(-5px);
    transition:0.3s;
}

/*Aqui esta el rectangulo y boton antes del footer*/
.hablemos{
    padding:80px 10%;
    background:#1f3c88; /* fondo general si quieres */
}

/* tarjeta azul */

.hablemos-card{
    background:#2e4ea3;   
    padding:60px 40px;
    text-align:center;
    border-radius:6px;
}

/* titulo */

.hablemos-card h2{
    color:white;
    font-size:32px;
    margin-bottom:30px;
}


@media (max-width:900px){
    .contacto-contenedor{
        flex-direction:column;
        align-items:center;
    }


}
/* ===================================
   RESPONSIVE NAVBAR MOBILE
=================================== */

@media (max-width: 768px){

  /* evita scroll horizontal */
  html, body{
    overflow-x: hidden;
    width:100%;
  }

  /* NAVBAR */
  .navbar{
    padding: 12px 18px;

    flex-direction: row;

    justify-content: space-between;

    align-items: center;
  }

  /* LOGO */
  .navbar .logo img{
    width:120px;
    height:auto;
  }

  /* MENÚ */
  .navbar nav ul{
    gap:12px;

    align-items:center;
  }

  /* LINKS */
  .navbar ul li a{
    font-size:12px;
  }

  /* BOTÓN CONTACTO */
  .navbar .btn{
    padding:10px 14px;

    font-size:12px;

    border-radius:8px;
  }

  /* HERO */
  .hero{
    padding-left:20px;
    padding-right:20px;

    justify-content:center;

    text-align:center;
  }

  .hero .overlay{
    max-width:100%;
  }

  .hero h1{
    font-size:42px;

    line-height:1.1;
  }

  .hero p{
    font-size:15px;
  }

} /*AQUI ACABA LO DE MOVIL PRUEBA*/

/* =========================
   PRELOADER LOGÍSTICO
========================= */

#preloader{
    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:#ffffff;

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:999999;

    opacity:0;
    visibility:hidden;

    transition:0.4s ease;
}

/* mostrar */
#preloader.active{
    opacity:1;
    visibility:visible;
}

/* contenido */
.loader-content{
    text-align:center;
}

/* logo */
.loader-content img{
    width:260px;

    animation:
    pulseLogo 1.8s infinite ease-in-out;
}

/* línea carga */
.loader-line{
    width:220px;
    height:6px;

    background:#e4e4e4;

    border-radius:20px;

    margin:25px auto 0;

    overflow:hidden;

    position:relative;
}

/* barra azul */
.loader-line::before{
    content:"";

    position:absolute;

    top:0;
    left:-40%;

    width:40%;
    height:100%;

    background:#0d3b8a;

    border-radius:20px;

    animation:lineMove 1.2s infinite linear;
}

/* animación logo */
@keyframes pulseLogo{

    0%{
        transform:scale(1);
        opacity:0.9;
    }

    50%{
        transform:scale(1.05);
        opacity:1;
    }

    100%{
        transform:scale(1);
        opacity:0.9;
    }
}

/* barra movimiento */
@keyframes lineMove{

    0%{
        left:-40%;
    }

    100%{
        left:100%;
    }
}
/* ===== Footer ===== */
.footer {
  background-color: #0d3b8a; /* azul corporativo */
  color: white;
  padding: 50px 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Izquierda */
.footer-left h2 {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95em;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-contact p,
.footer-address p {
  font-size: 0.9em;
  line-height: 1.6;
  margin: 4px 0;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Derecha */
.footer-right {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

/* Botón naranja */
.btn-cotiza {
  background-color: #ff6b00;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.btn-cotiza:hover {
  background-color: #e35d00;
  transform: translateY(-2px);
}

/* Iconos sociales */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.3em;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ff6b00;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-right {
    margin-top: 30px;
  }
}
/* Estilos para el icono de WhatsApp */
.whatsapp-icon {
  position: fixed;
  bottom: 20px; /* Ajusta según el espacio que desees desde la parte inferior */
  right: 20px; /* Ajusta según el espacio que desees desde la derecha */
  z-index: 1000; /* Asegura que el icono quede encima de otros elementos */
}

.whatsapp-icon img {
  width: 60px; /* Tamaño del icono, ajusta según necesites */
  height: 60px;
  border-radius: 50%; /* Opcional: hace el icono redondo */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Opcional: agrega sombra */
  transition: transform 0.3s ease; /* Animación para hover */
}

.whatsapp-icon:hover img {
  transform: scale(1.1); /* Efecto de agrandado cuando el usuario pasa el mouse */
}


/* Responsive: móviles */
@media (max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .service-card {
    width: 100%;
    max-width: 380px;
  }

  .service-card img {
    width: 60px; /* se reduce más en pantallas chicas */
  }

  .btn-card {
    width: 100%;   /* botón ancho en móviles */
    text-align: center;
  }
}

.mensaje-exito{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.mensaje-card{
    background:white;
    padding:30px 40px;
    border-radius:10px;
    text-align:center;
    box-shadow:0 20px 40px rgba(0,0,0,0.3);
    animation: aparecer 0.4s ease;
}

.mensaje-card h3{
    color:#1b3556;
    margin-bottom:10px;
}

.mensaje-card p{
    color:#555;
}

/* animación */
@keyframes aparecer{
    from{
        transform: scale(0.8);
        opacity:0;
    }
    to{
        transform: scale(1);
        opacity:1;
    }
}






/*footer*/

