/* Variables de diseño */
:root {
    --primary-color: #2954cc;
    --primary-dark: #1a4bc4;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #e9ecef;
    --gray: #adb5bd;
    --gray-dark: #495057;
    --nav-bg-color: #051B49;
    --nav-text-color: #FFFFFF;
    --nav-hover-color: #4facfe;
    --nav-active-color: #00f2fe;
    --container-width: 1200px;
    --nav-padding: 1.5rem;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  /* Reset y estilos base */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-title {
    font-size: 2.5rem;
    color: var(--nav-bg-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* Botones */
  .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
  }
  
  .btn-primary {
    background: var(--primary-color);
    color: var(--white);
  }
  
  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
  }
  
  /* Preloader */
  .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
  }
  
  .preloader-logo {
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  /* Navbar */
  .main-header {
    position: fixed;
    top: 0;
    left:   0;
    width: 100%;
    background-color: var(--nav-bg-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 1rem;
  }
  
  .header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 1.5rem;
  }
  
  /* Logo */
  .logo-container {
    display: flex;
    align-items: center;
  }
  
  .logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
  }
  
  .logo-text {
    color: var(--nav-text-color);
    font-weight: 600;
    font-size: 1.2rem;
  }
  
  /* Menú principal */
  .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem; /* Espacio entre items */
  }
  
  .nav-link {
    color: var(--nav-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-active-color);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover {
    color: var(--nav-hover-color);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  .nav-link.active {
    color: var(--nav-active-color);
  }
  
  /* Menú móvil (se oculta en desktop) */
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
  }
  
  .mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--nav-text-color);
    transition: all 0.3s ease;
  }
  
  /* Responsive */
  @media (max-width: 992px) {
    .main-nav {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 80%;
      max-width: 300px;
      height: calc(100vh - 70px);
      background-color: var(--nav-bg-color);
      transition: all 0.5s ease;
      padding: 1rem;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
  
    .main-nav.active {
      left: 0;
    }
  
    .nav-list {
      flex-direction: column;
      gap: 1.5rem;
    }
  
    .mobile-menu-toggle {
      display: flex;
    }
  
    .mobile-menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
  
    .mobile-menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }
  
    .mobile-menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }
  }


  /* Estilos para el botón móvil */
.mobile-menu-toggle {
    display: none; /* Oculto en desktop */
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .toggle-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  
  /* Estado activo del botón */
  .mobile-menu-toggle.active .toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Menú móvil */
  @media (max-width: 992px) {
    .mobile-menu-toggle {
      display: block;
    }
    
    .main-nav {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 80%;
      height: calc(100vh - 70px);
      background-color: var(--nav-bg-color);
      transition: all 0.5s ease;
      padding: 2rem 0;
    }
    
    .main-nav.active {
      left: 0;
    }
    
    .nav-list {
      flex-direction: column;
      align-items: center;
    }
    
    .nav-item {
      margin: 1rem 0;
    }
  }
  
  /* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f1c3f 0%, #1a3a8f 100%);
    overflow: hidden;
  }
  
  .particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  
  /* Hero Section con partículas */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f1c3f 0%, #1a3a8f 100%);
    overflow: hidden;
    padding-top: 70px; /* Compensa el header fijo */
  }
  
  .particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }
  
  .hero-text {
    color: white;
    max-width: 600px;
  }
  
  /* Resto de estilos del hero... */
  
  @media (min-width: 992px) {
    .hero-content {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .hero-text {
    color: white;
    max-width: 600px;
  }
  
  .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }
  
  .text-gradient {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  }
  
/* ===== HERO DEL GESTOR DOCUMENTAL ===== */
.hero-gestor .hero-image {
  max-width: 350px;   /* Más controlado que el principal */
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-gestor .hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 992px) {
  .hero-gestor .hero-image {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .hero-gestor .hero-image {
    max-width: 200px;
  }
}


/* Ajuste mínimo para el carrusel de Gestor */
#gestor-gallery .carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
}

#gestor-gallery .service-card {
  min-width: 250px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gestor-gallery .service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

#gestor-gallery .service-img-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gestor-gallery .service-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: rotate(0deg) scaleX(1) scaleY(1);
}


#gestor-gallery .service-content {
  padding: 15px;
  text-align: center;
}

/* Modal Gestor Documental */
#gestorModal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

#gestorModal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
}

#gestorModalCaption {
  margin: auto;
  display: block;
  text-align: center;
  color: #fff;
  padding: 10px 0;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #bbb;
}






  /* Animaciones */
  .float-animation {
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
  }
  
  .pulse {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(79, 172, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0); }
  }
  
  .bounce {
    animation: bounce 3s infinite;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
  }
  
  /* Scroll indicator */
  .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .scroll-down {
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 4px solid white;
    border-right: 4px solid white;
    transform: rotate(45deg);
    animation: scrollAnimation 2s infinite;
    opacity: 0.7;
  }
  
  @keyframes scrollAnimation {
    0% {
      transform: rotate(45deg) translateY(0);
      opacity: 0.7;
    }
    50% {
      transform: rotate(45deg) translateY(-10px);
      opacity: 0.3;
    }
    100% {
      transform: rotate(45deg) translateY(0);
      opacity: 0.7;
    }
  }
  
  /* About Section */
  .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
  }
  
  .about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
  }
  
  .about-icon {
    font-size: 3rem;
    color: var(--nav-hover-color);
    margin-bottom: 20px;
  }
  
  .about-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  /* Contenedor principal del video */
.video-container {
  max-width: 900px;
  margin: 40px auto 60px;
  text-align: center;
}

/* Wrapper responsivo manteniendo relación de aspecto */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: #000; /* Fondo negro para durante la carga */
}

/* Iframe responsivo */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Texto descriptivo */
.video-caption {
  margin-top: 20px;
  color: #555;
  font-size: 1.1rem;
  font-style: italic;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .video-container {
    margin: 30px auto 50px;
  }
  
  .video-wrapper {
    border-radius: 8px;
  }
}

  /* Services Section */
  .services-section {
    background: var(--gray-light);
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
  }
  
  .service-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .service-card:hover .service-img {
    transform: scale(1.1);
  }
  
  .service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 94, 232, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .service-card:hover .service-overlay {
    opacity: 1;
  }
  
  .service-content {
    padding: 20px;
    text-align: center;
  }
  
  .service-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  .services-cta {
    text-align: center;
    margin: 3rem auto 0;
    max-width: var(--container-width);
    padding: 0 1.5rem;
    animation-delay: 0.3s; /* Para sincronizar con animación AOS */
  }
  
  .services-cta .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(41, 84, 204, 0.3);
    transition: all 0.3s ease;
  }
  
  .services-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(41, 84, 204, 0.4);
  }
  
  .mr-2 {
    margin-right: 0.5rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .services-cta {
      margin-top: 2rem;
    }
    
    .services-cta .btn {
      font-size: 1rem;
      padding: 0.75rem 1.5rem;
    }
  }

/* Carrusel de servicios */
.services-carousel {
  position: relative;
  padding: 0 3rem;
  margin: 0 auto;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1.5rem;
  padding: 1rem 0;
  scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.service-card {
  scroll-snap-align: start;
  flex: 0 0 calc(100% - 2rem);
  max-width: calc(100% - 2rem);
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-img-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}

.service-content {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.service-description {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Flechas de navegación */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: var(--transition);
}

.carousel-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

/* Indicadores */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D1D5DB; 
  border: none; 
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0; 
  margin: 0 4px; 
  outline: none; 
}

.carousel-dot.active {
  background: var(--primary-color); 
  transform: scale(1.2);
  box-shadow: none; 
}

.carousel-dot:hover {
  opacity: 0.9;
  transform: scale(1.1);
}

/* Responsive */
@media (min-width: 768px) {
  .service-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (min-width: 992px) {
  .service-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1.5rem);
  }
  
  .carousel-arrow {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
}

  /* Modal */
  /* Estilos del Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-icon {
  color: var(--primary-color);
  font-size: 2rem;
}

.modal-body {
  line-height: 1.6;
}

.modal-image-container {
  margin-top: 2rem;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--gray-light);
  border-radius: 0.5rem;
  overflow: hidden;
}

.modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--dark-color);
  transform: rotate(90deg);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); }
  to { transform: translateY(0); }
}
  
 /* Products Section */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
   align-items: stretch;
}

@media (min-width: 768px) {
  .product-card {
    flex-direction: row;
    height: auto;
  max-height: none; /* Añadido para consistencia */
  }
  
  .product-card:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-img-container {
  flex: 1;
  min-height: 250px;
  overflow: hidden;
  position: relative; /* Añadido para mejor control */
  background: #f5f5f5; /* Fondo por si la imagen no cubre todo */
}

@media (min-width: 768px) {
  .product-img-container {
    min-height: auto;
    height: auto; /* Asegura que ocupe todo el alto */
  }
}

.product-img {
  width: 90%;
  height: 90%;
  object-fit: contain; 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s ease;
  max-width: 100%;
  max-height: 100%;
  padding: 15px; 
}

.product-card:hover .product-img {
  transform: translate(-50%, -50%) scale(1.05); 
}

.product-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.product-title a {
  transition: var(--transition);
}

.product-title a:hover {
  color: var(--primary-dark);
}
  
/* Clients Section */
.clients-section {
  overflow: hidden;
  padding: 60px 0;
  background-color: #f9f9f9;
}

.clients-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.clients-track {
  display: flex;
  gap: 40px;
  animation: scroll 30s linear infinite;
  width: calc(250px * 16); 
}

.client-logo {
  padding: 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  min-width: 200px;
  opacity: 0.7;
  transition: var(--transition);
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.client-logo img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 11)); 
  }
}

@media (max-width: 768px) {
  .clients-track {
    gap: 20px;
    animation-duration: 20s;
  }
  
  .client-logo {
    min-width: 150px;
    height: 80px;
    padding: 0 15px;
  }
}
  
 /* Contact Section - Versión simplificada */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

.contact-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fa-x-twitter {
  font-size: 1.1rem;
}
.contact-section {
  background: var(--gray-light);
  text-align: center;
  padding: 80px 0;
}

.contact-info-centered {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-text {
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-details p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1.1rem;
  gap: 12px;
}

.contact-details i {
  color: var(--primary-color);
  font-size: 1.2rem;
  min-width: 24px;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.1);
}

/* Opcional: Estilos para el mapa cuando lo actives */
.contact-map {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
  
  /* Footer */
  .footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .footer-logo .logo {
    height: 40px;
    margin-right: 10px;
  }
  
  .footer-partner {
    margin-bottom: 30px;
  }
  
  .footer-partner .partner-logo {
    max-width: 200px;
  }
  
  .footer-copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
  
  /* Estilos para el bot animado - ahora en la derecha */
.floating-bot {
  position: fixed;
  bottom: 30px;
  right: 90px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  transition: all 0.3s ease;
}

.bot-icon {
  width: 50px;
  height: 50px;
  background: #1eb153;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: white;
}

.bot-icon:hover {
  transform: scale(1.1);
  background: #128C7E; 
}

.bot-message {
  background: white;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 200px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: relative;
  font-size: 14px;
  right: 10px; 
}

.bot-message:after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: -8px; /* Cambiado de left a right */
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: white;
  border-bottom: 0;
  border-right: 0; /* Cambiado de left a right */
  margin-bottom: -10px;
  transform: rotate(-45deg); /* Rotación invertida */
}

.floating-bot:hover .bot-message {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Animación de flotación para el bot */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bot-icon {
  animation: float 3s ease-in-out infinite;
}

/* Estilos para el botón "Volver arriba" (sin cambios) */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* Clase para mostrar mensaje (añadida para el JS) */
.show-message .bot-message {
  opacity: 1;
  transform: translateY(0);
}

/* Mostrar mensaje automáticamente cada cierto scroll */
.show-message .bot-message {
  opacity: 1;
  transform: translateY(0);
}
  /* Responsive */
  @media (max-width: 992px) {
    .navbar-menu {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background: var(--white);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: all 0.5s ease;
    }
    
    .navbar-menu.active {
      left: 0;
    }
    
    .navbar-item {
      margin: 15px 0;
    }
    
    .hero-title {
      font-size: 2.5rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
  }
  
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2rem;
    }
    
    .hero-text {
      font-size: 1rem;
    }
    
    .section {
      padding: 60px 0;
    }
    
    .hero-buttons {
      flex-direction: column;
      gap: 10px;
    }
    
    .btn {
      width: 100%;
    }
  }
  
  @media (max-width: 576px) {
    .hero-title {
      font-size: 1.8rem;
    }
    
    .section-title {
      font-size: 1.8rem;
    }
    
    .section {
      padding: 50px 0;
    }
  }