/* ===== GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #222;
}

/* ===== HEADER ===== */
header {
  background-color: #00204e; /* azul del logo */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  height: 50px;
}

.logo-container h1 {
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00aaff;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== HERO (Inicio con imagen de fondo) ===== */
.hero {
  position: relative;
  height: 100vh;
  background: url('fondo1.jpeg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 57, 96, 0.7);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 20px;
}

.hero h2 {
  color: #f5f7fa;
  font-size: 2.8em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px ;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* BOTONES HERO */
.btn-llamar, .btn-whatsapp-hero {
  display: inline-block;
  padding: 14px 30px;
  margin: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.btn-llamar {
  background-color: #007bff;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-llamar:hover {
  background-color: #005fcc;
  transform: translateY(-3px);
}

.btn-whatsapp-hero {
  background-color: #25D366;
  color: white;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-hero:hover {
  background-color: #1ebe5d;
  transform: translateY(-3px);
}

/* ===== SERVICIOS ===== */
section {
  padding: 60px 20px;
  text-align: center;
}

h2 {
  color: #203960;
  margin-bottom: 30px;
}

.servicio-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.servicio {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.servicio h3 {
  color: #007bff;
  margin-bottom: 10px;
}

/* ===== NOSOTROS ===== */
.nosotros p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== CONTACTO ===== */
.contacto p {
  margin: 10px 0;
}

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

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

/* ===== FOOTER ===== */
footer {
  background-color: #203960;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s;
  z-index: 100;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  .logo-container h1 {
    font-size: 1.1em;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
    background-color: #00204e;
    display: none;
    flex-direction: column;
    text-align: center;
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }

  nav a {
    display: block;
    padding: 10px;
    font-size: 1.1em;
  }

  .hero h2 {
    font-size: 2em;
  }
}
