/* ============================================================
   PRO DIGITAL PARTNERS — Public Styles
   Brand: Grupo Pro Digital | Cyan #00CFFF | Dark #0B1F3A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --pdp-cyan:      #00CFFF;
  --pdp-cyan-dark: #00a8d4;
  --pdp-cyan-glow: rgba(0,207,255,0.25);
  --pdp-dark:      #0B1F3A;
  --pdp-dark-2:    #112844;
  --pdp-dark-3:    #1a3a5c;
  --pdp-white:     #FFFFFF;
  --pdp-gray-50:   #F8FAFC;
  --pdp-gray-100:  #F1F5F9;
  --pdp-gray-200:  #E2E8F0;
  --pdp-gray-400:  #94A3B8;
  --pdp-gray-600:  #475569;
  --pdp-gray-800:  #1E293B;
  --pdp-green:     #10B981;
  --pdp-yellow:    #F59E0B;
  --pdp-red:       #EF4444;
  --pdp-sidebar-w: 260px;
  --pdp-header-h:  68px;
  --pdp-radius:    12px;
  --pdp-radius-lg: 16px;
  --pdp-shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --pdp-shadow-md: 0 4px 24px rgba(0,0,0,.1);
  --pdp-font:      'Plus Jakarta Sans', -apple-system, sans-serif;
  --pdp-transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
.pdp-app *, .pdp-auth-wrap *, .pdp-landing * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.pdp-app, .pdp-auth-wrap, .pdp-landing {
  font-family: var(--pdp-font);
  color: var(--pdp-gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── BUTTONS ── */
.pdp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--pdp-radius);
  font-family: var(--pdp-font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--pdp-transition);
  white-space: nowrap;
}
.pdp-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pdp-btn-primary {
  background: var(--pdp-cyan);
  color: var(--pdp-dark);
}
.pdp-btn-primary:hover {
  background: var(--pdp-cyan-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--pdp-cyan-glow);
}
.pdp-btn-ghost {
  background: transparent;
  color: var(--pdp-gray-600);
  border: 1.5px solid var(--pdp-gray-200);
}
.pdp-btn-ghost:hover {
  background: var(--pdp-gray-100);
  color: var(--pdp-gray-800);
}
.pdp-btn-ghost-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
}
.pdp-btn-ghost-light:hover {
  background: rgba(255,255,255,.2);
}
.pdp-btn-full { width: 100%; justify-content: center; }
.pdp-btn-xl { padding: 14px 32px; font-size: 16px; border-radius: 14px; }
.pdp-btn-glow {
  box-shadow: 0 0 32px var(--pdp-cyan-glow), 0 4px 20px rgba(0,207,255,.3);
}
.pdp-btn-glow:hover {
  box-shadow: 0 0 48px var(--pdp-cyan-glow), 0 8px 32px rgba(0,207,255,.4);
}
.pdp-btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(11,31,58,.3);
  border-top-color: var(--pdp-dark);
  border-radius: 50%;
  animation: pdp-spin .7s linear infinite;
}

/* ── SPINNER ── */
.pdp-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--pdp-gray-200);
  border-top-color: var(--pdp-cyan);
  border-radius: 50%;
  animation: pdp-spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes pdp-spin { to { transform: rotate(360deg); } }

/* =============================================
   APP LAYOUT — Dashboard fullscreen
   ============================================= */
.pdp-app {
  display: flex;
  min-height: 100vh;
  background: var(--pdp-gray-50);
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  position: relative;
}

/* ── SIDEBAR ── */
.pdp-sidebar {
  width: var(--pdp-sidebar-w);
  min-width: var(--pdp-sidebar-w);
  background: var(--pdp-dark);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 100;
  transition: transform var(--pdp-transition);
}
.pdp-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pdp-sidebar-logo span {
  font-weight: 800;
  font-size: 18px;
  color: var(--pdp-white);
  letter-spacing: -.3px;
}
.pdp-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.pdp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--pdp-transition);
}
.pdp-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.pdp-nav-item:hover {
  background: rgba(255,255,255,.07);
  color: var(--pdp-white);
}
.pdp-nav-item.active {
  background: rgba(0,207,255,.15);
  color: var(--pdp-cyan);
}
.pdp-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.pdp-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  margin-bottom: 10px;
}
.pdp-avatar {
  width: 38px; height: 38px;
  background: var(--pdp-cyan);
  color: var(--pdp-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.pdp-user-name {
  color: var(--pdp-white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.pdp-user-role {
  color: rgba(255,255,255,.45);
  font-size: 11px;
}
.pdp-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--pdp-transition);
  font-family: var(--pdp-font);
}
.pdp-logout-btn svg { width: 15px; height: 15px; }
.pdp-logout-btn:hover {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.3);
  color: #FCA5A5;
}

/* ── MAIN ── */
.pdp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0; /* prevent overflow */
  overflow-x: hidden;
}

/* ── HEADER ── */
.pdp-header {
  height: var(--pdp-header-h);
  background: var(--pdp-white);
  border-bottom: 1px solid var(--pdp-gray-200);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.pdp-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--pdp-gray-600);
}
.pdp-menu-toggle svg { width: 22px; height: 22px; }
.pdp-header-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--pdp-gray-800);
  flex: 1;
}
.pdp-header-actions { display: flex; gap: 10px; }

/* ── CONTENT ── */
.pdp-content { padding: 28px; flex: 1; }

/* ── SECTIONS ── */
.pdp-section { display: none; }
.pdp-section.active { display: block; animation: pdp-fade-in .2s ease; }
@keyframes pdp-fade-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

.pdp-section-header { margin-bottom: 28px; }
.pdp-section-header h1 { font-size: 24px; font-weight: 800; color: var(--pdp-gray-800); margin-bottom: 4px; }
.pdp-section-header p  { color: var(--pdp-gray-400); font-size: 15px; }

/* ── METRICS GRID ── */
.pdp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.pdp-metric-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 24px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  transition: transform var(--pdp-transition), box-shadow var(--pdp-transition);
}
.pdp-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pdp-shadow-md);
}
.pdp-metric-card.pdp-loading-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}
.pdp-metric-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.pdp-metric-icon.cyan  { background: rgba(0,207,255,.12); }
.pdp-metric-icon.green { background: rgba(16,185,129,.12); }
.pdp-metric-icon.yellow{ background: rgba(245,158,11,.12); }
.pdp-metric-icon.dark  { background: rgba(11,31,58,.08); }

.pdp-metric-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--pdp-gray-800);
  line-height: 1;
  margin-bottom: 6px;
}
.pdp-metric-label { font-size: 13px; color: var(--pdp-gray-400); font-weight: 500; }

/* ── CHART ── */
.pdp-chart-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 24px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
}
.pdp-chart-header { margin-bottom: 20px; }
.pdp-chart-header h3 { font-size: 16px; font-weight: 700; color: var(--pdp-gray-800); }
.pdp-chart-wrap { position: relative; }

/* ── FILTER BAR ── */
.pdp-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pdp-select {
  padding: 9px 14px;
  border: 1.5px solid var(--pdp-gray-200);
  border-radius: var(--pdp-radius);
  font-family: var(--pdp-font);
  font-size: 14px;
  color: var(--pdp-gray-800);
  background: var(--pdp-white);
  cursor: pointer;
  transition: border-color var(--pdp-transition);
}
.pdp-select:focus {
  outline: none;
  border-color: var(--pdp-cyan);
}

/* ── TABLE ── */
.pdp-table-wrap {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  overflow: hidden;
}
.pdp-table {
  width: 100%;
  border-collapse: collapse;
}
.pdp-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--pdp-gray-400);
  border-bottom: 1px solid var(--pdp-gray-100);
  background: var(--pdp-gray-50);
}
.pdp-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--pdp-gray-100);
  vertical-align: middle;
}
.pdp-table tr:last-child td { border-bottom: none; }
.pdp-table tr:hover td { background: var(--pdp-gray-50); }

/* ── BADGES ── */
.pdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.pdp-badge-pendiente  { background: rgba(245,158,11,.1);  color: #D97706; }
.pdp-badge-contactado { background: rgba(0,207,255,.1);   color: var(--pdp-cyan-dark); }
.pdp-badge-cerrado    { background: rgba(16,185,129,.1);  color: #059669; }
.pdp-badge-rechazado  { background: rgba(239,68,68,.1);   color: #DC2626; }

/* ── COMMISSIONS ── */
.pdp-commission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pdp-commission-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 20px 18px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  text-align: center;
  min-width: 0;
  overflow: hidden;
}
.pdp-commission-card.featured {
  background: var(--pdp-dark);
  color: var(--pdp-white);
}
.pdp-commission-amount {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 800;
  margin: 6px 0;
  word-break: break-all;
  line-height: 1.2;
}
.pdp-commission-card.featured .pdp-commission-amount { color: var(--pdp-cyan); }
.pdp-commission-label { font-size: 13px; color: var(--pdp-gray-400); font-weight: 500; }
.pdp-commission-card.featured .pdp-commission-label { color: rgba(255,255,255,.5); }
.pdp-commission-icon { font-size: 28px; margin-bottom: 8px; }
.pdp-commission-notice {
  margin-top: 24px;
  background: rgba(0,207,255,.06);
  border: 1px solid rgba(0,207,255,.2);
  border-radius: var(--pdp-radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--pdp-gray-600);
}

/* ── RESOURCES GRID ── */
.pdp-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.pdp-resource-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  overflow: hidden;
  transition: transform var(--pdp-transition), box-shadow var(--pdp-transition);
}
.pdp-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pdp-shadow-md);
}
.pdp-resource-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--pdp-gray-100);
  position: relative;
  overflow: hidden;
}
.pdp-resource-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pdp-resource-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pdp-dark);
  height: 100%;
}
.pdp-resource-play {
  width: 52px; height: 52px;
  background: var(--pdp-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pdp-dark);
  font-size: 20px;
}
.pdp-resource-body { padding: 16px; }
.pdp-resource-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pdp-cyan-dark);
  margin-bottom: 6px;
}
.pdp-resource-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--pdp-gray-800); }
.pdp-resource-desc  { font-size: 13px; color: var(--pdp-gray-400); margin-bottom: 14px; line-height: 1.5; }
.pdp-resource-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pdp-resource-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--pdp-font);
  transition: all var(--pdp-transition);
  text-decoration: none;
}
.pdp-resource-btn-dl  { background: var(--pdp-cyan); color: var(--pdp-dark); }
.pdp-resource-btn-dl:hover { background: var(--pdp-cyan-dark); }
.pdp-resource-btn-copy { background: var(--pdp-gray-100); color: var(--pdp-gray-800); }
.pdp-resource-btn-copy:hover { background: var(--pdp-gray-200); }
.pdp-resource-btn-wa  { background: #25D366; color: #fff; }
.pdp-resource-btn-wa:hover { background: #128C7E; }
.pdp-resource-btn.copied { background: var(--pdp-green) !important; color: #fff !important; }

/* ── EMPTY STATE ── */
.pdp-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--pdp-gray-400);
}
.pdp-empty-state .pdp-spinner { margin: 0 auto 16px; }
.pdp-empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.pdp-empty-state h3 { font-size: 16px; font-weight: 600; color: var(--pdp-gray-600); margin-bottom: 6px; }
.pdp-empty-state p  { font-size: 14px; }

/* ── MODAL ── */
.pdp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pdp-modal-overlay.active { display: flex; animation: pdp-fade-in .15s ease; }
.pdp-modal {
  background: var(--pdp-white);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 64px rgba(11,31,58,.3);
  animation: pdp-slide-up .2s ease;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes pdp-slide-up { from { transform: translateY(20px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.pdp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
  margin-bottom: 20px;
}
.pdp-modal-header h2 { font-size: 20px; font-weight: 800; color: var(--pdp-gray-800); }
.pdp-modal-close {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: none;
  background: var(--pdp-gray-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pdp-gray-600);
  transition: background var(--pdp-transition);
}
.pdp-modal-close:hover { background: var(--pdp-gray-200); }
.pdp-modal-close svg { width: 18px; height: 18px; }

/* ── FORM ── */
.pdp-form { padding: 0 24px 24px; }
.pdp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pdp-form-group { margin-bottom: 16px; }
.pdp-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pdp-gray-800);
  margin-bottom: 6px;
}
.pdp-form-group input,
.pdp-form-group select,
.pdp-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--pdp-gray-200);
  border-radius: var(--pdp-radius);
  font-family: var(--pdp-font);
  font-size: 14px;
  color: var(--pdp-gray-800);
  background: var(--pdp-white);
  transition: border-color var(--pdp-transition), box-shadow var(--pdp-transition);
}
.pdp-form-group input:focus,
.pdp-form-group select:focus,
.pdp-form-group textarea:focus {
  outline: none;
  border-color: var(--pdp-cyan);
  box-shadow: 0 0 0 3px var(--pdp-cyan-glow);
}
.pdp-form-group textarea { resize: vertical; min-height: 80px; }
.pdp-input-wrap { position: relative; }
.pdp-input-wrap input { padding-right: 44px; }
.pdp-toggle-pass {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pdp-gray-400);
  padding: 4px;
}
.pdp-toggle-pass svg { width: 18px; height: 18px; }
.pdp-form-alert {
  padding: 10px 14px;
  border-radius: var(--pdp-radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  display: none;
}
.pdp-form-alert.success { background: rgba(16,185,129,.1); color: #059669; border: 1px solid rgba(16,185,129,.2); }
.pdp-form-alert.error   { background: rgba(239,68,68,.08); color: #DC2626; border: 1px solid rgba(239,68,68,.2); }
.pdp-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.pdp-password-strength {
  height: 4px;
  border-radius: 4px;
  background: var(--pdp-gray-100);
  margin-top: 6px;
  overflow: hidden;
}
.pdp-password-strength::after {
  content: '';
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: all .3s ease;
  width: var(--strength, 0%);
  background: var(--strength-color, var(--pdp-gray-200));
}

/* =============================================
   AUTH (LOGIN / REGISTER)
   ============================================= */
.pdp-auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}
.pdp-auth-left {
  background: var(--pdp-dark);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}
.pdp-auth-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,207,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.pdp-auth-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdp-auth-brand h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--pdp-white);
  margin: 0;
}
.pdp-auth-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
.pdp-auth-tagline h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--pdp-white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.pdp-auth-tagline > p { color: rgba(255,255,255,.6); font-size: 15px; margin-bottom: 20px; }
.pdp-auth-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-auth-benefits li {
  color: rgba(255,255,255,.75);
  font-size: 14px;
}
.pdp-auth-right {
  background: var(--pdp-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  min-height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.pdp-auth-card {
  background: var(--pdp-white);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--pdp-shadow-md);
  border: 1px solid var(--pdp-gray-100);
}
.pdp-auth-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--pdp-gray-800);
  margin-bottom: 4px;
}
.pdp-auth-sub { color: var(--pdp-gray-400); font-size: 13px; margin-bottom: 20px; }
.pdp-auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--pdp-gray-400);
  margin-top: 20px;
}
.pdp-auth-switch a { color: var(--pdp-cyan-dark); font-weight: 600; text-decoration: none; }
.pdp-auth-switch a:hover { text-decoration: underline; }
.pdp-redirect-notice { text-align:center; padding:40px; color: var(--pdp-gray-400); }

/* =============================================
   LANDING
   ============================================= */
.pdp-landing {
  --pdp-font: 'Plus Jakarta Sans', sans-serif;
}
.pdpl-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* HERO */
.pdpl-hero {
  background: var(--pdp-dark);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pdpl-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% -10%, rgba(0,207,255,.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,207,255,.07) 0%, transparent 60%);
  pointer-events: none;
}
.pdpl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,207,255,.1);
  border: 1px solid rgba(0,207,255,.25);
  color: var(--pdp-cyan);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}
.pdpl-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--pdp-white);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.pdpl-highlight { color: var(--pdp-cyan); }
.pdpl-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.pdpl-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.pdpl-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.pdpl-stat { padding: 0 28px; text-align: center; }
.pdpl-stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--pdp-white); }
.pdpl-stat span { font-size: 13px; color: rgba(255,255,255,.5); }
.pdpl-stat-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.12);
}

/* HOW IT WORKS */
.pdpl-section {
  padding: 80px 0;
}
.pdpl-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pdp-cyan-dark);
  margin-bottom: 12px;
}
.pdpl-section h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--pdp-gray-800);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.pdpl-section-sub { font-size: 16px; color: var(--pdp-gray-400); margin-bottom: 48px; }
.pdpl-how { background: var(--pdp-gray-50); text-align: center; }
.pdpl-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.pdpl-step {
  background: var(--pdp-white);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  transition: transform var(--pdp-transition);
}
.pdpl-step:hover { transform: translateY(-4px); }
.pdpl-step-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--pdp-gray-100);
  line-height: 1;
  margin-bottom: 8px;
}
.pdpl-step-icon { font-size: 32px; margin-bottom: 14px; }
.pdpl-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--pdp-gray-800); }
.pdpl-step p  { font-size: 14px; color: var(--pdp-gray-400); line-height: 1.6; }
.pdpl-step-arrow {
  font-size: 24px;
  color: var(--pdp-gray-200);
  padding: 0 8px;
  flex-shrink: 0;
}

/* BENEFITS */
.pdpl-benefits { background: var(--pdp-white); }
.pdpl-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.pdpl-benefit-card {
  background: var(--pdp-gray-50);
  border-radius: var(--pdp-radius-lg);
  padding: 28px;
  border: 1px solid var(--pdp-gray-100);
  transition: all var(--pdp-transition);
}
.pdpl-benefit-card:hover {
  background: var(--pdp-white);
  box-shadow: var(--pdp-shadow-md);
  transform: translateY(-2px);
}
.pdpl-benefit-icon { font-size: 32px; margin-bottom: 14px; }
.pdpl-benefit-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--pdp-gray-800); }
.pdpl-benefit-card p  { font-size: 14px; color: var(--pdp-gray-400); line-height: 1.6; }

/* TESTIMONIALS */
.pdpl-testimonials { background: var(--pdp-dark); text-align: center; }
.pdpl-testimonials h2 { color: var(--pdp-white); }
.pdpl-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.pdpl-testimonial {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 28px;
  text-align: left;
  transition: background var(--pdp-transition);
}
.pdpl-testimonial:hover { background: rgba(255,255,255,.08); }
.pdpl-stars { color: var(--pdp-cyan); font-size: 16px; margin-bottom: 14px; }
.pdpl-testimonial p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.pdpl-testimonial-author { display: flex; align-items: center; gap: 12px; }
.pdpl-t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pdp-cyan);
  color: var(--pdp-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.pdpl-testimonial-author strong { display: block; color: var(--pdp-white); font-size: 14px; }
.pdpl-testimonial-author span   { font-size: 12px; color: rgba(255,255,255,.4); }

/* CTA FINAL */
.pdpl-cta-final {
  background: linear-gradient(135deg, var(--pdp-dark) 0%, var(--pdp-dark-3) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pdpl-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0,207,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.pdpl-cta-final h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--pdp-white);
  margin-bottom: 12px;
}
.pdpl-cta-final p {
  color: rgba(255,255,255,.6);
  font-size: 17px;
  margin-bottom: 36px;
}
.pdpl-cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  margin-bottom: 0 !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  /* On mobile, sidebar goes back to fixed/overlay */
  .pdp-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    height: 100vh;
    z-index: 200;
  }
  .pdp-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(11,31,58,.4);
  }
  .pdp-main { margin-left: 0; }
  .pdp-menu-toggle { display: flex; }
  .pdp-content { padding: 20px 16px; }
  .pdp-metrics-grid { grid-template-columns: 1fr 1fr !important; }
  .pdp-form-row { grid-template-columns: 1fr; }

  .pdp-auth-wrap { grid-template-columns: 1fr; }
  .pdp-auth-left { display: none; }
  .pdp-auth-right { padding: 24px 16px; min-height: auto; }
  .pdp-auth-card { padding: 28px 20px; max-width: 100%; }
  .pdp-auth-left.pdp-auth-left { display: none !important; }

  .pdpl-steps { flex-direction: column; align-items: center; }
  .pdpl-step-arrow { transform: rotate(90deg); }

  .pdp-table-wrap { overflow-x: auto; }
  .pdp-table th:nth-child(n+5),
  .pdp-table td:nth-child(n+5) { display: none; }
}
@media (max-width: 480px) {
  .pdp-metrics-grid { grid-template-columns: 1fr 1fr !important; }
  .pdp-resources-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   FULLWIDTH AUTH (register, login, landing)
   ============================================= */

/* The PHP class PDP_Template handles theme-level fullwidth via body class.
   Here we just ensure our own wrappers fill their parent correctly. */
.pdp-auth-wrap,
.pdp-landing {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ── FILE DROP ── */
.pdp-file-drop {
  position: relative;
  border: 2px dashed var(--pdp-gray-200);
  border-radius: var(--pdp-radius);
  background: var(--pdp-gray-50);
  transition: border-color var(--pdp-transition), background var(--pdp-transition);
  cursor: pointer;
}
.pdp-file-drop:hover {
  border-color: var(--pdp-cyan);
  background: rgba(0,207,255,.03);
}
.pdp-file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  border: none !important;
  padding: 0 !important;
}
.pdp-file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 20px;
  pointer-events: none;
  text-align: center;
}
.pdp-file-drop-inner svg {
  width: 32px; height: 32px;
  color: var(--pdp-gray-400);
  margin-bottom: 4px;
}
.pdp-file-drop-inner span {
  font-size: 14px;
  font-weight: 500;
  color: var(--pdp-gray-600);
}
.pdp-file-drop-inner small {
  font-size: 12px;
  color: var(--pdp-gray-400);
}

/* ── FIELD HINT ── */
.pdp-field-hint {
  display: block;
  font-size: 12px;
  color: var(--pdp-gray-400);
  margin-top: 5px;
  line-height: 1.4;
}

/* ── PASS MATCH ── */
.pdp-pass-match {
  margin-top: 5px;
  min-height: 18px;
}

/* ── PENDING SUCCESS STATE ── */
.pdp-pending-card {
  text-align: center;
  padding: 48px 40px;
}
.pdp-pending-icon {
  margin: 0 auto 20px;
  width: 64px; height: 64px;
}
.pdp-pending-icon svg { width: 64px; height: 64px; }
.pdp-pending-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--pdp-gray-800);
  margin-bottom: 10px;
}
.pdp-pending-msg {
  font-size: 15px;
  color: var(--pdp-gray-600);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.pdp-pending-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}
.pdp-pending-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pdp-pending-step span {
  font-size: 11px;
  font-weight: 600;
  color: var(--pdp-gray-400);
  max-width: 80px;
  text-align: center;
}
.pdp-pending-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pdp-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--pdp-gray-400);
  background: var(--pdp-white);
}
.pdp-pending-step-num.active {
  border-color: var(--pdp-cyan);
  background: rgba(0,207,255,.1);
  color: var(--pdp-cyan-dark);
}
.pdp-pending-step-line {
  flex: 1;
  height: 2px;
  background: var(--pdp-gray-200);
  min-width: 40px;
  max-width: 60px;
  margin-bottom: 18px;
}
.pdp-pending-note {
  font-size: 12px;
  color: var(--pdp-gray-400);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
  border-top: 1px solid var(--pdp-gray-100);
  padding-top: 16px;
}

/* =============================================
   LANDING — MOBILE FIXES
   ============================================= */
@media (max-width: 768px) {

  /* Benefits: 2 columns on mobile */
  .pdpl-benefits-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .pdpl-benefit-card {
    padding: 18px 14px;
  }
  .pdpl-benefit-icon { font-size: 24px; margin-bottom: 8px; }
  .pdpl-benefit-card h3 { font-size: 13px; }
  .pdpl-benefit-card p  { font-size: 12px; }

  /* All landing text centered on mobile */
  .pdpl-hero,
  .pdpl-how,
  .pdpl-benefits,
  .pdpl-testimonials,
  .pdpl-cta-final {
    text-align: center;
  }
  .pdpl-section-label { display: block; text-align: center; }
  .pdpl-section h2    { text-align: center; }
  .pdpl-section-sub   { text-align: center; }
  .pdpl-testimonial   { text-align: left; } /* testimonials stay left-aligned */

  /* Steps stack vertically */
  .pdpl-steps { flex-direction: column; align-items: center; gap: 8px; }
  .pdpl-step  { max-width: 100%; width: 100%; }
  .pdpl-step-arrow { transform: rotate(90deg); font-size: 18px; color: var(--pdp-gray-300); }

  /* CTA buttons full width on mobile */
  .pdpl-hero-cta { flex-direction: column; align-items: center; }
  .pdpl-hero-cta .pdp-btn { width: 100%; justify-content: center; max-width: 340px; }

  /* Stats wrap */
  .pdpl-hero-stats { gap: 0; }
  .pdpl-stat { padding: 0 16px; }

  /* Auth pages on mobile */
  .pdp-auth-wrap,
  .pdp-landing {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .pdpl-benefits-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .pdpl-hero-title { font-size: 26px; }
  .pdpl-hero-sub   { font-size: 15px; }
}

/* =============================================
   ADMIN PANEL (Frontend) — Specific styles
   ============================================= */

/* Admin sidebar accent color (amber) */
.pdp-admin-sidebar .pdp-nav-item.active {
  background: rgba(245,158,11,.15);
  color: #F59E0B;
}
.pdp-admin-sidebar .pdp-nav-item:hover {
  background: rgba(255,255,255,.07);
  color: var(--pdp-white);
}

/* Nav badge for pending notifications */
.pdp-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #EF4444;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
}

/* ── POSTULATION CARDS ── */
.pdp-postul-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 20px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  margin-bottom: 14px;
  transition: transform var(--pdp-transition);
}
.pdp-postul-card:hover { transform: translateY(-1px); }
.pdp-postul-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pdp-postul-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--pdp-gray-400);
  margin-bottom: 14px;
}
.pdp-postul-info a { color: var(--pdp-cyan-dark); text-decoration: none; }
.pdp-postul-actions {
  display: flex;
  gap: 10px;
}
.pdp-postul-actions .pdp-btn {
  font-size: 13px;
  padding: 9px 16px;
}

/* ── LEAD CARDS (Admin) ── */
.pdp-lead-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 20px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  margin-bottom: 14px;
}
.pdp-lead-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pdp-lead-negocio { font-weight: 700; font-size: 15px; color: var(--pdp-gray-800); margin-bottom: 3px; }
.pdp-lead-cliente { font-size: 13px; color: var(--pdp-gray-400); }
.pdp-lead-cliente a { color: var(--pdp-cyan-dark); text-decoration: none; }
.pdp-lead-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--pdp-gray-400);
  margin-bottom: 12px;
}
.pdp-lead-card-meta span {
  background: var(--pdp-gray-50);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--pdp-gray-100);
}

/* ── COMMISSION CARDS ── */
.pdp-commission-promotor-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 0;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  margin-bottom: 20px;
  overflow: hidden;
}
.pdp-commission-promotor-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, var(--pdp-dark) 0%, var(--pdp-dark-2) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pdp-commission-promotor-header > div:not([style*="margin-left"]) {
  flex: 1;
}
.pdp-commission-promotor-header strong { color: var(--pdp-white); }
.pdp-commission-promotor-header small  { color: rgba(255,255,255,.5); }
.pdp-commission-leads-list { padding: 8px 0; }
.pdp-commission-lead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--pdp-gray-100);
  font-size: 14px;
}
.pdp-commission-lead-row:last-child { border-bottom: none; }
.pdp-commission-lead-row strong { color: var(--pdp-gray-800); }

/* ── ADMIN LOGIN PAGE ── */
.pdp-admin-login-wrap .pdp-auth-left { background: linear-gradient(160deg, #0B1F3A 0%, #1a3a5c 100%); }
.pdp-admin-login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}
.pdp-admin-login-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.pdp-admin-feature-icon { font-size: 22px; flex-shrink: 0; }
.pdp-admin-login-feature strong {
  display: block;
  color: var(--pdp-white);
  font-size: 14px;
  font-weight: 600;
}
.pdp-admin-login-feature small {
  color: rgba(255,255,255,.45);
  font-size: 12px;
}
.pdp-admin-login-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
}
.pdp-admin-login-icon svg { width: 64px; height: 64px; }

/* ── COMISIÓN SECTION TOGGLE ── */
#pdpComisionSection {
  border-top: 1px solid var(--pdp-gray-100);
  padding-top: 16px;
  margin-top: 4px;
}

/* =============================================
   PANEL FULLWIDTH FIX — additional selectors
   ============================================= */
body.pdp-fullwidth-page .pdp-app {
  /* Ensure no max-width from theme bleeds in */
  max-width: 100vw !important;
}
/* Some themes (like the one in the screenshot) wrap in a .container */
body.pdp-fullwidth-page > #page .container,
body.pdp-fullwidth-page > #page .site-content,
body.pdp-fullwidth-page > #page #content > .container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* =============================================
   2-COLUMN METRICS GRID (mobile & dashboard)
   ============================================= */
/* Force 2 columns on mobile for metric cards */
@media (max-width: 768px) {
  .pdp-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .pdp-metric-card {
    padding: 18px 14px;
  }
  .pdp-metric-value { font-size: 24px; }
  .pdp-metric-label { font-size: 11px; }
  .pdp-metric-icon  { width: 34px; height: 34px; font-size: 16px; margin-bottom: 10px; }
}

/* =============================================
   COMMISSIONS — 2-col top row
   ============================================= */
.pdp-commission-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}
.pdp-commission-grid-2col .pdp-commission-card {
  margin: 0;
}
/* "Ya cobrado" card full width below */
.pdp-commission-grid-2col + .pdp-commission-card {
  margin-top: 14px;
}

/* Commission detail card */
.pdp-comm-detail-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 20px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  margin-top: 20px;
}
.pdp-comm-detail-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pdp-gray-800);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pdp-gray-100);
}
.pdp-comm-lead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pdp-gray-100);
  font-size: 14px;
}
.pdp-comm-lead-row:last-child { border-bottom: none; }
.pdp-comm-service {
  display: inline-block;
  font-size: 11px;
  color: var(--pdp-gray-400);
  margin-top: 2px;
}

/* Paid/unpaid badges */
.pdp-paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16,185,129,.1);
  color: #059669;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.pdp-unpaid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,158,11,.1);
  color: #D97706;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

/* Payment info card */
.pdp-payment-info-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 20px;
  box-shadow: var(--pdp-shadow);
  border: 1.5px solid var(--pdp-gray-200);
  margin-top: 16px;
}
.pdp-payment-info-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pdp-gray-800);
  margin-bottom: 6px;
}
.pdp-payment-info-card p {
  font-size: 13px;
  color: var(--pdp-gray-400);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* =============================================
   BADGE WITH DOT (estado)
   ============================================= */
.pdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* =============================================
   RESOURCES — 2-col, proper image aspect ratio
   ============================================= */
.pdp-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
/* Proper thumb for portrait and square images */
.pdp-resource-thumb {
  width: 100%;
  height: 160px;          /* fixed height, no blowup */
  background: var(--pdp-gray-100);
  position: relative;
  overflow: hidden;
  border-radius: var(--pdp-radius) var(--pdp-radius) 0 0;
}
.pdp-resource-thumb-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-resource-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* covers the fixed area cleanly */
  object-position: top;    /* shows top of portrait images */
  display: block;
}
/* Override old rule */
.pdp-resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 768px) {
  .pdp-resources-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pdp-resource-thumb { height: 120px; }
  .pdp-resource-body  { padding: 10px; }
  .pdp-resource-title { font-size: 13px; }
  .pdp-resource-desc  { display: none; } /* clean on mobile */
  .pdp-resource-actions { gap: 5px; }
  .pdp-resource-btn { font-size: 11px; padding: 5px 9px; }
}

/* =============================================
   TERMS & CONDITIONS CHECKBOX
   ============================================= */
.pdp-terms-check {
  margin-bottom: 18px;
}
.pdp-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--pdp-gray-600);
  line-height: 1.5;
}
.pdp-terms-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  accent-color: var(--pdp-cyan);
  cursor: pointer;
  border-radius: 4px;
}
.pdp-terms-label a {
  color: var(--pdp-cyan-dark);
  font-weight: 600;
  text-decoration: none;
}
.pdp-terms-label a:hover { text-decoration: underline; }

/* =============================================
   ADMIN PANEL — 2-col metrics mobile fix
   ============================================= */
#pdp-admin-app .pdp-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
@media (max-width: 768px) {
  #pdp-admin-app .pdp-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .pdp-commission-grid-2col {
    grid-template-columns: 1fr 1fr;
  }
  .pdp-comm-lead-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* =============================================
   AGGRESSIVE HEADER/NAV HIDE for plugin pages
   Works with Elementor, Hello, Astra, GeneratePress
   ============================================= */
body.pdp-fullwidth-page .site-header,
body.pdp-fullwidth-page #site-header,
body.pdp-fullwidth-page header.site-header,
body.pdp-fullwidth-page #masthead,
body.pdp-fullwidth-page .main-navigation,
body.pdp-fullwidth-page #main-navigation,
body.pdp-fullwidth-page nav.main-navigation,
body.pdp-fullwidth-page .ast-main-header-wrap,
body.pdp-fullwidth-page #ast-main-header,
body.pdp-fullwidth-page .elementor-location-header,
body.pdp-fullwidth-page header.elementor-location-header,
body.pdp-fullwidth-page #header,
body.pdp-fullwidth-page .ocean-top-bar,
body.pdp-fullwidth-page .site-branding,
body.pdp-fullwidth-page .navigation-top,
body.pdp-fullwidth-page .et_header_style_left,
body.pdp-fullwidth-page #top-header,
body.pdp-fullwidth-page .top-bar,
body.pdp-fullwidth-page .header-widget-region,
body.pdp-fullwidth-page .site-top-bar,
body.pdp-fullwidth-page .wp-custom-header,
body.pdp-fullwidth-page .hfeed > header,
body.pdp-fullwidth-page body > header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
/* Also hide the WP admin bar when accessing panel pages */
body.pdp-fullwidth-page #wpadminbar {
  display: none !important;
}
body.pdp-fullwidth-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Remove Elementor canvas gap */
body.pdp-fullwidth-page .e-page-transition,
body.pdp-fullwidth-page .elementor-page-title {
  display: none !important;
}

/* =============================================
   ADMIN ALT LOGIN LINK
   ============================================= */
.pdp-admin-alt-login {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pdp-gray-100);
}
.pdp-pin-input-wrap input {
  font-size: 28px !important;
  letter-spacing: 8px !important;
  text-align: center !important;
}

/* =============================================
   REGISTER — fix layout (left panel centered,
   form not pushed down)
   ============================================= */
.pdp-auth-brand {
  margin-bottom: 0;
}
.pdp-auth-tagline {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pdp-auth-left {
  gap: 0;
}
.pdp-auth-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.pdp-auth-benefits li {
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

/* =============================================
   SIDEBAR — logout always visible on mobile
   ============================================= */
.pdp-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;  /* never compress */
  background: var(--pdp-dark); /* ensure it has background */
}
/* On mobile sidebar is fixed height 100vh, make footer sticky at bottom */
@media (max-width: 768px) {
  .pdp-sidebar {
    display: flex;
    flex-direction: column;
  }
  .pdp-nav {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
  .pdp-sidebar-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
  }
}

/* =============================================
   HEADER — hide label on small screens
   ============================================= */
@media (max-width: 480px) {
  .pdp-btn-label { display: none; }
  .pdp-header-actions .pdp-btn { padding: 8px 12px; }
}

/* =============================================
   LEADS — Desktop table + Mobile cards
   ============================================= */
.pdp-leads-mobile { display: none; }
.pdp-leads-desktop { display: block; }

@media (max-width: 768px) {
  .pdp-leads-desktop { display: none; }
  .pdp-leads-mobile  { display: block; }
}

.pdp-lead-mobile-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 16px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  margin-bottom: 12px;
}
.pdp-lead-mobile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pdp-lead-mobile-negocio {
  font-weight: 700;
  font-size: 15px;
  color: var(--pdp-gray-800);
  margin-bottom: 2px;
}
.pdp-lead-mobile-cliente {
  font-size: 13px;
  color: var(--pdp-gray-400);
}
.pdp-lead-mobile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}
.pdp-lead-mobile-meta span {
  background: var(--pdp-gray-50);
  border: 1px solid var(--pdp-gray-100);
  border-radius: 20px;
  padding: 3px 9px;
  color: var(--pdp-gray-600);
}

/* =============================================
   RECENT LEADS (replaces chart on dashboard)
   ============================================= */
.pdp-recent-lead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pdp-gray-100);
}
.pdp-recent-lead-row:last-child { border-bottom: none; }
.pdp-recent-lead-info {
  min-width: 0;
  flex: 1;
}
.pdp-recent-lead-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--pdp-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdp-recent-lead-info span {
  font-size: 12px;
  color: var(--pdp-gray-400);
}
@media (max-width: 480px) {
  .pdp-recent-lead-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* =============================================
   COMMISSION INFO BOX (dashboard)
   ============================================= */
.pdp-commission-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(0,207,255,.05);
  border: 1px solid rgba(0,207,255,.15);
  border-radius: var(--pdp-radius-lg);
  padding: 16px 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.pdp-commission-info-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.pdp-commission-info-box strong { display: block; font-size: 14px; font-weight: 700; color: var(--pdp-gray-800); margin-bottom: 4px; }
.pdp-commission-info-box p { font-size: 13px; color: var(--pdp-gray-600); line-height: 1.6; margin: 0; }

/* =============================================
   PROFILE TAB
   ============================================= */
.pdp-profile-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 28px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.pdp-profile-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.pdp-profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pdp-cyan);
  display: block;
}
.pdp-profile-photo-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--pdp-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pdp-dark);
  border: 2px solid var(--pdp-white);
  transition: background var(--pdp-transition);
}
.pdp-profile-photo-edit:hover { background: var(--pdp-cyan-dark); }
.pdp-profile-photo-edit svg { width: 13px; height: 13px; }
.pdp-profile-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--pdp-gray-800);
  margin-bottom: 8px;
}
.pdp-profile-status { margin-top: 4px; }
.pdp-profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pdp-profile-field {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius);
  padding: 16px 20px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
}
.pdp-profile-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--pdp-gray-400);
  margin-bottom: 6px;
}
.pdp-profile-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--pdp-gray-800);
  word-break: break-all;
}
.pdp-profile-alert {
  padding: 10px 14px;
  border-radius: var(--pdp-radius);
  font-size: 13px;
}
.pdp-profile-alert.success { background: rgba(16,185,129,.1); color: #059669; border: 1px solid rgba(16,185,129,.2); }
.pdp-profile-alert.error   { background: rgba(239,68,68,.08); color: #DC2626; }

/* Avatar with photo */
.pdp-avatar-photo {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  flex-shrink: 0;
}

/* =============================================
   SIDEBAR LOGO — two lines
   ============================================= */
.pdp-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 768px) {
  .pdp-profile-card { flex-direction: column; text-align: center; }
  .pdp-profile-details-grid { grid-template-columns: 1fr; }
}

/* =============================================
   RESOURCE CARD — clickable + modal
   ============================================= */
.pdp-resource-card {
  cursor: pointer;
  transition: transform var(--pdp-transition), box-shadow var(--pdp-transition);
}
.pdp-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pdp-shadow-md);
}
.pdp-resource-actions .pdp-resource-btn,
.pdp-resource-actions a {
  position: relative;
  z-index: 2;
}

/* Resource viewer modal */
.pdp-resource-modal {
  max-width: 740px !important;
  width: 100% !important;
}
.pdp-resource-modal-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
}
.pdp-resource-modal-video iframe,
.pdp-resource-modal-video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: 10px;
}

/* =============================================
   COMMISSION CARDS — same size as dashboard metrics
   ============================================= */
.pdp-commission-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pdp-commission-card {
  background: var(--pdp-white);
  border-radius: var(--pdp-radius-lg);
  padding: 20px 16px;
  box-shadow: var(--pdp-shadow);
  border: 1px solid var(--pdp-gray-100);
  text-align: center;
  min-width: 0;
  overflow: hidden;
}
.pdp-commission-card.featured {
  background: var(--pdp-dark);
  color: var(--pdp-white);
}
.pdp-commission-icon  { font-size: 20px; margin-bottom: 6px; }
.pdp-commission-label { font-size: 12px; color: var(--pdp-gray-400); font-weight: 500; margin-bottom: 4px; }
.pdp-commission-card.featured .pdp-commission-label { color: rgba(255,255,255,.5); }
.pdp-commission-amount {
  font-size: clamp(16px, 3.5vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  word-break: break-all;
}
.pdp-commission-card.featured .pdp-commission-amount { color: var(--pdp-cyan); }
.pdp-commission-card + .pdp-commission-card {
  /* Full-width "Ya cobrado" card below */
  grid-column: 1 / -1;
}
.pdp-commission-grid-2col + .pdp-commission-card {
  margin-top: 14px;
}

/* =============================================
   REGISTER FORM — fix height/overflow desktop
   ============================================= */
.pdp-auth-right {
  align-items: flex-start !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.pdp-auth-card {
  /* Let card height be natural, never overflow viewport */
  margin-top: 0;
  margin-bottom: 0;
}

/* =============================================
   ADMIN SERVICES LIST
   ============================================= */
.pdp-admin-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pdp-gray-100);
}
.pdp-admin-service-item:last-child { border-bottom: none; }

/* =============================================
   LEADS ADMIN MODAL — motivo/servicio rows
   ============================================= */
#editComisionRow,
#editMotivoRow {
  padding-top: 14px;
  border-top: 1px solid var(--pdp-gray-100);
  margin-top: 4px;
}
