/* Services Page Custom Styles */

/* Fix para la sección de contacto/estimado */
.contact.contact-1 {
  position: relative;
  padding: 100px 0;
}

.contact.contact-1 .bg-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contact.contact-1 .bg-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact.contact-1 .container {
  position: relative;
  z-index: 2;
}

.contact.contact-1 .contact-panel {
  position: relative;
  z-index: 2;
}

/* Igualar altura de todas las tarjetas de servicios */
.services.services-1 .service-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
}

.services.services-1 .service-panel .service-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.services.services-1 .service-panel .service-desc {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.services.services-1 .service-panel .service-desc p {
  margin-bottom: 20px;
}

.services.services-1 .service-panel .service-more {
  margin-top: auto;
}

.services.services-1 .row > [class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

/* Fix para el hero section de servicios */
.hero.hero-1,
.hero.hero-2 {
  position: relative;
  min-height: 685px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

@media screen and (max-width: 991.98px) {
  .hero.hero-1,
  .hero.hero-2 {
    min-height: 100vh;
  }
}

.hero.hero-1 .bg-section,
.hero.hero-2 .bg-section {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  overflow: hidden !important;
}

.hero.hero-1 .bg-section img,
.hero.hero-2 .bg-section img,
.hero.hero-1 .bg-section > span,
.hero.hero-2 .bg-section > span {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* Overlay oscuro para hero-1 y hero-2 */
.hero.hero-1.bg-overlay-dark::before,
.hero.hero-2.bg-overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(#021c37 0%, #041c35 6.74%, rgba(21, 27, 33, 0) 74.68%, rgba(27, 26, 26, 0) 100%);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}

.hero.hero-1 .container,
.hero.hero-2 .container {
  position: relative;
  z-index: 2;
}

.hero.hero-1 .hero-content,
.hero.hero-2 .hero-content {
  position: relative;
  z-index: 2;
}

/* Asegurar que el texto sea visible */
.hero.hero-1 .hero-title,
.hero.hero-2 .hero-title,
.hero.hero-1 .hero-subtitle,
.hero.hero-2 .hero-subtitle {
  color: #ffffff !important;
  position: relative;
  z-index: 2;
}

.hero.hero-1 .hero-desc,
.hero.hero-2 .hero-desc {
  color: #f9f9f9 !important;
  position: relative;
  z-index: 2;
}

/* Fix para los iconos del hero */
.hero.hero-1 .hero-list .icon i {
  color: #ffffff !important;
  font-size: 60px;
}

.hero.hero-1 .hero-action,
.hero.hero-2 .hero-action {
  position: relative;
  z-index: 2;
}

.hero.hero-1 .btn,
.hero.hero-2 .btn {
  position: relative;
  z-index: 2;
}
