/*
 * Global Training Industry — perfil público /users/{id}/profile (rediseño 2026-11)
 * Se carga solo desde resources/views/web/default/user/profile.blade.php.
 * Todo vive bajo .up y usa el prefijo up- para no chocar con Bootstrap, app.css ni redesign.css.
 * Maqueta de referencia: docs/design/propuesta-perfil.html
 */

.up {
    --up-navy-950: #071a29;
    --up-navy-900: #0b2436;
    --up-navy-800: #11334c;
    --up-navy-700: #1a4664;
    --up-teal-700: #087a89;
    --up-teal-600: #0b91a2;
    --up-teal-500: #14a9ba;
    --up-teal-100: #e2f5f7;
    --up-teal-50: #f0fafb;
    --up-green-700: #15803f;
    --up-green-600: #1e9e57;
    --up-green-500: #28c76f;
    --up-green-100: #e5f8ed;
    --up-blue-500: #3b82f6;
    --up-blue-100: #e8f0fe;
    --up-violet-600: #7c4dde;
    --up-violet-100: #f0eafd;
    --up-amber-600: #d98a0b;
    --up-amber-500: #f5a524;
    --up-amber-100: #fff4dc;
    --up-rose-500: #e5484d;
    --up-rose-100: #fdecec;
    --up-ink: #0f2236;
    --up-text: #3d5063;
    --up-muted: #63768a;
    --up-line: #e3eaf0;
    --up-line-strong: #cfdbe4;
    --up-bg: #f4f7fa;
    --up-r-lg: 20px;
    --up-r-xl: 28px;
    --up-sh-sm: 0 2px 6px rgba(11, 36, 54, .05), 0 1px 2px rgba(11, 36, 54, .04);
    --up-sh-md: 0 12px 32px -12px rgba(11, 36, 54, .18), 0 2px 6px rgba(11, 36, 54, .05);
    --up-sh-lg: 0 30px 60px -20px rgba(11, 36, 54, .28);
    --up-ease: cubic-bezier(.2, .7, .2, 1);
    --up-top: 0px; /* alto de la navegación fija; lo ajusta profile-redesign.js */

    background: var(--up-bg);
    color: var(--up-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    padding-bottom: 64px;
    -webkit-font-smoothing: antialiased;
}
/* app.css aplica body{overflow:hidden}, que anula position:sticky (pestañas y lateral). */
body.ui-public-shell:has(#upProfile) { overflow-x: clip; overflow-y: visible; }
.up *, .up *::before, .up *::after { box-sizing: border-box; }
.ui-public-shell .up h1, .ui-public-shell .up h2, .ui-public-shell .up h3, .ui-public-shell .up h4 {
    font-family: Montserrat, Inter, sans-serif;
    color: var(--up-ink);
    margin: 0;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.up p { margin: 0; }
.up a { color: inherit; text-decoration: none; }
.up button { font: inherit; cursor: pointer; }
.up img { max-width: 100%; }
.up [hidden] { display: none !important; }
.up svg.feather { flex: none; }

/* ---------- Botones y chips ---------- */
.up-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; white-space: nowrap; line-height: 1;
    background: #fff; color: var(--up-ink);
    transition: transform .2s var(--up-ease), box-shadow .2s var(--up-ease), background .2s, border-color .2s, color .2s;
}
.up-btn:hover { transform: translateY(-2px); text-decoration: none; }
.up-btn:focus-visible, .up-icon-btn:focus-visible, .up-tab:focus-visible, .up-day:focus-visible, .up-slot:focus-visible { outline: 3px solid rgba(11, 145, 162, .35); outline-offset: 2px; }
.up a.up-btn-primary, .up-btn-primary { background: linear-gradient(135deg, var(--up-green-500), var(--up-green-600)); color: #fff; box-shadow: 0 10px 22px -8px rgba(30, 158, 87, .6); }
.up a.up-btn-primary:hover, .up-btn-primary:hover { color: #fff; box-shadow: 0 14px 28px -8px rgba(30, 158, 87, .7); }
.up-btn-outline { background: #fff; border-color: var(--up-line-strong); color: var(--up-ink); }
.up-btn-outline:hover { border-color: var(--up-teal-600); color: var(--up-teal-700); }
.up-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.up-btn-block { width: 100%; }
.up-btn[disabled] { background: var(--up-bg); border-color: var(--up-line); color: var(--up-muted); box-shadow: none; cursor: not-allowed; transform: none; }
.up-btn.is-loading { opacity: .7; pointer-events: none; }

/* Seguir: tres estados en el mismo botón */
#followToggle .up-follow-on, #followToggle .up-follow-off { display: none; }
#followToggle.up-btn-primary .up-follow-new { display: inline-flex; }
#followToggle span { align-items: center; gap: 10px; }
.up-btn-following { background: var(--up-teal-50); border-color: #bfe5ea; color: var(--up-teal-700); }
#followToggle.up-btn-following .up-follow-new { display: none; }
#followToggle.up-btn-following .up-follow-on { display: inline-flex; }
#followToggle.up-btn-following:hover { background: var(--up-rose-100); border-color: #f6c4c6; color: #c4282d; transform: none; }
#followToggle.up-btn-following:hover .up-follow-on { display: none; }
#followToggle.up-btn-following:hover .up-follow-off { display: inline-flex; }

.up-icon-btn {
    width: 48px; height: 48px; border-radius: 12px; display: inline-grid; place-items: center; flex: none;
    border: 1px solid var(--up-line-strong); background: #fff; color: var(--up-ink); transition: .2s;
}
.up-icon-btn:hover { border-color: var(--up-teal-600); color: var(--up-teal-700); }

.up-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.up-chip.is-teal { background: var(--up-teal-50); color: var(--up-teal-700); border: 1px solid #cdeef2; }
.up-chip.is-green { background: var(--up-green-100); color: var(--up-green-700); }
.up-chip.is-gray { background: #eef2f6; color: var(--up-muted); }
.up-chip.is-amber { background: var(--up-amber-100); color: #a76400; }
.up-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.up-chip.is-green .up-dot { animation: up-pulse 2.2s infinite; }
@keyframes up-pulse { 0% { box-shadow: 0 0 0 0 rgba(40, 199, 111, .6); } 70% { box-shadow: 0 0 0 7px rgba(40, 199, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 199, 111, 0); } }

.up-hi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.is-teal.up-hi, .up-stat-ic.is-teal { background: var(--up-teal-100); color: var(--up-teal-700); }
.is-green.up-hi, .up-stat-ic.is-green { background: var(--up-green-100); color: var(--up-green-700); }
.is-amber.up-hi, .up-stat-ic.is-amber { background: var(--up-amber-100); color: var(--up-amber-600); }
.is-violet.up-hi, .up-stat-ic.is-violet { background: var(--up-violet-100); color: var(--up-violet-600); }
.is-navy.up-hi { background: #e7edf3; color: var(--up-navy-800); }
.is-blue.up-hi { background: var(--up-blue-100); color: #1d5fd0; }

/* Estrellas con relleno parcial */
.up-stars { position: relative; display: inline-flex; color: #d4dce4; line-height: 0; }
.up-stars svg { width: 17px; height: 17px; fill: currentColor; }
.up-stars-fill { position: absolute; inset: 0 auto 0 0; display: inline-flex; overflow: hidden; color: var(--up-amber-500); white-space: nowrap; }
.up-rate { display: inline-flex; align-items: center; gap: 8px; }
.up-rate b { color: var(--up-ink); font-weight: 700; }
.up-rate-n { font: 800 17px Montserrat, Inter, sans-serif; }

/* ---------- Portada ---------- */
.up-hero { position: relative; overflow: hidden; background: var(--up-navy-950); color: #cfe0ea; padding: 24px 0 200px; }
.up-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; filter: blur(4px) saturate(1.1); transform: scale(1.06); opacity: .35; }
.up-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 80% 0%, rgba(20, 169, 186, .3), transparent 60%), radial-gradient(600px 380px at 5% 120%, rgba(40, 199, 111, .2), transparent 60%), linear-gradient(180deg, rgba(7, 26, 41, .7), rgba(7, 26, 41, .95)); }
.up-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 85%); mask-image: linear-gradient(180deg, #000 10%, transparent 85%); }
.up-hero-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.up-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #8fa9bb; }
.up .up-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: #8fa9bb; }
.up .up-crumbs a:hover { color: #fff; }
.up-sep { opacity: .5; }
.up-cur { color: #e3f1f5; font-weight: 600; }
.up-hero-share { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #e3f1f5; font-size: 13px; font-weight: 600; transition: background .2s; }
.up-hero-share:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Tarjeta de perfil ---------- */
.up-card { position: relative; z-index: 2; margin-top: -120px; background: #fff; border-radius: var(--up-r-xl); box-shadow: var(--up-sh-md); border: 1px solid rgba(227, 234, 240, .7); }
.up-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: start; padding: 32px 36px 28px; }
.up-ava { position: relative; width: 148px; height: 148px; margin-top: -76px; }
.up-ava-ring { position: absolute; inset: 0; border-radius: 50%; padding: 5px; background: conic-gradient(from 210deg, var(--up-teal-500), var(--up-green-500), var(--up-teal-600), var(--up-teal-500)); box-shadow: 0 18px 36px -14px rgba(7, 26, 41, .45); }
.up-ava-ring img, .up-ava-ini { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, #1c5874, var(--up-navy-800)); color: #fff; font: 800 46px Montserrat, Inter, sans-serif; letter-spacing: -.02em; }
.up-ava-badge { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--up-blue-500); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.up-ava-badge svg { stroke-width: 3; }
.up-ava-badge.is-off { background: #8a9aa9; }
.up-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-public-shell .up-id h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; margin-top: 12px; }
.up-headline { font-size: 16px; color: var(--up-text); margin-top: 6px !important; max-width: 640px; }
.up-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: var(--up-muted); }
.up-meta b { color: var(--up-ink); font-weight: 700; }
.up .up-meta a:hover b { color: var(--up-teal-700); }
.up-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--up-line-strong); }
.up-badges-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.up-badges-mini img { width: 32px; height: 32px; object-fit: contain; }
.up-badges-mini span { font-size: 13px; color: var(--up-muted); margin-left: 6px; }
.up .up-badges-mini a { color: var(--up-teal-700); font-weight: 600; }
.up-actions { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }
.up-actions-row { display: flex; gap: 10px; }
.up-actions-row .up-btn { flex: 1; }
.up-actions small { font-size: 12.5px; color: var(--up-muted); text-align: center; }

.up-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--up-line); }
.up .up-stat { display: flex; align-items: center; gap: 14px; padding: 22px 28px; position: relative; color: inherit; }
.up-stat + .up-stat::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--up-line); }
.up-stat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.up-stat b { display: block; font: 800 24px Montserrat, Inter, sans-serif; color: var(--up-ink); line-height: 1.1; letter-spacing: -.02em; transition: color .2s; }
.up-stat small { font-size: 13.5px; color: var(--up-muted); }
.up-stat:hover b { color: var(--up-teal-700); }

/* ---------- Pestañas fijas ---------- */
.up-tabs { position: sticky; top: var(--up-top); z-index: 40; margin-top: 28px; background: rgba(244, 247, 250, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.up-tabs-in { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--up-line); overflow-x: auto; scrollbar-width: none; }
.up-tabs-in::-webkit-scrollbar { display: none; }
.up-tab { display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 18px; border: 0; background: none; font-weight: 600; font-size: 15px; color: var(--up-muted); white-space: nowrap; transition: color .2s; }
.up-tab:hover, .up-tab.is-active { color: var(--up-ink); }
.up-tab-ct { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: #e7edf3; color: var(--up-muted); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.up-tab.is-active .up-tab-ct { background: var(--up-teal-600); color: #fff; }
.up-tabs-ind { position: absolute; bottom: 0; left: 0; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--up-teal-500), var(--up-green-500)); transition: left .35s var(--up-ease), width .35s var(--up-ease); }

/* ---------- Rejilla de contenido ---------- */
.up-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 28px; align-items: start; }
.up-body.is-single { grid-template-columns: minmax(0, 1fr); }
.up-aside { position: sticky; top: calc(var(--up-top) + 80px); display: grid; gap: 20px; }
.up-box { background: #fff; border: 1px solid var(--up-line); border-radius: var(--up-r-lg); box-shadow: var(--up-sh-sm); }
.up-block { padding: 28px 30px; }
.up-block + .up-block, .up-offline + .up-block { margin-top: 20px; }
.up-block-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ui-public-shell .up-block-h h2 { font-size: 19px; display: flex; align-items: center; gap: 12px; }
.up-block-h p { font-size: 14px; color: var(--up-muted); margin-top: 6px; }
.up-panel { animation: up-fade .35s var(--up-ease); }
@keyframes up-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.up-offline { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: var(--up-r-lg); background: linear-gradient(135deg, #fff8ea, #fff); border: 1px solid #f6dfae; }
.ui-public-shell .up-offline h3 { font-size: 16px; }
.up-offline p { font-size: 14.5px; margin-top: 6px !important; white-space: pre-line; }
.up .up-offline-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #a76400; }

/* Acerca de */
.up-bio { position: relative; font-size: 15.5px; line-height: 1.75; color: var(--up-text); overflow: hidden; transition: max-height .5s var(--up-ease); overflow-wrap: anywhere; }
.up-bio.is-clamped { max-height: 160px; }
.up-bio.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); }
.up-bio.is-open { max-height: none; }
.up-more { margin-top: 12px; border: 0; background: none; padding: 0; color: var(--up-teal-700); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.up-more svg { transition: transform .3s; }
.up-more.is-open svg { transform: rotate(180deg); }
.up-creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.up-cred { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--up-line); border-radius: 12px; font-size: 14.5px; color: var(--up-ink); font-weight: 500; transition: .2s; overflow-wrap: anywhere; }
.up-cred:hover { border-color: #bfe5ea; background: var(--up-teal-50); }
.up-cred-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--up-teal-100); color: var(--up-teal-700); flex: none; }
.up-cred.is-extra { display: none; }
.up-creds.is-all .up-cred.is-extra { display: flex; }
.up-timeline { position: relative; display: grid; margin: 0; padding: 0 0 0 34px; list-style: none; }
.up-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--up-line); }
.up-timeline li { position: relative; padding: 4px 0 18px; font-size: 15px; color: var(--up-ink); }
.up-timeline li:last-child { padding-bottom: 0; }
.up-timeline li::before { content: ""; position: absolute; left: -34px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--up-teal-500); }
.up-timeline small { display: block; color: var(--up-muted); font-size: 13px; margin-top: 2px; }
.up-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.up .up-skill { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 10px; background: var(--up-bg); border: 1px solid var(--up-line); font-size: 13.5px; font-weight: 600; color: var(--up-ink); transition: .2s; }
.up .up-skill:hover { border-color: var(--up-teal-600); color: var(--up-teal-700); }
.up-skills-inline { display: none; }
.up-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 46px 24px; border: 1.5px dashed var(--up-line-strong); border-radius: var(--up-r-lg); background: #fbfcfd; }
.up-offline + .up-empty { margin-top: 20px; }
.up-empty .up-hi { width: 56px; height: 56px; border-radius: 16px; }
.ui-public-shell .up-empty h3 { font-size: 17px; }
.up-empty p { font-size: 14px; color: var(--up-muted); max-width: 420px; }

/* Cursos */
.up-ctools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.up-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--up-line); gap: 2px; }
.up-seg button { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 14px; color: var(--up-muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.up-seg button span { font-size: 12px; font-weight: 700; color: var(--up-muted); }
.up-seg button.is-active { background: var(--up-navy-900); color: #fff; }
.up-seg button.is-active span { color: #8fd8e2; }
.up-search { position: relative; flex: 1; min-width: 200px; margin: 0; }
.up-search svg { position: absolute; left: 14px; top: 14px; color: var(--up-muted); }
.up-search input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--up-line); background: #fff; padding: 0 14px 0 42px; font-size: 14px; color: var(--up-ink); outline: 0; transition: .2s; }
.up-search input:focus, .up-select:focus { border-color: var(--up-teal-600); box-shadow: 0 0 0 4px rgba(11, 145, 162, .12); outline: 0; }
.up-select { height: 46px; border-radius: 12px; border: 1px solid var(--up-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2363768a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 0 36px 0 14px; font-size: 14px; font-weight: 600; color: var(--up-ink); -webkit-appearance: none; appearance: none; }
.up-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.up-body.is-single .up-courses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.up-course { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--up-line); border-radius: var(--up-r-lg); overflow: hidden; transition: transform .3s var(--up-ease), box-shadow .3s var(--up-ease), border-color .3s; }
.up-course:hover { transform: translateY(-4px); box-shadow: var(--up-sh-md); border-color: transparent; }
.up-course-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--up-navy-800); }
.up-course-media > a, .up-course-media img { display: block; width: 100%; height: 100%; }
.up-course-media img { object-fit: cover; transition: transform .6s var(--up-ease); }
.up-course:hover .up-course-media img { transform: scale(1.05); }
.up-course-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 41, 0) 50%, rgba(7, 26, 41, .8)); pointer-events: none; }
.up-course-badges { position: absolute; left: 12px; top: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 64px); }
.up-cb { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--up-ink); font-size: 12px; font-weight: 700; }
.up-cb .up-dot { width: 6px; height: 6px; background: var(--up-green-500); }
.up-cb.is-done { background: rgba(7, 26, 41, .72); color: #dbe7ee; }
.up-cb.is-done .up-dot { background: #9fb3c2; }
.up-cb.is-offer { background: var(--up-rose-500); color: #fff; }
.up-cb.is-offer .up-dot { background: #fff; }
.up-cb.is-type { background: var(--up-teal-600); color: #fff; }
.up .up-course-cal { position: absolute; right: 12px; top: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--up-ink); }
.up .up-course-cal:hover { background: var(--up-teal-600); color: #fff; }
.up-course-meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; color: #e6f0f5; font-size: 13px; font-weight: 500; }
.up-course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.up-course-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 0; }
.up-course-cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--up-teal-700); }
.ui-public-shell .up-course-title h3 { font-size: 16.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.up-course-title:hover h3 { color: var(--up-teal-700) !important; }
.up-course-by { font-size: 13px; color: var(--up-muted); display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.up .up-course-by a { color: var(--up-ink); font-weight: 600; }
.up-course-by .up-stars svg { width: 15px; height: 15px; }
.up-new { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--up-teal-700); }
.up-course-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px 18px; margin-top: 12px; border-top: 1px solid var(--up-line); }
.up-course-foot .up-btn { margin-left: auto; }
.up-price b { font: 800 20px Montserrat, Inter, sans-serif; color: var(--up-ink); }
.up-price b.is-free { color: var(--up-green-600); }
.up-price s { font-size: 13px; color: var(--up-muted); margin-left: 6px; }
.up-course-noresults { margin-top: 0; }
.up-cmore { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 24px; font-size: 14px; color: var(--up-muted); }
.up-cmore-bar { width: 120px; height: 6px; border-radius: 6px; background: var(--up-line); overflow: hidden; }
.up-cmore-bar i { display: block; height: 100%; width: 0; background: var(--up-teal-600); border-radius: 6px; transition: width .4s var(--up-ease); }

/* Insignias */
.up-medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.up-medal { display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 28px 20px 22px; border: 1px solid var(--up-line); border-radius: var(--up-r-lg); background: linear-gradient(180deg, #fbfdfe, #fff); transition: .3s var(--up-ease); }
.up-medal:hover { transform: translateY(-4px); box-shadow: var(--up-sh-md); border-color: transparent; }
.up-medal img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 8px; }
.ui-public-shell .up-medal h3 { font-size: 15.5px; }
.up-medal p { font-size: 13.5px; color: var(--up-muted); }

/* Reservar reunión */
.up-book { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.up-book-cal { padding: 28px 30px; border-right: 1px solid var(--up-line); }
.up-book-slots { padding: 28px 30px; display: flex; flex-direction: column; margin: 0; }
.up-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ui-public-shell .up-cal-h h3 { font-size: 17px; }
.up-cal-h h3::first-letter { text-transform: uppercase; }
.up-cal-nav { display: flex; gap: 6px; }
.up-cal-nav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--up-line); background: #fff; color: var(--up-ink); display: grid; place-items: center; }
.up-cal-nav button:hover:not([disabled]) { border-color: var(--up-teal-600); color: var(--up-teal-700); }
.up-cal-nav button[disabled] { opacity: .4; cursor: not-allowed; }
.up-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.up-cal-dw { font-size: 12px; font-weight: 700; color: var(--up-muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0 10px; }
.up-day { position: relative; height: 48px; border: 0; border-radius: 12px; background: none; font-weight: 600; font-size: 14.5px; color: #a9b6c2; cursor: default; }
.up-day.is-out { visibility: hidden; }
.up-day.is-av { color: var(--up-ink); background: var(--up-teal-50); cursor: pointer; }
.up-day.is-av::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--up-green-500); }
.up-day.is-av:hover { background: var(--up-teal-100); }
.up-day.is-today { box-shadow: inset 0 0 0 2px var(--up-line-strong); }
.up-day.is-sel { background: var(--up-navy-900); color: #fff; }
.up-day.is-sel::after { background: #5fe0ee; }
.up-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 12.5px; color: var(--up-muted); }
.up-legend span { display: inline-flex; align-items: center; gap: 7px; }
.up-legend i { position: relative; width: 14px; height: 14px; border-radius: 5px; background: var(--up-teal-50); }
.up-legend i.is-av::after { content: ""; position: absolute; left: 4.5px; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--up-green-500); }
.up-legend i.is-today { background: none; box-shadow: inset 0 0 0 2px var(--up-line-strong); }
.up-legend i.is-sel { background: var(--up-navy-900); }
.ui-public-shell .up-book-slots h3 { font-size: 17px; }
.up-slot-date { font-size: 14px; color: var(--up-muted); margin-top: 4px !important; }
.up-slot-date::first-letter { text-transform: uppercase; }
.up-sg { margin-top: 18px; }
.up-sg h4 { font: 600 12px Inter, sans-serif !important; text-transform: uppercase; letter-spacing: .06em !important; color: var(--up-muted) !important; display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.up-sg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.up-slot { position: relative; margin: 0; }
.up-slot input { position: absolute; opacity: 0; pointer-events: none; }
.up-slot span { display: flex; align-items: center; justify-content: center; height: 42px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--up-line-strong); background: #fff; font-weight: 600; font-size: 13.5px; color: var(--up-ink); cursor: pointer; transition: .15s; white-space: nowrap; }
.up-slot span:hover { border-color: var(--up-teal-600); color: var(--up-teal-700); }
.up-slot input:focus-visible + span { outline: 3px solid rgba(11, 145, 162, .35); outline-offset: 2px; }
.up-slot input:checked + span { background: var(--up-teal-600); border-color: var(--up-teal-600); color: #fff; }
.up-slot input:disabled + span { background: var(--up-bg); color: #b3c0cb; border-color: var(--up-line); text-decoration: line-through; cursor: not-allowed; }
.up-slots-msg { margin-top: 18px; font-size: 14px; color: var(--up-muted); display: flex; align-items: center; gap: 10px; }
.up-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--up-line-strong); border-top-color: var(--up-teal-600); animation: up-spin .8s linear infinite; }
@keyframes up-spin { to { transform: rotate(360deg); } }
.up-summary { margin-top: auto; padding-top: 22px; }
.up-sum { border-radius: 14px; background: var(--up-bg); padding: 16px 18px; display: grid; gap: 8px; font-size: 14px; }
.up-sum-r { display: flex; justify-content: space-between; gap: 10px; }
.up-sum-r span { color: var(--up-muted); }
.up-sum-r b { color: var(--up-ink); font-weight: 600; text-align: right; }
.up-sum-tot { border-top: 1px solid var(--up-line-strong); padding-top: 10px; margin-top: 2px; }
.up-sum-tot b { font: 800 20px Montserrat, Inter, sans-serif; }
.up-sum-tot small { font: 500 13px Inter, sans-serif; color: var(--up-muted); }
.up-sum-tot s { color: var(--up-muted); font: 500 13px Inter, sans-serif; margin-right: 6px; }
.up-summary .up-btn { margin-top: 14px; }
.up-book-note { display: flex; gap: 8px; font-size: 12.5px; color: var(--up-muted); margin-top: 10px !important; }
.up-book-note svg { margin-top: 2px; color: var(--up-teal-600); }

/* Lateral */
.up-meet { overflow: hidden; }
.up-meet-top { position: relative; padding: 22px 22px 18px; background: linear-gradient(135deg, var(--up-navy-900), var(--up-navy-700)); color: #cfe0ea; }
.up-meet-top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 160px at 100% 0, rgba(20, 169, 186, .4), transparent 70%); pointer-events: none; }
.up-meet-top > * { position: relative; z-index: 1; }
.ui-public-shell .up-meet-top h3 { color: #fff; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.up-meet-price { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.up-meet-price b { font: 800 28px Montserrat, Inter, sans-serif; color: #fff; }
.up-meet-price s { color: #8fa9bb; font-size: 14px; }
.up-meet-price span { font-size: 13px; color: #a9bccb; }
.up-meet-off { position: absolute !important; right: 18px; top: 18px; background: var(--up-rose-500); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.up-meet-body { padding: 18px 22px 22px; display: grid; gap: 12px; }
.up-meet-next { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--up-green-100); font-size: 13px; color: var(--up-text); }
.up-meet-next b { display: block; color: var(--up-ink); font-size: 14px; }
.up-meet-next.is-empty, .up-meet.is-paused .up-meet-next { background: var(--up-bg); }
.up-meet-day { width: 44px; height: 44px; border-radius: 10px; background: #fff; display: grid; place-items: center; align-content: center; text-align: center; line-height: 1; flex: none; color: var(--up-muted); }
.up-meet-day b { font: 800 17px Montserrat, Inter, sans-serif; color: var(--up-ink); }
.up-meet-day small { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--up-green-700); }
.up-meet-list { display: grid; gap: 8px; font-size: 13.5px; margin: 0; padding: 0; list-style: none; }
.up-meet-list li { display: flex; gap: 8px; align-items: center; }
.up-meet-list svg { color: var(--up-teal-600); }
.up-side { padding: 22px; }
.ui-public-shell .up-side h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.up-side .up-hi { width: 32px; height: 32px; border-radius: 9px; }
.up-trust { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.up-trust b { display: block; color: var(--up-ink); font-size: 14px; }
.up-trust p { color: var(--up-muted); margin-top: 2px !important; }

/* ---------- Ventana de mensaje ---------- */
.up-modal { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 20px; background: rgba(7, 26, 41, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: up-fade .2s; font-family: Inter, system-ui, sans-serif; }
.up-modal[hidden] { display: none; }
.up-modal-box { position: relative; width: min(100%, 560px); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(11, 36, 54, .28); padding: 28px 30px; color: #3d5063; }
.up-modal-x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: #f4f7fa; display: grid; place-items: center; color: #0f2236; }
.up-modal-h { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.up-modal-ava { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #1c5874, #11334c); color: #fff; font: 800 16px Montserrat, sans-serif; flex: none; }
.up-modal-ava img { width: 100%; height: 100%; object-fit: cover; }
.ui-public-shell .up-modal-h h3 { font: 700 19px Montserrat, sans-serif; color: #0f2236; margin: 0; }
.up-modal-h p { font-size: 13.5px; color: #63768a; margin: 2px 0 0; }
.up-field { margin-top: 16px; display: grid; gap: 6px; }
.up-field label { font-size: 13.5px; font-weight: 600; color: #0f2236; margin: 0; }
.up-field input, .up-field textarea { width: 100%; border: 1px solid #cfdbe4; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: #0f2236; outline: 0; transition: .2s; resize: vertical; background: #fff; }
.up-field input:focus, .up-field textarea:focus { border-color: #0b91a2; box-shadow: 0 0 0 4px rgba(11, 145, 162, .12); }
.up-field .is-invalid { border-color: #e5484d; }
.up-field .invalid-feedback { display: none; font-size: 12.5px; color: #c4282d; }
.up-field .is-invalid ~ .invalid-feedback { display: block; }
.up-field-count { font-size: 12px; color: #63768a; text-align: right; }
.up-captcha { display: flex; gap: 10px; align-items: flex-start; }
.up-captcha img { height: 46px; width: auto; min-width: 120px; max-width: 180px; border-radius: 10px; background: #eef2f6; object-fit: contain; flex: none; }
.up-captcha-input { flex: 1; display: grid; gap: 6px; }
.up-captcha .up-icon-btn { width: 46px; height: 46px; }
.up-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.up-modal .up-btn-primary { background: linear-gradient(135deg, #28c76f, #1e9e57); color: #fff; }
.up-modal .up-btn-outline { border-color: #cfdbe4; color: #0f2236; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .up-body { grid-template-columns: minmax(0, 1fr) 300px; }
    .up-main { grid-template-columns: auto minmax(0, 1fr); gap: 24px 28px; }
    .up-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; }
    .up-actions-row { flex: 1 1 280px; }
    .up-actions > .up-btn { flex: 1 1 200px; }
    .up-actions small { flex-basis: 100%; text-align: left; }
    .up-medals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .up-body.is-single .up-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .up-body { grid-template-columns: minmax(0, 1fr); }
    .up-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); order: -1; align-items: start; }
    .up-aside .up-skills-card { display: none; }
    .up-skills-inline { display: block; margin-top: 20px; }
    .up-book { grid-template-columns: minmax(0, 1fr); }
    .up-book-cal { border-right: 0; border-bottom: 1px solid var(--up-line); }
    .up-stats { grid-template-columns: repeat(2, 1fr); }
    .up-stat:nth-child(3)::before { display: none; }
    .up-stat:nth-child(n+3) { border-top: 1px solid var(--up-line); }
}
@media (max-width: 760px) {
    .up-hero { padding: 16px 0 190px; }
    .up-hero-share span, .up-cur, .up-sep-last { display: none; }
    .up-main { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 0 20px 22px; }
    .up-ava { width: 124px; height: 124px; margin-top: -62px; }
    .up-ava-ini { font-size: 38px; }
    .up-chips, .up-meta, .up-badges-mini { justify-content: center; }
    .up-id { width: 100%; }
    .up-headline { margin-inline: auto; }
    .up-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .up-actions-row, .up-actions > .up-btn { flex: none; }
    .up-actions small { text-align: center; }
    .up .up-stat { padding: 16px; gap: 10px; }
    .up-stat-ic { width: 40px; height: 40px; border-radius: 12px; }
    .up-stat b { font-size: 20px; }
    .up-aside { grid-template-columns: minmax(0, 1fr); }
    .up-block { padding: 22px 20px; }
    .up-count-chip { display: none; }
    .up-creds { grid-template-columns: minmax(0, 1fr); }
    .up-courses, .up-body.is-single .up-courses { grid-template-columns: minmax(0, 1fr); }
    .up-medals { gap: 12px; }
    .up-medal { padding: 20px 12px 18px; }
    .up-medal img { width: 64px; height: 64px; }
    .up-book-cal, .up-book-slots { padding: 22px 18px; }
    .up-day { height: 42px; }
    .up-seg { width: 100%; overflow-x: auto; }
    .up-seg button { flex: 1; justify-content: center; }
    .up-select { flex: 1; }
    .up-tab { padding: 0 12px; font-size: 14px; }
    .up-modal-box { padding: 24px 20px; border-radius: 22px; }
    .up-captcha { flex-wrap: wrap; }
    .up-captcha-input { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
    .up *, .up-modal * { animation: none !important; transition: none !important; }
}
