/* Team Edition Mods — Mi Perfil v3.3. Scoped: only template and native EDD profile editor. */
.tem-user-profile,
.tem-profile-editor { --tem-p-accent:#10c9ad; --tem-p-accent-dark:#079d88; --tem-p-gold:#ffd20c; --tem-p-ink:#132326; --tem-p-muted:#65757b; --tem-p-line:#dfebe9; --tem-p-card:#fff; --tem-p-soft:#f2f8f7; color:var(--tem-p-ink); font-family:inherit; }
.tem-user-profile *, .tem-user-profile *::before, .tem-user-profile *::after,
.tem-profile-editor *, .tem-profile-editor *::before, .tem-profile-editor *::after { box-sizing:border-box; }
.tem-user-profile { box-sizing:border-box; padding:48px 18px 72px; width:100%; background:linear-gradient(180deg,#f5faf9 0%,#fff 60%); }
.tem-profile-wrap { max-width:1180px; margin:0 auto; }
.tem-profile-hero { position:relative; isolation:isolate; min-height:218px; display:flex; align-items:center; gap:26px; padding:36px 38px; overflow:hidden; border-radius:20px; background:linear-gradient(112deg,#0b4540,#087c6c 56%,#07352f); color:#fff; box-shadow:0 22px 55px rgba(7,70,60,.16); }
.tem-profile-hero-pattern { position:absolute; z-index:-1; inset:0; pointer-events:none; opacity:.34; background:repeating-linear-gradient(132deg, transparent 0 80px,rgba(255,255,255,.08) 81px 83px,transparent 84px 155px),radial-gradient(circle at 90% 10%,rgba(26,242,196,.5),transparent 44%); }
.tem-profile-avatar { flex:0 0 112px; width:112px; height:112px; border-radius:50%; padding:5px; border:2px solid var(--tem-p-gold); background:rgba(255,255,255,.22); box-shadow:0 8px 28px rgba(0,0,0,.2); }
.tem-profile-avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.tem-profile-hero-copy { flex:1; min-width:0; }
.tem-profile-eyebrow { font-size:12px; font-weight:800; letter-spacing:.1em; color:#cbfff4; }
.tem-profile-eyebrow span { color:var(--tem-p-gold); }
.tem-profile-hero h1 { margin:12px 0 5px; font-size:clamp(26px,3vw,38px); line-height:1.18; font-weight:850; text-transform:none; letter-spacing:-.025em; color:white; overflow-wrap:anywhere; }
.tem-profile-hero p { margin:0 0 13px; color:#dbf8f3; font-size:14px; overflow-wrap:anywhere; }
.tem-profile-status { display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(255,255,255,.29); border-radius:100px; background:rgba(255,255,255,.12); padding:6px 13px; font-weight:650; color:#fff; font-size:12px; }
.tem-profile-status span { color:#91ffe0; font-size:11px; }
.tem-profile-primary-link { display:inline-flex; align-items:center; justify-content:center; gap:9px; border:0; border-radius:11px; padding:13px 20px; min-height:46px; background:var(--tem-p-accent); color:#043b32 !important; font-weight:800; font-size:14px; text-decoration:none !important; white-space:nowrap; box-shadow:0 7px 20px rgba(0,0,0,.13); transition:transform .16s, background .16s; }
.tem-profile-primary-link:hover { background:#36e7cf; transform:translateY(-1px); }
.tem-profile-layout { display:grid; grid-template-columns:minmax(210px,272px) minmax(0,1fr); gap:24px; align-items:start; margin-top:26px; }
.tem-profile-content { display:grid; gap:24px; min-width:0; }
.tem-profile-card { border:1px solid var(--tem-p-line); border-radius:18px; background:var(--tem-p-card); box-shadow:0 12px 34px rgba(14,47,47,.055); padding:27px; }
.tem-profile-card h2 { font-size:22px; font-weight:800; color:var(--tem-p-ink); margin:0 0 8px; text-transform:none; }
.tem-profile-side-card { padding:24px 15px; position:sticky; top:94px; }
.tem-profile-side-card h2, .tem-profile-side-card > p { padding:0 11px; }
.tem-profile-side-card > p { color:var(--tem-p-muted); font-size:13px; margin:0 0 23px; }
.tem-profile-side-link { display:flex; gap:12px; align-items:center; border-radius:10px; padding:13px 12px; color:var(--tem-p-ink) !important; font-weight:650; font-size:14px; text-decoration:none !important; transition:background .2s,color .2s; }
.tem-profile-side-link span { flex:0 0 20px; text-align:center; font-size:17px; color:var(--tem-p-accent-dark); }
.tem-profile-side-link:hover, .tem-profile-side-link.is-current { background:#dcf8f2; color:#065e53 !important; }
.tem-profile-section-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:20px; padding-bottom:18px; border-bottom:1px solid var(--tem-p-line); }
.tem-profile-section-kicker { display:block; margin-bottom:6px; font-size:10px; font-weight:850; color:var(--tem-p-accent-dark); letter-spacing:.12em; }
.tem-profile-section-head h2 { margin:0 0 5px; }
.tem-profile-section-head p { margin:0; color:var(--tem-p-muted); font-size:13px; }
.tem-profile-section-icon { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; background:#dcf8f2; border-radius:12px; color:#07806f; font-size:23px; }
.tem-profile-data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:0; }
.tem-profile-data-item { min-width:0; border:1px solid var(--tem-p-line); border-radius:11px; padding:15px 17px; background:var(--tem-p-soft); }
.tem-profile-data-item dt { font-size:11px; color:var(--tem-p-muted); text-transform:none; font-weight:750; margin:0 0 8px; }
.tem-profile-data-item dd { font-size:14px; color:var(--tem-p-ink); margin:0; font-weight:650; overflow-wrap:anywhere; line-height:1.5; }
.tem-profile-empty { font-style:italic; color:var(--tem-p-muted); font-weight:400; }
.tem-profile-address-line { margin:0; color:var(--tem-p-ink); line-height:1.6; }
.tem-profile-guest { max-width:580px; margin:32px auto 60px; text-align:center; padding:55px 25px; }
.tem-profile-guest-icon { display:block; font-size:40px; color:var(--tem-p-accent-dark); margin-bottom:10px; }
.tem-profile-guest h1 { font-size:29px; font-weight:800; color:var(--tem-p-ink); }
.tem-profile-guest p { color:var(--tem-p-muted); margin:12px 0 22px; }
/* Editor: existing EDD form, all inputs/actions kept intact. */
.tem-profile-editor { max-width:940px; margin:36px auto 54px !important; overflow:visible; border:1px solid var(--tem-p-line); border-radius:20px; box-shadow:0 18px 46px rgba(7,50,45,.10); background:var(--tem-p-card); }
.tem-profile-editor .tem-profile-editor-banner { display:flex; align-items:center; gap:15px; padding:29px 34px; border-radius:18px 18px 0 0; background:linear-gradient(112deg,#0a554b,#099780); color:#fff; }
.tem-profile-editor-star { font-size:42px; color:var(--tem-p-accent); text-shadow:0 2px 12px rgba(0,0,0,.22); }
.tem-profile-editor-banner small { color:#eafff9; font-weight:750; letter-spacing:.08em; }
.tem-profile-editor-banner small strong { color:var(--tem-p-gold); }
.tem-profile-editor-banner div div { font-size:26px; font-weight:820; color:#fff; line-height:1.3; margin-top:5px; }
.tem-profile-editor .boxed-body { padding:30px 36px 35px !important; background:var(--tem-p-card) !important; border-radius:0 0 18px 18px; }
.tem-profile-editor .lightbox-title { margin:0 0 22px !important; font-size:20px !important; color:var(--tem-p-ink) !important; font-weight:800; text-transform:none; }
.tem-profile-editor #edd_profile_editor_form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 18px; align-items:start; }
.tem-profile-editor #edd_profile_editor_form h5 { grid-column:1/-1; margin:23px 0 0; padding:10px 0; border-bottom:1px solid var(--tem-p-line); font-size:16px; color:var(--tem-p-accent-dark); font-weight:800; text-transform:none; }
.tem-profile-editor #edd_profile_editor_form .field-holder { position:relative; display:block; margin:0 !important; padding:0 !important; min-height:0; background:transparent !important; border:0 !important; }
.tem-profile-editor #edd_profile_editor_form .field-holder > label { position:static !important; display:block; width:auto; height:auto !important; margin:0 0 8px !important; padding:0 !important; font-size:12px; color:var(--tem-p-ink); font-weight:750; line-height:1.4; }
.tem-profile-editor #edd_profile_editor_form .field-holder > label::before { display:none; }
.tem-profile-editor #edd_profile_editor_form :is(input[type="text"],input[type="email"],input[type="password"],select,textarea) { display:block; width:100% !important; min-width:0; max-width:100%; height:48px !important; padding:10px 13px !important; border:1px solid var(--tem-p-line) !important; border-radius:9px !important; background:var(--tem-p-soft) !important; color:var(--tem-p-ink) !important; box-shadow:none !important; font-family:inherit; font-size:14px; }
.tem-profile-editor #edd_profile_editor_form :is(input,select,textarea):focus-visible { outline:2px solid var(--tem-p-accent) !important; outline-offset:2px; }
.tem-profile-editor #edd_profile_editor_form :is(input,select,textarea):focus { border-color:var(--tem-p-accent) !important; }
.tem-profile-editor #edd_profile_editor_form :is(input[type="hidden"],input[type="submit"]) { grid-column:1/-1; }
.tem-profile-editor #edd_profile_editor_form > :not(h5):not(.field-holder) { grid-column:1/-1; }
.tem-profile-editor #edd_profile_editor_form .edd_password_change_notice { margin:2px 0; padding:10px 14px; font-size:13px; background:#fff8da; border-radius:9px; color:#6a5710; }
.tem-profile-editor #edd_profile_editor_submit { display:inline-block; justify-self:start; width:auto !important; min-width:175px; padding:13px 24px !important; min-height:48px; border-radius:10px !important; background:var(--tem-p-accent) !important; color:#043a32 !important; text-align:center; font-size:14px; font-weight:850; box-shadow:0 7px 20px rgba(16,201,173,.18); }
.tem-profile-editor #edd_profile_editor_submit:hover { background:#40e6d1 !important; }
/* Dark mode uses the same existing Olam cookie/theme switch; no JS added. */
body.olam-dark-mode .tem-user-profile, body.olam-dark-mode .tem-profile-editor { --tem-p-card:#161d1f; --tem-p-soft:#1f292c; --tem-p-ink:#f3f7f7; --tem-p-muted:#abbec1; --tem-p-line:#364448; }
body.olam-dark-mode .tem-user-profile { background:linear-gradient(180deg,#0b1213,#101719) !important; }
body.olam-dark-mode .tem-profile-card, body.olam-dark-mode .tem-profile-editor { background:var(--tem-p-card) !important; border-color:var(--tem-p-line) !important; }
body.olam-dark-mode .tem-profile-data-item { background:var(--tem-p-soft) !important; border-color:var(--tem-p-line) !important; }
body.olam-dark-mode .tem-profile-side-link:hover,body.olam-dark-mode .tem-profile-side-link.is-current { background:#184139; color:#b8fff0 !important; }
body.olam-dark-mode .tem-profile-section-icon { background:#19463e; color:#6cebd6; }
body.olam-dark-mode .tem-profile-editor .boxed-body { background:var(--tem-p-card) !important; }
body.olam-dark-mode .tem-profile-editor .field-holder { background:transparent !important; }
body.olam-dark-mode .tem-profile-editor .edd_password_change_notice { background:#42391e !important; color:#ffe49c !important; }
body.olam-dark-mode .tem-profile-editor :is(h2,h5,label,p,dd,dt) { color:var(--tem-p-ink); }
@media(max-width:900px) { .tem-profile-hero { flex-wrap:wrap; } .tem-profile-primary-link { margin-left:0; } .tem-profile-layout { grid-template-columns:1fr; } .tem-profile-side-card { position:static; } .tem-profile-side-card .tem-profile-side-link { display:inline-flex; margin:2px 4px; } }
@media(max-width:640px) { .tem-user-profile { padding:24px 12px 56px; } .tem-profile-hero { padding:24px 18px; gap:16px; border-radius:14px; } .tem-profile-avatar { width:84px; height:84px; flex-basis:84px; } .tem-profile-eyebrow { font-size:10px; } .tem-profile-hero-copy { flex-basis:calc(100% - 105px); } .tem-profile-hero h1 { font-size:24px; } .tem-profile-hero .tem-profile-primary-link { width:100%; } .tem-profile-card { padding:20px 16px; } .tem-profile-section-head h2 { font-size:19px; } .tem-profile-data-grid { grid-template-columns:1fr; } .tem-profile-editor { margin:20px 12px 40px !important; } .tem-profile-editor .tem-profile-editor-banner { padding:21px 19px; } .tem-profile-editor .boxed-body { padding:22px 17px 27px !important; } .tem-profile-editor #edd_profile_editor_form { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .tem-profile-primary-link,.tem-profile-side-link { transition:none; } }

/* Team Edition Mods v5.3: foto del perfil, compatible con modo claro y oscuro. */
.tem-profile-photo-card { scroll-margin-top:100px; }
.tem-avatar-editor-row { display:flex; align-items:center; gap:25px; }
.tem-avatar-preview { flex:0 0 116px; width:116px; height:116px; border-radius:50%; border:3px solid #14bca8; overflow:hidden; background:var(--tem-p-soft); box-shadow:0 8px 22px rgba(0,75,64,.12); }
.tem-avatar-preview img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.tem-avatar-edit-controls { flex:1; min-width:0; }
.tem-avatar-upload-form { display:flex; align-items:flex-start; gap:8px 14px; flex-wrap:wrap; }
.tem-avatar-file-label { display:block; width:100%; font-size:14px; font-weight:800; color:var(--tem-p-ink); }
.tem-avatar-upload-form input[type=file] { display:block; width:100%; max-width:490px; font-size:13px; color:var(--tem-p-ink); border:1px solid var(--tem-p-line); border-radius:10px; background:var(--tem-p-soft); padding:10px; }
.tem-avatar-upload-form input[type=file]::file-selector-button { padding:8px 14px; border:1px solid #0c9884; border-radius:8px; color:#046050; background:#dff8f1; margin-right:12px; cursor:pointer; }
.tem-avatar-hint { width:100%; color:var(--tem-p-muted); margin:2px 0 6px; font-size:12px; line-height:1.5; }
.tem-avatar-save-button { padding:12px 19px; min-height:43px; border:0; border-radius:10px; background:#10c9ad; color:#053b33; font-weight:800; cursor:pointer; }
.tem-avatar-save-button:hover { background:#4ddfca; }
.tem-avatar-remove-form { margin-top:10px; }
.tem-avatar-remove-button { border:1px solid var(--tem-p-line); background:transparent; border-radius:9px; padding:9px 13px; font-size:13px; font-weight:700; color:var(--tem-p-ink); cursor:pointer; }
.tem-avatar-remove-button:hover { border-color:#d47575; }
.tem-avatar-upload-form :focus-visible, .tem-avatar-remove-button:focus-visible { outline:2px solid #0eaa96; outline-offset:3px; }
.tem-avatar-notice { border-radius:10px; padding:12px 16px; margin-bottom:17px; font-weight:700; font-size:13px; }
.tem-avatar-notice.is-success { color:#075c4d; background:#dff9f1; border:1px solid #70cbb6; }
.tem-avatar-notice.is-error { color:#713c16; background:#fff1da; border:1px solid #e7bb65; }
body.olam-dark-mode .tem-avatar-notice.is-success { color:#b2f5e7; background:#12352e; border-color:#2e7d70; }
body.olam-dark-mode .tem-avatar-notice.is-error { color:#ffe4b0; background:#382c19; border-color:#96704d; }
body.olam-dark-mode .tem-avatar-upload-form input[type=file]::file-selector-button { color:#b3f8eb; background:#19463e; border-color:#14aa91; }
@media(max-width:640px) { .tem-avatar-editor-row { align-items:flex-start; flex-direction:column; gap:16px; } .tem-avatar-preview { flex:0 0 108px; width:108px; height:108px; } .tem-avatar-edit-controls { width:100%; } }
