/* Profesor Particular .IO — L3 teacher profile (and the pending-profile template)
   One stylesheet for every profile, design system v7 (approved by Vicente, 16 Oct 2026).
   Loaded after ds.css by profesores-particulares/{materia}/{ciudad}/{slug}/ and by
   templates/perfil-pendiente.template. Replaces seven drifted inline copies. */
:root {color-scheme:light only;
  --ink:        #0f172a;
  --ink-soft:   #334155;
  --ink-muted:  #52617a;
  --surface:    #ffffff;
  --surface-soft: #f8fafc;
  --surface-subtle: #f1f5f9;
  --border:     #e2e8f0;
  --border-subtle: #f1f5f9;
  --accent:     #0f172a;
  --accent-lt:  #eff6ff;
  --accent-hov: #1e293b;
  --success:    #0f172a;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --sh-sm: 0 2px 8px rgba(0,0,0,.04),0 1px 3px rgba(0,0,0,.02);
  --sh-md: 0 8px 24px rgba(15,23,42,.06),0 2px 8px rgba(15,23,42,.04);
  --sh-lg: 0 20px 48px rgba(15,23,42,.08),0 8px 16px rgba(15,23,42,.04);
  --sh-glow: 0 0 30px rgba(15,23,42,.2);
}

html{scroll-behavior:smooth;font-size:16px;}
body{font-family:var(--font);color:var(--ink);background:var(--surface-soft);line-height:1.6;-webkit-font-smoothing:antialiased;}

/* BUTTONS */

/* LAYOUT */
.profile-page{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:var(--ds-space-07);}
.profile-card{width:100%;max-width:440px;background:#fff;border-radius:var(--r-xl);padding:var(--ds-space-07);box-shadow:0 25px 50px -12px rgba(15,23,42,.15);display:flex;flex-direction:column;}

/* TOP BAR */
.profile-top-bar{display:flex;align-items:center;gap:var(--ds-space-03);font-size:.75rem;font-weight:600;color:var(--ink-muted);margin-bottom:var(--ds-space-06);}
.status-dot{width:8px;height:8px;background:var(--success);border-radius:50%;box-shadow:0 0 8px var(--success);}
.location-badge{margin-left:auto;background:var(--surface-soft);padding:var(--ds-space-02) var(--ds-space-03);border-radius:4px;font-size:.75rem;}

/* HEADER */
.profile-header{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:var(--ds-space-06);}
.avatar-wrapper{position:relative;margin-bottom:var(--ds-space-04);}
.profile-avatar{width:100px;height:100px;border-radius:50%;object-fit:cover;border:3px solid var(--surface-soft);box-shadow:var(--sh-md);}
.profile-avatar--initials{display:flex;align-items:center;justify-content:center;background:var(--accent-lt);color:var(--accent);font-size:2.25rem;font-weight:600;letter-spacing:-.04em;user-select:none;}
.name-wrapper{display:flex;align-items:flex-start;justify-content:center;gap:var(--ds-space-03);margin-bottom:var(--ds-space-02);flex-wrap:nowrap;}
.profile-name{font-size:1.5rem;font-weight:600;color:var(--ink);text-align:center;}
.verified-badge-icon{width:22px;height:22px;color:var(--accent);flex-shrink:0;margin-bottom:var(--ds-space-02);}
.profile-title{font-size:.9375rem;color:var(--ink-muted);font-weight:500;}

/* METRICS */
.profile-metrics{display:flex;align-items:center;justify-content:space-around;background:var(--surface-soft);border-radius:var(--r-lg);padding:var(--ds-space-05) var(--ds-space-06);margin-bottom:var(--ds-space-06);border:1px solid var(--border);}
.metric{display:flex;flex-direction:column;align-items:center;gap:var(--ds-space-01);}
.metric strong{font-size:1rem;font-weight:600;color:var(--ink);line-height:1.2;}
.metric span{font-size:.75rem;font-weight:600;color:var(--ink-muted);text-transform:uppercase;letter-spacing:.05em;}
.metric-divider{width:1px;height:24px;background:var(--border);}

/* SECTIONS */
.profile-section{margin-bottom:var(--ds-space-06);}
.sec-title{font-size:.75rem;font-weight:600;color:var(--ink-muted);text-transform:uppercase;letter-spacing:.1em;margin-bottom:var(--ds-space-04);display:flex;align-items:center;gap:var(--ds-space-03);}

/* BIO */
.profile-bio{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:var(--r-md);padding:var(--ds-space-04) var(--ds-space-05);margin-bottom:var(--ds-space-03);}
.bio-quote{font-size:.875rem;font-weight:600;color:#0f172a;line-height:1.4;margin-bottom:var(--ds-space-03);}
.bio-body{font-size:.8125rem;color:#374151;line-height:1.65;}
.bio-body strong{color:#0f172a;font-weight:600;}

/* TAGS */
.spec-block{background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--r-md);padding:var(--ds-space-04) var(--ds-space-05);margin-bottom:var(--ds-space-03);}
.spec-block:last-child{margin-bottom:0;}
.spec-sublabel{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--ink-muted);margin-bottom:var(--ds-space-03);}
.profile-tags{display:flex;flex-wrap:wrap;gap:var(--ds-space-03);}
.tag{font-size:.8rem;font-weight:600;padding:var(--ds-space-02) var(--ds-space-04);border-radius:100px;line-height:1;}
.tag-subject{background:var(--accent-lt);color:var(--accent);border:1px solid rgba(15,23,42,.15);}
.tag-level{background:#fff;border:1px solid var(--border);color:var(--ink-soft);}

/* CREDENTIALS */
.credentials-list{list-style:none;padding:0;margin:0;}
.credential-item{display:grid;grid-template-columns:7rem 1fr auto;align-items:center;gap:var(--ds-space-03);padding:var(--ds-space-03) 0;border-bottom:1px dashed var(--border);font-size:.8125rem;}
.credential-item:last-child{border-bottom:none;}
.cred-label{color:var(--ink-muted);font-weight:500;display:flex;align-items:center;gap:var(--ds-space-02);white-space:nowrap;}
.cred-label svg{opacity:.7;flex-shrink:0;}
.cred-value{color:var(--ink);font-weight:600;}

/* EXTRA CERTIFICATIONS */
.cert-item{
  display:grid;grid-template-columns:7rem 1fr auto;align-items:center;gap:var(--ds-space-03);
  padding:var(--ds-space-03) 0;border-bottom:1px dashed var(--border);font-size:.8125rem;
}
.cert-item:last-child{border-bottom:none;}
.cert-icon{
  display:flex;align-items:center;gap:var(--ds-space-02);
  color:var(--ink-muted);font-weight:500;white-space:nowrap;
}
.cert-icon svg{width:13px;height:13px;opacity:.7;flex-shrink:0;}
.cert-info{min-width:0;}
.cert-name{font-size:.8125rem;font-weight:600;color:var(--ink);line-height:1.3;}
.cert-meta{font-size:.75rem;color:var(--ink-muted);font-weight:500;margin-top:var(--ds-space-01);}
.cert-badge{
  font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  padding:var(--ds-space-02) var(--ds-space-03);border-radius:100px;background:rgba(15,23,42,.1);
  color:#0f172a;white-space:nowrap;flex-shrink:0;align-self:center;
}

/* FOOTER CTA */
.profile-footer-cta{display:flex;align-items:center;border-top:1px solid var(--border);padding-top:var(--ds-space-06);margin-top:auto;}
.action-group{display:flex;gap:var(--ds-space-03);width:100%;}
.btn-icon{width:48px;height:48px;border-radius:var(--pv-radius);display:flex;justify-content:center;align-items:center;transition:all .2s;flex-shrink:0;}
.btn-whatsapp{background:#25D366;color:#fff;box-shadow:0 4px 12px rgba(37,211,102,.2);}
.btn-whatsapp:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(37,211,102,.3);}

/* WATERMARK */
.profile-watermark{
  margin-top:var(--ds-space-06);
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:var(--ds-space-05) var(--ds-space-06);
  display:flex;flex-direction:column;align-items:center;gap:var(--ds-space-03);text-align:center;
  box-shadow:0 2px 12px rgba(15,23,42,.07);
  max-width:440px;width:100%;
}
.pv-id{color:var(--ink);font-size:.9rem;font-weight:600;display:flex;align-items:center;gap:var(--ds-space-03);}
.pv-id strong{font-family:monospace;font-size:1rem;color:var(--accent);letter-spacing:.03em;}
.pv-validate{
  display:inline-flex;align-items:center;gap:var(--ds-space-02);
  color:#fff;font-size:.8125rem;font-weight:600;
  background:var(--accent);border-radius:100px;
  padding:var(--ds-space-03) var(--ds-space-05);transition:background .2s;
}
.pv-validate:hover{background:var(--accent-hov);}
.pv-validate svg{width:13px;height:13px;}

/* VERIFIED BANNER */
.verified-banner{display:flex;align-items:center;gap:var(--ds-space-03);background:rgba(15,23,42,.06);border:1px solid rgba(15,23,42,.15);border-radius:var(--r-sm);padding:var(--ds-space-03) var(--ds-space-04);margin-bottom:var(--ds-space-06);font-size:.75rem;font-weight:600;color:var(--accent);}
.verified-banner svg{width:14px;height:14px;flex-shrink:0;}

/* SHARE */
.share-bar{margin-top:var(--ds-space-06);max-width:440px;width:100%;text-align:center;}
.share-btn{display:inline-flex;align-items:center;gap:var(--ds-space-03);font-family:inherit;font-size:.8125rem;font-weight:600;color:var(--ink-muted);background:#fff;border:1px solid var(--border);border-radius:var(--pv-radius);padding:var(--ds-space-03) var(--ds-space-06);cursor:pointer;transition:all .2s;}
.share-btn:hover{border-color:var(--ink-muted);color:var(--ink);}
.share-btn.copied{border-color:var(--success);color:var(--success);}

/* TOAST */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(16px);background:#0f172a;color:#fff;font-size:.875rem;font-weight:600;padding:var(--ds-space-04) var(--ds-space-06);border-radius:100px;box-shadow:0 8px 24px rgba(0,0,0,.2);opacity:0;transition:all .3s cubic-bezier(.4,0,.2,1);pointer-events:none;white-space:nowrap;z-index:var(--ds-layer-toast);display:flex;align-items:center;gap:var(--ds-space-03);}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

/* HOW WE VERIFY */
.how-we-verify{
  margin-top:var(--ds-space-06);max-width:440px;width:100%;
  background:var(--surface-soft);border:1px solid var(--border);
  border-radius:var(--r-lg);padding:var(--ds-space-06) var(--ds-space-06) var(--ds-space-05);
}
.hvw-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-muted);margin-bottom:var(--ds-space-04);text-align:center;}
.hvw-steps{display:flex;flex-direction:column;gap:var(--ds-space-03);}
.hvw-step{display:flex;align-items:flex-start;gap:var(--ds-space-04);}
.hvw-num{
  flex-shrink:0;width:22px;height:22px;border-radius:50%;
  background:var(--accent);color:#fff;font-size:.75rem;font-weight:600;
  display:flex;align-items:center;justify-content:center;margin-top:var(--ds-space-01);
}
.hvw-text{display:flex;flex-direction:column;gap:var(--ds-space-01);}
.hvw-text strong{font-size:.8125rem;font-weight:600;color:var(--ink);}
.hvw-text span{font-size:.75rem;color:var(--ink-muted);line-height:1.5;}

/* RESPONSIVE */
@media(max-width:480px){
  .profile-page{padding:0;justify-content:flex-start;background:#fff;}
  .profile-card{max-width:100%;border-radius:0;box-shadow:none;padding:var(--ds-space-06) var(--ds-space-06);}
  .profile-watermark,.how-we-verify{max-width:100%;border-radius:var(--r-md);}
  .profile-avatar{width:88px;height:88px;}
  .profile-name{font-size:1.375rem;}
  .profile-metrics{padding:var(--ds-space-04) var(--ds-space-04);gap:0;}
  .metric strong{font-size:1.1rem;}
  .metric span{font-size:.75rem;}
  .credential-item,.cert-item{grid-template-columns:7rem 1fr auto;}
}

/* iOS zoom prevention */
input,select,textarea{font-size:16px;}

@media(prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important;}}

/* ── V7 PROFILE (proposal, 16 Oct 2026) ───────────────────────────────────
   Design system v7 look for the L3 profile: index card with a subject tab
   (same as the homepage teacher cards), hairlines, 600 weights, highlighter
   on the seal, navy "how we verify" with big yellow numbers. Overrides the
   rules above; kept identical in templates/perfil-pendiente.template. */
body{background:#f8fafc;}
.profile-page{padding:var(--ds-space-08,48px) var(--ds-space-05,16px);}
.profile-card{position:relative;max-width:480px;margin-top:32px;border:1px solid #e2e8f0;border-radius:0 10px 10px 10px;box-shadow:none;padding:24px;}
.card-tab{position:absolute;left:-1px;bottom:100%;max-width:92%;margin:0;padding:4px 12px;background:#ffe14d;color:#0f172a;border-radius:6px 6px 0 0;font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.status-dot,.avatar-wrapper{display:none;}
.profile-top-bar{margin-bottom:16px;color:#475569;font-weight:500;}
.location-badge{margin-left:0;background:none;padding:0;font-size:.8125rem;color:#475569;}
.verified-banner{background:none;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;padding:0 0 12px;margin-bottom:24px;font-size:.8125rem;color:#0f172a;}
.verified-banner svg{width:16px;height:16px;}
.profile-header{align-items:flex-start;text-align:left;margin-bottom:16px;}
.name-wrapper{justify-content:flex-start;align-items:center;}
.profile-name{font-size:1.875rem;line-height:1.1;letter-spacing:-.03em;text-align:left;}
.verified-badge-icon{color:#0f172a;margin-bottom:0;}
.profile-title{font-size:1rem;color:#475569;margin-top:4px;}
.profile-metrics{justify-content:flex-start;background:none;border:0;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;border-radius:0;padding:12px 0;margin-bottom:24px;}
.metric{align-items:flex-start;}
.metric strong{font-size:.9375rem;}
.sec-title{font-size:.75rem;color:#64748b;letter-spacing:.12em;}
.spec-block{background:none;border:0;border-radius:0;padding:0;margin-bottom:16px;}
.spec-sublabel{font-size:.6875rem;color:#64748b;}
.tag{border-radius:6px;font-size:.8125rem;font-weight:500;padding:8px 12px;}
.tag-subject{background:#0f172a;color:#ffffff;border:1px solid #0f172a;}
.tag-level{background:#ffffff;color:#0f172a;border:1px solid #cbd5e1;}
.credential-item,.cert-item{border-bottom:1px solid #e2e8f0;}
.cert-badge{background:#ffe14d;color:#0f172a;border-radius:4px;letter-spacing:.04em;}
.profile-bio{background:none;border:0;border-top:1px solid #e2e8f0;border-radius:0;padding:16px 0 0;}
.bio-quote{font-size:1.0625rem;font-weight:500;line-height:1.45;letter-spacing:-.01em;}
.bio-body{font-size:.9375rem;color:#334155;}
.profile-footer-cta{border-top:1px solid #e2e8f0;}
.btn-icon{border-radius:6px;}
.btn-whatsapp{box-shadow:none;}
.btn-whatsapp:hover{transform:none;box-shadow:none;}
.profile-watermark,.share-bar,.how-we-verify{max-width:480px;}
.profile-watermark{border-radius:10px;box-shadow:none;}
.pv-id strong{font-family:inherit;font-variant-numeric:tabular-nums;color:#0f172a;}
.pv-validate{border-radius:6px;min-height:44px;padding:0 16px;text-decoration:none;}
.share-btn{border-radius:6px;min-height:44px;color:#0f172a;}
.how-we-verify{background:#0f172a;border:0;border-radius:10px;padding:24px;}
.hvw-label{color:#cbd5e1;text-align:left;}
.hvw-num{width:auto;height:auto;border-radius:0;background:none;color:#ffe14d;font-size:1.75rem;line-height:1;font-weight:600;margin-top:0;min-width:1.4em;}
.hvw-text strong{color:#f8fafc;font-size:.9375rem;}
.hvw-text span{color:#cbd5e1;font-size:.8125rem;}
@media(max-width:480px){
  .profile-page{padding:32px 0 0;background:#f8fafc;}
  .profile-card{border-left:0;border-right:0;border-radius:0;padding:24px 16px;}
  .card-tab{left:0;border-radius:0 6px 0 0;}
  .profile-watermark,.how-we-verify,.share-bar{border-radius:0;}
  .profile-name{font-size:1.625rem;}
}

/* SOCIALS-CSS:START — auto-managed by tools/build-l3-socials.js */
.profile-socials{display:flex;justify-content:center;align-items:center;gap:var(--ds-space-03);padding:var(--ds-space-04) 0;margin-top:var(--ds-space-03);border-top:1px solid var(--border);}
.profile-socials a:not([class*="btn"]){display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--surface-soft,#f8fafc);color:var(--ink-muted,#52617a);transition:color .15s,background .15s,transform .15s;text-decoration:none;}
.profile-socials a:not([class*="btn"]):hover,.profile-socials a:not([class*="btn"]):focus-visible{color:var(--accent,#0f172a);background:var(--accent-lt,#eff6ff);transform:translateY(-1px);}
.profile-socials a:not([class*="btn"]):focus-visible{outline:2px solid var(--accent,#0f172a);outline-offset:2px;}
/* SOCIALS-CSS:END */

