/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* 🎯 Hero Section (Encabezado Principal) */
.hero {
  position: relative;
  min-height: 80vh;
  background: url("https://images.pexels.com/photos/2119903/pexels-photo-2119903.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1") no-repeat center center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Más oscuro para mejor lectura */
}

.hero-content {
  position: absolute;
  text-align: center;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  animation: fadeIn 1s ease-in-out;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeIn 1.5s ease-in-out;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2{
  
  text-align: center;
}
/* Botón Principal */
.btn-cta {
  display: inline-block;
  background: #ffcc00;
  color: #333;
  padding: 0.9rem 1.7rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.btn-cta:hover {
  background: #ffb300;
  transform: scale(1.05);
}

/* 🌍 Sección Informativa */
.info-section {
  padding: 4rem 2rem;
  text-align: center;
  background: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.feature-item {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #007bff;
}

/* 📺 Sección de Video */
.video-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #eef5ff;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  border-radius: 10px;
}

/* 🏪 Sección de Negocios Destacados */
.featured-businesses {
  padding: 4rem 2rem;
  background: white;
}

.business-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.business-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.business-card:hover {
  transform: translateY(-5px);
}

.business-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.business-card h3 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.btn-business {
  display: block;
  margin: 15px auto;
  background: #28a745;
  color: white;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.btn-business:hover {
  background: #218838;
}

/* ==========================
  🎠 Carrusel de Servicios 
========================== */
.business-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease-in-out;
  width: max-content; /* Se ajusta dinámicamente al contenido */
  min-width: 100%; /* Asegura que el slider no sea más pequeño de lo necesario */
}


.business-card {
  flex: 0 0 calc(33.33% - 16px); /* Ajuste para 3 tarjetas por fila */
  margin: 0 8px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}


.carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  transition: background 0.3s ease-in-out, transform 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #ffcc00;
  transform: scale(1.1);
}

.prev {
  left: -40px;
}

.next {
  right: -40px;
}


/* ==========================
  🌟 Carrusel de Testimonios
========================== */
.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.testimonial-item {
  flex: 0 0 100%;
  max-width: 100%;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.testimonial-item:hover {
  transform: scale(1.02);
}

.testimonial-item i {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.testimonial-item p {
  font-size: 1.2rem;
  font-style: italic;
  color: #444;
  margin-bottom: 1rem;
}

.testimonial-item span {
  font-size: 1rem;
  font-weight: bold;
  color: #555;
}

.testimonial-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  transition: background 0.3s ease-in-out, transform 0.3s;
  z-index: 10;
}

.testimonial-btn:hover {
  background: #ffcc00;
  transform: scale(1.1);
}

.prev-testimonial {
  left: -40px;
}

.next-testimonial {
  right: -40px;
}

/* Indicadores */
.testimonial-indicators {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.testimonial-indicators div {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.testimonial-indicators div.active {
  background: #007bff;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .business-card {
    flex: 0 0 calc(50% - 16px); /* Muestra 2 tarjetas en móviles */
  }
  
  .testimonial-item p {
    font-size: 1rem;
  }

  .testimonial-btn {
    width: 40px;
    height: 40px;
  }
}

/* ✅ Beneficios */
.benefits-section {
  background: #fff;
  text-align: center;
  padding: 3rem 2rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  background: #f0f8ff;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.benefits-list li i {
  margin-right: 10px;
  font-size: 1.5rem;
  color: #28a745;
}

/* 🎯 Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

footer nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

footer nav ul li a:hover {
  color: #ffc107;
}

/* 🔥 Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev {
    left: 5px;
  }

  .next {
    right: 5px;
  }
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 3rem auto;
  max-width: 1000px; /* Ajuste del ancho total */
  overflow: hidden; /* Evita que se desborde el carrusel */
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* 📌 Contenedor del slider */
.business-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* 📌 Tarjetas de negocio */
.business-card {
  flex: 0 0 calc(33.33% - 20px); /* 3 tarjetas por fila */
  max-width: calc(33.33% - 20px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.business-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.business-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.business-card h3 {
  font-size: 1.3rem;
  margin: 12px 0;
  color: #333;
}

.business-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 12px;
}

.btn-business {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.btn-business:hover {
  background: #218838;
}

/* 📌 Botones del carrusel */
.carousel-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  transition: background 0.3s ease-in-out, transform 0.3s;
  z-index: 10;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: #ffcc00;
  transform: scale(1.1);
}

/* 📌 Posición de los botones */
.prev {
  left: 0;
}

.next {
  right: 0;
}

/* 🎯 Responsivo */
@media (max-width: 900px) {
  .business-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .business-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
