/* =========================================================
   PERFIL DE ENTRENADOR · ESTILO RED SOCIAL
   ========================================================= */

/* BODY SOLO PARA ESTA PÁGINA */
.profile-body-light {
  margin: 0;
  background: #e5e7eb;  /* o #f5f5f5 si lo quieres más claro */
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* CONTENEDOR GENERAL */
.profile-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

/* ENLACE "VOLVER" ARRIBA */
.profile-page a.text-muted.small {
  color: #6b7280 !important;
}

.profile-page a.text-muted.small:hover {
  color: #111827 !important;
}

/* =========================================================
   HERO / CABECERA DEL PERFIL · V4 OSCURO
   ========================================================= */

.profile-cover {
  position: relative;
  border-radius: 1.5rem;
  /* Fondo principal más claro, con azul de marca */
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.90), rgba(37, 99, 235, 0.90)), url("/assets/img/banner-entrenadores-sst-pro.png");
  background: radial-gradient(circle at top left, #38bdf8 0%, #1d4ed8 30%, #0f172a 70%, #020617 100%);
  border: 1px solid #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.7);
  padding: 1.8rem 2.4rem;
  overflow: visible;
}

/* Capa de degradado suave para que no sea un negro plano */
.profile-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg,
      rgba(15, 23, 42, 0.25),
      rgba(37, 99, 235, 0.60),
      rgba(15, 23, 42, 0.25)
    );
  opacity: 0.9;
  pointer-events: none;
}

.profile-cover-overlay {
  position: relative;
  z-index: 1;
}

/* Columna izquierda: dejamos espacio para la foto */
.profile-cover-overlay .col-md-8 {
  padding-left: 8rem;
}

/* Texto del nombre y resumen en claro */
.profile-cover-overlay h1 {
  margin-bottom: 0.35rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #f9fafb;
}

.profile-cover-overlay p {
  margin-bottom: 0.75rem;
  color: #e5e7eb;
  max-width: 46rem;
  font-size: 0.96rem;
}

/* Badges arriba del nombre, estilo chip oscuro */
.badge-soft {
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.25rem 0.85rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

/* Stats (alumnos, certificados, programas) con efecto glass oscuro */
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.profile-stat {
  min-width: 150px;
  padding: 0.7rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.7);
  backdrop-filter: blur(10px);
}

.profile-stat .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.profile-stat .value {
  font-size: 1.45rem;
  font-weight: 600;
  color: #f9fafb;
}

/* Foto de perfil: mantenemos la posición actual */
.profile-avatar-container {
  position: absolute;
  top: 5rem;
  left: 2.2rem;
  z-index: 2;
}

.avatar-xxl {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #ffffff;
  background: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

/* El contenido principal ya no necesita tanto margen arriba */
.profile-main {
  margin-top: 2.2rem;
}

/* Botones de contacto en el banner */
.btn-whatsapp {
  background: #22c55e;
  border-color: #22c55e;
  color: #022c16;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.profile-link-btn {
  font-size: 0.8rem;
}

/* Todo el texto dentro del banner en claro por seguridad */
.profile-cover-overlay,
.profile-cover-overlay span,
.profile-cover-overlay small {
  color: #e5e7eb;
}



/* =========================
   FOTO DE PERFIL (AVATAR)
   ========================= */

.profile-avatar-container {
  position: absolute;
  left: 2.8rem;
  bottom: -3.6rem;
  z-index: 2;
}

.avatar-xxl {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #ffffff;
  background: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

/* Margen inferior del hero para no tapar nada con el avatar */
.profile-main {
  margin-top: 4.8rem;
}

/* =========================
   CARDS LATERALES Y CONTENIDO
   ========================= */

.card-social {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.card-social .card-body {
  padding: 1.3rem 1.4rem;
}

.card-social h2.h6 {
  font-weight: 600;
}

/* Card verde "¿Listo para una consultoría?" */
.card-social.highlight-card {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: transparent;
  color: #ecfdf3;
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.45);
}

.card-social.highlight-card p,
.card-social.highlight-card .h6,
.card-social.highlight-card .form-label {
  color: #ecfdf3;
}

/* CHIPS DE ESPECIALIDADES */
.chip-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 500;
}

/* BOTONES ICONO (EMAIL, LINKEDIN, ETC.) */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.2rem;
}

/* =========================
   NAV DE SECCIONES (TABS)
   ========================= */

.profile-nav {
  column-gap: 0.4rem;
}

.profile-nav-link {
  border-radius: 999px !important;
  font-size: 0.86rem;
  padding: 0.45rem 0.95rem;
  color: #4b5563;
  border: 1px solid transparent;
  background: transparent;
}

.profile-nav-link:hover {
  background-color: #e5e7eb;
  border-color: #e5e7eb;
  color: #111827;
}

/* Si en el futuro marcas alguna pestaña como active */
.profile-nav-link.active {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8;
  color: #f9fafb !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

/* =========================
   FORMULARIOS (BUSCADOR Y CONTACTO)
   ========================= */

.profile-body-light .form-control {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
  font-size: 0.9rem;
}

.profile-body-light .form-control::placeholder {
  color: #9ca3af;
}

.profile-body-light .form-control:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
  color: #111827;
}

/* =========================
   TABLA DE CERTIFICADOS
   ========================= */

.profile-body-light .table-dark {
  --bs-table-bg: #ffffff;
  --bs-table-color: #111827;
  --bs-table-striped-bg: #f3f4ff;
  --bs-table-striped-color: #111827;
  --bs-table-border-color: #e5e7eb;
  --bs-table-hover-bg: #e0ecff;

  border-radius: 0.9rem;
  overflow: hidden;
}

.profile-body-light .table-dark thead tr {
  background-color: #e5e7eb;
}

.profile-body-light .table-dark thead th {
  border-bottom-width: 1px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5563;
}

.profile-body-light .table-dark td,
.profile-body-light .table-dark th {
  border-color: #e5e7eb;
  font-size: 0.85rem;
}

/* Paginación debajo de la tabla */
.profile-body-light .pagination .page-link {
  border-radius: 999px;
  font-size: 0.8rem;
  color: #4b5563;
}

.profile-body-light .pagination .page-link:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.profile-body-light .pagination .page-item.active .page-link {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #f9fafb;
}

/* =========================
   IMÁGENES DE PROGRAMAS / CONSULTORÍAS
   ========================= */

.card-program-cover {
  max-height: 155px;
  object-fit: cover;
}

/* =========================
   TIPOGRAFÍA GENERAL
   ========================= */

.profile-page h1,
.profile-page h2,
.profile-page h3,
.profile-page h4,
.profile-page h5,
.profile-page h6 {
  color: #111827;
}

.profile-page p,
.profile-page li,
.profile-page span,
.profile-page label {
  color: #111827;
}

.profile-page .text-muted {
  color: #6b7280 !important;
}

/* FOOTER DEL PERFIL */
.profile-page footer {
  color: #9ca3af;
  margin-top: 2rem;
}

/* =========================================================
   AJUSTES RESPONSIVE PARA PERFIL DE ENTRENADOR
   (pantallas pequeñas)
   ========================================================= */

@media (max-width: 991.98px) {

  /* Banner un poco más compacto */
  .profile-cover {
    padding: 1.8rem 1.1rem 1.6rem;
    border-radius: 0 0 1.5rem 1.5rem;
  }

  /* Columnas a 100% ancho */
  .profile-cover-overlay .col-md-8,
  .profile-cover-overlay .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* FOTO: centrada arriba, superpuesta como en redes */
  .profile-avatar-container {
    position: absolute;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin-bottom: 0;
  }

  .avatar-xxl {
    width: 110px;
    height: 110px;
  }

  /* Texto centrado y dejando espacio para la foto arriba */
  .profile-cover-overlay .col-md-8 {
    padding-left: 0;
    padding-top: 6.2rem; /* espacio bajo la foto */
    text-align: center;
  }

  .profile-cover-overlay h1 {
    font-size: 1.5rem;
  }

  .profile-cover-overlay p {
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Badges centrados */
  .profile-cover-overlay .mb-3 {
    justify-content: center;
  }

  /* Stats centrados debajo del texto */
  .profile-stats {
    justify-content: center;
  }

  .profile-stat {
    min-width: 140px;
  }

  /* Botones de contacto debajo, centrados */
  .profile-cover-overlay .col-md-4 {
    text-align: center;
    margin-top: 1.2rem;
  }

  .profile-cover-overlay .col-md-4 .d-flex {
    justify-content: center !important;
  }

  /* El contenido de abajo sube un poco */
  .profile-main {
    margin-top: 1.8rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 575.98px) {
  .profile-cover {
    padding: 1.4rem 0.8rem 1.4rem;
  }

  .profile-stat {
    min-width: 100%;
  }
}

/* =========================================================
   WIDGET DE CERTIFICADOS
   ========================================================= */

.card-certificates {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.card-certificates h2.h6 {
  font-weight: 600;
  color: #111827;
}

.card-certificates p.text-muted {
  font-size: 0.86rem;
}

.card-certificates .form-control {
  background-color: #f9fafb;
  border-color: #d1d5db;
  border-radius: 999px 0 0 999px;
}

.card-certificates .form-control:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.card-certificates .btn-search-cert {
  border-radius: 0 999px 999px 0;
  font-weight: 500;
  padding-inline: 1.5rem;
}

.card-certificates .cert-summary {
  font-size: 0.8rem;
  color: #6b7280;
}

.card-certificates table {
  margin-top: 0.75rem;
  border-radius: 0.9rem;
  overflow: hidden;
}

.card-certificates table thead {
  background-color: #eff3ff;
}

.card-certificates table thead th {
  border-bottom-width: 1px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5563;
}

.card-certificates table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.card-certificates table tbody tr:hover {
  background-color: #e0ecff;
}

.card-certificates table td,
.card-certificates table th {
  border-color: #e5e7eb;
  font-size: 0.85rem;
}

.cert-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: #eef2ff;
  color: #1d4ed8;
  display: inline-block;
}

.cert-status {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.cert-status-ok {
  background-color: #dcfce7;
  color: #166534;
}

.cert-status-expired {
  background-color: #fee2e2;
  color: #b91c1c;
}

.btn-view-cert {
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* =========================================================
   ICONOS DE REDES (CONECTA)
   ========================================================= */

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.social-wa { color: #16a34a; }
.social-fb { color: #1877f2; }
.social-li { color: #0a66c2; }
.social-yt { color: #dc2626; }
.social-email { color: #6b7280; }

/* Al hacer hover, dejamos que el color blanco del icono tome el control */
.btn-icon.social-wa:hover,
.btn-icon.social-fb:hover,
.btn-icon.social-li:hover,
.btn-icon.social-yt:hover,
.btn-icon.social-email:hover {
  color: #ffffff;
}

/* =========================================================
   CHIPS DE ESPECIALIDADES (ya los venías usando)
   ========================================================= */

.chip-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 0.78rem;
  color: #374151;
}

/* Card program/consultoría (si no lo tienes ya) */

.card-program-cover {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

/* =========================================================
   NAV DE SECCIONES DEL PERFIL
   ========================================================= */

.profile-nav {
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-nav::-webkit-scrollbar {
  display: none;
}

.profile-nav-link {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.profile-nav-link i {
  font-size: 1rem;
}

/* Línea inferior animada */
.profile-nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #2563eb);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: all 0.2s ease;
}

/* Hover: pill suave */
.profile-nav-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.4);
  text-decoration: none;
}

.profile-nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Estado activo (se pone por clase .active) */
.profile-nav-link.active {
  background: linear-gradient(135deg, #2563eb, #16a34a);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.profile-nav-link.active i {
  color: #ffffff;
}

.profile-nav-link.active::after {
  opacity: 0; /* ya no necesitamos la línea cuando está lleno */
}

/* =======================
   Ajustes RESPONSIVE nav
   ======================= */

@media (max-width: 768px) {

  .profile-nav {
    border-radius: 18px;
    padding: 0.4rem 0.5rem;
    gap: 0.25rem;
    flex-wrap: wrap;           /* ya no forzamos una sola fila */
    justify-content: center;   /* centramos los chips */
    overflow-x: visible;       /* sin scroll horizontal raro */
  }

  .profile-nav-link {
    flex: 1 1 48%;             /* 2 botones por fila aprox. */
    justify-content: center;
    text-align: center;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    margin: 1px 0;
  }

  /* En móvil quitamos la línea animada inferior (no se ve tan bien en chips pequeños) */
  .profile-nav-link::after {
    display: none;
  }
}

/* Chips de especialidades */
.chip-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.8rem;
  color: #374151;
  gap: 0.25rem;
}

/* Botones redondos de redes sociales */
.btn-social-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  transition: all 0.18s ease;
  font-size: 1rem;
}

.btn-social-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

/* Colores por red */
.btn-social-circle.whatsapp {
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.25);
}

.btn-social-circle.facebook {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.25);
}

.btn-social-circle.linkedin {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.25);
}

.btn-social-circle.youtube {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-social-circle.website {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.25);
}

/* Card sobre el consultor */
.profile-about-card {
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Iconos circulares */
.icon-circle-sm,
.icon-circle-xs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.icon-circle-sm {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.icon-circle-xs {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
}

/* Lista de info */
.profile-about-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem 0.75rem;
    align-items: flex-start;
    padding-block: 0.35rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.profile-about-list li:last-child {
    border-bottom: none;
}

.profile-about-list .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9ca3af;
    margin-bottom: 0.05rem;
}

.profile-about-list .value {
    font-size: 0.9rem;
    color: #111827;
}

/* Bloque URL pública */
.profile-public-url {
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    border: 1px dashed rgba(37, 99, 235, 0.25);
}

/* Paletas suaves para iconos */
.bg-sky-100 {
    background-color: #e0f2fe;
}
.bg-amber-100 {
    background-color: #fef3c7;
}
.bg-emerald-100 {
    background-color: #d1fae5;
}

/* Card general */
.profile-about-card {
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
}

/* Cabecera: título + texto verificado */
.profile-about-card .card-body > .d-flex:first-child {
    margin-bottom: 1rem;
}

.profile-about-card .h6 {
    font-weight: 700;
}

.profile-about-card small.text-muted {
    font-size: 0.78rem;
    line-height: 1.3;
}

/* Filas de información */
.profile-about-list {
    margin: 0;
    padding: 0;
}

.profile-about-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 0.75rem;
    align-items: flex-start;
    padding-block: 0.35rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.profile-about-list li:last-child {
    border-bottom: none;
}

.profile-about-list .icon-circle-xs {
    margin-top: 0.1rem;
}

.profile-about-list .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #9ca3af;
    margin-bottom: 0.05rem;
}

.profile-about-list .value {
    font-size: 0.9rem;
    color: #111827;
}

/* Links dentro de los valores (correo, whatsapp) */
.profile-about-list .value a {
    text-decoration: none;
    color: #111827;
}

.profile-about-list .value a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Que el correo no rompa el ancho */
.profile-about-list .value,
.profile-public-url a {
    word-break: break-word;      /* Moderno */
    overflow-wrap: anywhere;     /* Respaldo */
}

/* Bloque de URL pública */
.profile-public-url {
    margin-top: 0.9rem;
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    border: 1px dashed rgba(37, 99, 235, 0.25);
}

.profile-public-url .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #9ca3af;
}

.profile-public-url a {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Botón copiar un poco más compacto */
.profile-public-url .btn {
    border-radius: 999px;
    padding-inline: 0.9rem;
}

.bg-sky-100 {
    background-color: #e0f2fe;
}
.bg-amber-100 {
    background-color: #fef3c7;
}
.bg-emerald-100 {
    background-color: #d1fae5;
}

/* --- SOBRE EL CONSULTOR ----------------------------------- */
.consultant-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.consultant-header-eyebrow {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
}

.consultant-verified-pill {
    font-size: .75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .25rem .7rem;
    background: rgba(22, 163, 74, .06);
    color: #15803d;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.consultant-verified-pill i {
    font-size: .9rem;
}

.consultant-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding-block: .55rem;
}

.consultant-row + .consultant-row {
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.consultant-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: radial-gradient(circle at 0 0, #e0f2fe, #eff6ff);
    color: #2563eb;
    flex-shrink: 0;
}

.consultant-label {
    font-size: .78rem;
    font-weight: 600;
    color: #4b5563;           /* gris más oscuro */
    text-transform: none;     /* sin mayúsculas forzadas */
    letter-spacing: 0;        /* sin espaciado extra */
    margin-bottom: .15rem;
}


.consultant-value {
    font-size: .87rem;
    color: #111827;
}

.consultant-url-box {
    border-radius: 16px;
    border: 1px dashed rgba(37, 99, 235, 0.4);
    background: #f9fafb;
    padding: .75rem .85rem;
    margin-top: .85rem;
}

.consultant-url-text {
    font-size: .8rem;
    color: #1d4ed8;
    word-break: break-all;
}

.consultant-url-label {
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: .3rem;
}

.consultant-url-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: .4rem;
}

.consultant-copy-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: .78rem;
    padding: .3rem .9rem;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #111827;
}

.consultant-copy-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.cp-logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #22c55e, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.cp-brand-logo {
    display: block;
    max-width: 28px;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .cp-brand-logo {
        max-width: 24px;
        max-height: 24px;
    }
}

/* Ajuste del logo en el header público del perfil */
.navbar .cp-brand-logo {
    height: 52px !important;
    width: auto !important;
    display: block;
}

/* ==== Ajuste global del logo de la barra pública ==== */
.cp-brand-logo {
    height: 52px !important;  /* tamaño estándar */
    width: auto;
    display: block;
    object-fit: contain;
}

@media (min-width: 1200px) {
    .cp-brand-logo {
        height: 52px !important;  /* un poco más grande en pantallas grandes */
    }
}

@media (max-width: 575.98px) {
    .cp-brand-logo {
        height: 52px !important;  /* un poco más pequeño en móviles */
    }
}

/* --- Fix tamaño del logo en el navbar público --- */
.cp-navbar .navbar-brand img.cp-brand-logo {
    height: 52px !important;      /* alto del logo */
    width: auto !important;       /* respeta proporción */
    max-width: 220px;             /* por si la imagen es muy larga */
    display: block;
    object-fit: contain;
}

/* por si hay alguna regla genérica para .navbar-brand img */
.navbar-brand img.cp-brand-logo {
    height: 52px !important;
    width: auto !important;
    max-width: 220px;
}

