/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
   padding-top: 70px;    /* espacio igual a la altura del header */
}

/* Navbar */
.navbar {
 position: fixed;      /* fija la barra */
  top: 0;               /* siempre arriba */
  left: 0;
  width: 100%;          /* ocupa todo el ancho */
  display: flex;
  align-items: center;
  background: #ffffff;  /* fondo blanco */
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  z-index: 1000;        /* asegura que quede encima del contenido */
}

.logo img {
  height: 50px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto;   /* empuja el menú hacia la derecha */
}

.menu li a {
  color: #b4afaf;
  text-decoration: none;
  font-weight: bold;
}

.menu li a:hover {
  color: #ffcc00;
}
/* Botón hamburguesa oculto en escritorio */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
}

/* Responsive: en pantallas pequeñas */
@media (max-width: 768px) {
  .menu {
    display: none;              /* ocultar menú por defecto */
    flex-direction: column;     /* menú vertical */
    background: #ffffff;
    position: absolute;
    top: 60px;                  /* debajo del header */
    right: 0;
    width: 200px;
    border: 1px solid #ccc;
    padding: 10px;
  }

  .menu li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
  }

  .menu.active {
    display: flex;              /* mostrar menú al activar */
  }
}

/* Hero */

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow:0 0 5px black;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
}

.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 10px;s
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.btn {
  background: #ffcc00;
  color: #003366;
  text-shadow:0 0 5px rgb(228, 227, 173);
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.btn:hover {
  background: #ffaa00;
}

.hero-content {
  display: none;
  animation: fade 1s;
}

/* Mostrar solo la activa */
.hero-content.active {
  display: block;
}

/* Controles (flechas) */
.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.controls span {
  cursor: pointer;
  font-size: 40px;
  color: #fff;
  padding: 10px;
  transition: color 0.3s;
}

.controls span:hover {
  color: #ffcc00;
}

/* Indicadores (puntitos abajo) */
.indicators {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.indicators span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.indicators span.active {
  background: #ffcc00;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 5px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.whatsapp-float img {
  width: 35px;
  margin-top: 12px;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
}


/* Responsive para móviles */
@media (max-width: 480px) {
  .hero {
    height: auto;
    min-height: 250px;
    flex-direction: column;
    padding: 15px;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }

  .hero-content p {
    font-size: 0.9em;
    margin-bottom: 1px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.8em;
  }



  /* Controles: se colocan en una franja intermedia */

.btn {
  position: relative;
     z-index: 10;
    
  }

  .controls {
    position: absolute;
    bottom: 30px;       /* altura intermedia entre contenido y puntitos */
    top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 200px;          /* separación horizontal entre flechas */
    transform: none;
        z-index: 5;

  }

  /* Indicadores: más abajo */
  .indicators {
    bottom: 10px;       /* puntitos bien abajo */
  }

  .controls span {
    font-size: 15px;
    background: rgba(0,0,0,0.3); /* opcional: círculo semitransparente */
    border-radius: 50%;
    padding: 8px;
    color: #fff;
  }
}


  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float img {
    width: 28px;
    margin-top: 10px;
  }



/* Animación suave */
@keyframes fade {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* Servicios */
.servicios {
  padding: 40px 20px;
  text-align: center;
}

.servicios h2 {
  margin-bottom: 20px;
}


.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: 20px;
  justify-items: center; /* centra cada tarjeta */
}

.servicio {
  width: 200px;
  text-align: center;
  margin: 10px;
}

.servicio img {
  width: 100%;
  height: 150px;             /* altura fija para todas las imágenes */
  object-fit: cover;         /* recorta la imagen para que no se deforme */
  border-radius: 5px;
}

.servicios .servicio p {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  
}

.servicios .servicio:hover p {
  color: #0077b6;
}

/* Quitar subrayado de los enlaces */
.servicios .servicio a {
  text-decoration: none;
  color: inherit;
}
/* Responsivo: en pantallas pequeñas se apilan en 1 o 2 columnas */
@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}
/* Contacto */
.contacto {
  background: #003366;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.contacto a {
  color: #ffcc00;
  text-decoration: none;
}

.contacto a:hover {
  text-decoration: underline;
}

.social-contact {
  margin-top: 20px;
}

.social-contact .icon {
  color: #ffcc00;       /* color de los íconos */
  margin: 0 10px;
  font-size: 28px;      /* tamaño más grande */
  text-decoration: none;
}

.social-contact .icon:hover {
  color: #ffffff;       /* cambia al pasar el mouse */

}

.bottom-link {
  position: fixed;       /* siempre fijo en pantalla */
  bottom: -40px;         /* lo oculta parcialmente (ajusta el valor) */
  left: 0;
  width: 100%;
  background: #004466;
  text-align: center;
  padding: 15px;
  transition: bottom 0.3s ease; /* animación al mostrar */
}

.bottom-link a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Al pasar el mouse, se despliega */
.bottom-link:hover {
  bottom: 0;
}

.footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
