/* Estilos del editor de perfil profesional (look Figma) */
.proprofile-edit {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 0 12px;
}

.pro-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.pro-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Columna media */
.pro-card.pro-media { padding-bottom: 16px; }

.pro-banner {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg,#e9eef7,#f6f8fc);
  background-size: cover;
  background-position: center;
}

.pro-avatar {
  position: absolute;
  left: 18px;
  bottom: -36px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.pro-avatar--placeholder {
  background: linear-gradient(135deg, #eef2f7, #f7f9fc);
}

.pro-media-fields {
  margin-top: 48px; /* hueco para el avatar */
  padding: 0 16px 8px;
}

.pro-hint {
  font-size: 12px;
  color: #667085;
  background: #f8fafc;
  border: 1px dashed #e5e7eb;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Columna derecha */
.pro-card.pro-fields {
  padding: 18px 18px 10px;
}

/* Pulido del mform dentro de la card */
.pro-card .mform .fitem {
  padding: 8px 0;
}

.pro-card .mform .fitem .fitemtitle label {
  font-weight: 600;
  color: #0f172a;
}

.pro-card .mform input[type="text"],
.pro-card .mform textarea {
  border-radius: 10px;
  border: 1px solid #dfe3ea;
  padding: 10px 12px;
}

.pro-card .mform .form-control {
  border-radius: 10px;
}

.pro-card .mform .fsubmit {
  margin-top: 8px;
}

/* Responsivo */
@media (max-width: 992px) {
  .pro-grid {
    grid-template-columns: 1fr;
  }
  .pro-avatar {
    left: 16px;
  }
  .pro-media-fields {
    margin-top: 56px;
  }
}
.pro-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 10px 0 16px;
}
/* Muestra etiqueta “Agregar” junto al icono + */
.filemanager .fp-toolbar .fp-btn-add a::after {
  content: ' Agregar';
  font-weight: 600;
  margin-left: .35rem;
}
.filemanager.fm-loading .filemanager-toolbar, .filemanager.fm-loading .fp-pathbar, .filemanager.fm-loading .filemanager-container, .filemanager.fm-loaded .filemanager-loading, .filemanager.fm-maxfiles .fp-btn-add, .filemanager.fm-maxfiles .dndupload-message, .filemanager.fm-noitems .fp-btn-download, .filemanager.fm-noitems .fp-btn-delete, .filemanager .fm-empty-container, .filemanager.fm-noitems .filemanager-container .fp-content {
    display: block;
}
/* (opcional) muestra texto "Agregar" junto al icono + */
.filemanager .fp-toolbar .fp-btn-add a::after {
  content: ' Agregar';
  font-weight: 600;
  margin-left: .35rem;
}
.proprofile-edit {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pro-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #ddd;
}
.pro-avatar {
    position: absolute;
    bottom: -50px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #f0f0f0;
}
.pro-avatar--placeholder {
    background-color: #ccc;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.pro-media-fields {
    margin-top: 60px;
}
.pro-hint {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.filepicker-wrapper {
    display: block !important;
}
.filemanager-loading {
    display: none !important;
}
.fp-btn-choose {
    display: inline-block !important;
}
@media (max-width: 768px) {
    .pro-grid {
        grid-template-columns: 1fr;
    }
}
.proprofile-edit {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pro-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #ddd;
}
.pro-avatar {
    position: absolute;
    bottom: -50px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #f0f0f0;
}
.pro-avatar--placeholder {
    background-color: #ccc;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.pro-media-fields {
    margin-top: 60px;
}
.pro-hint {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.form-control, .form-select {
    width: 100%;
}
.alert {
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .pro-grid {
        grid-template-columns: 1fr;
    }
}
.proprofile-edit, .proprofile-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pro-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #ddd;
}
.pro-avatar {
    position: absolute;
    bottom: -50px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #f0f0f0;
}
.pro-avatar--placeholder {
    background-color: #ccc;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.pro-media-fields {
    margin-top: 60px;
}
.pro-hint {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.form-control, .form-select {
    width: 100%;
}
.alert {
    margin-bottom: 20px;
}
.list-group-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-group-item a.btn {
    margin-left: 10px;
}
@media (max-width: 768px) {
    .pro-grid {
        grid-template-columns: 1fr;
    }
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .list-group-item a.btn {
        margin-top: 10px;
        margin-left: 0;
    }
}
.proprofile-edit, .proprofile-panel, .proprofile-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.pro-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.pro-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.pro-avatar {
    position: absolute;
    bottom: -50px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #f0f0f0;
    background-size: cover;
}
.pro-avatar--placeholder {
    background-color: #ccc;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.pro-media-fields {
    margin-top: 60px;
}
.pro-hint {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.form-control, .form-select {
    width: 100%;
}
.alert {
    margin-bottom: 20px;
}
.list-group-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-group-item a.btn {
    margin-left: 10px;
}
.pro-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.pro-thumb {
    height: 160px;
    overflow: hidden;
}
.pro-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pro-card .inner {
    padding: 12px 14px;
}
.pro-card h3 {
    font-size: 1.05rem;
    margin: 0 0 12px;
}
.pro-head {
    margin-top: -60px;
    padding: 20px;
}
.pro-title {
    font-size: 28px;
    font-weight: 700;
}
.pro-bio {
    margin-top: 10px;
    color: #555;
}
@media (max-width: 768px) {
    .pro-grid, .pro-courses {
        grid-template-columns: 1fr;
    }
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .list-group-item a.btn {
        margin-top: 10px;
        margin-left: 0;
    }
}
.proprofile-edit, .proprofile-panel, .proprofile-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.pro-courses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.pro-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
}
.pro-avatar {
    position: absolute;
    bottom: -50px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #f0f0f0;
    background-size: cover;
}
.pro-avatar--placeholder {
    background-color: #ccc;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.pro-title {
    margin-left: 140px; /* Espacio para el avatar */
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 28px;
    font-weight: 700;
    color: #0a2540;
}
.pro-media-fields {
    margin-top: 60px;
}
.pro-hint {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.form-control, .form-select {
    width: 100%;
}
.alert {
    margin-bottom: 20px;
}
.list-group-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-group-item a.btn {
    margin-left: 10px;
}
.pro-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.pro-thumb {
    height: 160px;
    overflow: hidden;
}
.pro-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pro-card .inner {
    padding: 12px 14px;
}
.pro-card h3 {
    font-size: 1.05rem;
    margin: 0 0 12px;
}
.pro-card .course-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: #dc3545;
    margin: 0 0 12px;
}
.pro-card .course-price.free {
    color: #198754;
}
.pro-head {
    padding: 20px;
}
.pro-bio {
    margin-top: 10px;
    color: #555;
}
@media (max-width: 1199.98px) {
    .pro-courses {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 991.98px) {
    .pro-courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .pro-courses {
        grid-template-columns: 1fr;
    }
    .pro-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .pro-title {
        margin-left: 20px;
        margin-top: 10px;
    }
}
@media (max-width: 768px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .list-group-item a.btn {
        margin-top: 10px;
        margin-left: 0;
    }
}