/* EntreMedios · estilos base. Tokens de la ficha de identidad. */
:root {
    --azul-marca: #192584;
    --celeste: #29C6F2;
    --lima: #E4E21E;
    --coral: #FF8860;
    --azul-noche: #0E1550; /* texto sobre celeste y coral */
    --azul-medio: #192584;
    --rojo-bandera: #D52B1E;
    --azul-bandera: #0038A8;
    --hueso: #EBEBEB;
    --blanco: #FFFFFF;
    --texto: #1E2150;
    --texto-2: #5A5C70;
    --borde: #D6D6D6;
    --radio: 14px;
    --topbar-h: 64px;
    --bottomnav-h: 64px;
    --bs-body-font-family: var(--font-body, 'Manrope', system-ui, sans-serif);
    --bs-body-color: var(--texto);
    --bs-body-bg: var(--hueso);
    --bs-link-color: var(--azul-medio);
}
html { scroll-behavior: smooth; }
body { font-family: var(--bs-body-font-family); background: var(--hueso); color: var(--texto); padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body { padding-bottom: 0; } }
h1, h2, h3, .em-tab { font-family: var(--font-body), sans-serif; font-weight: 700; color: var(--azul-marca); }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
input, select, textarea, .form-control, .form-select { font-size: 16px !important; min-height: 44px; }

/* Barra superior */
.em-topbar { position: sticky; top: 0; z-index: 1030; background: var(--azul-marca); height: var(--topbar-h); }
.em-topbar__inner { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 16px; display: flex; align-items: center; gap: 24px; }
.em-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.em-brand img { border-radius: 10px; display: block; }
.em-brand__slogan { font-size: .8rem; color: rgba(255,255,255,.8); }
.em-topnav { gap: 4px; margin-left: 12px; }
.em-topnav a { color: #fff; text-decoration: none; padding: 8px 14px; font-weight: 500; border-bottom: 3px solid transparent; }
.em-topnav a:hover, .em-topnav a.is-active { border-bottom-color: var(--celeste); }
.em-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.em-burger { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 1.5rem; border-radius: 10px; }

/* Botones */
.em-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; font-weight: 600; border-radius: 12px; border: 2px solid transparent; }
.em-btn--lima { background: var(--lima); color: var(--azul-marca); }
.em-btn--lima:hover { background: #d4d219; color: var(--azul-marca); }
.em-btn--celeste { background: var(--celeste); color: var(--azul-marca); }
.em-btn--celeste:hover { background: #1CB4E0; color: var(--azul-marca); }
.em-btn--primary { background: var(--azul-marca); color: #fff; }
.em-btn--primary:hover { background: #121b66; color: #fff; }
.em-btn--outline { border-color: #fff; color: #fff; }
.em-btn--outline:hover { background: #fff; color: var(--azul-marca); }
.em-btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.em-btn--outline-light:hover { background: #fff; color: var(--azul-marca); }

/* Componentes */
.em-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: 16px; }
.em-page { padding-top: 24px; padding-bottom: 32px; }
.em-tab { display: inline-block; font-size: 1.25rem; margin: 0; padding: 10px 24px 8px; border-radius: 14px 14px 0 0; }
.em-tab--celeste { background: var(--celeste); } .em-tab--lima { background: var(--lima); } .em-tab--coral { background: var(--coral); }
.em-tab-line { height: 4px; }
.em-tab-line--celeste { background: var(--celeste); } .em-tab-line--lima { background: var(--lima); } .em-tab-line--coral { background: var(--coral); }

/* Etiquetas de disponibilidad (rectangulares, sin ícono) */
.em-status { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.em-status--ahora { background: var(--lima); color: var(--azul-marca); }
.em-status--desde { background: var(--celeste); color: var(--azul-noche); }
.em-status--contratado { background: var(--azul-medio); color: #fff; }
.em-status--no { background: var(--coral); color: var(--azul-noche); }

/* Bienvenida */
.em-hero { background: var(--azul-marca); color: #fff; padding: 40px 0 48px; }
.em-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); max-width: 18ch; }
.em-hero .lead { max-width: 60ch; color: rgba(255,255,255,.9); font-size: 1.05rem; }
.em-eyebrow { color: var(--celeste); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.em-steps { display: grid; gap: 12px; margin-top: 24px; max-width: 760px; }
@media (min-width: 768px) { .em-steps { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.em-step { display: flex; gap: 12px; background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px; }
.em-step p { margin: 2px 0 0; font-size: .9rem; color: rgba(255,255,255,.85); }
.em-step__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--azul-marca); }
.em-step__n--lima { background: var(--lima); } .em-step__n--celeste { background: var(--celeste); } .em-step__n--coral { background: var(--coral); }

/* Menú inferior (celular) */
.em-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--borde); display: grid; grid-template-columns: repeat(4, 1fr); }
.em-bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--texto-2); text-decoration: none; font-size: .7rem; font-weight: 500; min-height: 44px; }
.em-bottomnav a i { font-size: 1.2rem; }
.em-bottomnav a.is-active { color: var(--azul-marca); font-weight: 600; }

/* Menú hamburguesa full screen: oculto → entra de izquierda a derecha con opacidad */
.em-menu { position: fixed; inset: 0; z-index: 2000; background: var(--azul-marca); color: #fff; display: flex; flex-direction: column; padding: 16px 24px calc(24px + env(safe-area-inset-bottom));
    opacity: 0; transform: translateX(-100%); visibility: hidden;
    transition: transform .45s cubic-bezier(.22,.8,.3,1), opacity .45s ease, visibility 0s linear .45s; }
.em-menu.is-open { opacity: 1; transform: translateX(0); visibility: visible; transition-delay: 0s; }
.em-menu__head { display: flex; justify-content: space-between; align-items: center; }
.em-menu__head img { border-radius: 10px; }
.em-menu__nav { display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: 1; }
.em-menu__nav a { font-family: var(--font-body), sans-serif; font-weight: 700; font-size: clamp(1.8rem, 8vw, 2.6rem); color: #fff; text-decoration: none; padding: 8px 0; opacity: 0; transform: translateX(-24px); transition: opacity .4s ease, transform .4s ease; }
.em-menu.is-open .em-menu__nav a { opacity: 1; transform: none; }
.em-menu.is-open .em-menu__nav a:nth-child(1) { transition-delay: .12s; } .em-menu.is-open .em-menu__nav a:nth-child(2) { transition-delay: .17s; }
.em-menu.is-open .em-menu__nav a:nth-child(3) { transition-delay: .22s; } .em-menu.is-open .em-menu__nav a:nth-child(4) { transition-delay: .27s; } .em-menu.is-open .em-menu__nav a:nth-child(5) { transition-delay: .32s; }
.em-menu__nav a:hover { color: var(--celeste); }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .em-menu, .em-menu__nav a { transition: none !important; } }

/* Formularios y varios */
.em-choice { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px; border: 2px solid var(--borde); border-radius: 12px; background: #fff; cursor: pointer; font-size: .95rem; }
.em-choice span { font-size: .8rem; color: var(--texto-2); }
.btn-check:checked + .em-choice { border-color: var(--azul-marca); background: #eef0fb; }
.btn-check:focus-visible + .em-choice { outline: 3px solid var(--celeste); outline-offset: 2px; }
.em-or { display: flex; align-items: center; gap: 12px; color: var(--texto-2); margin: 14px 0; font-size: .85rem; }
.em-or::before, .em-or::after { content: ''; flex: 1; border-top: 1px solid var(--borde); }
.form-control, .form-select { border-radius: 10px; border-color: var(--borde); }
.form-control:focus, .form-select:focus { border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(41,198,242,.25); }
a[aria-disabled="true"] { opacity: .55; }

/* Directorio */
.em-dirhead { background: var(--azul-marca); color: #fff; padding: 24px 0 28px; }
.em-dirhead h1 { color: #fff; font-size: clamp(1.4rem, 4vw, 2.1rem); max-width: 24ch; }
.em-dirhead p { color: rgba(255,255,255,.85); }
.em-search { display: flex; gap: 8px; max-width: 640px; }
.em-search .form-control { border: 0; }
.em-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.em-chips::-webkit-scrollbar { display: none; }
.em-chip { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 1px solid var(--borde); border-radius: 999px; background: #fff; color: var(--texto); text-decoration: none; font-weight: 500; font-size: .9rem; }
.em-chip.is-active { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.em-count { color: var(--texto-2); font-size: .9rem; margin-bottom: .6rem; }
.em-pcard { display: flex; flex-direction: column; padding: 14px; gap: 10px; transition: border-color .15s; }
.em-pcard:hover { border-color: var(--celeste); }
.em-pcard { position: relative; }
.em-pcard__photo { position: absolute; top: 14px; left: 14px; }
.em-pcard__photo img, .em-photo img { border-radius: 50%; object-fit: cover; display: block; background: var(--hueso); }
.em-pcard__photo img { width: 64px; height: 64px; border: 2px solid var(--celeste); }
.em-pcard__body { padding-left: 76px; min-height: 64px; }
.em-pcard__name { font-family: var(--font-body), sans-serif; font-weight: 600; font-size: 1.05rem; margin: 0; }
.em-pcard__name a { color: var(--azul-marca); text-decoration: none; }
.em-pcard__name a::after { content: ''; position: absolute; inset: 0; }
.em-pcard__role { margin: 0 0 4px; color: var(--texto-2); font-size: .9rem; }
.em-pcard__foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--borde); padding-top: 8px; position: relative; z-index: 1; }
.em-link { color: var(--azul-medio); font-weight: 600; text-decoration: none; cursor: pointer; }
.em-link:hover { text-decoration: underline; }
.em-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; right: 0; bottom: 0; }
.em-pcard__photo .em-dot { right: -2px; bottom: -2px; }
.em-dot--ahora { background: var(--lima); } .em-dot--desde { background: var(--celeste); } .em-dot--contratado { background: var(--azul-medio); } .em-dot--no { background: var(--coral); }
.em-btn--ghost { border: 1px solid var(--borde); background: #fff; color: var(--texto); }
.em-btn--ghost:hover { border-color: var(--azul-marca); color: var(--azul-marca); }
.em-btn--outline-dark { border-color: var(--azul-marca); color: var(--azul-marca); background: #fff; }
.em-btn--outline-dark:hover { background: var(--azul-marca); color: #fff; }
.em-btn--sm { min-height: 44px; padding: 0 14px; font-size: .9rem; }
.em-filters .form-check-input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.em-filters .form-check { min-height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 0; }
.em-filters .form-check .form-check-input { float: none; margin: 0; }
@media (min-width: 992px) { .em-filters { position: sticky; top: calc(var(--topbar-h) + 16px); } }
.offcanvas-bottom.em-filters { height: 85vh; }
@media (min-width: 992px) { .offcanvas-bottom.em-filters { height: auto; } }

/* Perfil */
.em-back { color: var(--azul-medio); text-decoration: none; font-weight: 600; }
.em-profilecard { padding: 18px; }
.em-photo { border: 0; background: none; padding: 0; position: relative; }
.em-photo img { width: 96px; height: 96px; border: 3px solid var(--celeste); }
.em-pname { font-size: 1.7rem; margin: 0 0 4px; }
.text-primary-em { color: var(--azul-marca); }
.em-h2 { font-size: 1.1rem; display: inline-block; margin: 0 0 12px; padding-bottom: 4px; border-bottom: 3px solid var(--celeste); }
.em-tag { background: #e6f7fd; color: var(--azul-marca); padding: 4px 12px; border-radius: 8px; font-size: .85rem; }
.em-tabs { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 4px; margin-bottom: 12px; gap: 4px; flex-wrap: nowrap; }
.em-tabs .nav-link { flex: 1; min-height: 44px; border-radius: 9px; color: var(--texto-2); font-weight: 600; text-align: center; }
.em-tabs .nav-link.active { background: var(--azul-marca); color: #fff; }
@media (min-width: 992px) { .em-tabcontent > .tab-pane { display: block !important; opacity: 1 !important; } }
.em-work { display: block; text-decoration: none; color: var(--texto); }
.em-work__img { display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--hueso); border: 1px solid var(--borde); margin-bottom: 6px; }
.em-work__img img { width: 100%; height: 100%; object-fit: cover; }
.em-work__ph { display: grid; place-items: center; height: 100%; color: var(--texto-2); font-size: 1.6rem; }
.em-work strong { display: block; font-size: .95rem; color: var(--azul-marca); } .em-work small { color: var(--azul-medio); }
.em-timeline li { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.em-timeline li span { flex: none; width: 76px; color: var(--azul-medio); font-weight: 600; font-size: .9rem; }
.em-timeline li p { margin: 0; }
.em-contactbar { position: fixed; left: 0; right: 0; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); z-index: 1025; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--borde); }
body.has-contactbar { padding-bottom: calc(var(--bottomnav-h) + 72px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body.has-contactbar { padding-bottom: 0; } }
.em-save.is-saved i, [data-save].is-saved i { font-weight: 900; color: var(--azul-marca); }

/* Oportunidades y varios */
.em-callout { background: var(--azul-marca); color: #fff; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.em-callout p { color: rgba(255,255,255,.88); }
@media (min-width: 768px) { .em-callout { flex-direction: row; align-items: center; justify-content: space-between; } }
.em-sub { font-size: .8rem; font-family: var(--font-body), sans-serif; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--azul-medio); margin: 12px 0 10px; }
.em-jobco { font-family: var(--font-body), sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--azul-marca); margin: 10px 0 4px; }
.em-iconbtn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--azul-marca); font-size: 1.15rem; }
.em-note { background: var(--hueso); border: 1px solid var(--borde); border-radius: 12px; padding: 14px; }
@media (min-width: 576px) { .w-sm-auto { width: auto !important; } }
.pagination { --bs-pagination-active-bg: var(--azul-marca); --bs-pagination-active-border-color: var(--azul-marca); --bs-pagination-color: var(--azul-marca); }
.em-alert { border-radius: 12px; }
.em-choice .em-status { font-size: .85rem; }
.btn-check:checked + .em-chip { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.btn-check:focus-visible + .em-chip { outline: 3px solid var(--celeste); outline-offset: 2px; }
.em-footer { padding: 24px 0 8px; color: var(--texto-2); font-size: .85rem; }
.em-footer a { color: var(--texto-2); }

/* ===== Paleta definitiva =====
   Base #192584 · Hover #E4E21E · Botones primarios y secundarios #192584 · Claros #EBEBEB
   Acentos: #29C6F2 (celeste), #E4E21E (lima) y #FF8860 (coral, solo estados) */
.em-btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.em-btn:hover { transform: translateY(-2px); }
.em-btn:active { transform: translateY(0); }
/* Primario y secundario: azul base; hover lima con texto azul */
.em-btn--primary { background: var(--azul-marca); color: #fff; border-color: var(--azul-marca); }
.em-btn--primary:hover, .em-btn--primary:focus-visible { background: var(--lima); color: var(--azul-marca); border-color: var(--lima); }
.em-btn--outline-dark, .em-btn--ghost { background: transparent; color: var(--azul-marca); border: 2px solid var(--azul-marca); }
.em-btn--outline-dark:hover, .em-btn--ghost:hover { background: var(--lima); border-color: var(--lima); color: var(--azul-marca); }
/* Sobre fondo azul: blanco/lima */
.em-btn--lima { background: var(--lima); color: var(--azul-marca); border-color: var(--lima); }
.em-btn--lima:hover { background: #fff; border-color: #fff; color: var(--azul-marca); }
.em-btn--celeste { background: var(--hueso); color: var(--azul-marca); border-color: var(--hueso); }
.em-btn--celeste:hover { background: var(--lima); border-color: var(--lima); color: var(--azul-marca); }
.em-btn--outline, .em-btn--outline-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.em-btn--outline:hover, .em-btn--outline-light:hover { background: var(--lima); border-color: var(--lima); color: var(--azul-marca); }
/* Enlaces y chips: hover lima */
.em-link, .em-back { color: var(--azul-marca); text-decoration: underline; text-decoration-color: var(--celeste); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: background-color .2s; }
.em-link:hover, .em-back:hover { background: var(--lima); text-decoration-color: transparent; color: var(--azul-marca); }
.em-chip { transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.em-chip:hover { background: var(--lima); border-color: var(--lima); color: var(--azul-marca); transform: translateY(-2px); }
.em-chip.is-active:hover { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.em-topnav a { transition: background-color .2s, border-color .2s; border-radius: 8px 8px 0 0; }
.em-topnav a:hover, .em-topnav a.is-active { border-bottom-color: var(--lima); color: #fff; background: rgba(255,255,255,.08); }
.em-menu__nav a:hover { color: var(--lima); }
.em-bottomnav a { transition: color .2s, transform .2s; }
.em-bottomnav a.is-active i { transform: translateY(-2px) scale(1.12); }
.em-bottomnav a.is-active { color: var(--azul-marca); }
.em-bottomnav a.is-active::after { content: ''; width: 24px; height: 3px; border-radius: 2px; background: var(--lima); }
/* Resaltados terciarios #EBEBEB */
.em-tag { background: var(--hueso); color: var(--azul-marca); border: 1px solid var(--borde); }
.em-note, .em-work__img { background: var(--hueso); }
.em-choice { transition: border-color .2s, background-color .2s, transform .2s; }
.em-choice:hover { border-color: var(--azul-marca); transform: translateY(-1px); }
.btn-check:checked + .em-choice { background: var(--hueso); }
.em-status--contratado { background: var(--azul-marca); color: #fff; }
.em-dot--contratado { background: var(--azul-marca); }
.em-dot--ahora { background: var(--lima); } .em-dot--desde { background: var(--celeste); } .em-dot--no { background: var(--coral); }
.em-hero, .em-dirhead, .em-callout { background: var(--azul-marca); }
.em-search .form-control:focus { box-shadow: 0 0 0 3px var(--lima); }
.form-control:focus, .form-select:focus { border-color: var(--azul-marca); box-shadow: 0 0 0 3px rgba(228,226,30,.6); }
.pagination { --bs-pagination-hover-bg: var(--lima); --bs-pagination-hover-color: var(--azul-marca); }

/* ===== Animaciones ===== */
@keyframes emUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes emFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes emLeft { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes emPop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
@keyframes emPulse { 0% { box-shadow: 0 0 0 0 rgba(228,226,30,.7); } 70% { box-shadow: 0 0 0 10px rgba(228,226,30,0); } 100% { box-shadow: 0 0 0 0 rgba(228,226,30,0); } }
main { animation: emFade .45s ease; }
.em-hero .container > *, .em-dirhead .container > * { animation: emUp .6s cubic-bezier(.22,.8,.3,1) both; }
.em-hero .container > :nth-child(1) { animation-name: emPop; }
.em-hero .container > :nth-child(2) { animation-delay: .08s; } .em-hero .container > :nth-child(3) { animation-delay: .16s; }
.em-hero .container > :nth-child(4) { animation-delay: .24s; } .em-hero .container > :nth-child(5) { animation-delay: .34s; } .em-hero .container > :nth-child(6) { animation-delay: .44s; }
.em-dirhead .container > :nth-child(2) { animation-delay: .08s; } .em-dirhead .container > :nth-child(3) { animation-delay: .16s; } .em-dirhead .container > :nth-child(4) { animation-delay: .24s; }
.em-step { animation: emLeft .55s cubic-bezier(.22,.8,.3,1) both; transition: transform .25s, background-color .25s; }
.em-step:nth-child(1) { animation-delay: .4s; } .em-step:nth-child(2) { animation-delay: .5s; } .em-step:nth-child(3) { animation-delay: .6s; }
.em-step:hover { transform: translateY(-3px); background: rgba(255,255,255,.14); }
.em-tab { animation: emLeft .5s cubic-bezier(.22,.8,.3,1) both; transform-origin: left; }
.em-tab-line { animation: emLine .6s ease both .1s; transform-origin: left; }
@keyframes emLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Tarjetas: entrada escalonada y elevación al pasar */
.em-pcard, .em-card.p-3, .em-work { animation: emUp .5s cubic-bezier(.22,.8,.3,1) both; }
.row > div:nth-child(1) > .em-pcard { animation-delay: .02s; } .row > div:nth-child(2) > .em-pcard { animation-delay: .07s; } .row > div:nth-child(3) > .em-pcard { animation-delay: .12s; }
.row > div:nth-child(4) > .em-pcard { animation-delay: .17s; } .row > div:nth-child(5) > .em-pcard { animation-delay: .22s; } .row > div:nth-child(n+6) > .em-pcard { animation-delay: .27s; }
.em-pcard { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.em-pcard:hover { transform: translateY(-4px); border-color: var(--azul-marca); box-shadow: 0 10px 24px -14px rgba(25,37,132,.5); }
.em-pcard__photo img { transition: transform .35s ease; } .em-pcard:hover .em-pcard__photo img { transform: scale(1.06); }
.em-work__img img { transition: transform .5s ease; } .em-work:hover .em-work__img img { transform: scale(1.05); } .em-work__img { overflow: hidden; }
.em-dot--ahora { animation: emPulse 2s infinite; }
/* Revelar al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.em-callout { animation: emPop .6s ease both; }
.modal.fade .modal-dialog { transition: transform .3s cubic-bezier(.22,.8,.3,1), opacity .3s; transform: translateY(24px) scale(.97); }
.modal.show .modal-dialog { transform: none; }
.em-alert { animation: emUp .4s ease both; }
.adm-stat, .adm-card { animation: emUp .5s ease both; transition: transform .2s, box-shadow .2s; }
.adm-stat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -16px rgba(25,37,132,.5); }
.adm-side nav a { transition: background-color .2s, padding-left .2s; } .adm-side nav a:hover { padding-left: 26px; background: rgba(228,226,30,.18); }
.adm-side nav a.is-active { border-left-color: var(--lima); }
.adm-bars div { transform-origin: bottom; animation: emGrow .7s ease both; } @keyframes emGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.table-hover > tbody > tr, .adm-table tbody tr { transition: background-color .15s; } .adm-table tbody tr:hover { background: rgba(228,226,30,.18); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
.em-link { white-space: nowrap; }

/* Controles con la paleta y sin deformarse */
.form-check-input { flex: none; width: 1.25rem; height: 1.25rem; border-color: var(--azul-marca); }
.form-check-input:checked { background-color: var(--azul-marca); border-color: var(--azul-marca); }
.form-check-input:focus { border-color: var(--azul-marca); box-shadow: 0 0 0 3px rgba(228,226,30,.6); }
.form-switch .form-check-input { width: 2.4rem; }
.em-bottomnav { z-index: 1020; } .em-contactbar { z-index: 1019; }
.offcanvas { --bs-offcanvas-zindex: 1060; } .offcanvas-backdrop { --bs-backdrop-zindex: 1055; }
.form-check-input { min-height: 0; }

/* ===== Topbar celeste: entra deslizando y se oculta al bajar / reaparece al subir ===== */
.em-topbar { background: var(--celeste); box-shadow: 0 1px 0 rgba(25,37,132,.18); transition: transform .35s cubic-bezier(.22,.8,.3,1); animation: emTopIn .7s cubic-bezier(.22,.8,.3,1) both; }
.em-topbar.is-hidden { transform: translateY(-100%); }
@keyframes emTopIn { 0% { transform: translateY(-100%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.em-topbar .em-brand, .em-topbar .em-topnav a, .em-topbar .em-burger { color: var(--azul-marca); }
.em-topbar .em-brand__slogan { color: var(--azul-marca); opacity: .85; font-weight: 500; }
.em-topbar .em-topnav a { font-weight: 600; }
.em-topbar .em-topnav a:hover, .em-topbar .em-topnav a.is-active { color: var(--azul-marca); background: rgba(255,255,255,.35); border-bottom-color: var(--azul-marca); }
.em-topbar .em-burger:hover { background: rgba(255,255,255,.35); }
.em-topbar .em-btn--outline { border-color: var(--azul-marca); color: var(--azul-marca); }
.em-topbar .em-btn--outline:hover { background: var(--lima); border-color: var(--lima); color: var(--azul-marca); }
.em-topbar .em-btn--celeste { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.em-topbar .em-btn--celeste:hover { background: var(--lima); border-color: var(--lima); color: var(--azul-marca); }
@media (prefers-reduced-motion: reduce) { .em-topbar { animation: none !important; } }
.em-topbar .em-btn { white-space: nowrap; padding: 0 14px; font-size: .9rem; } .em-topbar__inner { gap: 16px; }

/* ===== Sidebar de filtros (panel de búsqueda) ===== */
.em-sidebar { --bs-offcanvas-width: min(92vw, 380px); --bs-offcanvas-bg: var(--hueso); }
@media (min-width: 992px) { .em-sidebar { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100vh - var(--topbar-h) - 32px); overflow-y: auto; scrollbar-width: thin; } .em-sidebar .offcanvas-body { padding: 0; } }
.em-sidepanel { background: #fff; border: 1px solid var(--borde); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px -18px rgba(25,37,132,.35); }
.em-sidepanel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.em-sidepanel__head h2 { font-family: var(--font-body), sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--texto); margin: 0; }
.em-sidepanel__clear { color: var(--texto-2); font-weight: 600; text-decoration: none; padding: 4px 6px; border-radius: 6px; transition: background-color .2s, color .2s; }
.em-sidepanel__clear:hover { background: var(--lima); color: var(--azul-marca); }
.em-field { position: relative; display: flex; align-items: center; }
.em-field > i.fa-magnifying-glass { position: absolute; left: 16px; color: #8b8da0; pointer-events: none; }
.em-field input[type=search] { width: 100%; min-height: 48px; border: 1px solid var(--borde); border-radius: 14px; padding: 0 44px 0 44px; background: #fff; color: var(--texto); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.em-field input[type=search]::-webkit-search-cancel-button { display: none; }
.em-field input[type=search]::placeholder { color: #9a9cae; }
.em-field input[type=search]:focus { outline: 0; border-color: var(--azul-marca); box-shadow: 0 0 0 3px rgba(228,226,30,.6); }
.em-fgroup { margin-top: 22px; }
.em-fgroup h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-body), sans-serif; font-weight: 600; font-size: 1rem; color: var(--texto); margin: 0 0 10px; }
.em-fgroup h3 i { width: 20px; text-align: center; }
.em-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.em-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--borde); border-radius: 999px; background: #fff; color: var(--texto); font-size: .95rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s; user-select: none; }
.em-pill:hover { background: var(--lima); border-color: var(--lima); color: var(--azul-marca); transform: translateY(-1px); }
.btn-check:checked + .em-pill { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.btn-check:focus-visible + .em-pill { outline: 3px solid var(--celeste); outline-offset: 2px; }
/* Buscador con lista (como el de skills/países) */
.em-combo { position: relative; }
.em-combo__x { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--texto-2); border-radius: 50%; }
.em-combo__x:hover { background: var(--hueso); }
.em-combo__list { display: none; margin-top: 8px; max-height: 220px; overflow-y: auto; border: 1px solid var(--borde); border-radius: 14px; background: #fff; padding: 6px; scrollbar-width: thin; }
.em-combo.is-open .em-combo__list { display: block; animation: emFade .2s ease; }
.em-combo__opt { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 11px 14px; min-height: 44px; border-radius: 10px; color: var(--texto); font-size: .95rem; transition: background-color .15s; }
.em-combo__opt[hidden] { display: none; }
.em-combo__opt:hover { background: var(--lima); color: var(--azul-marca); }
.em-combo__opt.is-selected { background: var(--hueso); font-weight: 600; color: var(--azul-marca); }
.em-combo__empty { margin: 0; padding: 12px 14px; color: var(--texto-2); font-size: .9rem; }
.em-chip__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--azul-marca); color: #fff; font-size: .75rem; }
.em-chip:hover .em-chip__n { background: var(--azul-marca); }
.em-sidebar .offcanvas-header { padding-bottom: 0; }

/* ===== Panel de la cuenta (menú lateral · feed · tarjetas) ===== */
.em-acct { padding-top: 24px; padding-bottom: 40px; }
.em-acctnav { position: sticky; top: calc(var(--topbar-h) + 16px); background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.em-acctnav hr { margin: 6px 4px; border-color: var(--borde); opacity: 1; }
.em-acctnav a, .em-acctnav button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; border-radius: 12px; color: var(--texto); text-decoration: none; font-size: .95rem; text-align: left; width: 100%; transition: background-color .2s, padding-left .2s; }
.em-acctnav a:hover, .em-acctnav button:hover { background: var(--lima); color: var(--azul-marca); }
/* «Publicar búsqueda» es el botón principal: no cambia al pasar el mouse */
.em-acctnav a.is-cta:hover { background: transparent; color: var(--texto); }
.em-acctnav a.is-active { background: var(--hueso); font-weight: 600; color: var(--azul-marca); }
.em-acctnav i.fa-solid:not(.fa-chevron-right), .em-acctnav i.fa-regular { width: 20px; text-align: center; }
.em-acctnav__user { padding: 10px !important; } .em-acctnav__user:hover { padding-left: 10px !important; }
.em-acctnav__user img, .em-acctnav__ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.em-acctnav__ph { display: grid; place-items: center; background: var(--hueso); color: var(--azul-marca); }
.em-acctnav__ph--lg { width: 72px; height: 72px; font-size: 1.6rem; }
.em-acctnav__user span:not(.em-acctnav__ph) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.em-acctnav__user small { color: var(--texto-2); }
/* Banner */
.em-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--azul-marca); color: #fff; border-radius: 20px; padding: 26px 28px; margin-bottom: 16px; overflow: hidden; }
.em-banner h1 { color: #fff; font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 8px; max-width: 24ch; }
.em-banner p { color: rgba(255,255,255,.88); max-width: 52ch; }
.em-banner__kicker { color: var(--lima) !important; font-weight: 600; margin-bottom: 4px; }
.em-banner__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--celeste); flex: none; animation: emPop .6s ease both .2s; }
.em-banner__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; transition: background-color .2s; } .em-banner__x:hover { background: rgba(255,255,255,.15); }
/* Pestañas del feed */
.em-feedtabs { display: flex; gap: 22px; border-bottom: 1px solid var(--borde); overflow-x: auto; scrollbar-width: none; list-style: none; padding: 0; margin: 0; }
.em-feedtabs button { border: 0; background: none; padding: 10px 2px; min-height: 44px; color: var(--texto-2); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; display: inline-flex; gap: 6px; align-items: center; }
.em-feedtabs button:hover { color: var(--azul-marca); border-bottom-color: var(--lima); }
.em-feedtabs button.active { color: var(--azul-marca); border-bottom-color: var(--azul-marca); }
/* Tarjetas de la columna derecha */
.em-side { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.em-side--profile { background: #fff; }
.em-side__name { font-family: var(--font-body), sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--texto); margin: 0; }
.em-side__title { font-family: var(--font-body), sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--texto); margin: 0 0 10px; }
.em-side__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .92rem; padding: 3px 0; }
.em-side__item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--borde); }
.em-side__item:first-of-type { border-top: 0; }
.em-side__item small { display: block; color: var(--texto-2); margin-bottom: 2px; }
.em-edit { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--hueso); color: var(--azul-marca); transition: background-color .2s, transform .2s; flex: none; }
.em-edit:hover { background: var(--lima); transform: rotate(-8deg); }
.em-progress { height: 6px; background: var(--hueso); border-radius: 99px; overflow: hidden; }
.em-progress span { display: block; height: 100%; background: var(--azul-marca); border-radius: 99px; animation: emBar 1s cubic-bezier(.22,.8,.3,1) both .2s; transform-origin: left; }
@keyframes emBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.text-ok { color: #1c7a3a; } .text-warn { color: #b8480a; }
.min-w-0 { min-width: 0; }
.em-side .em-photo img { width: 72px; height: 72px; }
@media (max-width: 991.98px) { .em-banner { padding: 22px 20px; } .em-acct { padding-top: 16px; } }

/* Celular: arriba solo la tarjeta del perfil; el feed y después el resto de las tarjetas */
@media (max-width: 991.98px) {
    .em-acct aside[aria-label="Resumen"] { display: contents; }
    .em-acct .em-side { order: 3; width: calc(100% - var(--bs-gutter-x)); margin: 0 calc(var(--bs-gutter-x) * .5) 16px; }
    .em-acct .em-side--profile { order: 1; }
    .em-acct .row > .order-2 { order: 2; }
}


/* ===== Shell del sitio: menú lateral · contenido · tarjetas a la derecha ===== */
.em-topbar__inner { max-width: 1560px; }
.em-shell { max-width: 1560px; margin: 0 auto; padding: 0 16px; }
.em-shell__body { min-width: 0; }
.em-shell .container { max-width: none; padding-left: 0; padding-right: 0; }
.em-shell .em-page { padding-top: 20px; }
@media (min-width: 992px) {
    .em-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 20px 24px 0; align-items: start; }
    .em-shell__nav .em-acctnav { top: calc(var(--topbar-h) + 20px); }
    .em-shell .em-page { padding-top: 0; }
}
.em-acctnav__guest { padding: 12px; display: flex; flex-direction: column; } .em-acctnav__guest small { color: var(--texto-2); }
/* Bandas azules → tarjetas redondeadas dentro del shell */
.em-shell .em-hero, .em-shell .em-dirhead { border-radius: 20px; margin-bottom: 20px; }
.em-shell .em-hero { padding: 36px 32px 40px; }
.em-shell .em-dirhead { padding: 26px 28px 30px; }
.em-shell .em-hero .container, .em-shell .em-dirhead .container { padding: 0; }
@media (max-width: 575.98px) { .em-shell .em-hero, .em-shell .em-dirhead { padding-left: 18px; padding-right: 18px; } .em-shell { padding: 0 12px; } }
@media (max-width: 991.98px) { .em-shell .em-hero, .em-shell .em-dirhead { margin-top: 12px; } }
.em-acct { padding-top: 0; }


/* ===== Se quita el shell global (se vuelve al diseño anterior del front) ===== */
.em-topbar__inner { max-width: 1200px; }
.em-acct { padding-top: 24px; }

/* ===== Home: buscador grande + barra lateral de áreas ===== */
.em-herosearch { display: flex; align-items: center; gap: 8px; max-width: 720px; margin-top: 22px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 18px; }
.em-herosearch > i { color: #8b8da0; }
.em-herosearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; min-height: 48px; padding: 0 6px; color: var(--texto); }
.em-herosearch input::-webkit-search-cancel-button { display: none; }
.em-herosearch:focus-within { box-shadow: 0 0 0 3px var(--lima); }
.em-herosearch .em-btn { min-height: 48px; }
.em-sidelist { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 14px; position: sticky; top: calc(var(--topbar-h) + 16px); }
.em-sidelist h2 { font-size: 1.05rem; margin: 4px 8px 10px; }
.em-sidelist a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--texto); text-decoration: none; font-size: .95rem; transition: background-color .2s, padding-left .2s; }
.em-sidelist a b { font-weight: 600; font-size: .8rem; color: var(--texto-2); background: var(--hueso); border-radius: 999px; min-width: 28px; padding: 2px 8px; text-align: center; }
.em-sidelist a:hover { background: var(--lima); color: var(--azul-marca); padding-left: 16px; }
.em-sidelist a:hover b { background: #fff; color: var(--azul-marca); }
@media (max-width: 991.98px) {
    .em-sidelist { position: static; display: flex; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: none; align-items: center; }
    .em-sidelist::-webkit-scrollbar { display: none; }
    .em-sidelist h2 { display: none; }
    .em-sidelist a { flex: none; border: 1px solid var(--borde); border-radius: 999px; padding: 4px 14px; }
    .em-sidelist a b { display: none; }
}

/* ===== Tipografía moderna ===== */
body { font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
h1, h2, h3, h4, .em-tab, .em-title, .em-pname, .em-side__title, .em-side__name { letter-spacing: -0.025em; font-weight: 700; }
h1 { line-height: 1.08; }

/* ===== Títulos normales (sin "sombreros") ===== */
.em-tab { display: block; background: none !important; padding: 0; border-radius: 0; margin: 0 0 4px; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; color: var(--azul-marca); }
.em-tab-line { display: none; }
.em-title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--azul-marca); margin: 0 0 6px; }
.em-h2 { display: block; border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; font-size: 1.15rem; }

/* ===== Selección marcada: relleno sólido, sin bordes ni aros ===== */
.btn-check:checked + .em-choice { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.btn-check:checked + .em-choice strong { color: #fff; }
.btn-check:checked + .em-choice span:not(.em-status) { color: rgba(255,255,255,.85); }
.btn-check:checked + .em-pill, .btn-check:checked + .em-chip { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; font-weight: 600; }
.em-choice:hover { background: var(--lima); border-color: var(--lima); transform: translateY(-1px); }
.btn-check:checked + .em-choice:hover { background: var(--azul-marca); border-color: var(--azul-marca); }
.btn-check:focus + .em-choice, .btn-check:focus-visible + .em-choice,
.btn-check:focus + .em-pill, .btn-check:focus-visible + .em-pill,
.btn-check:focus + .em-chip, .btn-check:focus-visible + .em-chip { outline: 0; box-shadow: none; }
.em-chip.is-active, .em-chip.is-active:hover { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; font-weight: 600; }
.em-pill, .em-choice { -webkit-tap-highlight-color: transparent; }

/* ===== Perfil público estilo LinkedIn ===== */
.em-lihead { padding: 0; overflow: hidden; }
.em-cover { height: clamp(120px, 22vw, 230px); background-color: var(--azul-marca);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='300' viewBox='0 0 900 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='2'%3E%3Ccircle cx='820' cy='20' r='60'/%3E%3Ccircle cx='820' cy='20' r='110'/%3E%3Ccircle cx='820' cy='20' r='160'/%3E%3Ccircle cx='820' cy='20' r='210'/%3E%3Ccircle cx='820' cy='20' r='260'/%3E%3Ccircle cx='820' cy='20' r='310'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right top; background-size: cover; position: relative; }
.em-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-lihead__top { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 24px; }
.em-liavatar { position: relative; flex: none; margin-top: calc(-1 * clamp(52px, 8.5vw, 88px)); width: clamp(104px, 17vw, 176px); height: clamp(104px, 17vw, 176px); padding: 0; border: 4px solid #fff; border-radius: 50%; background: #fff; }
.em-liavatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.em-liavatar .em-dot { width: 22px; height: 22px; right: 8px; bottom: 8px; border-width: 3px; }
.em-lihead__tools { display: flex; gap: 8px; padding-top: 14px; }
.em-toolbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--borde); border-radius: 50%; background: #fff; color: var(--azul-marca); transition: background-color .2s, border-color .2s, transform .2s; }
.em-toolbtn:hover { background: var(--lima); border-color: var(--lima); transform: translateY(-2px); }
.em-toolbtn.is-saved { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.em-toolbtn.is-saved i { color: #fff; }
.em-lihead__body { padding: 8px 24px 24px; }
.em-liname { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 8px 0 2px; color: var(--texto); }
.em-liheadline { font-size: 1.05rem; margin: 0 0 8px; color: var(--texto); }
.em-limeta { margin: 0; color: var(--texto-2); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.em-limeta__sep { opacity: .6; }
.em-linkbtn { border: 0; background: none; padding: 0; color: var(--azul-marca); font-weight: 600; text-decoration: underline; text-decoration-color: var(--celeste); text-underline-offset: 3px; text-decoration-thickness: 2px; cursor: pointer; }
.em-linkbtn:hover { background: var(--lima); text-decoration-color: transparent; }
.em-orglist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.em-orglist li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.em-orglist--lg li { font-weight: 500; font-size: 1rem; }
.em-orgicon { width: 40px; height: 40px; flex: none; border-radius: 8px; display: grid; place-items: center; font-weight: 700; }
.em-availcard { background: var(--hueso); border-radius: 14px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.em-availcard__title { margin: 0 0 6px; }
.em-liactions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.em-section { padding: 22px 24px; margin-bottom: 16px; }
.em-sectitle { font-size: 1.3rem; margin: 0 0 12px; color: var(--texto); }
.em-sectitle--sm { font-size: 1.1rem; }
.em-simlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.em-simlist a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--texto); transition: background-color .2s; }
.em-simlist a:hover { background: var(--lima); color: var(--azul-marca); }
.em-simlist__photo { position: relative; flex: none; }
.em-simlist__photo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }
.em-simlist__photo .em-dot { width: 14px; height: 14px; right: -2px; bottom: -2px; }
.em-simlist__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.em-simlist__txt small { color: var(--texto-2); }
.em-simlist a:hover small { color: var(--azul-marca); }
.em-contactlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.em-contactlist li { display: flex; gap: 16px; align-items: flex-start; }
.em-contactlist li > i { width: 24px; text-align: center; margin-top: 3px; color: var(--azul-marca); font-size: 1.1rem; }
.em-contactlist li div { display: flex; flex-direction: column; min-width: 0; word-break: break-word; }
.em-dropdown { border-radius: 14px; border: 1px solid var(--borde); padding: 6px; }
.em-dropdown .dropdown-item { display: flex; align-items: center; gap: 12px; min-height: 44px; border-radius: 10px; }
.em-dropdown .dropdown-item i { width: 18px; text-align: center; }
.em-dropdown .dropdown-item:hover { background: var(--lima); color: var(--azul-marca); }
.em-coverprev { max-width: 480px; aspect-ratio: 4.8/1; overflow: hidden; border-radius: 10px; border: 1px solid var(--borde); } .em-coverprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575.98px) { .em-lihead__top, .em-lihead__body { padding-left: 16px; padding-right: 16px; } .em-section { padding: 18px 16px; } }

/* ===== Íconos y textos nunca se tocan ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn > i + span, .btn > span + i { margin: 0; }
.btn > i.me-1, .btn > i.me-2 { margin-right: 0 !important; }
.em-btn--icon { min-width: 44px; padding: 0 12px; }
.em-link i, .em-back i, .em-linkbtn i { margin-right: .4rem; }
.em-work small { display: inline-flex; align-items: center; gap: .4rem; }
.em-chip i { margin: 0; } .em-chip { gap: .5rem; }
.dropdown-item i { margin: 0; }
.btn-close { gap: 0; }

/* ===== Footer ===== */
.em-footer { margin-top: 56px; padding: 0 0 24px; color: var(--texto); font-size: .95rem; }
.em-fcta { position: relative; overflow: hidden; background-color: var(--azul-marca); color: #fff; text-align: center; border-radius: 24px; padding: clamp(40px, 7vw, 72px) 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' viewBox='0 0 1200 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='2'%3E%3Ccircle cx='60' cy='280' r='70'/%3E%3Ccircle cx='60' cy='280' r='130'/%3E%3Ccircle cx='60' cy='280' r='190'/%3E%3Ccircle cx='60' cy='280' r='250'/%3E%3Ccircle cx='1140' cy='20' r='70'/%3E%3Ccircle cx='1140' cy='20' r='130'/%3E%3Ccircle cx='1140' cy='20' r='190'/%3E%3Ccircle cx='1140' cy='20' r='250'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover; background-position: center; }
.em-fcta h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.6rem); font-weight: 600; max-width: 22ch; margin: 0 auto 26px; line-height: 1.12; }
.em-btn--white { background: #fff; color: var(--azul-marca); border-color: #fff; padding: 0 26px; min-height: 52px; border-radius: 999px; font-weight: 600; }
.em-btn--white:hover, .em-btn--white:focus-visible { background: var(--lima); border-color: var(--lima); color: var(--azul-marca); }
.em-fcols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; padding: 48px 0 36px; border-bottom: 1px solid var(--borde); margin-top: 48px; }
@media (min-width: 992px) { .em-fcols { grid-template-columns: repeat(4, 1fr); } }
.em-fcols h2 { font-family: inherit; font-size: .95rem; font-weight: 500; color: var(--texto-2); letter-spacing: 0; margin: 0 0 14px; }
.em-fcols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.em-fcols a { display: inline-block; padding: 8px 0; min-height: 40px; color: var(--texto); text-decoration: none; transition: color .2s; }
.em-fcols a:hover { color: var(--azul-marca); text-decoration: underline; text-decoration-color: var(--celeste); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.em-fmid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 0; }
.em-fsocial, .em-fapp { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.em-fsocial > span, .em-fapp > span { color: var(--texto-2); margin-right: 6px; }
.em-fsocial a { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--texto-2); font-size: 1.35rem; transition: background-color .2s, color .2s, transform .2s; }
.em-fsocial a:hover { background: var(--lima); color: var(--azul-marca); transform: translateY(-2px); }
.em-fbottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; color: var(--texto-2); font-size: .88rem; padding-top: 8px; }
.em-flegal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.em-flegal a { color: var(--texto-2); text-decoration: none; padding: 6px 0; min-height: 36px; display: inline-flex; align-items: center; }
.em-flegal a:hover { color: var(--azul-marca); text-decoration: underline; }

/* ===== Manrope ===== */
body { font-feature-settings: normal; letter-spacing: 0; }
h1, h2, h3, h4, .em-tab, .em-title, .em-pname, .em-liname, .em-side__title, .em-side__name, .em-sectitle { letter-spacing: -0.02em; }
h1, .em-tab, .em-liname { font-weight: 800; }
h2, h3, .em-title, .em-sectitle { font-weight: 700; }
.em-fcta h2 { font-weight: 700; letter-spacing: -0.025em; }
.btn, .em-btn { font-weight: 600; letter-spacing: -0.005em; }

/* ===== Topbar celeste con texto blanco; menú sin "sombrero" ===== */
.em-topbar .em-brand, .em-topbar .em-topnav a, .em-topbar .em-burger { color: #fff; }
.em-topbar .em-brand__slogan { color: #fff; opacity: .95; font-weight: 600; }
.em-topbar .em-topnav { gap: 6px; }
.em-topbar .em-topnav a { position: relative; background: none !important; border: 0; border-radius: 0; padding: 10px 6px; margin: 0 8px; font-weight: 700; font-size: 1rem; color: #fff; transition: opacity .2s; }
.em-topbar .em-topnav a::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 3px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.22,.8,.3,1); }
.em-topbar .em-topnav a:hover::after, .em-topbar .em-topnav a.is-active::after { transform: scaleX(1); }
.em-topbar .em-topnav a:not(.is-active):not(:hover) { opacity: .92; }
.em-topbar .em-burger:hover { background: rgba(255,255,255,.2); }
.em-topbar .em-btn--outline { border-color: #fff; color: #fff; }
.em-topbar .em-btn--outline:hover { background: #fff; border-color: #fff; color: var(--azul-marca); }
.em-topbar .em-btn--celeste { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.em-topbar .em-btn--celeste:hover { background: #fff; border-color: #fff; color: var(--azul-marca); }
.em-topbar .em-topnav a:hover, .em-topbar .em-topnav a.is-active { color: #fff; background: none; border-bottom: 0; }

/* ===== Topbar a ancho completo; menú en botones redondeados con hover marcado ===== */
.em-topbar__inner { max-width: none; padding: 0 clamp(16px, 2.5vw, 36px); }
.em-topbar .em-topnav { gap: 6px; margin-left: 20px; }
.em-topbar .em-topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; margin: 0; border: 2px solid transparent; border-radius: 999px; background: transparent !important; color: #fff; font-weight: 700; font-size: 1rem; opacity: 1 !important; transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.em-topbar .em-topnav a::after { display: none; }
/* Hover: botón lima con texto azul, bien marcado */
.em-topbar .em-topnav a:hover, .em-topbar .em-topnav a:focus-visible { background: var(--lima) !important; color: var(--azul-marca) !important; transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(25,37,132,.7); outline: 0; }
/* Activo: botón blanco con texto azul */
.em-topbar .em-topnav a.is-active { background: #fff !important; color: var(--azul-marca) !important; }
.em-topbar .em-topnav a.is-active:hover { background: var(--lima) !important; }

/* ===== CTA del footer con onda que sigue al mouse ===== */
.em-fcta { --wave-c0: #29C6F2; --wave-c1: #7ADAF6; --wave-c2: #EBEBEB; --wave-c3: #E4E21E; --wave-rest: .2; --wave-idle: .52; --wave-sigma: .14; --wave-ease: .08; --wave-blur: 14px; --wave-max: .78;
    background-image: none; min-height: clamp(300px, 32vw, 400px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.em-wave { position: absolute; inset: -40px; pointer-events: none; filter: blur(var(--wave-blur)); }
.em-wave canvas { width: 100%; height: 100%; display: block; }
.em-fcta h2, .em-fcta .btn { position: relative; z-index: 2; }
.em-fcta h2 { text-shadow: 0 2px 18px rgba(25,37,132,.6); }

/* ===== Hero: texto a la izquierda, imagen opcional a la derecha ===== */
.em-hero { padding: 48px 0 52px; }
.em-hero__grid { display: grid; gap: 32px; align-items: center; }
.em-hero__text { min-width: 0; }
@media (min-width: 992px) { .em-hero__grid.has-img { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 48px; } }
.em-hero__img { display: flex; justify-content: center; align-items: flex-end; }
.em-hero__img img { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; object-fit: contain; animation: emPop .7s ease both .25s; }
@media (max-width: 991.98px) { .em-hero__img img { max-height: 280px; } }
@media (min-width: 992px) { .em-hero .em-eyebrow { display: none; } }

/* ===== Lo elegido: relleno azul + borde verde (lima de la marca). Cambiar --sel-border para otro verde ===== */
:root { --sel-border: var(--lima); }
.btn-check:checked + .em-choice, .btn-check:checked:focus + .em-choice, .btn-check:checked:focus-visible + .em-choice,
.btn-check:checked + .em-choice:hover {
    background: var(--azul-marca); border-color: var(--sel-border); color: #fff;
    box-shadow: inset 0 0 0 1px var(--sel-border) !important;   /* borde de 3px sin mover el diseño */
}
.btn-check:checked + .em-pill, .btn-check:checked:focus + .em-pill, .btn-check:checked:focus-visible + .em-pill, .btn-check:checked + .em-pill:hover,
.btn-check:checked + .em-chip, .btn-check:checked:focus + .em-chip, .btn-check:checked:focus-visible + .em-chip, .btn-check:checked + .em-chip:hover,
.em-chip.is-active, .em-chip.is-active:hover {
    background: var(--azul-marca); border-color: var(--sel-border); color: #fff;
    box-shadow: inset 0 0 0 1px var(--sel-border) !important;
}

/* ===== Fuente configurable (Opciones › Tipografía) ===== */
body, button, input, select, textarea { font-family: var(--font-body); }
h1, h2, h3, h4, .em-tab, .em-title, .em-liname, .em-sectitle { font-family: var(--font-head); }

/* ===== Tarjeta de profesional en fila completa (una por fila) ===== */
@media (min-width: 768px) {
    .em-pcard { flex-direction: row; align-items: center; gap: 22px; padding: 16px 22px; }
    .em-pcard__photo { position: static; flex: none; }
    .em-pcard__photo img { width: 72px; height: 72px; }
    .em-pcard__body { padding-left: 0; min-height: 0; flex: 1; min-width: 0; }
    .em-pcard__foot { border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; min-width: 210px; text-align: right; }
}

/* ===== Filtros en celular: panel que sube desde abajo ===== */
.em-sheet__title { font-size: 1.25rem; margin: 0; color: var(--azul-marca); }
.em-sidepanel__actions { display: flex; gap: 10px; margin-top: 18px; }
.em-sidepanel__actions .em-btn { flex: 1; }
.em-sidepanel__actions .em-clearbtn { flex: 0 0 34%; }
@media (min-width: 992px) { .em-sidepanel__actions .em-clearbtn { display: none; } .em-sidepanel__actions .em-btn { width: 100%; } }
@media (max-width: 991.98px) {
    .offcanvas-bottom.em-sidebar { --bs-offcanvas-height: 88vh; --bs-offcanvas-bg: #fff; border-radius: 22px 22px 0 0; }
    .em-sidebar .offcanvas-header { padding: 18px 20px 6px; align-items: center; justify-content: space-between; }
    .em-sidebar .offcanvas-body { padding: 0 20px 20px; }
    .em-sidebar .em-sidepanel { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
    .em-sidebar .em-sidepanel__head { display: none; }
    .em-sidebar .em-sidepanel__actions { position: sticky; bottom: -20px; background: #fff; padding: 14px 0 20px; margin: 18px 0 0; border-top: 1px solid var(--borde); }
}

/* ===== Perfil en celular: cabecera compacta + pestañas (en compu: todo seguido) ===== */
.em-ptop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.em-mhead { padding: 16px; margin-top: 10px; }
.em-mhead__row { display: flex; gap: 16px; align-items: center; }
.em-mhead__photo { position: relative; flex: none; width: 92px; height: 92px; padding: 0; border: 3px solid var(--celeste); border-radius: 50%; background: #fff; }
.em-mhead__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.em-mhead__photo .em-dot { width: 18px; height: 18px; right: 0; bottom: 2px; }
.em-mhead__txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; align-items: flex-start; }
.em-mhead__role { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--celeste); }
.em-mhead__name { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; color: var(--azul-marca); }
.em-mhead__meta { color: var(--texto-2); font-size: .9rem; }
.em-mhead__contact { margin-top: 4px; font-size: .9rem; }
@media (min-width: 992px) { .em-tabcontent > .tab-pane { display: block !important; opacity: 1 !important; } }
@media (max-width: 991.98px) { .em-profile-tabs { margin-top: 4px; } }

/* ===== Caja para elegir foto ===== */
.em-photofield { display: flex; gap: 16px; align-items: flex-start; }
.em-upload { flex: none; width: 96px; height: 96px; display: grid; place-items: center; border: 2px dashed var(--azul-marca); border-radius: 18px; background: #fff; color: var(--azul-marca); font-size: 1.6rem; cursor: pointer; overflow: hidden; transition: background-color .2s, transform .2s; }
.em-upload:hover { background: var(--lima); transform: translateY(-2px); }
.em-upload img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-upload img[hidden], .em-upload i[hidden] { display: none; }
#photo:focus-visible + * , .em-photofield:has(#photo:focus-visible) .em-upload { outline: 3px solid var(--celeste); outline-offset: 3px; }

/* ===== Hero con fondo animado Lightfall ===== */
.em-hero { position: relative; overflow: hidden; isolation: isolate; }
.em-ripples { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.em-hero .container { position: relative; z-index: 1; }
@media print { .em-ripples { display: none; } }

/* ===== Logo principal (SVG con fondo propio: se muestra como placa redondeada) ===== */
.em-brand__logo, .em-menu__logo, .em-flogo img { display: block; width: auto; max-width: min(62vw, 260px); border-radius: 10px; }
.em-brand__logo { height: 40px; }
.em-menu__logo { height: 40px; }
.em-flogo { display: inline-flex; margin-right: 8px; }
.em-flogo img { height: 30px; }
@media (max-width: 575.98px) { .em-brand__logo { height: 34px; } }
.adm-logo img { width: auto; max-width: 190px; border-radius: 8px; }
.adm-logo { flex-wrap: wrap; row-gap: 4px; }
.adm-logo span { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

/* ===== Nota informativa con ícono (texto corrido, sin enlaces adentro) ===== */
.em-infonote { display: flex; align-items: flex-start; gap: .6rem; color: var(--texto-2); font-size: .95rem; margin: 0 0 12px; }
.em-infonote i { color: var(--azul-marca); margin-top: .2em; flex: none; }

/* ===== Dónde trabajé: pills uno al lado del otro ===== */
.em-orgpills { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.em-orgpill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--hueso); color: var(--azul-marca); font-weight: 600; font-size: .9rem; }
.em-orgpill[hidden] { display: none; }
.em-orgpill .em-orgicon { width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; }
.em-orgpills--lg .em-orgpill { font-size: 1rem; padding-right: 16px; }
.em-orgmore { font-size: .9rem; color: var(--texto-2); }

/* Campo de pills con sugerencias (perfil › Dónde trabajaste) */
.em-chipbox { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; cursor: text; }
.em-chipbox:focus-within { border-color: var(--azul-marca); }
.em-chipbox__list { display: contents; }
.em-chipbox .em-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--azul-marca); color: #fff; font-weight: 600; font-size: .9rem; }
.em-chipbox .em-chip button { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; padding: 0; font-size: .7rem; cursor: pointer; transition: background-color .2s; }
.em-chipbox .em-chip button:hover { background: var(--lima); color: var(--azul-marca); }
.em-chipbox__input { flex: 1 1 180px; min-width: 140px; border: 0; outline: 0; padding: 6px 4px; background: transparent; font: inherit; }
.em-chipbox__sug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--borde); border-radius: 12px; box-shadow: 0 10px 28px rgba(25, 37, 132, .14); }
.em-chipbox__sug[hidden] { display: none; }
.em-chipbox__sug li { padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.em-chipbox__sug li:hover, .em-chipbox__sug li.is-on { background: var(--lima); color: var(--azul-marca); }

/* Nota con ícono (medida ideal de la portada) */
.em-hint { display: flex; align-items: flex-start; gap: .6rem; color: var(--texto-2); font-size: .875rem; background: var(--hueso); border-radius: 10px; padding: 10px 12px; }
.em-hint i { margin-top: 3px; color: var(--celeste); }

/* Ventana de encuadre */
.em-crop__stage { width: 100%; height: min(58vh, 460px); background: #1b1b1b; border-radius: 12px; overflow: hidden; }
.em-crop__stage img { display: block; max-width: 100%; }
.em-crop__stage--round .cropper-view-box, .em-crop__stage--round .cropper-face { border-radius: 50%; }
.em-crop__tools { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.em-crop__zoom { flex: 1 1 140px; min-width: 120px; margin: 0; }
.em-workprev { flex: none; width: 112px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--hueso); border: 1px solid var(--borde); } .em-workprev[hidden] { display: none; } .em-workprev img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Créditos del pie (editables en Opciones › Pie de página) */
.em-fcredit { margin: 18px 0 0; font-size: .92rem; color: var(--texto-2); text-align: center; }
.em-fcredit a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.em-fcredit a:hover { color: var(--hover, #E4E21E); }

/* Experiencia (filas del formulario de perfil) */
.em-exprow { border: 1px solid var(--borde); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff; }
/* Selects con buscador (Tom Select): que respeten la forma de los campos del sitio */
.ts-wrapper.form-select, .ts-wrapper .ts-control { border-radius: 12px; }
.ts-dropdown { border-radius: 12px; z-index: 1080; }
.ts-dropdown .optgroup-header { font-weight: 700; color: var(--base, #192584); }
.ts-dropdown .active { background: var(--base, #192584); color: #fff; }

/* Redes personales del perfil y botones «Seguinos» */
.em-socials { display: inline-flex; flex-wrap: wrap; gap: 8px; vertical-align: middle; }
.em-social { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--base, #192584); color: var(--base, #192584); background: #fff; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.em-social:hover, .em-social:focus-visible { background: var(--hover, #E4E21E); color: var(--base, #192584); transform: translateY(-2px); }
.em-follow__title { font-size: 1.05rem; margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .em-social { transition: none; } .em-social:hover { transform: none; } }

/* Idiomas (filas del formulario de perfil) */
.em-langrow { margin-bottom: 8px; }

/* Textos legales (salen del editor del panel) */
.em-legaltext h1, .em-legaltext h2, .em-legaltext h3, .em-legaltext h4 { margin: 1.2em 0 .5em; font-weight: 700; color: var(--base, #192584); line-height: 1.25; }
.em-legaltext h2 { font-size: 1.35rem; } .em-legaltext h3 { font-size: 1.15rem; } .em-legaltext h4 { font-size: 1rem; }
.em-legaltext p { margin: 0 0 1em; }
.em-legaltext ul, .em-legaltext ol { margin: 0 0 1em; padding-left: 1.4em; }
.em-legaltext blockquote { margin: 0 0 1em; padding: .4em 1em; border-left: 4px solid var(--borde, #ddd); color: var(--texto-2, #555); }
.em-legaltext a { text-decoration: underline; text-underline-offset: 3px; }
.em-legaltext > :last-child { margin-bottom: 0; }

/* Imágenes dentro de los textos legales */
.em-legalimg { display: block; max-width: 100%; height: auto; margin: .5em 0 1em; border-radius: 12px; }

/* Pestañas «Ingresar» / «Crear cuenta» */
.em-authtabs { display: flex; gap: 8px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--borde, #ddd); }
.em-authtabs .nav-link { border: 0; border-radius: 999px; padding: 11px 16px; font-weight: 700; color: var(--base, #192584); background: transparent; transition: background-color .2s ease, color .2s ease; }
.em-authtabs .nav-link:hover { background: var(--claro, #EBEBEB); }
.em-authtabs .nav-link.active { background: var(--base, #192584); color: #fff; }
@media (prefers-reduced-motion: reduce) { .em-authtabs .nav-link { transition: none; } }

/* Espera del correo de ingreso */
.em-linkwait { border-color: var(--lima, #E4E21E); }
.em-linkwait .progress-bar { background: var(--base, #192584); transition: width .5s linear; }
@media (prefers-reduced-motion: reduce) { .em-linkwait .progress-bar { transition: none; } }

/* Avance de carga al guardar el perfil con imágenes */
.em-noscroll { overflow: hidden; }
.em-uploading { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(25, 37, 132, .55); backdrop-filter: blur(3px); }
.em-uploading[hidden] { display: none; }
.em-uploading__card { width: min(420px, 100%); padding: 22px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.em-uploading__card .progress { height: 12px; margin: 14px 0 8px; border-radius: 999px; }
.em-uploading__card .progress-bar { background: var(--base, #192584); transition: width .2s linear; }
.em-uploading__pct { font-size: 1.6rem; font-weight: 700; color: var(--base, #192584); }
@media (prefers-reduced-motion: reduce) { .em-uploading__card .progress-bar { transition: none; } }

/* Darme de baja: en el menú de la cuenta, antes de «Cerrar sesión» */
.em-acctnav button.is-danger { color: var(--rojo-bandera, #D52B1E); }
.em-acctnav button.is-danger:hover { background: #fde8e6; color: var(--rojo-bandera, #D52B1E); }
.em-menu__acct { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 0 14px; }
.em-menu__acct a, .em-menu__acct button { background: none; border: 0; padding: 6px 0; color: rgba(255,255,255,.85); font-size: 1rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.em-menu__acct a:hover, .em-menu__acct button:hover { color: var(--lima, #E4E21E); }
.em-menu__acct button.is-danger { color: #ffb4ab; }
.em-menu__acct form { margin: 0; }

/* Teléfono con país (WhatsApp): selector con buscador + número */
.em-phone { display: flex; gap: 8px; align-items: flex-start; }
.em-phone > select, .em-phone > .ts-wrapper { flex: 0 0 240px; max-width: 46%; }
.em-phone > input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) { .em-phone { flex-direction: column; } .em-phone > select, .em-phone > .ts-wrapper { flex: none; max-width: 100%; width: 100%; } }

/* Título de las pills de lugares en la cabecera del perfil */
.em-orgpills__label { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2, #5E6077); }
.em-lihead__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
a.em-toolbtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }

/* Menú «⋯» junto a Guardar en la cabecera del perfil */
.em-lihead__tools .dropdown, .em-ptop .dropdown { position: relative; }
.em-lihead__tools .dropdown-menu, .em-ptop .dropdown-menu { min-width: 230px; }

/* Botones de «Oportunidades abiertas» en el inicio: ancho completo, 3 iguales, con 5 % de espacio arriba y abajo */
.em-homecta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; padding-block: 5%; }
.em-homecta .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
@media (max-width: 767.98px) { .em-homecta { grid-template-columns: 1fr; padding-block: 5%; } }

/* Ícono de perfil (arriba a la derecha) con menú de cuenta */
.em-userbtn { width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.7rem; overflow: hidden; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.em-userbtn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-userbtn:hover, .em-userbtn:focus-visible, .em-userbtn[aria-expanded="true"] { background: #fff; color: var(--azul-marca); }
.em-usermenu { min-width: 250px; }
.em-usermenu__head { display: flex; flex-direction: column; padding: 6px 16px 2px; line-height: 1.25; }
.em-usermenu__head small { color: var(--texto-2, #5E6077); overflow-wrap: anywhere; }
.em-usermenu form { margin: 0; }
.em-usermenu .dropdown-item { display: flex; align-items: center; gap: 10px; }
.em-usermenu .dropdown-item i { width: 18px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .em-userbtn { transition: none; } }

/* Perfil: trabajos del portafolio (1 = ancho completo; 2 o 3 = de a dos) y pills con buscador */
.em-works { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .em-works:not([data-count="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.em-works .em-work[hidden] { display: none; }
.em-chipbox:focus-within { box-shadow: 0 0 0 .2rem rgba(41, 198, 242, .3); }
.em-chipbox__input:focus, .em-chipbox__input:focus-visible { outline: 0; box-shadow: none; border: 0; }
.ts-wrapper.multi .ts-control > div { background: var(--azul-marca); color: #fff; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.ts-wrapper.multi .ts-control > div .remove { color: #fff; border-left: 0; margin-left: 6px; }

.em-place { position: relative; }

/* Formulario del perfil en grupos (cada grupo = una tarjeta con título y espacio propio) */
.em-fgroups { display: grid; gap: 20px; }
.em-fgroup { padding: 28px 28px 22px; }
.em-fgroup__title { font-size: 1.4rem; font-weight: 700; color: var(--azul-marca); margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--borde); }
.em-fgroup__sub { font-size: 1.05rem; font-weight: 700; color: var(--azul-marca); margin: 0 0 10px; }
@media (max-width: 575.98px) { .em-fgroup { padding: 20px 16px 16px; } .em-fgroup__title { font-size: 1.2rem; margin-bottom: 16px; } }
.em-linkcheck:empty { display: none; }
.em-instup:empty { display: none; }

/* Disponibilidad y modalidad: lo elegido se ve claro (tilde + color) y el botón queda separado */
.em-availform .em-choice { position: relative; padding-right: 52px; }
.em-availform .btn-check:checked + .em-choice::after { content: "\f00c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lima); color: var(--azul-marca); font-size: .8rem; }
.em-availform .em-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--borde); border-radius: 999px; background: #fff; color: var(--azul-marca); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.em-availform .em-opt:hover { border-color: var(--azul-marca); }
.em-availform .btn-check:checked + .em-opt { background: var(--azul-marca); border-color: var(--azul-marca); color: #fff; }
.em-availform .btn-check:checked + .em-opt::before { content: "\f00c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: .75rem; color: var(--lima); }
.em-availform .btn-check:focus-visible + .em-opt { outline: 3px solid var(--celeste); outline-offset: 2px; }
.em-availform__actions { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--borde); }

/* Etiquetas de disponibilidad dentro de las tarjetas: el texto gris de «.em-choice span» las dejaba ilegibles. Colores de la paleta con contraste. */
.em-choice .em-status--ahora { background: var(--lima); color: var(--azul-marca); }
.em-choice .em-status--desde { background: var(--celeste); color: var(--azul-noche); }
.em-choice .em-status--contratado { background: var(--azul-marca); color: #fff; }
.em-choice .em-status--no { background: var(--coral); color: var(--azul-noche); }
.em-choice .em-status { font-weight: 700; }
.btn-check:checked + .em-choice .em-status--contratado { background: #fff; color: var(--azul-marca); } /* sobre la tarjeta azul elegida */
.em-availform .em-choice:hover { background: #F4F5FC; border-color: var(--azul-marca); }          /* sin hover lima: taparía la etiqueta «ahora» */
.em-availform .btn-check:checked + .em-choice:hover { background: var(--azul-marca); }

/* Aviso propio al salir con cambios sin guardar */
.em-leave { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(14, 21, 80, .55); animation: emLeaveFade .18s ease-out; }
.em-leave[hidden] { display: none; }
.em-leave__card { width: min(440px, 100%); background: #fff; border-radius: 20px; padding: 28px 26px 24px; box-shadow: 0 24px 60px rgba(14, 21, 80, .35); text-align: center; animation: emLeavePop .2s ease-out; }
.em-leave__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--lima); color: var(--azul-marca); font-size: 1.4rem; }
.em-leave__title { font-size: 1.3rem; font-weight: 700; color: var(--azul-marca); margin: 0 0 8px; }
.em-leave__text { color: var(--texto-2); margin: 0 0 22px; }
.em-leave__actions { display: grid; gap: 10px; }
@keyframes emLeaveFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes emLeavePop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .em-leave, .em-leave__card { animation: none; } }
@media (min-width: 480px) { .em-leave__actions { grid-template-columns: 1fr 1fr; } }

/* Celular: el encabezado de arriba NO es fijo (se va con la página); la barra de abajo sí. Menú con Iniciar/Cerrar sesión arriba */
@media (max-width: 991.98px) { .em-topbar { position: static; } }
.em-menu__top { display: grid; gap: 12px; padding: 18px 0 4px; }
.em-menu__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.em-menu__who img, .em-menu__ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #fff; }
.em-menu__who span { display: flex; flex-direction: column; min-width: 0; }
.em-menu__who strong { color: #fff; line-height: 1.2; }
.em-menu__who small { color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-menu__top form { margin: 0; }
.em-menu__btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.em-menu__btn--lima { background: var(--lima); color: var(--azul-marca); }
.em-menu__btn--lima:hover { background: #fff; color: var(--azul-marca); }
.em-menu__btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.em-menu__btn--ghost:hover { background: #fff; color: var(--azul-marca); }
.em-menu__nav a.is-active { color: var(--lima); position: relative; }
.em-menu__nav a.is-active::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lima); margin-right: 12px; vertical-align: middle; }

/* Mi cuenta en el celular (estilo red social): acciones rápidas + lista de opciones */
.em-hub { background: #fff; border: 1px solid var(--borde); border-radius: 20px; padding: 16px; margin-bottom: 16px; }
.em-hub__top { display: flex; align-items: center; gap: 14px; }
.em-hub__avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--hueso); color: var(--azul-marca); font-size: 1.8rem; border: 3px solid var(--celeste); }
.em-hub__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-hub__who { display: flex; flex-direction: column; min-width: 0; }
.em-hub__who strong { font-size: 1.15rem; color: var(--azul-marca); line-height: 1.2; }
.em-hub__who span { color: var(--texto-2); font-size: .9rem; }
.em-hub__public { font-size: .85rem; font-weight: 600; margin-top: 2px; }
.em-hub__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.em-hub__top + .em-hub__actions { margin-top: 14px; }
.em-hub__actions .btn { min-height: 44px; padding: 0 6px; font-size: .88rem; white-space: nowrap; }
.em-hub__list { list-style: none; margin: 14px -16px -16px; padding: 6px 0 0; border-top: 1px solid var(--borde); }
.em-hub__list li + li { border-top: 1px solid #eee; }
.em-hub__list a, .em-hub__list button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 16px; background: none; border: 0; color: var(--azul-marca); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.em-hub__list a:active, .em-hub__list button:active { background: var(--hueso); }
.em-hub__list i:first-child { width: 22px; text-align: center; font-size: 1.1rem; }
.em-hub__list .em-hub__chev { margin-left: auto; color: var(--texto-2); font-size: .8rem; }
.em-hub__list .is-danger { color: #C0392B; }
.em-hub__badge { margin-left: auto; background: var(--celeste); color: var(--azul-noche); border-radius: 999px; padding: 2px 9px; font-size: .78rem; font-weight: 700; }
.em-hub__list .em-hub__badge + .em-hub__chev { margin-left: 8px; }
.em-hub__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; font-weight: 700; text-decoration: none; }

/* Mientras se edita un formulario: sin «tirar para recargar» del celular */
html.em-noptr, html.em-noptr body { overscroll-behavior-y: none; }

/* Panel en el celular: las pestañas de oportunidades se repiten con el menú; solo queda «Mis postulaciones» al abrirla desde la lista */
.em-hub__h { font-size: 1.2rem; font-weight: 700; color: var(--azul-marca); margin: 4px 0 12px; }
@media (max-width: 991.98px) { .em-dashtabs > .tab-pane:not(#postulaciones) { display: none !important; } } /* solo el panel del profesional (antes afectaba a TODAS las pestañas en el celular: ingreso, perfil público, panel de empresa y Opciones) */

/* Trabajos destacados: categorías en acordeón (se ordenan arrastrando) */
.em-cats { display: grid; gap: 10px; }
.em-cat { border: 1px solid var(--borde); border-radius: 12px; background: #fff; overflow: hidden; }
.em-cat[hidden] { display: none; }
.em-cat__head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--hueso); }
.em-cat__grip { cursor: grab; padding: 10px; color: var(--azul-medio); touch-action: none; } .em-cat__grip:active { cursor: grabbing; }
.em-cat__toggle { flex: 1; display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; padding: 8px 0; font-weight: 700; color: var(--azul-marca); }
.em-cat__n { font-weight: 400; font-size: .85rem; color: var(--texto-2); }
.em-cat__chev { margin-left: auto; transition: transform .2s ease; } .em-cat__toggle[aria-expanded="true"] .em-cat__chev { transform: rotate(180deg); }
.em-cat__body { padding: 14px; }
.em-cat--ghost { opacity: .45; }
.em-catname { font-size: 1rem; font-weight: 700; color: var(--azul-marca); margin: 0 0 .6rem; }
@media (prefers-reduced-motion: reduce) { .em-cat__chev { transition: none; } }

/* Trabajos destacados: más aire entre categorías y trabajos, y ayuda */
.em-help { background: var(--hueso); border-left: 4px solid var(--celeste); border-radius: 10px; padding: 14px 16px; margin: 0 0 20px; font-size: .92rem; color: var(--texto-2); } .em-help li { margin-bottom: 6px; } .em-help li:last-child { margin-bottom: 0; }
.em-cats { gap: 24px; }
.em-cat { box-shadow: 0 1px 3px rgba(25, 37, 132, .08); }
.em-cat__body { padding: 20px; }
.em-cat__head { padding: 10px 16px 10px 8px; }
.em-cat__hint { font-size: .8rem; color: var(--texto-2); margin-right: 8px; }
.em-cat .em-works { gap: 18px; margin-top: 20px !important; }
.em-cat [data-work-add] { margin-top: 18px !important; }
.em-sug-new { color: var(--azul-marca); font-weight: 600; border-top: 1px solid var(--borde); }

/* Trabajos destacados en modo simple: sin tarjeta de categoría */
.em-cat--plain { border: 0; box-shadow: none; background: transparent; overflow: visible; } .em-cat--plain .em-cat__body { padding: 0; } .em-cat--plain .em-works { margin-top: 0 !important; }

/* Contacto: dos filas con interruptor, una debajo de la otra */
.em-contactrow { border: 1px solid var(--borde); border-radius: 12px; padding: 14px 16px; background: #fff; }
.em-contactrow .form-check-label { font-size: 1rem; color: var(--azul-marca); }
.em-contactrow { padding: 18px 20px; }
.em-contactrow .form-switch { display: flex; align-items: center; gap: 12px; padding-left: 0; min-height: 0; }
.em-contactrow .form-switch .form-check-input { margin: 0; float: none; flex: none; }
.em-contactrow > small, .em-contactrow #contactWa { margin-top: .6rem !important; }
@media (max-width: 575.98px) { .em-contactrow { padding: 16px 16px; } }

/* Preguntas frecuentes (solo .em-faq) */
.em-faq .em-faq__nav{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.em-faq .em-faq__nav a{padding:.35rem .8rem;border-radius:999px;background:#EBEBEB;color:#192584;font-weight:600;font-size:.9rem;text-decoration:none;transition:background .2s}
.em-faq .em-faq__nav a:hover{background:#E4E21E}
.em-faq .em-faq__h{font-size:1.25rem;font-weight:700;color:#192584;margin-bottom:.75rem}
.em-faq .em-faq__acc .accordion-item{border:0;border-radius:0;margin-bottom:2px;background:transparent}
.em-faq .em-faq__acc .accordion-button{background:#EBEBEB;color:#192584;font-weight:600;padding:1.1rem 1.25rem;border-radius:0!important;box-shadow:none;transition:background .2s,color .2s}
.em-faq .em-faq__acc .accordion-button::after{background-image:none;width:auto;height:auto;transform:none;content:"\f067";font-family:"Font Awesome 6 Free";font-weight:900;font-size:.95rem;color:#192584;margin-left:auto;padding-left:1rem}
.em-faq .em-faq__acc .accordion-button:hover{background:#D5D8F0}
.em-faq .em-faq__acc .accordion-button:not(.collapsed){background:#192584;color:#fff;box-shadow:0 4px 12px rgba(25,37,132,.25)}
.em-faq .em-faq__acc .accordion-button:not(.collapsed)::after{content:"\f068";color:#E4E21E;background-image:none;transform:none}
.em-faq .em-faq__acc .accordion-button:focus-visible{outline:3px solid #29C6F2;outline-offset:-3px}
.em-faq .em-faq__acc .accordion-body{background:#F6F6F6;border-left:4px solid #E4E21E}
@media (prefers-reduced-motion:reduce){.em-faq .em-faq__acc .accordion-button{transition:none}}

/* Editor de preguntas frecuentes en Opciones (solo .em-faqed) */
.em-faqed .em-faqed__group{border:1px solid #d9dcf0;border-radius:14px;padding:14px;margin-bottom:14px;background:#fff}
.em-faqed .em-faqed__ghead,.em-faqed .em-faqed__row{display:flex;gap:10px;align-items:center}
.em-faqed .em-faqed__items{margin-top:12px;display:flex;flex-direction:column;gap:10px;min-height:8px}
.em-faqed .em-faqed__item{background:#F6F6F6;border-radius:10px;padding:10px}
.em-faqed .em-faqed__grip{cursor:grab;color:#192584;padding:4px 6px;flex:none}
.em-faqed .em-faqed__grip:active{cursor:grabbing}
.em-faqed .sortable-ghost{opacity:.4}
