/* Chips de habilidades */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  background: #eef2ff;
  color: #1e3a8a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* Experiencia pública */
.public-experience-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.public-experience-item h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
}

.public-experience-item span {
  font-size: 13px;
  color: #6b7280;
}
/* Mobile/touch: evita que el navegador intercepte el drag como scroll */
.avatar-cropper .preview-box {
  touch-action: none;
}

.avatar-cropper #crop-preview {
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Evita scroll/zoom en mobile sobre la imagen del cropper */
.avatar-cropper .preview-box img {
  touch-action: none;
}
/* Perfil.css – Estilo alineado con la página de Trabajos */

:root {
  --bg-page: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --primary: #1b5cff;
  --primary-dark: #1748c7;
  --danger: #dc2626;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  --shadow-chip: 0 3px 8px rgba(15, 23, 42, 0.15);
  --transition-fast: 0.15s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  padding-top: 60px; /* Espacio para el header fijo */
}

/* Loading gate (evita parpadeos durante carga) */
#profile-loading {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

#profile-loading .profile-loading-card {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

/* Header de navegación */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  color: #1f2937;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

.main-header .logo {
  margin: 0;
  color: #2563eb;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Menú de perfil */
.profile-menu {
  position: relative;
}

.profile-button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.profile-button:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  z-index: 1000;
  margin-top: 8px;
  min-width: 180px;
}

.profile-dropdown li {
  padding: 0;
  border-bottom: 1px solid #f3f4f6;
}

.profile-dropdown li:last-child {
  border-bottom: none;
}

.profile-dropdown li a {
  text-decoration: none;
  color: #1f2937;
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.profile-dropdown li a:hover {
  color: #2563eb;
  background-color: #f9fafb;
}

.profile-dropdown.show {
  display: block;
}

/* Página */

.profile-page {
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  justify-content: center;
}

/* =============================
   Cancelaciones por acuerdo
   ============================= */

.cancel-requests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cancel-requests-subtitle {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.cancel-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cancel-req-card {
  border: 1px solid var(--border-soft);
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.cancel-req-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cancel-req-title {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}

.cancel-req-status {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  color: #334155;
  white-space: nowrap;
}

.cancel-req-status.is-pending { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.cancel-req-status.is-confirmed { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.cancel-req-status.is-rejected { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.cancel-req-status.is-withdrawn { background: #f1f5f9; border-color: #e2e8f0; color: #334155; }

.cancel-req-meta {
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.cancel-req-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cancel-compact {
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: #111827;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.btn-cancel-compact.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-cancel-compact.danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.btn-cancel-compact:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 780px) {
  .cancel-requests-grid {
    grid-template-columns: 1fr;
  }
}

.profile-container {
  width: 100%;
  max-width: 1000px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 26px 30px;
}

/* Encabezado */

.profile-header {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.profile-avatar-block {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 118px;
}

.avatar-wrapper img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--border-soft);
  background: #e5e7eb;
}

.profile-main-info h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.profile-main-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-main-info h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.profile-main-info #emailUsuario {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.profile-main-info #provinciaUsuario {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-main-info .gremio-identity-inline {
  gap: 8px;
  align-items: center;
}

.profile-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-context-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

.profile-context-chip--worker {
  background: #eef7f1;
  border-color: #b8dcc0;
  color: #1f6a37;
}

.profile-context-chip--employer {
  background: #fff3e7;
  border-color: #f2c89a;
  color: #9a4f12;
}

.profile-context-chip--official {
  background: #edf6ff;
  border-color: #a9cffa;
  color: #0b5cad;
}

.profile-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Secciones */

.profile-section {
  margin-top: 22px;
  padding-top: 6px;
  border-top: 1px solid var(--border-soft);
}

.profile-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.profile-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

/* Grillas */

.profile-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

/* Campos */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.field-group label {
  font-size: 13px;
  color: var(--text-muted);
}

.field-group input,
.field-group select,
.field-group textarea {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  font-family: inherit;
}

.field-group textarea {
  resize: vertical;
  min-height: 72px;
}

/* Selector de fecha moderno */
.date-selector {
  display: grid;
  grid-template-columns: 1fr 2fr 1.2fr;
  gap: 12px;
}

.date-selector select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.date-selector select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(27, 92, 255, 0.25);
  background-color: #f9fafb;
  outline: none;
}

.date-selector select:hover {
  border-color: #cbd5e1;
}

/* Contador de caracteres */
.char-counter {
  margin-top: 6px;
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.char-counter #char-count {
  color: var(--primary);
  font-weight: 600;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #9ca3af;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(27, 92, 255, 0.25);
  background-color: #f9fafb;
}

.custom-category-filter {
  position: relative;
}

.custom-category-filter__native {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-category-filter__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.custom-category-filter__trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.custom-category-filter.is-open .custom-category-filter__trigger,
.custom-category-filter__trigger:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 14px 28px rgba(37, 99, 235, 0.12);
}

.custom-category-filter.is-disabled .custom-category-filter__trigger,
.custom-category-filter__trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.custom-category-filter__trigger-text.is-placeholder {
  color: #64748b;
}

.custom-category-filter__trigger i,
.custom-category-filter__chevron {
  color: #2563eb;
  transition: transform 0.16s ease;
  font-style: normal;
  line-height: 1;
}

.custom-category-filter.is-open .custom-category-filter__trigger i,
.custom-category-filter.is-open .custom-category-filter__chevron {
  transform: rotate(180deg);
}

.custom-category-filter__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 45;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.custom-category-filter__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.custom-category-filter__option {
  width: 100%;
  display: block;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  padding: 9px 14px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.custom-category-filter__option:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
  background: rgba(239, 246, 255, 0.9);
}

.custom-category-filter__option.is-active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.20);
}

.custom-category-filter__option--clear {
  background: #eef2ff;
  color: #334155;
}

@media (max-width: 640px) {
  .custom-category-filter__list {
    grid-template-columns: 1fr;
  }
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn i {
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(27, 92, 255, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(27, 92, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(27, 92, 255, 0.3);
}

.btn-light {
  background: #e5e7eb;
  color: var(--text-main);
}

.btn-light:hover {
  background: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.35);
}

.btn-danger:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25);
}

/* Acciones sección */

.section-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

/* Chips / habilidades personales */

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;

/* ============================================
   Perfil público empleador (métricas)
   ============================================ */
.employer-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.employer-stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.employer-stat-pill.muted {
  color: #334155;
  font-weight: 750;
}

.employer-stat-pill.success {
  background: #ecfdf3;
  border-color: rgba(22, 163, 74, 0.25);
  color: #14532d;
}

.employer-stat-pill.danger {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.25);
  color: #991b1b;
}
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1e40af;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow-chip);
}

.skill-chip button {
  border: none;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Listas de tarjetas (experiencia, educación, etc.) */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.card-item {
  background: #f9fafb;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  position: relative;
}

.card-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-item-title {
  font-weight: 500;
  font-size: 14px;
}

.card-item input {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 6px 8px;
  font-size: 13px;
  margin-top: 4px;
}

/* Botón eliminar simple */

.delete-pill,
.delete-card-btn {
  border-radius: 999px;
  background: #fee2e2;
  color: var(--danger);
  border: none;
  width: 24px;
  height: 24px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-card-btn:hover,
.delete-pill:hover {
  background: #fecaca;
}

/* Categorías y habilidades extra */

.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.category-item {
  background: #f9fafb;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
}

.category-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-item-header h3 {
  margin: 0;
  font-size: 14px;
}

.category-skills {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Testimonios */

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.testimonial-item {
  background: #fefce8;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  border: 1px solid #facc15;
  font-size: 13px;
}

.testimonial-author {
  margin-top: 4px;
  font-weight: 500;
}

/* Guardar sección */

.save-section {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cropper avatar */
.avatar-cropper-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3200;
  padding: 16px;
}

.avatar-cropper {
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.avatar-cropper header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

.avatar-cropper h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.avatar-cropper .close-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
}
.avatar-cropper .close-btn:hover {
  color: #111827;
}

.avatar-cropper .preview-box {
  position: relative;
  width: 100%;
  max-height: 48vh;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.avatar-cropper .preview-box::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.25);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.35);
  pointer-events: none;
}

.avatar-cropper .preview-box img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  max-width: none;
}

.avatar-cropper .controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar-cropper .controls label {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.avatar-cropper .controls input[type="range"] {
  flex: 1;
  accent-color: #2563eb;
}

.avatar-cropper .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: auto;
}
.avatar-cropper .btn-primary {
  min-width: 140px;
}

/* Formularios inline */
.inline-skill-form,
.inline-category-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-bottom: 12px;
  animation: slideDown 0.2s ease;
}

.inline-testimonial-form {
  margin-bottom: 16px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-input,
.inline-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inline-textarea {
  resize: vertical;
  min-height: 80px;
}

.inline-input:focus,
.inline-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 92, 255, 0.1);
}

.inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* Animación de parpadeo para campos incompletos */
@keyframes highlightPulse {
  0%, 100% {
    background-color: transparent;
    border-color: inherit;
    box-shadow: none;
  }
  25% {
    background-color: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
  }
  50% {
    background-color: transparent;
    border-color: inherit;
    box-shadow: none;
  }
  75% {
    background-color: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
  }
}

.highlight-pulse {
  animation: highlightPulse 2s ease-in-out;
}

/* Progress box styles */
.progress-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.progress-box h3 {
  margin-bottom: 12px;
}

.progress-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step.completed .step-number {
  background: #16a34a;
  color: white;
}

.step-status {
  margin-left: auto;
  font-size: 14px;
  color: #6b7280;
}

.step.completed .step-status {
  color: #16a34a;
}

/* Responsive */

@media (max-width: 980px) {
  .profile-container {
    padding: 22px 20px 28px;
  }

  .profile-avatar-block {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
  }

  .avatar-wrapper {
    width: 104px;
  }

  .avatar-wrapper img {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 768px) {
  .profile-container {
    padding: 18px 16px 22px;
    border-radius: 12px;
  }

  .profile-grid-2 {
    grid-template-columns: 1fr;
  }

  .profile-avatar-block {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .avatar-wrapper {
    width: auto;
    align-items: flex-start;
  }

  .avatar-wrapper img {
    width: 104px;
    height: 104px;
  }

  .profile-main-info h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }
}
