/* sections.css */

.sections-area {
  display: flex; flex-direction: column;
}

.form-section {
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.form-section:last-child { border-bottom: none; }

/* Header cerrado: blanco con línea izquierda sutil */
.section__header {
  display: flex; align-items: center;
  padding: 0; cursor: pointer; user-select: none;
  background: var(--c-bg);
  transition: background 0.15s;
  border-left: 3px solid var(--c-line);
}
.section__header:hover {
  background: var(--c-accent-ghost);
  border-left-color: var(--c-accent);
}

/* Header ABIERTO: fondo acento sólido — completamente diferente */
.form-section.open > .section__header {
  background: var(--c-accent);
  border-left-color: var(--c-accent);
}
.form-section.open > .section__header .section__num { color: rgba(255,255,255,0.45); }
.form-section.open > .section__header .section__title { color: #fff; }
.form-section.open > .section__header .section__chevron svg { color: rgba(255,255,255,0.7); }

.section__num {
  font-family: var(--ff-label);
  font-size: 9px; letter-spacing: 0.22em;
  color: var(--c-ink-4);
  padding: 0 4px 0 18px;
  min-width: 52px;
  text-transform: uppercase;
  display: flex; align-items: center;
}

.section__title {
  font-family: var(--ff-body);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-ink);
  padding: 13px 10px 13px 4px;
  flex: 1;
  text-transform: uppercase;
  transition: color 0.15s;
}

.section__chevron {
  width: 40px; height: 42px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.section__chevron svg {
  transition: transform 0.25s ease;
  color: var(--c-ink-4);
}
.form-section.open .section__chevron svg { transform: rotate(180deg); }

/* Cuerpo */
.section__body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  background: var(--c-section-bg);
  border-top: 1px solid transparent;
}
.form-section.open .section__body {
  max-height: 4000px;
  border-top-color: var(--c-line);
}

.section__inner { padding: 14px 16px 16px; }
