:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --text-color: #333;
    --background-color: #f5f7fa;
    --card-background: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #128C7E;
  }
  
  /* General styles */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
  }
  
  /* Services section styles */
  .servicios {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .servicios h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--primary-color);
  }
  
  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .servicio {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .servicio:hover {
    transform: translateY(-10px);
  }
  
  .servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .servicio h3 {
    font-size: 1.25rem;
    margin: 1rem;
    color: var(--primary-color);
    text-align: center;
  }
  
  .servicio p {
    padding: 0 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }
  
  /* CTA Button styles */
  .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--whatsapp-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    margin: 0 auto 1rem;
  }
  
  .cta-button:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  }
  
  .cta-button::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .servicio {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
  }
  
  .servicio:nth-child(1) { animation-delay: 0.1s; }
  .servicio:nth-child(2) { animation-delay: 0.2s; }
  .servicio:nth-child(3) { animation-delay: 0.3s; }
  .servicio:nth-child(4) { animation-delay: 0.4s; }
  .servicio:nth-child(5) { animation-delay: 0.5s; }
  
  /* Media queries */
  @media (max-width: 768px) {
    .servicios {
      padding: 2rem 1rem;
    }
    
    .servicios-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cta-button {
      padding: 8px 16px;
    }
  }
  
  @media (max-width: 480px) {
    .servicios-grid {
      grid-template-columns: 1fr;
    }
    
    .servicio {
      max-width: 100%;
    }
  }
  
  /* Reduced motion preference support */
  @media (prefers-reduced-motion: reduce) {
    .servicio {
      animation: none;
      opacity: 1;
    }
    
    .servicio:hover {
      transform: none;
    }
  }

  /* Estilos para la sección de productos */
.productos {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .productos h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--primary-color);
  }
  
  .productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .producto {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .producto:hover {
    transform: translateY(-10px);
  }
  
  .producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .producto h3 {
    font-size: 1.25rem;
    margin: 1rem;
    color: var(--primary-color);
    text-align: center;
  }
  
  .producto p {
    padding: 0 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }
  
  /* Animations for productos */
  .producto {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
  }
  
  .producto:nth-child(1) { animation-delay: 0.1s; }
  .producto:nth-child(2) { animation-delay: 0.2s; }
  .producto:nth-child(3) { animation-delay: 0.3s; }
  .producto:nth-child(4) { animation-delay: 0.4s; }
  
  /* Media queries actualizados para incluir productos */
  @media (max-width: 768px) {
    .productos {
      padding: 2rem 1rem;
    }
    
    .productos-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  }
  
  @media (max-width: 480px) {
    .productos-grid {
      grid-template-columns: 1fr;
    }
    
    .producto {
      max-width: 100%;
    }
  }
  
  /* Reduced motion preference support para productos */
  @media (prefers-reduced-motion: reduce) {
    .producto {
      animation: none;
      opacity: 1;
    }
    
    .producto:hover {
      transform: none;
    }
  }

  /* Estilos para el banner */
.banner {
    position: relative;
    width: 100%;
    height: 60vh; /* Usa altura relativa a la ventana */
    min-height: 300px; /* Asegura una altura mínima */
    max-height: 600px; /* Limita la altura máxima */
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 90%; /* Ancho relativo para dispositivos pequeños */
    max-width: 600px; /* Ancho máximo para pantallas grandes */
}

.banner-content h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.4;
}

/* Media queries para mejorar la responsividad */
@media (max-width: 768px) {
    .banner {
        height: 50vh;
    }
    
    .banner-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 40vh;
    }
    
    .banner-content {
        padding: 10px;
    }
    
    .banner-content h1 {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }
    
    .banner-content p {
        font-size: clamp(0.9rem, 1.5vw, 1rem);
    }
}

/*----------------------------

/* Estilos generales */
.diseno-web {
  padding: 35px 15px;
  background-color: #f4f4f9;
  text-align: center;
}

.diseno-web h1 {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 10px;
}

.diseno-web h2 {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 30px;
}

/* Contenedor del carrusel */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  transition: transform 0.5s ease;
}

/* Estilos de cada elemento */
.carousel-item {
  flex: 0 0 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  min-width: 250px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -ms-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.carousel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.carousel-item img {
  width: 100%;
  border-radius: 10px;
}

.carousel-item h3 {
  font-size: 1.25rem;
  margin: 15px 0;
  color: #333;
}

.carousel-item p {
  font-size: 1rem;
  color: #555;
}

.carousel-item .cta-button {
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.carousel-item .cta-button:hover {
  background-color: #1db954;
}

.carousel-item .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff6347;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 1;
}

/* Estilos para pantallas grandes */
@media (min-width: 1025px) {
  .carousel-track {
    flex-wrap: wrap;
    overflow-x: visible;
    transform: none !important;
    transition: none;
  }

  .carousel-item {
    flex: 0 0 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }

  /* Ocultar botones de navegación en pantallas grandes */
  .carousel-button {
    display: none;
  }
}

/* Estilos para dispositivos medianos */
@media (max-width: 1024px) and (min-width: 769px) {
  .carousel-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

/* Estilos para dispositivos pequeños (slider) */
@media (max-width: 768px) {
  .carousel-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Para Firefox */
    -ms-overflow-style: none; /* Para Internet Explorer y Edge */
  }

  .carousel-track::-webkit-scrollbar {
    display: none; /* Para Chrome, Safari y Opera */
  }

  .carousel-item {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
  }

  /* Mostrar botones de navegación en dispositivos pequeños */
  .carousel-button {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 10;
  }

  .carousel-button.prev {
    left: 10px;
  }

  .carousel-button.next {
    right: 10px;
  }
}

/* Ajustes adicionales para dispositivos muy pequeños */
@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 90%;
    max-width: 90%;
  }
}
