* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b1d2a;
    padding: 15px 20px;
    color: white;
    background: #0d1b2a;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    box-shadow: 0 -6px 15px rgba(0,0,0,0.4);
}

/* MENÚ NORMAL (PC) */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}



/* LOGO */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo img {
    height: 90px;
    border-radius: 50%;
    width: 140px;
}


/* TEXTO */
.hero-text h1 {
    font-size: 40px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.hero-text p {
    font-size: 16px;
}

.seo-texto h2 {
    text-align: center;
}

.seo-texto p {
    text-align: center;
}

/* HERO */
.hero {
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('img/portada2.webp');
    background-size: cover;
    background-position: right center; /* 👈 IMPORTANTE */
    background-repeat: no-repeat;

    height: 70vh; /* 👈 más altura (clave) */
    min-height: 300px;
    display: flex;
    padding: 40px;
    color: white;
    margin-top: 0%;
    box-shadow: 0 -6px 15px rgba(0,0,0,0.4);
    border-bottom: 3px solid #ff9800;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* PC: izquierda */
    gap: 15px;
    max-width: 600px;
    margin-top: 0;
}

/* FEATURES */
.features {
    display: flex;
    justify-content: space-around;
    padding: 30px 15px;
    background: #f5f5f5;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    text-align: center;
    width: 30%;
    min-width: 120px;
}

/* SERVICES */
.services {
    padding: 30px 15px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card {
    background: #eee;
    padding: 20px;
    width: 300px;
    max-width: 100%;
}

/* BENEFITS */
.benefits {
    padding: 30px 15px;
    text-align: center;
}

.benefit-list {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* FOOTER */
footer {
    background: #0b1d2a;
    color: white;
    text-align: center;
    padding: 20px;
    border-top: 3px solid rgba(0,0,0,0.5);
    box-shadow: 0 -6px 15px rgba(0,0,0,0.4);
}

/* ========================= */
/* 📱 MEDIA QUERIES MOBILE */
/* ========================= */

@media (max-width: 768px) {

    /* NAVBAR */
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #0b1d2a;
        flex-direction: column;
        align-items: center;
        display: none;
    }

    nav a {
        padding: 15px;
        width: 100%;
        text-align: center;
    }

    /* MENÚ ACTIVO */
    nav.active {
        display: flex;
    }

    /* HERO */
    .hero {
        height: auto;
        padding: 40px 20px;
        text-align: left;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    /* FEATURES */
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 100%;
    }

    /* CARDS */
    .cards {
        flex-direction: column;
        align-items: center;
    }

    /* BENEFITS */
    .benefit-list {
        flex-direction: column;
        align-items: center;
    }

}    
@media (max-width: 768px) {
    .hero{
      height: 200px;
    }

    .hero-content {
        /*align-items: center; /* 👈 centra todo */
        text-align: left;
    }

    .logo {
            align-items: flex-start;
            
    }

    .logo img {
            height: 45px;
            width: 60px;
    }

    .hero-text h1 {
            font-size: 16px;
            text-align: left;
            bottom: 0;
            
    }

   .hero-text p {
            font-size: 14px;
            text-align: left;
    }

    .seo-texto h2 {
      font-size: 20px;
    }

    .seo-texto p {
      font-size: 15px;
    }
}

/*SERVICIOS*/

/* HERO */
.hero-servicios {
  height: 150px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('img/grua-banner.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px;
  border-bottom: 3px solid #ff9800;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  box-shadow: 0 -6px 15px rgba(0,0,0,0.4);
}

.hero-servicios h1 {
  font-size: 40px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.hero-servicios p {
  font-size: 16px;
}

.card-servicio li{
    font-size: 18px;
}

/* CONTENEDOR */
.detalle-servicios {
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* CARDS */
.card-servicio {
  display: flex;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  gap: 20px;
  align-items: center;
  padding: 10px;
}

/* IMAGEN */
.card-servicio img {
  width: 400px;
  height: 300px;
  /*object-fit: cover;*/
  border-radius: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* INFO */
.card-servicio .info {
  flex: 1;
}

.card-servicio h2 {
  margin-bottom: 10px;
}

.card-servicio p {
  margin-bottom: 10px;
  font-size: 20px;
}

/* FOOTER */
.footer {
 background: #0a1f2c;
  color: white;
  text-align: center;
  width: 100%;
}

/* 📲 TABLET */
@media (max-width: 1024px) {
  .card-servicio {
    flex-direction: column;
    text-align: center;
  }

  .card-servicio img {
    width: 100%;
    height: 270px;
  }

  .card-servicio .info {
    padding: 10px;
  }
}

/* 📱 CELULARES */
@media (max-width: 600px) {

  .hero-servicios {
    height: 120px;
  }

  .hero-servicios h1 {
    font-size: 20px;
  }

  .hero-servicios p {
    font-size: 14px;
  }

  .detalle-servicios {
    padding: 30px 15px;
  }

  .card-servicio {
    padding: 10px;
  }

  .card-servicio img {
    height: 220px;
    width: 240px;
  }

  .card-servicio h2 {
    font-size: 18px;
  }

  .card-servicio p,
  .card-servicio li {
    font-size: 14px;
    text-align: left;
    padding: 4px;
  }
}

/*CONTACTO*/

/* HERO CONTACTO */
.hero-contacto {
  height: 150px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('img/grua-banner.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 3px solid #ff9800;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  box-shadow: 0 -6px 15px rgba(0,0,0,0.4);
}

.hero-contacto h1 {
  font-size: 40px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.hero-contacto p {
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}


/* CONTENEDOR */
.contacto {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 185px 20px;
  flex-wrap: wrap;
}

/* CARDS */
.card-contacto {
  background: #f5f5f5;
  width: 280px;
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card-contacto:hover {
  transform: translateY(-8px);
}

/* ICONOS */
.card-contacto i {
  font-size: 30px;
  color: #28a745;
  margin-bottom: 10px;
}

/* FOOTER */
.footer1 {
  background: #0b1d2a;
    color: white;
    text-align: center;
    padding: 20px;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .contacto {
    flex-direction: column;
    align-items: center;
    padding: 40px;
  }
  .hero-contacto h1{
    text-align: center;
    font-size: 20px;
  }
  .hero-contacto{
    height: 120px;
  }
}

.btn-whatsapp {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-whatsapp i {
  margin-right: 5px;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

.whatsapp-float {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;

  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;

  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;

  font-size: 30px;

  z-index: 9999;
  text-decoration: none;

  animation: latido 1.5s infinite;
}

@keyframes latido {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
