/* Base styles */
:root {
    --primary: #eab308;
    --primary-hover: #facc15;
    --text: #111827;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.5;
  }
  
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .btn-primary {
    background-color: var(--primary);
    color: black;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-hover);
  }
  
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
  }
  
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8rem;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
  }
  
  .logo-image {
    height: 120px; /* Logo más grande */
    width: auto;
    margin-top: -45px;  /* Mueve el logo hacia arriba para que sobresalga */
    margin-bottom: -45px; /* Ajusta si es necesario para equilibrar el espacio debajo */
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}
  .nav-menu {
    display: flex;
    gap: 2rem;
  }
  
  .nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1.5rem; /* Ajusta este valor según lo necesites */
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  
  h1, h2, h3 {
    color: #2c3e50;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* About Section */
  .about {
    background: #f4f4f4;
    padding: 140px 0;
  }
  
  .about h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .about p {
    text-align: justify;
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #7f8c8d;
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
  }
  
  .about-image img {
    width: 100%;
    border-radius: 8px;
  }
  
  .about-content h2 {
    margin-bottom: 10px;
    font-size: 24px;
  }
  
  .about-content p {
    margin-bottom: 20px;
  }
  
  /* Why Choose Us Section */
  .why-choose-us {
    padding: 60px 0;
    background: #ecf0f1;
  }
  
  .why-choose-us h2 {
    
    text-align: center;
    margin-bottom: 40px;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .feature-card i {
    font-size: 40px;
    color: #1abc9c;
    margin-bottom: 15px;
  }
  
  .feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .feature-card p {
    font-size: 1.25rem;
    color: #7f8c8d;
  }
  
  .contador {
    display: flex;
    justify-content: space-around;
    margin: 50px auto;
    max-width: 800px;
    gap: 20px;  /* Añade espacio entre los items */
  }

  .contador-item {
    text-align: center;
  }

  .numero {
    font-size: 3rem;
    font-weight: bold;
    color: #eab308;
  }

  .descripcion {
    color: #4b5563;
    font-size: 1.5rem;
    margin-top: 10px;
  }

  /* Responsive Design para móvil */
@media (max-width: 768px) {
  .contador {
    flex-direction: column; /* Cambia el layout de horizontal a vertical */
    justify-content: center;
    align-items: center;
    padding: 20px; /* Añade algo de padding */
  }

  .contador-item {
    width: 100%; /* Los items ocuparán el 100% del ancho disponible */
    margin-bottom: 20px; /* Añade espacio entre cada item */
    text-align: center;
  }

  .numero {
    font-size: 2rem; /* Reducir el tamaño del número en dispositivos móviles */
  }

  .descripcion {
    font-size: 1.25rem; /* Reducir el tamaño de la descripción en móviles */
  }
}
  
 /* Footer */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-info p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.contact-item i {
  color: var(--primary);
}

.footer-hours p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.5rem 0;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
  }
  
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
  }
  
  .visible {
    opacity: 1;
    transform: translateY(0);
  }
  
/* Responsive Design para móvil */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* Ajustes en la sección About */
  .about {
    padding: 150px 0; /* Reduce el padding superior para ajustarlo */
  }

  .about-grid {
    display: flex;
    flex-direction: column; /* Cambia el layout a columna en lugar de grid */
    gap: 20px;
  }

  .about-image {
    order: 2; /* Asegura que la imagen quede abajo */
  }

  .about-content {
    order: 1; /* Asegura que el contenido quede arriba de la imagen */
  }

  .about h1 {
    font-size: 2rem; /* Ajusta el tamaño de la fuente */
    margin-bottom: 1rem;
  }

  .about p {
    font-size: 1.125rem; /* Ajusta el tamaño del texto */
    margin-bottom: 20px;
  }

  .about-content h2 {
    font-size: 1.75rem; /* Ajusta el tamaño de los subtítulos */
    margin-bottom: 10px;
  }

  .about-content p {
    font-size: 1rem; /* Ajusta el tamaño del texto */
    margin-bottom: 15px;
  }
}

.previous-clients {
  background-color: #f9fafb;
  padding: 60px 0;
  text-align: center;
}

.previous-clients h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #2c3e50;
}

.logo-carousel {
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.logos {
  display: flex;
  gap: 2rem;
  animation: scroll-left 20s linear infinite;
}

.logos img {
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logos img:hover {
  filter: grayscale(0%);
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Previous CSS remains the same, update only the carousel-related styles */

.previous-clients {
  padding: 60px 0;
  background: var(--bg-light);
  text-align: center;
  overflow: hidden;
}

.previous-clients h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text);
}

.logo-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 20px;
}

.logo-slider {
  display: flex;
  align-items: center;
  gap: 30px;
  animation: scroll 30s linear infinite;
  will-change: transform;
}

.logo-wrapper {
  flex: 0 0 120px; /* Fixed width for consistency */
  height: 120px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-wrapper img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-120px * 13 - 30px * 13)); /* Adjust based on logo count */
  }
}

/* Pause animation on hover */
.logo-container:hover .logo-slider {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-wrapper {
    flex: 0 0 100px;
    height: 100px;
  }
  
  .logo-slider {
    gap: 20px;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-100px * 13 - 20px * 13));
    }
  }
}