/* Estilos para FAQs — alineado con styles-frontend.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Contenedor y buscador */
.erp-hyp-faqs {
  max-width: 1201px;
  margin: 1rem auto;
  padding: 0 10px;
  font-family: 'Montserrat', sans-serif;
}

.erp-hyp-faqs-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* Grupo */
.erp-hyp-faqs-group-title {
  margin: 20px 0 10px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
  font-family: 'Montserrat', sans-serif;
}

/* Acordeón */
.erp-hyp-faqs-item {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0;
  margin: 0.5rem 0;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden; /* asegura que el header negro cubra las esquinas superiores */
}

.erp-hyp-faqs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0; /* sólo redondea arriba */
  transition: background 0.2s ease, color 0.2s ease;
  background: #fff;
}
.erp-hyp-faqs-header:hover {
  background: #f7f7f7;
}
.erp-hyp-faqs-item[data-open="1"] .erp-hyp-faqs-header {
  background: #000;
  color: #fff;
}

.erp-hyp-faqs-title {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
  font-family: 'Montserrat', sans-serif;
}
.erp-hyp-faqs-item[data-open="1"] .erp-hyp-faqs-title {
  color: #fff;
}

.erp-hyp-faqs-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
}

.erp-hyp-faqs-content {
  overflow: hidden;
  height: 0;
  transition: height 0.25s ease;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid #eee;
}
.erp-hyp-faqs-item[data-open="1"] .erp-hyp-faqs-content {
  border-top-color: #000;
}

/* Al abrir, invertimos el icono para que se vea blanco en fondo negro */
.erp-hyp-faqs-item[data-open="1"] .erp-hyp-faqs-icon {
  filter: invert(1);
}

.erp-hyp-faqs-content-inner {
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  padding: 12px 16px 16px;
  font-family: 'Montserrat', sans-serif;
}

@media screen and (max-width: 767px) {
  .erp-hyp-faqs-group-title {
    font-size: 16px;
  }
  .erp-hyp-faqs-title {
    font-size: 16px;
    font-weight: 700;
  }
  .erp-hyp-faqs-content-inner {
    font-size: 14px;
  }
}
