/* ------------------------------------- */
/* HERO SECTION ESTILOS MEJORADOS */
/* ------------------------------------- */

.hero-bg {
  position: relative;
  overflow: hidden;
}

/* Imagen de fondo */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) blur(3px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.z-index-1 {
  z-index: 2;
}

/* Capa oscura con difuminado */
.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  z-index: 1;
}

/* Contenido por encima de fondo y overlay */
.hero-bg > .container {
  position: relative;
  z-index: 2;
}

/* Título principal */
.hero-bg h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: white;
  font-family: var(--font-title);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Párrafo */
.hero-bg p {
  font-size: 1.25rem;
  color: #f5f5f5;
}

/* Botones en el hero */
.hero-bg .btn {
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.hero-bg .btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Texto con sombra para mejor legibilidad */
.hero-bg .lead {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Media Queries para responsividad */
@media (min-width: 768px) {
  .hero-bg {
    height: 650px;
  }
}

@media (min-width: 992px) {
  .hero-bg {
    height: 750px;
  }
}

@media (max-width: 576px) {
  .hero-bg h1 {
    font-size: 2rem;
  }

  .hero-bg p {
    font-size: 1rem;
  }

  .hero-bg .btn {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
  }
}

/* =================================== */
/* SECCIÓN CARACTERÍSTICAS - IMÁGENES GRANDES Y RESPONSIVE */
/* =================================== */

.feature-img-wrapper {
  width: 100%;
  max-width: 320px;
  height: 280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-img-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.feature-img-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.feature-img-wrapper:hover img {
  transform: scale(1.08);
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  gap: 0.75rem;
}

/* =========================== */
/* RESPETUOSO EN MÓVILES */
/* =========================== */

/* En móviles: más espacio vertical */
@media (max-width: 992px) {
  .feature-img-wrapper {
    max-width: 280px;
    height: 240px;
  }

  .feature-img-wrapper img {
    max-width: 85%;
    max-height: 85%;
  }

  .mb-5 {
    margin-bottom: 3rem !important;
  }
}

@media (max-width: 576px) {
  /* En móviles pequeños: imágenes más pequeñas pero proporcionales */
  .feature-img-wrapper {
    max-width: 240px;
    height: 200px;
    margin: 0 auto 1.25rem auto;
  }

  .feature-img-wrapper img {
    max-width: 80%;
    max-height: 80%;
  }

  /* Asegurar texto centrado en móvil */
  .text-lg-start,
  .text-lg-end {
    text-align: center !important;
  }

  /* Espaciado vertical entre bloques */
  .row {
    text-align: center;
  }

  section.py-5 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
/* Estilo óptimo para videos responsive */
video {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
/* Estilo para las tarjetas de testimonio */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(107, 142, 35, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Asegurar que las imágenes sean perfectamente circulares */
.testimonial-img img {
  transition: transform 0.3s ease;
}

.testimonial-img:hover img {
  transform: scale(1.1);
}
