/* ========================================
   HERO SERVICIOS
   ======================================== */
.servicios-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: url('../img/Servicios.webp') center center / cover no-repeat;
}

.servicios-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 38, 112, 0.65);
  z-index: 1;
}

.servicios-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 80px;
}

.servicios-hero-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.servicios-hero-content p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-weight: 400;
}

@media (max-width: 768px) {
  .servicios-hero {
    min-height: 50vh;
  }
  .servicios-hero-content {
    padding: 40px 30px;
  }
  .servicios-hero-content h1 {
    font-size: 34px;
  }
  .servicios-hero-content p {
    font-size: 15px;
  }
}

/* ========================================
   ACORDEÓN WRAPPER
   ======================================== */
.servicios-acordeon-wrapper {
  display: flex;
  justify-content: center;
  padding: 80px 40px;
  background: #fff;
}

.servicios-acordeon-wrapper .acordeon {
  width: 100%;
  max-width: 1000px;
}

/* ========================================
   SERVICIOS ESPECIALIZADOS
   ======================================== */
.servicios-especializados {
  padding: 80px 40px 100px;
  background: #f7f9fc;
  text-align: center;
}

.servicios-especializados-header {
  margin-bottom: 50px;
}

.servicios-especializados-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #26358C;
  margin-bottom: 14px;
}

.servicios-especializados-header p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.servicios-especializados .carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.servicios-especializados .carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.servicios-especializados .carousel-container {
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.servicios-especializados .carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 340px;
}

.servicios-especializados .carousel-image {
  width: 50%;
  height: 340px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.carousel-caption {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #26358C;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  flex: 1;
  line-height: 1.4;
}

.carousel-text-only {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 40px;
}

.carousel-text-only p {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #26358C;
  font-style: italic;
  text-align: center;
}

/* Flechas dentro de la card, lado derecho */
.servicios-especializados .carousel-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  transform: none;
  left: auto;
  top: auto;
  width: auto;
}

.servicios-especializados .prev-button,
.servicios-especializados .next-button {
  background: #26358C;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.servicios-especializados .prev-button:hover,
.servicios-especializados .next-button:hover {
  background: #0076C0;
}

@media (max-width: 768px) {
  .servicios-especializados {
    padding: 60px 24px 80px;
  }
  .servicios-especializados-header h2 {
    font-size: 26px;
  }
  .servicios-especializados .carousel-slide {
    flex-direction: column;
    min-height: auto;
  }
  .servicios-especializados .carousel-image {
    width: 100%;
    height: 220px;
  }
  .carousel-caption {
    padding: 24px;
    font-size: 18px;
  }
}

/* ========================================
   LEGACY (kept for other pages)
   ======================================== */
.descripciones_servicios {
  width: 100%;
  height: auto;
  text-align: center;
  display: flex;
  justify-content: center;
}

.aliados h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #26358C;
  font-weight: 700;
}

.aliados p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: #4a6a8a;
  line-height: 1.7;
}
