/* ================================
   Estilos para index.html
================================ */

/* ----------- HERO (Carrusel) ----------- */
.hero-carousel {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#heroCarousel,
.hero-carousel,
section:first-of-type {
  margin: 0 !important;
  padding: 0 !important;
}

section.about-section {
  margin-top: 0 !important;
  padding-top: 3rem;
}

/* ----------- ABOUT US Section ----------- */
.about-section {
  background-color: #f8f9fa;
}

.about-section .about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.about-section img {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
  border-radius: 6px;
}

/* ----------- Títulos con línea decorativa ----------- */
.section-title {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #198754;
  text-align: center;
  margin: 0 auto 2.5rem auto;
  padding-bottom: 0.4rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  margin: 0.5rem auto 0 auto;
  width: 100%;
  max-width: 100%;
  height: 4px;
  background: linear-gradient(to right, #a9a9a9, #c0c0c0);
  border-radius: 2px;
}

/* ----------- SERVICES Section (Hover efecto) ----------- */
.service-hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
  background-color: #198754;
}

.service-hover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.service-hover-card:hover img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.service-hover-card:hover .service-overlay {
  opacity: 1;
}

.overlay-text {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* ----------- PROJECTS Section ----------- */
.project-image {
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
}

/* ----------- OUR VALUE Section ----------- */
.value-icon {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #198754;
  margin-bottom: 10px;
}

.value-card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  background-color: #fff;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.value-card p {
  flex-grow: 1;
}

/* ----------- Footer ----------- */
.footer-contact p {
  font-size: 1.1rem;
  line-height: 1.6;
}

footer i {
  transition: transform 0.2s ease-in-out;
}

footer i:hover {
  transform: scale(1.2);
  color: #0a7e3e;
}

/* ----------- Responsive ----------- */
@media (max-width: 768px) {
  .hero-carousel {
    height: 300px;
    min-height: unset;
  }

  .carousel-inner,
  .carousel-item {
    height: 100%;
  }

  .carousel-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
  }

  .value-icon {
    width: 60px;
    height: 60px;
  }

  .about-section .about-text {
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .overlay-text {
    font-size: 1rem;
  }
}
