/* =========================
   VARIABLES GLOBALES
========================= */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --bg-light: #f5f7fa;
  --card-bg: #ffffff;
  --text-dark: #1e1e1e;
  --text-light: #6c757d;
  --success: #20c997;
  --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
}

/* =========================
   CONTENEDOR GENERAL
========================= */

.profile-public-container {
  height: 100vh;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
}

/* =========================
   HEADER
========================= */

.profile-header {
  background: var(--card-bg);
  padding: 15px 20px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-title-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.back-btn-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  color: var(--text-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn-link:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateX(-2px);
}

.share-btn-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.08);
  border: none;
  color: var(--primary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.share-btn-link:hover {
  background: rgba(13, 110, 253, 0.15);
  transform: scale(1.08);
}

.share-btn-link:active {
  transform: scale(0.92);
}

.share-btn-link.copied {
  background: #20c997 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

.share-btn-link i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn-link.copied i {
  transform: rotate(360deg);
}

/* =========================
   SCROLL
========================= */

.profile-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* =========================
   TARJETA PRINCIPAL
========================= */

.profile-main-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}

.avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 15px auto;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
}

.status-indicator {
  width: 16px;
  height: 16px;
  background: var(--success);
  border-radius: 50%;
  position: absolute;
  bottom: 5px;
  right: 5px;
  border: 2px solid white;
}

.profile-full-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-dark);
}



.profile-verify {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* =========================
   BOTÓN PRINCIPAL
========================= */

.action-section {
  margin-bottom: 20px;
}

.btn-primary-fisiolink {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
  margin: 5px;
}

.btn-primary-fisiolink:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================
   ESTADÍSTICAS
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 15px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.stat-desc {
  font-size: 12px;
  color: var(--text-light);
}

/* =========================
   ACORDEÓN
========================= */

.fisiolink-accordion {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.fisiolink-accordion summary {
  list-style: none;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fisiolink-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.icon-blue {
  color: var(--primary);
}

.arrow-icon {
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.fisiolink-accordion[open] .arrow-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 16px 16px 16px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.details-section {
  margin: 5px;
}

/* =========================
   RESEÑAS (ESTILO CLARO)
   ========================= */

.patients-served-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(32, 201, 151, 0.1);
  border: 1px solid rgba(32, 201, 151, 0.25);
  color: #198754;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
  margin-bottom: 5px;
}

.review-item-light {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
  transition: background-color 0.2s ease;
}

.review-item-light:hover {
  background: #f1f3f5;
}

.review-item-light:last-child {
  margin-bottom: 0;
}

.review-header-light {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-user-light {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar-light {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #dee2e6;
  flex-shrink: 0;
}

.review-username-light {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.review-date-light {
  font-size: 12px;
  color: var(--text-light);
}

.review-text-light {
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
  margin: 0;
  white-space: pre-line;
  text-align: left;
}

.review-badge-own {
  display: inline-block;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
}

.no-reviews-light {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-light);
  font-size: 14px;
}

.form-title-light {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.textarea-light {
  width: 100%;
  box-sizing: border-box;
  min-height: 100px;
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea-light:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.counter-light {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.counter-light.error {
  color: #dc3545;
}

.actions-light {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}

.btn-light-action {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-light-action:active {
  transform: scale(0.97);
}

.btn-light-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-light-primary:hover {
  background: var(--primary-dark);
}

.btn-light-danger {
  background: #dc3545;
  color: #ffffff;
}

.btn-light-danger:hover {
  background: #bb2d3b;
}

.btn-light-secondary {
  background: #e9ecef;
  color: var(--text-dark);
}

.btn-light-secondary:hover {
  background: #dee2e6;
}

.callout-light {
  background: #f8f9fa;
  border-radius: var(--radius-md);
  border: 1px dashed #dee2e6;
  padding: 20px;
  text-align: center;
}

.callout-text-light {
  font-size: 14px;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.callout-text-light.warning {
  color: #856404;
}

/* Responsive review form & textarea styles */
.review-form,
.review-textarea-container {
  width: 100%;
  box-sizing: border-box;
}

.review-textarea,
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  resize: vertical;
}