/* 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;
    }
}
/* Quitar el recuadro gris de Moove en la vista de perfil profesional */
body.path-local-proprofiles-view #page-header,
body.path-local-proprofiles #page-header {
    display: none;              /* Oculta la cabecera de Moove (título duplicado) */
}

/* Quitar fondo y borde del contenedor central */
body.path-local-proprofiles-view #region-main-box,
body.path-local-proprofiles #region-main-box {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Quitar padding interno que crea “caja” */
body.path-local-proprofiles-view #region-main,
body.path-local-proprofiles #region-main {
    padding: 0;
}

/* Fondo del área de contenido (main-inner) */
body.path-local-proprofiles-view #topofscroll.main-inner,
body.path-local-proprofiles #topofscroll.main-inner {
    background: #ffffff; /* o transparent; depende de cómo lo quieras */
}

/* Ajustar el bloque principal de tu perfil */
body.path-local-proprofiles-view .proprofile-view,
body.path-local-proprofiles .proprofile-view {
    margin: 0;
    padding: 0 15px 30px;
}
/* ================================
 * VISTA PÚBLICA DEL PROFESIONAL
 * Quitar caja gris de Moove y ajustar layout
 * ================================ */

/* 1) Quitar cabecera y caja gris de Moove SOLO en esta página */
body#page-local-proprofiles-view #page-header {
    display: none !important;
}

body#page-local-proprofiles-view #region-main-box,
body#page-local-proprofiles-view #region-main-box > .card,
body#page-local-proprofiles-view #region-main,
body#page-local-proprofiles-view #page-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Fondo general blanco como el resto del tema */
body#page-local-proprofiles-view #topofscroll.main-inner {
    background: #ffffff !important;
}

/* 2) Contenedor principal alineado con Weduko */
body#page-local-proprofiles-view .proprofile-view {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

/* 3) Cabecera del profesional (banner + avatar + título) */
body#page-local-proprofiles-view .pro-banner {
    height: 220px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 24px 20px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

/* Avatar un poco más grande y separado del borde */
body#page-local-proprofiles-view .pro-avatar {
    width: 120px;
    height: 120px;
    bottom: -60px;
}

/* Título dentro del banner (tarjeta blanca) */
body#page-local-proprofiles-view .pro-title {
    margin-left: 150px;      /* espacio para el avatar */
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
    font-size: 28px;
    font-weight: 700;
    color: #0a2540;
}

/* Mover hacia abajo el bloque "Cursos del profesor" 
   para que no se monte con el banner/avatar */
body#page-local-proprofiles-view .pro-wrap {
    margin-top: 80px;
}

/* 4) Cards de cursos en grid limpio */
body#page-local-proprofiles-view .pro-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

body#page-local-proprofiles-view .pro-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

body#page-local-proprofiles-view .pro-thumb {
    height: 160px;
    overflow: hidden;
}

body#page-local-proprofiles-view .pro-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body#page-local-proprofiles-view .pro-card .inner {
    padding: 12px 14px;
}

body#page-local-proprofiles-view .pro-card h3 {
    font-size: 1.05rem;
    margin: 0 0 12px;
}
/* ================================
 * VISTA PÚBLICA PROFESIONAL – FIX FINAL
 * ================================ */

/* 1) Quitar cabecera y caja gris de Moove en esta página */
.path-local-proprofiles-view #page-header,
.path-local-proprofiles-view #region-main-box > .card,
.path-local-proprofiles-view #region-main-box {
    display: none !important;
}

/* Quitar fondo/borde/padding de la zona central */
.path-local-proprofiles-view #page-content,
.path-local-proprofiles-view #region-main {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Fondo general blanco (como el resto de Weduko) */
.path-local-proprofiles-view #topofscroll.main-inner {
    background: #ffffff !important;
}

/* 2) Contenedor principal del perfil alineado al layout */
.path-local-proprofiles-view .proprofile-view {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

/* Cabecera profesional */
.path-local-proprofiles-view .pro-banner {
    height: 220px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 24px 20px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

/* Avatar */
.path-local-proprofiles-view .pro-avatar {
    width: 120px;
    height: 120px;
    bottom: -60px;
    left: 24px;
}

/* Título dentro del banner */
.path-local-proprofiles-view .pro-title {
    margin-left: 160px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
    font-size: 28px;
    font-weight: 700;
    color: #0a2540;
}

/* Separar los cursos del banner */
.path-local-proprofiles-view .pro-wrap {
    margin-top: 80px;
}

/* 3) Cursos: grid fijo de 3 en 3 en escritorio */
.path-local-proprofiles-view .pro-courses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Responsive: 2 columnas en tablet, 1 en móvil */
@media (max-width: 991.98px) {
    .path-local-proprofiles-view .pro-courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .path-local-proprofiles-view .pro-courses {
        grid-template-columns: 1fr;
    }
    .path-local-proprofiles-view .pro-banner {
        height: 200px;
    }
    .path-local-proprofiles-view .pro-title {
        margin-left: 120px;
        font-size: 22px;
    }
}
/* =========================================
 * PERFIL PROFESIONAL PÚBLICO – OVERRIDE DURO
 * ========================================= */

/* Ocultar cabecera estándar de Moove y migas */
body.path-local-proprofiles-view #page-header,
body.path-local-proprofiles-view .page-context-header,
body.path-local-proprofiles-view #page-navbar,
body.path-local-proprofiles-view .drawer-toggles {
    display: none !important;
}

/* Quitar “card” gris y padding central */
body.path-local-proprofiles-view #region-main-box,
body.path-local-proprofiles-view #region-main-box > .card,
body.path-local-proprofiles-view #region-main,
body.path-local-proprofiles-view #page-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Fondo blanco para el área de contenido */
body.path-local-proprofiles-view #topofscroll.main-inner {
    background: #ffffff !important;
}

/* El wrapper nuestro alineado al layout de Weduko */
body.path-local-proprofiles-view .proprofile-view {
    max-width: 1200px !important;
    margin: 30px auto 60px !important;
    padding: 0 20px !important;
}

/* Banner del profesional */
body.path-local-proprofiles-view .pro-banner {
    height: 220px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 24px 20px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

/* Avatar */
body.path-local-proprofiles-view .pro-avatar {
    position: absolute;
    bottom: -60px;
    left: 24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* Título sobre tarjetita blanca */
body.path-local-proprofiles-view .pro-title {
    margin-left: 160px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
    font-size: 28px;
    font-weight: 700;
    color: #0a2540;
}

/* Separar el bloque de cursos del banner */
body.path-local-proprofiles-view .pro-wrap {
    margin-top: 80px;
}

/* GRID de cursos: 3 columnas en escritorio */
body.path-local-proprofiles-view .pro-courses {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Cards de curso */
body.path-local-proprofiles-view .pro-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* Responsive: 2 columnas en tablet, 1 en móvil */
@media (max-width: 991.98px) {
    body.path-local-proprofiles-view .pro-courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    body.path-local-proprofiles-view .pro-courses {
        grid-template-columns: 1fr;
    }
    body.path-local-proprofiles-view .pro-banner {
        height: 200px;
    }
    body.path-local-proprofiles-view .pro-title {
        margin-left: 120px;
        font-size: 22px;
    }
}
#page {
    background-color: #FFF;
}
/* Forzar 3 columnas incluso si hay 1 curso */
.path-local-proprofiles-view .pro-courses {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
}

/* Para que la única card NO se expanda */
.path-local-proprofiles-view .pro-card {
    width: 100%;
    max-width: 360px;
    justify-self: start; /* la alinea a la izquierda */
}
.path-local-proprofiles-view .pro-card {
    justify-self: center;
}
/* ================================
 * VISTA PÚBLICA PROFESIONAL – GRID FIJO 3 COLS
 * ================================ */
body#page-local-proprofiles-view .pro-wrap .pro-courses {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin-top: 24px !important;
}

/* Asegurar que las tarjetas no rompen el grid */
body#page-local-proprofiles-view .pro-wrap .pro-courses .pro-card {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
}
.proprofile-panel {
  max-width: 1200px;
}

.pro-card {
  border-radius: 0.75rem;
}

.pro-banner {
  position: relative;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  height: 140px;
  border-radius: 0.75rem 0.75rem 0 0;
}

.pro-avatar {
  position: absolute;
  bottom: -30px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 3px solid #fff;
  object-fit: cover;
}

.pro-avatar--placeholder {
  background-color: #ddd;
}

.pro-media-fields {
  padding-top: 40px; /* para compensar el avatar superpuesto */
}
