/* =======================================================
   HERO DOBLE — Dos columnas iguales con margen lateral
   ======================================================= */
.vafia-hero-doble {
  display: flex;
  align-items: stretch; /* igual altura */
  justify-content: space-between;
  width: 95%; /* deja margen lateral visible */
  margin: 1.5rem auto; /* separación superior e inferior */
  padding: 10px;
  height: 380px; /* altura controlada */
  overflow: hidden;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* COLUMNA IZQUIERDA: CARRUSEL */
.vafia-hero-imagenes {
  position: relative;
  flex: 1 1 50%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 0 0 8px;
}

.vafia-slider {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 400%;
  height: 100%;
  animation: loopSlider 20s infinite linear;
}

.vafia-slider div {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.vafia-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

@keyframes loopSlider {
  0% { transform: translateX(0); }
  25% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  75% { transform: translateX(-300%); }
  100% { transform: translateX(0); }
}

/* TEXTO SUPERPUESTO */
.vafia-hero-texto-superpuesto {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.vafia-hero-texto-superpuesto h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.vafia-hero-texto-superpuesto p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

/* COLUMNA DERECHA */
.vafia-hero-descripcion {
  flex: 1 1 50%;
  height: 100%;
  background-color: #f9f9f9;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  border-radius: 0 8px 8px 0;
}

.vafia-hero-descripcion h2 {
  color: #2e8b57;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.vafia-hero-descripcion p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.vafia-hero-descripcion ul {
  list-style: none;
  padding: 0;
}

.vafia-hero-descripcion li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.vafia-hero-descripcion li::before {
  content: '✔';
  color: #2e8b57;
  position: absolute;
  left: 0;
}

/* =======================================================
   FRANJA HORIZONTAL
   ======================================================= */
.vafia-franja-verde {
  width: 95%;
  margin: 1rem auto 0 auto;
  background-color: #2e8b57;
  color: #ffffff;
  text-align: center;
  padding: 0.9rem 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 8px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.vafia-franja-verde p {
  margin: 0;
  font-size: 1.1rem;
}

/* =======================================================
   SECCIÓN: ¿POR QUÉ ELEGIRNOS?
   ======================================================= */
.vafia-atributos {
  width: 95%;
  margin: 3rem auto;
  text-align: center;
}

.vafia-atributos h2 {
  font-size: 1.8rem;
  color: #2e8b57;
  margin-bottom: 0.5rem;
}

.vafia-linea {
  width: 80px;
  height: 4px;
  background-color: #2e8b57;
  margin: 0 auto 2rem auto;
  border-radius: 2px;
}

/* Cuadrícula */
.vafia-atributos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Cada atributo */
.atributo {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
}

.atributo .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  transition: background 0.3s ease;
}

.atributo:hover .overlay {
  background: rgba(0, 0, 0, 0.35);
}

.atributo i {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: #d4ffd4;
}

.atributo h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.atributo p {
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 90%;
}

/* =======================================================
   RESPONSIVO
   ======================================================= */

/* Tablet y pantallas medianas */
@media (max-width: 1000px) {
  .vafia-hero-doble {
    flex-direction: column;
    height: auto;
    width: 95%;
  }

  .vafia-atributos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smartphones */
@media (max-width: 600px) {
  .vafia-hero-doble {
    width: 100%;
    border-radius: 0;
    padding: 0;
  }

  .vafia-atributos-grid {
    grid-template-columns: 1fr;
  }
}
