/* Beneficios AppHabitat - Estilos modernos y responsivos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Montserrat', sans-serif;
}

.beneficios-apphabitat {
  background: #f6f7fa;
  position: relative;
  overflow: visible;
  padding: 60px 0 40px 0;
}
/* Eliminar decoraciones para neutralidad */
.beneficios-container {
  position: relative;
  z-index: 1;
}
.beneficios-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.beneficios-title {
  text-align: center;
  font-size: 2.2rem;
  color: #1a365d;
  margin-bottom: 40px;
  font-weight: 700;
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.beneficios-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
/* Card de beneficio mejorada */
.beneficio {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(26,54,93,0.10);
  border: 1.5px solid #e3eaf5;
  padding: 38px 28px 32px 28px;
  flex: 1 1 320px;
  max-width: 370px;
  min-width: 260px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.18s;
  margin-bottom: 8px;
  overflow: hidden;
}
.beneficio::before {
  content: "\f058";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #2b6cb0;
  font-size: 2.1rem;
  margin-bottom: 18px;
  display: block;
  opacity: 0.18;
  position: absolute;
  top: 22px;
  right: 22px;
  pointer-events: none;
}
.beneficio:hover {
  box-shadow: 0 8px 32px rgba(26,54,93,0.18);
  border-color: #b5c9e8;
  transform: translateY(-4px) scale(1.025);
}
.beneficio h3 {
  color: #205081;
  font-size: 1.22rem;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 #f3f7fa;
}
.beneficio p {
  color: #42526e;
  font-size: 1.04rem;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}
@media (max-width: 900px) {
    .beneficio::before {
      display: none !important;
    }
  .beneficios-lista {
    flex-direction: column;
    align-items: center;
  }
  .beneficio {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    max-height: min-content;
  }
  .beneficio p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s, padding 0.25s, margin 0.25s;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    height: 0;
    visibility: hidden;
  }
  .beneficio.abierto p {
    max-height: 400px;
    opacity: 1;
    margin-top: 8px;
    margin-bottom: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
    pointer-events: auto;
    height: auto;
    visibility: visible;
    transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s, padding 0.3s, margin 0.3s;
  }
  .beneficio h3 {
    width: 100%;
    cursor: pointer;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    outline: none;
    padding: 0px;
    transition: color 0.2s;
  }
  .beneficio h3::after {
    content: '\002B';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 1.1em;
    color: #2b6cb0;
    transition: transform 0.3s;
  }
  .beneficio.abierto h3::after {
    content: '\2212';
    transform: translateY(-50%);
  }
}
