/* Acordeón Quiet Luxury — inspirado en Animate UI / Radix Accordion (sin React) */

.hera-acc {
  border-bottom: 1px solid rgba(120, 92, 56, 0.14);
  background: transparent;
}

.hera-acc:last-child {
  border-bottom: none;
}

.hera-acc__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 2px;
  margin: 0;
  cursor: pointer;
  list-style: none;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--dark, #1a1a1a);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  outline: none;
  border-radius: 6px;
}

.hera-acc__trigger::-webkit-details-marker,
.hera-acc__trigger::marker {
  display: none;
  content: '';
}

.hera-acc__trigger:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(120, 92, 56, 0.45);
}

.hera-acc__trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(120, 92, 56, 0.22);
}

.hera-acc__chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: rgba(120, 92, 56, 0.72);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hera-acc[open] > .hera-acc__trigger .hera-acc__chevron,
.hera-acc[open] > summary .hera-acc__chevron {
  transform: rotate(180deg);
}

.hera-acc__panel {
  overflow: hidden;
}

.hera-acc__panel-inner {
  padding: 0 2px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mid, #6b6560);
}

.hera-acc__panel-inner > :first-child {
  margin-top: 0;
}

.hera-acc__panel-inner > :last-child {
  margin-bottom: 0;
}

.hera-acc__panel-inner a {
  color: var(--coral, #785c38);
  font-weight: 600;
}

/* Variante compacta (BNPL bajo beneficios) */
.hera-acc--quiet {
  border-bottom: none;
}

.hera-acc--quiet > .hera-acc__trigger {
  padding: 4px 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--mid, #6b6560);
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  text-decoration: none;
  border-bottom: 1px solid rgba(120, 92, 56, 0.35);
  border-radius: 0;
}

.hera-acc--quiet > .hera-acc__trigger:hover {
  color: var(--coral, #785c38);
  border-bottom-color: var(--coral, #785c38);
  text-decoration: none;
}

.hera-acc--quiet[open] > .hera-acc__trigger {
  border-bottom-color: transparent;
  color: var(--dark, #1a1a1a);
  margin-bottom: 6px;
}

.hera-acc--quiet .hera-acc__chevron {
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.hera-acc--quiet .hera-acc__panel-inner {
  padding: 0 0 4px;
  font-size: 12px;
}

/* Grupo FAQ con borde suave tipo card stack */
.hera-acc-group {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(120, 92, 56, 0.12);
  border-radius: 10px;
  background: rgba(255, 254, 249, 0.72);
  overflow: hidden;
  padding: 0 14px;
}

.hera-acc-group > .hera-acc {
  border-bottom: 1px solid rgba(120, 92, 56, 0.12);
}

.hera-acc-group > .hera-acc:last-child {
  border-bottom: none;
}

@media (prefers-reduced-motion: reduce) {
  .hera-acc__chevron,
  .hera-acc__panel {
    transition: none !important;
  }
}
