/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;  /* verde oficial de WhatsApp */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.2s ease;
}

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

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: #000;
  color: #fff;
  z-index: 1000;
  flex-wrap: wrap; 
}

.logo img {
  height: 50px;   /* ajusta la altura de tu logo */
  width: auto;    /* mantiene la proporción */
}

.main-header nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.main-header nav a.active,
.main-header nav a:hover {
  color: #f39c12;
}

/* Estilo de la sección */
.servicios-generales {
  padding: 50px 20px;
  background: #fafafa;
  text-align: center;
}

.servicios-generales h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.servicios-bloque {
  margin-top: 40px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.servicio-carrusel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carrusel {
  position: relative;
  width: 100%;
  max-width: 1000px;   /* opcional, controla el ancho máximo */
  aspect-ratio: 3 / 2;       /* 🔹 altura fija, ajusta según tu foto */
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  background: #000;    /* opcional: fondo para que no se vea vacío */
}

.carrusel img {
  position: absolute;  /* 🔹 todas se apilan en el mismo punto */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* cambia a "contain" si quieres toda la foto */
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.carrusel img.active {
  opacity: 1;          /* 🔹 solo esta se ve */
}


.texto {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 15px;
}

.texto h4 {
  margin-bottom: 5px;
  font-size: 1.2em;
}
/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #111;
  color: #fff;
  margin-top: 2rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .slide {
    height: 250px;
  }
}
