/* Encapsulado bajo .hero-section-wrapper para no interferir con tu web */
.hero-section-wrapper {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  width: 100%;
  box-sizing: border-box;
}

.hero-section-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- BANNER / CARROUSEL HERO --- */
/* --- FIX DE ESTRUCTURA Y ALTURA DEL CARRUSEL --- */
.hero-section-wrapper .hero-carousel {
  position: relative;
  width: 100%;
  height: 520px; /* Altura fija para evitar el colapso al alternar diapositivas */
  background-color: #f7f9fb;
  overflow: hidden;
}

/* Ambas diapositivas ocupan el 100% en posicionamiento absoluto constante */
.hero-section-wrapper .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

/* Diapositiva Activa */
.hero-section-wrapper .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  position: absolute; /* Mantiene absolute para que no cambie el flujo */
}

/* Imagen de fondo a la derecha */
.hero-section-wrapper .hero-bg {
position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Gradiente difuminado para integrar la foto con el fondo blanco de la izquierda */
.hero-section-wrapper .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f7f9fb 0%, #f7f9fb 22%, rgba(247, 249, 251, 0.82) 38%, rgba(247, 249, 251, 0) 100%);
  z-index: 2;
}

/* Contenedor principal alineado */
.hero-section-wrapper .hero-container {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Columna Izquierda */
.hero-section-wrapper .hero-content {
  max-width: 480px;
  width: 100%;
}

.hero-section-wrapper .hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.05;
  color: #0d2137; /* Azul marino oscuro exacto */
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

/* Subrayado verde sutil debajo del título */
.hero-section-wrapper .hero-title-underline {
  display: block;
  width: 40px;
  height: 3px;
  background-color: #238662;
  margin-bottom: 18px;
}

.hero-section-wrapper .hero-subtitle {
  font-size: 1rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Caja PAMI */
.hero-section-wrapper .pami-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}

.hero-section-wrapper .pami-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-section-wrapper .pami-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #238662;
}

.hero-section-wrapper .pami-text strong {
  display: block;
  font-size: 0.95rem;
  color: #0d2137;
  font-weight: 700;
}

.hero-section-wrapper .pami-text span {
  font-size: 0.88rem;
  color: #64748b;
}

.hero-section-wrapper .pami-btn {
  background-color: #238662; /* Verde idéntico a la muestra */
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  letter-spacing: 0.3px;
}

.hero-section-wrapper .pami-btn:hover {
  background-color: #1a684c;
}

/* Botones principales de acción */
.hero-section-wrapper .hero-buttons {
  display: flex;
  gap: 12px;
}

.hero-section-wrapper .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.hero-section-wrapper .btn-primary {
  background-color: #0d2137;
  color: #ffffff;
  border: 1px solid #0d2137;
}

.hero-section-wrapper .btn-primary:hover {
  background-color: #162f4d;
}

.hero-section-wrapper .btn-outline {
  background-color: #ffffff;
  color: #0d2137;
  border: 1px solid #0d2137;
}

.hero-section-wrapper .btn-outline:hover {
  background-color: #f1f5f9;
}

/* Columna Derecha: Tarjetas Flotantes Blancas */
.hero-section-wrapper .hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 250px;
  margin-top: 40px;
}

.hero-section-wrapper .feature-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.hero-section-wrapper .feature-icon {
  font-size: 1.1rem;
  color: #0d2137;
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-section-wrapper .feature-text h4 {
  font-size: 0.82rem;
  color: #0d2137;
  font-weight: 700;
  line-height: 1.2;
}

/* Indicadores de carrusel */
.hero-section-wrapper .carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-section-wrapper .dot {
  width: 10px;
  height: 10px;
  background-color: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
}

.hero-section-wrapper .dot.active {
  background-color: #0d2137;
  width: 24px;
  border-radius: 10px;
}

/* --- SECCIÓN DE SERVICIOS DESTACADOS --- */
.servicios-destacados-section {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  padding: 80px 24px;
  width: 100%;
  box-sizing: border-box;
}

.servicios-destacados-section * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.servicios-destacados-section .servicios-container-main {
  max-width: 1280px;
  margin: 0 auto;
}

/* Encabezado */
.servicios-destacados-section .servicios-header-title {
  text-align: center;
  margin-bottom: 52px;
}

.servicios-destacados-section .servicios-header-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0d2137;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.servicios-destacados-section .header-line {
  width: 60px;
  height: 4px;
  background-color: #238662;
  margin: 0 auto 18px auto;
  border-radius: 2px;
}

.servicios-destacados-section .servicios-header-title p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Grilla principal */
.servicios-destacados-section .servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Tarjeta individual */
.servicios-destacados-section .servicio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.servicios-destacados-section .servicio-card:hover {
  transform: translateY(-6px);
  border-color: #238662;
  box-shadow: 0 20px 30px -10px rgba(35, 134, 98, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

/* Cabecera interna: Ícono a la izquierda + Texto a la derecha */
.servicios-destacados-section .servicio-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.servicios-destacados-section .servicio-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background-color: #e6f4ed;
  color: #238662;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.servicios-destacados-section .servicio-card:hover .servicio-icon {
  background-color: #238662;
  color: #ffffff;
}

.servicios-destacados-section .servicio-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d2137;
  margin-bottom: 8px;
  line-height: 1.25;
}

.servicios-destacados-section .servicio-content p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* Botón inferior centrado */
.servicios-destacados-section .servicio-footer {
  display: flex;
  justify-content: center;
  width: 100%;
}

.servicios-destacados-section .btn-mas-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  color: #0d2137;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.servicios-destacados-section .btn-mas-info i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.servicios-destacados-section .btn-mas-info:hover {
  background-color: #0d2137;
  color: #ffffff;
  border-color: #0d2137;
}

.servicios-destacados-section .btn-mas-info:hover i {
  transform: translateX(3px);
}

/* Adaptabilidad para pantallas medianas y móviles */
@media (max-width: 1100px) {
  .servicios-destacados-section .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .servicios-destacados-section {
    padding: 50px 16px;
  }

  .servicios-destacados-section .servicios-header-title h2 {
    font-size: 1.75rem;
  }

  .servicios-destacados-section .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicios-destacados-section .servicio-body {
    flex-direction: row;
  }
}
/* --- BARRA INFERIOR DE CUALIDADES (PIE DE PÁGINA DE LA MUESTRA) --- */
.hero-section-wrapper .qualities-bar {
  background-color: #f7f9fb;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.hero-section-wrapper .qualities-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-section-wrapper .quality-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-section-wrapper .quality-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #0d2137;
  background-color: #ffffff;
  flex-shrink: 0;
}

.hero-section-wrapper .quality-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d2137;
  line-height: 1.2;
}

/* --- ADAPTACIÓN RESPONSIVA (ANCHO DE PANTALLA) --- */
@media (max-width: 1024px) {
  .hero-section-wrapper .hero-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-section-wrapper .hero-bg {
    width: 100%;
    opacity: 0.25;
  }

  .hero-section-wrapper .hero-overlay {
    background: transparent;
  }

  .hero-section-wrapper .hero-features {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
  }

  .hero-section-wrapper .services-container,
  .hero-section-wrapper .qualities-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-section-wrapper .hero-title {
    font-size: 2.2rem;
  }

  .hero-section-wrapper .pami-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-section-wrapper .pami-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-section-wrapper .hero-buttons {
    flex-direction: column;
  }

  .hero-section-wrapper .hero-features,
  .hero-section-wrapper .services-container,
  .hero-section-wrapper .qualities-container {
    grid-template-columns: 1fr;
  }
}
/* Ajustes responsivos para pantallas chicas */
@media (max-width: 991px) {
  .hero-section-wrapper .hero-carousel {
    height: auto;
    min-height: 580px;
  }
  
  .hero-section-wrapper .carousel-slide {
    position: relative;
    display: none;
  }
  
  .hero-section-wrapper .carousel-slide.active {
    display: block;
    position: relative;
  }
}