/* ═══════════════════════════════════════════════════════════════
   Zenna Portal de Asesores — Sistema de Apartado
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Hero (compact) ──────────────────────────────────────── */
.apartado-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 100%);
  color: var(--white);
  padding: 64px 0 48px;
  text-align: center;
}
.apartado-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.apartado-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .apartado-hero { padding: 40px 0 32px; }
  .apartado-hero__title { font-size: 1.6rem; }
  .apartado-hero__subtitle { font-size: 0.95rem; }
}

/* ── Form Container ───────────────────────────────────────────── */
.apartado-form-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.apartado-form-section .container {
  padding: 0;
}

/* ── Form Card ────────────────────────────────────────────────── */
.apartado-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
@media (max-width: 600px) {
  .apartado-form { padding: 28px 20px; }
}

/* ── Form Sections ────────────────────────────────────────────── */
.form-section {
  margin-bottom: 40px;
}
.form-section:last-of-type {
  margin-bottom: 24px;
}
.form-section__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.form-section__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  margin-top: 8px;
}

/* ── Field Grid ───────────────────────────────────────────────── */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-grid--full {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  .field-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Individual Fields ────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
}
.field--full {
  grid-column: 1 / -1;
}
.field__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 6px;
}
.field__label .required {
  color: #dc2626;
}
.field__input,
.field__select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input:focus,
.field__select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(247, 175, 47, 0.12);
}
.field__input::placeholder {
  color: #94a3b8;
}
.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ── File Drop Zones ──────────────────────────────────────────── */
.file-drop {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  background: var(--bg);
}
.file-drop:hover {
  border-color: var(--gold);
  background: rgba(247, 175, 47, 0.04);
}
.file-drop--active {
  border-color: var(--gold);
  background: rgba(247, 175, 47, 0.08);
}
.file-drop--has-file {
  border-color: #22c55e;
  border-style: solid;
  background: rgba(34, 197, 94, 0.04);
}
.file-drop--error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
}
.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.file-drop__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.file-drop__icon {
  color: var(--text-muted);
  opacity: 0.6;
}
.file-drop__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}
.file-drop__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.file-drop__info {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.file-drop__icon--done {
  color: #22c55e;
}
.file-drop__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-drop__size {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.file-drop__error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 8px;
  font-weight: 500;
}

/* ── Progress Bar ─────────────────────────────────────────────── */
.upload-progress {
  margin-top: 20px;
  display: none;
}
.progress__bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}
.progress__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* ── Form Messages ────────────────────────────────────────────── */
.form-message {
  display: none;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}
.form-message--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

/* ── Submit Button ────────────────────────────────────────────── */
.apartado-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}
.apartado-submit:hover {
  background: var(--gold-dark);
}
.apartado-submit:active {
  transform: scale(0.99);
}
.apartado-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Form Footer Note ─────────────────────────────────────────── */
.apartado-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
}
