/* ==================================================
   2. Imagen de Fondo (Main Background) y Hero
================================================== */
.hero-section {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-btn {
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btn.primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.hero-btn.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-btn.primary:hover {
  background-color: transparent;
  color: white;
}

.hero-btn.secondary:hover {
  background-color: white;
  color: var(--dark-color);
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: white;
  width: 30px;
  border-radius: 10px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==================================================
   3. Sección Descripción Destacada
================================================== */
.description {
  position: relative;
  margin-top: -80px;
  z-index: 3;
  padding: 0 20px;
}

.container-description {
  background-color: white;
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.container-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.logo-description {
  margin-bottom: 30px;
  position: relative;
}

.logo-description::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.description-logo {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
}

.text-description {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  color: var(--text-color);
}
/* ==================================================
   4. Sección Servicios Mejorada (Estilo Imagen)
================================================== */
.services {
  padding: 100px 0 120px;
  position: relative;
  background-color: #f8f9fa;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54 22.5l-16.5-6.6-7.5-15-7.5 15-16.5 6.6 12 11.7-3 17.3 15-8.1 15 8.1-3-17.3z" stroke="%2328a74510" fill="none" stroke-width="1" /></svg>');
  opacity: 0.3;
}

/* Encabezado de sección */
.services-header {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.services-subtitle {
  display: inline-block;
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 15px;
}

.services-title {
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.services-title h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  color: var(--dark-color);
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

.services-title h1::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 4px;
  background: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.services-intro {
  max-width: 800px;
  margin: 0 auto 20px;
}

.services-intro p {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
}

.service-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px auto;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background-color: rgba(0,0,0,0.1);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}

.stat-text {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

/* Contenedor de tarjetas - 2 por fila */
.services .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas exactamente */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Tarjetas de servicio en el estilo de la imagen */
.service-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Etiqueta estilo imagen */
.service-tag {
  position: absolute;
  top: 20px;
  right: 0;
  background-color: #006341;
  color: white;
  padding: 6px 15px;
  border-radius: 4px 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  z-index: 3;
}

/* Contenedor de imagen */
.service-item-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-item:hover img {
  transform: scale(1.05);
}

/* Contenido de la tarjeta */
.service-item-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Título con línea debajo como en la imagen */
.service-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: var(--dark-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.service-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Párrafo descriptivo */
.service-item p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Lista de características con checks verdes */
.service-features {
  list-style: none;
  margin-bottom: 25px;
  padding: 0;
}

.service-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #555;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: bold;
}

/* Botón Saber Más como en la imagen */
.btn-saber-mas {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border: none;
}

.btn-saber-mas:hover {
  background-color: #004d33; /* Verde más oscuro */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 99, 65, 0.2);
}

/* Botón "Ver todos los servicios" */
.all-services-btn-container {
  text-align: center;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.all-services-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.4s ease;
  border: A2px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
}

.all-services-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2);
}
/* ==================================================
   5. Sección Siniestro
================================================== */
.sinister-fullwidth {
  padding: 80px 0;
  background-color: var(--dark-color);
  position: relative;
  overflow: hidden;
}

.sinister-fullwidth::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('imagenes/pattern.png') repeat;
  opacity: 0.05;
  z-index: 1;
}

.sinister-fullwidth::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(241,196,15,0.1) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
}

.sinister-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.sinister-text {
  flex: 1;
  color: white;
  padding-right: 50px;
}

.sinister-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.sinister-text h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.sinister-text p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.sinister-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.sinister-image::before {
  content: '';
  position: absolute;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: 2px solid var(--secondary-color);
  top: -10px;
  right: -10px;
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0.3;
}

.sinister-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition);
}

.sinister-image:hover img {
  transform: perspective(1000px) rotateY(0);
}
/* ==================================================
   6. Sección Empresas Aliadas - VERSIÓN ULTRA PREMIUM INFINITA
================================================== */
.partners-showcase-section {
  padding: 120px 0;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f7f9 100%);
  overflow: hidden;
}

/* Elementos decorativos de fondo con animación */
.partners-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.bg-element {
  position: absolute;
  opacity: 0.04;
}

.bg-element.circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  top: -100px;
  left: -100px;
  animation: float 15s infinite ease-in-out;
}

.bg-element.circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  bottom: -50px;
  right: -50px;
  animation: float 12s infinite ease-in-out reverse;
}

.bg-element.diamond {
  width: 180px;
  height: 180px;
  border: 3px solid var(--primary-color);
  transform: rotate(45deg);
  top: 15%;
  right: 10%;
  animation: rotate 20s infinite linear;
}

.bg-element.dots-pattern {
  width: 300px;
  height: 300px;
  background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.03;
  left: 10%;
  bottom: 15%;
  animation: float 18s infinite ease-in-out;
}

/* Titulo estilizado con efecto de subrayado animado */
.partners-title-wrapper {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
}

.partners-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #263238;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
}

.partners-title::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 4px;
  animation: underlineExpand 1.5s forwards ease-out;
}

.partners-subtitle {
  font-size: 1.1rem;
  color: #546e7a;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards ease-out;
}

/* Contenedor principal con efecto glassmorphism */
.partners-showcase {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.partners-carousel-container {
  position: relative;
  padding: 50px 70px;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 20px 80px rgba(0, 0, 0, 0.07),
    0 10px 30px rgba(0, 0, 0, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(30px);
  opacity: 0;
  animation: fadeUp 1s 0.2s forwards ease-out;
}

/* Estilos para el carrusel infinito */
.partners-track-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -10px;
}

.partners-track {
  display: flex;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  /* El track no tendrá un ancho fijo para permitir la rotación infinita */
}

.partner-card {
  flex: 0 0 calc(20% - 20px);
  margin: 0 10px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.5s ease;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.partner-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.03);
}

.partner-card:hover::before {
  opacity: 1;
}

.partner-logo {
  max-width: 85%;
  max-height: 80px;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.7;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  z-index: 2;
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: perspective(800px) rotateY(5deg) translateZ(10px);
}

/* Botones de navegación 3D */
.partners-nav-btn {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 5px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(-50%);
  color: var(--dark-color);
  font-size: 20px;
}

.partners-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 
    0 10px 30px rgba(40, 167, 69, 0.3),
    0 5px 15px rgba(40, 167, 69, 0.2);
}

.partners-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.partners-nav-btn.prev {
  left: 20px;
}

.partners-nav-btn.next {
  right: 20px;
}

/* Indicadores de página con animación activa */
.partners-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards ease-out;
}

.partner-indicator {
  width: 40px;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.partner-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 4s linear;
}

.partner-indicator.active {
  background: rgba(40, 167, 69, 0.2);
  width: 60px;
}

.partner-indicator.active::after {
  width: 100%;
}

/* Animaciones */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

@keyframes rotate {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

@keyframes underlineExpand {
  0% { width: 0; }
  100% { width: 100px; }
}

@keyframes fadeUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries para responsive */
@media (max-width: 1400px) {
  .partner-card {
    flex: 0 0 calc(25% - 20px);
  }
  
  .partners-title {
    font-size: 2.7rem;
  }
}

@media (max-width: 1200px) {
  .partner-card {
    flex: 0 0 calc(33.33% - 20px);
  }
  
  .partners-carousel-container {
    padding: 40px 60px;
  }
  
  .partners-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .partners-showcase-section {
    padding: 90px 0;
  }
  
  .partner-card {
    flex: 0 0 calc(50% - 20px);
    height: 120px;
  }
  
  .partners-carousel-container {
    padding: 30px 50px;
    border-radius: 25px;
  }
  
  .partners-nav-btn {
    width: 50px;
    height: 50px;
  }
  
  .partners-title {
    font-size: 2.2rem;
  }
  
  .partners-subtitle {
    font-size: 1rem;
  }
  
  .partner-logo {
    max-height: 70px;
  }
}

@media (max-width: 768px) {
  .partners-showcase-section {
    padding: 80px 0;
  }
  
  .partners-carousel-container {
    padding: 25px 45px;
    border-radius: 20px;
  }
  
  .partners-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .partners-title {
    font-size: 2rem;
  }
  
  .partner-card {
    height: 100px;
  }
  
  .partner-logo {
    max-height: 60px;
  }
  
  .partner-indicator {
    width: 35px;
    height: 5px;
  }
  
  .partner-indicator.active {
    width: 50px;
  }
}

@media (max-width: 576px) {
  .partners-showcase-section {
    padding: 70px 0;
  }
  
  .partner-card {
    flex: 0 0 calc(100% - 20px);
    height: 90px;
  }
  
  .partners-carousel-container {
    padding: 25px 40px;
    border-radius: 15px;
  }
  
  .partners-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .partners-nav-btn.prev {
    left: 10px;
  }
  
  .partners-nav-btn.next {
    right: 10px;
  }
  
  .partners-title {
    font-size: 1.8rem;
  }
  
  .partners-subtitle {
    font-size: 0.9rem;
    padding: 0 20px;
  }
  
  .partner-logo {
    max-height: 50px;
  }
  
  .partner-indicator {
    width: 30px;
    height: 4px;
  }
  
  .partner-indicator.active {
    width: 45px;
  }
}
/* ==================================================
   7. Modal de Publicidad Mejorado
================================================== */
#ad-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#ad-modal.active {
  opacity: 1;
  visibility: visible;
}

#ad-modal .modal-content {
  position: relative;
  width: 600px;
  max-width: 90%;
  border-radius: var(--border-radius);
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#ad-modal.active .modal-content {
  transform: scale(1);
}

.ad-image-container {
  position: relative;
}

.ad-image-container img {
  width: 100%;
  display: block;
}

.info-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  border-radius: 30px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-btn:hover {
  background-color: transparent;
  color: white;
  border-color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#ad-modal .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10000;
}

#ad-modal .close-btn:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: rotate(90deg);
}
/* ==================================================
   8. Media Queries para la sección de clientes
================================================== */
@media (max-width: 992px) {
  .clients-section h2 {
    font-size: 2.2rem;
  }
  
  .clients-slider-container {
    padding: 25px 20px;
  }
  
  .client-logo {
    min-width: 160px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .clients-section {
    padding: 80px 0;
  }
  
  .clients-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .client-logo {
    min-width: 140px;
    padding: 15px;
  }
  
  .client-logo img {
    max-height: 60px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .clients-section h2 {
    font-size: 1.8rem;
  }
  
  .clients-slider-container {
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  .client-logo {
    min-width: 120px;
    padding: 10px;
  }
  
  .client-logo img {
    max-height: 50px;
  }
  
  .slider-arrow.prev {
    left: -15px;
  }
  
  .slider-arrow.next {
    right: -15px;
  }
}
/* ==================================================
   9. Media Queries Específicas para Componentes
================================================== */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .services-title h1 {
    font-size: 2rem;
  }
  
  .sinister-text h2 {
    font-size: 2rem;
  }
  
  .sinister-content {
    flex-direction: column;
    text-align: center;
  }
  
  .sinister-text {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .sinister-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .sinister-image {
    justify-content: center;
  }
  
  .sinister-image::before {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    top: -20px;
    right: auto;
    left: 20px;
  }
  
  .stat-item {
    padding: 0 15px;
  }
  
  .stat-item::after {
    right: -5px;
  }
  
  .service-stats {
    gap: 10px;
  }
  
  /* Media queries para la sección de clientes */
  .clients-section h2 {
    font-size: 2.2rem;
  }
  
  .clients-slider-container {
    padding: 25px 20px;
  }
  
  .client-logo {
    min-width: 160px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 70vh;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .container-description {
    padding: 30px 20px;
  }
  
  .text-description {
    font-size: 16px;
  }
  
  .services {
    padding: 80px 0 100px;
  }
  
  .services-subtitle {
    font-size: 12px;
  }
  
  .services-title h1 {
    font-size: 2rem;
  }
  
  .services-intro p {
    font-size: 16px;
  }
  
  .service-stats {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .stat-item {
    flex-basis: 40%;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .service-item-content {
    padding: 25px 20px;
  }
  
  /* Cambiar a 1 columna en móviles */
  .services .container {
    grid-template-columns: 1fr;
  }
  
  /* Media queries para la sección de clientes */
  .clients-section {
    padding: 80px 0;
  }
  
  .clients-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .client-logo {
    min-width: 140px;
    padding: 15px;
  }
  
  .client-logo img {
    max-height: 60px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .services-subtitle {
    font-size: 12px;
  }
  
  .services-title h1 {
    font-size: 1.8rem;
  }
  
  .services-intro p {
    font-size: 16px;
  }
  
  .service-item-content {
    padding: 20px 15px;
  }
  
  .sinister-text h2 {
    font-size: 1.8rem;
  }
  
  .slider-controls {
    bottom: 20px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
  
  .slider-dot.active {
    width: 25px;
  }
  
  #ad-modal .modal-content {
    max-width: 95%;
  }
  
  .info-btn {
    font-size: 14px;
    padding: 10px 20px;
    bottom: 20px;
  }
  
  .stat-item {
    flex-basis: 100%;
  }
  
  .all-services-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
  
  /* Media queries para la sección de clientes */
  .clients-section h2 {
    font-size: 1.8rem;
  }
  
  .clients-slider-container {
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  .client-logo {
    min-width: 120px;
    padding: 10px;
  }
  
  .client-logo img {
    max-height: 50px;
  }
  
  .slider-arrow.prev {
    left: -15px;
  }
  
  .slider-arrow.next {
    right: -15px;
  }
}