/* ==========================================================================
   UBICAJOBS - PLATAFORMA DE EMPLEO GEOLOCALIZADO
   Arquitectura CSS Unificada y Completa para Todas las Páginas
   ========================================================================== */

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

/* Logo Oficial UbicaJobs */
.ubijob-official-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.ubijob-official-logo .wordmark {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1;
}

.ubijob-official-logo .wordmark span {
  color: #0E7C86;
}

.ubijob-official-logo.navy-theme .wordmark {
  color: #FFFFFF;
}

.ubijob-official-logo.navy-theme .wordmark span {
  color: #0E7C86;
}

:root {
  /* ==========================================
     UBICAJOBS DESIGN SYSTEM - MODO CLARO
     ========================================== */
  --bg-general: #F8FAFC;
  --header-bg: #0F172A;            /* Fija de marca, no cambia entre modos */
  --texto-principal: #0F172A;
  --texto-secundario: #64748B;
  --acento: #0E7C86;               /* Turquesa de marca fijo */
  --fondo-tarjeta: #F0FCFD;        /* Fondo claro destacado */
  --bordes-separadores: #E3EFF1;
  --bg-card-white: #FFFFFF;

  /* Aliases de compatibilidad */
  --primary-action: var(--acento);
  --primary-navy: var(--texto-principal);
  --bg-app: var(--bg-general);
  --bg-porcelain: var(--bg-general);
  --card-white: var(--bg-card-white);
  --text-main: var(--texto-principal);
  --text-muted: var(--texto-secundario);
  --border-light: var(--bordes-separadores);
  --soft-accent-cyan: #CFFAFE;
  --badge-text-cyan: #0369A1;

  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.1), 0 8px 24px -4px rgba(15, 23, 42, 0.04);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 6px;
}

body.dark-theme,
[data-theme="dark"] {
  /* ==========================================
     UBICAJOBS DESIGN SYSTEM - MODO OSCURO
     ========================================== */
  --bg-general: #0B0F17;           /* Más oscuro que la cabecera #0F172A */
  --header-bg: #0F172A;            /* La misma que en claro, no cambia */
  --texto-principal: #F1F5F9;
  --texto-secundario: #94A3B8;
  --acento: #0E7C86;               /* El mismo turquesa fijo */
  --fondo-tarjeta: #16202B;        /* Gris-Navy en oscuro (NUNCA turquesa pálido) */
  --bordes-separadores: #1F2937;
  --bg-card-white: #16202B;

  /* Aliases de compatibilidad */
  --primary-action: var(--acento);
  --primary-navy: #F1F5F9;
  --bg-app: var(--bg-general);
  --bg-porcelain: var(--bg-general);
  --card-white: var(--bg-card-white);
  --text-main: var(--texto-principal);
  --text-muted: var(--texto-secundario);
  --border-light: var(--bordes-separadores);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14.5px; /* Compact visual density (~10% zoom-out scaling) */
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-porcelain);
  -webkit-font-smoothing: antialiased;
}

#app-root {
  width: 100%;
  min-height: 100vh;
}

.page-view {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* MARCA Y LOGO REUTILIZABLE */
.ubijob-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
}

.ubijob-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1E293B 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* LANDING PAGE & AUTH NAVBAR (Teal Protagonista #0E7C86) */
.landing-navbar-full {
  height: 76px;
  background: #0E7C86 !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(14, 124, 134, 0.2);
}

.landing-navbar-full .ubijob-brand span {
  color: #FFFFFF !important;
}

.landing-navbar-full .btn-outline-ubijob {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: 1.5px solid #0F172A !important;
}

.landing-navbar-full .btn-outline-ubijob:hover {
  background: #1E293B !important;
  border-color: #1E293B !important;
}

.hero-full-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 24px 70px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-big {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title-big span {
  color: var(--accent-emerald);
}

.hero-sub-big {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 740px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.real-data-banner {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}

.data-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.data-divider {
  width: 1px;
  height: 20px;
  background: var(--border-light);
}

/* TARJETAS TWINS (USUARIOS / EMPRESAS) */
.twins-big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 60px auto;
}

.twins-big-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.twins-big-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.twins-card-title-big {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.twins-card-desc-big {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* SECCIONES VISUALES DE CATEGORÃAS */
.visual-categories-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px auto;
  text-align: left;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.cat-image-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.cat-image-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-navy);
}

.cat-card-thumb-wrapper {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.cat-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-image-card:hover .cat-card-thumb {
  transform: scale(1.05);
}

.cat-card-body {
  padding: 16px;
}

.cat-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.cat-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* PROPUESTA DE VALOR */
.features-wide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.feature-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* PIE DE PÃGINA (FOOTER) */
.ubijob-footer-full {
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 60px 40px 30px 40px;
  margin-top: auto;
}

.footer-top-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 20px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--accent-emerald);
}

.footer-col-header {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #FFFFFF;
}

/* PÃGINAS DE AUTH (LOGIN / REGISTER) */
.auth-page-hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--bg-porcelain) 0%, #F1F5F9 100%);
}

.auth-card-clean {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  width: 100%;
  max-width: 460px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
}

.auth-mode-switch-box {
  display: flex;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-mode-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.auth-mode-tab.active {
  background: #0E7C86;
  color: #FFFFFF;
  box-shadow: none;
}

.role-switcher-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.role-switcher-btn {
  flex: 1;
  padding: 10px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.role-switcher-btn.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

/* APP VIEW (MAPA INTERACTIVO) */
.app-view {
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.app-main-layout {
  flex: 1;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Indicador de Ubicación Activa en Header (App) */
.active-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary-navy);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.active-location-pill:hover {
  border-color: var(--primary-navy);
  background: var(--bg-porcelain);
  transform: translateY(-1px);
}

/* Sliders de Rango con Bolita Deslizable (Radio y Salario) */
.range-slider-ubijob {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #E2E8F0;
  outline: none;
  margin: 14px 0;
  cursor: pointer;
}

.range-slider-ubijob::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-navy);
  border: 3.5px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.range-slider-ubijob::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-emerald);
}

/* Botón Flotante de Ubicación Estilo Google Maps */
.btn-locate-google-maps {
  position: absolute;
  bottom: 84px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--primary-navy);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.btn-locate-google-maps:hover {
  background: var(--bg-porcelain);
  color: var(--accent-emerald);
  transform: scale(1.05);
}

/* Header Navbar Protagonista (Navy Slate Corporativo #0F172A) */
.app-header-unified {
  height: 68px;
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid #1E293B;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
}

.landing-navbar-full {
  background: #0F172A !important;
  border-bottom: 1px solid #1E293B !important;
}

.header-search-wrapper {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-box-ubijob {
  display: flex;
  align-items: center;
  background: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: var(--radius-full);
  padding: 5px 6px 5px 18px;
  transition: all 0.2s ease;
  width: 100%;
}

.search-box-ubijob:focus-within {
  border-color: #0F172A !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
}

.search-box-ubijob i.fa-search {
  color: #0E7C86 !important;
  font-size: 1.05rem;
  margin-right: 10px;
}

.search-box-ubijob input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #0F172A !important;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.search-box-ubijob input::placeholder {
  color: #64748B !important;
}

.btn-filter-trigger {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 800 !important;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  white-space: nowrap;
  box-shadow: none !important;
}

.btn-filter-trigger:hover {
  background: #1E293B !important;
  transform: translateY(-1px);
}

/* Modal Body Scrolling & Search Fields */
.modal-ubijob-body {
  padding: 24px 28px;
  overflow-y: auto !important;
  max-height: calc(85vh - 120px) !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-search-field-wrapper {
  position: relative !important;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.modal-search-field-wrapper i.field-icon {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--primary-navy);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.input-ubijob-styled {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary-navy);
  outline: none;
  transition: all 0.2s ease;
}

.input-ubijob-styled:focus {
  background: #FFFFFF !important;
  border-color: var(--primary-navy) !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.suggestions-list-container {
  display: none;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: #FFFFFF !important;
  border: 1.5px solid var(--primary-navy) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22) !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  z-index: 999999 !important;
}

.suggestions-list-container.active {
  display: block !important;
}

.suggestion-item-ubijob {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--bg-porcelain);
  transition: background 0.15s ease;
}

.suggestion-item-ubijob:last-child {
  border-bottom: none;
}

.suggestion-item-ubijob:hover {
  background: #F1F5F9;
}

/* Tarjeta de Oferta Seleccionada (Resaltado Turquesa #0E7C86) */
.card-ubijob.selected-offer-card {
  border: 2.5px solid #0E7C86 !important;
  background: #E0F2FE !important;
  box-shadow: 0 10px 28px rgba(0, 180, 216, 0.25) !important;
  transform: translateY(-2px) !important;
}

.autocomplete-category-header {
  padding: 10px 16px 4px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-porcelain);
  border-bottom: 1px solid var(--border-light);
}

.autocomplete-item {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--primary-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.18s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--bg-porcelain);
  color: var(--accent-emerald);
}

/* Tira de Filtros Activos (Posicionada al Centro del Mapa sin Encimarse en Ofertas) */
.active-filters-bar {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.active-filters-bar::-webkit-scrollbar {
  display: none;
}

.filter-badge-tag {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  box-shadow: var(--shadow-sm);
}

.btn-clear-all-filters {
  background: transparent;
  border: none;
  color: var(--accent-coral);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
}

/* Bottom Sheet */
.ubijob-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 360px;
  height: calc(100vh - 68px);
  max-height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-top-right-radius: var(--radius-lg);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: var(--shadow-md);
  z-index: 900;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ubijob-bottom-sheet.collapsed {
  transform: translateY(calc(100% - 56px));
}

/* Sidebar Derecha (Amplitud Optimizada 440px y Estructura Portal Idealista) */
.right-sidebar-panel {
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background: #F8FAFC;
  border-left: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  z-index: 2000;
  box-shadow: -4px 0 20px rgba(15, 23, 42, 0.06);
}

.sidebar-user-profile-card {
  background: #0F172A !important;
  color: #FFFFFF !important;
  padding: 22px 16px !important;
  border-bottom: 1px solid #1E293B !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25) !important;
}

.sidebar-user-profile-card h4, 
.sidebar-user-profile-card .profile-user-name,
#sidebar-top-profile-name {
  color: #FFFFFF !important;
  font-family: var(--font-heading) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  margin: 6px 0 2px 0 !important;
  letter-spacing: -0.2px !important;
  opacity: 1 !important;
  display: block !important;
}

.sidebar-user-profile-card p, 
.sidebar-user-profile-card .profile-user-email,
#sidebar-top-profile-email {
  color: #CBD5E1 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  opacity: 1 !important;
  display: block !important;
}

.sidebar-dock-navigation {
  display: flex;
  padding: 8px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  gap: 6px;
}

.dock-tab-btn {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.dock-tab-btn.active {
  background: #0E7C86 !important;
  color: #FFFFFF !important;
  border-color: #0E7C86 !important;
}

.dock-tab-btn.active i {
  color: #FFFFFF !important;
}

.sidebar-tab-content {
  flex: 1;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}

.sidebar-tab-content.active {
  display: flex;
}

/* Tarjeta de Oferta Estilo Profesional LinkedIn / InfoJobs (Equilibrada) */
.card-ubijob {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-ubijob:hover {
  border-color: #0E7C86;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.card-ubijob-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-company-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.card-title-block {
  flex: 1;
  overflow: hidden;
}

.card-job-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0 0 2px 0;
  line-height: 1.35;
}

.card-company-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.card-metadata-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  color: #64748B;
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-meta-salary {
  font-weight: 600;
  color: #334155;
}

.card-meta-dot {
  color: #CBD5E1;
  font-size: 0.75rem;
}

.card-job-snippet {
  margin: 0;
  font-size: 0.83rem;
  color: #64748B;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-ubijob-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  font-size: 0.76rem;
  color: #94A3B8;
}

.card-action-link {
  font-weight: 700;
  color: #0E7C86;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Botones Principales (Conversión: Teal #0E7C86 + Texto Blanco #FFFFFF Bold - SIN LUZ NI GLOW) */
.btn-navy,
.btn-primary,
#btn-apply-direct {
  background: #0E7C86 !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 800 !important;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: none !important;
}

.btn-navy:hover,
.btn-primary:hover,
#btn-apply-direct:hover {
  background: #0B646C !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

/* Tags / Badges Informativos No Clicables (Cyan 100 #CFFAFE + Texto Azul Oscuro #0369A1) */
.badge-info,
.tag-badge-ubijob,
.job-tag,
.badge-cyan {
  background-color: #CFFAFE !important;
  color: #0369A1 !important;
  font-weight: 700 !important;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(3, 105, 161, 0.18) !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@keyframes activePinPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 180, 216, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
  }
}

.pin-radar-active {
  animation: activePinPulse 1.8s infinite ease-out !important;
}

.btn-coral {
  background: #0E7C86 !important;
  color: #0F172A !important;
  border: none !important;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 800 !important;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: none !important;
}

.btn-coral:hover {
  background: #0096C7 !important;
  color: #0F172A !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.btn-outline-ubijob {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--primary-navy);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-ubijob:hover {
  background: var(--bg-porcelain);
  border-color: var(--primary-navy);
  transform: translateY(-1px);
}

.btn-close-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-porcelain);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.18s ease;
}

.btn-close-icon:hover {
  background: #E2E8F0;
  color: var(--accent-coral);
}

/* Modales */
.modal-ubijob-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-ubijob-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-ubijob-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  transform: translateY(8px);
  transition: transform 0.22s ease;
  overflow: visible !important;
  position: relative;
}

.modal-ubijob-backdrop.active .modal-ubijob-card {
  transform: translateY(0);
}

.modal-ubijob-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-ubijob-body {
  padding: 24px 28px;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(90vh - 150px) !important;
}

.input-ubijob {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.input-ubijob:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* Botón Rápido de Zona en Cabecera (DiseÑo Sutil y Suave) */
.btn-quick-zone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #F8FAFC !important;
  color: #334155 !important;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 24px;
  box-shadow: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn-quick-zone i {
  color: #0E7C86;
  font-size: 0.85rem;
}

.btn-quick-zone:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: var(--primary-navy) !important;
}

/* Tarjeta de Perfil de Usuario Integrada en la Barra Lateral (DiseÑo Claro y Suave) */
.sidebar-user-profile-card {
  padding: 14px 16px;
  background: #FFFFFF !important;
  color: var(--primary-navy) !important;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light) !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-user-profile-card:hover {
  background: #F8FAFC !important;
}

.profile-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-light);
  flex-shrink: 0;
}

.profile-info-content {
  flex: 1;
  overflow: hidden;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-user-name {
  font-family: var(--font-heading);
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--primary-navy) !important;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge-pill {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #0E7C86;
  border: 1px solid #BFDBFE;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-user-email {
  margin: 2px 0 0 0;
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-profile-gear {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.btn-profile-gear:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
}

/* Chips de Aptitudes y Habilidades en Perfil */
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  color: var(--primary-navy);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skill-chip.active {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #0E7C86;
}

.skill-chip i {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.skill-chip i:hover {
  opacity: 1;
  color: var(--accent-coral);
}

.profile-form-group {
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

/* Botones de Acción en Cabecera de Perfil (Perfil vs Ajustes) */
.profile-quick-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-profile-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  color: var(--primary-navy);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-profile-pill-action:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #0E7C86;
}

.btn-profile-pill-action.active {
  background: #0E7C86;
  border-color: #0E7C86;
  color: #FFFFFF;
}

/* Dock de Navegación Rápida Estilo App en Barra Lateral */
.sidebar-dock-navigation {
  display: flex;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  padding: 6px 8px;
  gap: 4px;
}

.dock-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dock-tab-btn i {
  font-size: 0.95rem;
}

.dock-tab-btn:hover {
  background: #FFFFFF;
  color: var(--primary-navy);
}

.dock-tab-btn.active {
  background: #FFFFFF;
  color: #0E7C86;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Interruptor Palanca Estilo iOS / iPhone */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  margin: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 28px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
}

.ios-switch input:checked + .ios-slider {
  background-color: #0E7C86 !important; /* Brand Turquoise Active */
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: #0E7C86 !important;
}

.ios-switch input:checked + .ios-slider:before {
  transform: translateX(20px);
}

/* Modal Detalle de Oferta - Card Overlay Flotante Lateral (Sin Blur, Sin Tapa Pantalla) */
div#modal-offer-detail.modal-ubijob-backdrop,
div#modal-offer-detail.modal-ubijob-backdrop.active {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 450px !important;
  height: auto !important;
  max-width: calc(100vw - 32px) !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  display: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

div#modal-offer-detail.modal-ubijob-backdrop.active {
  display: block !important;
}

/* Drawer / Barra Lateral Más Amplia para Detalle de Oferta (580px, cubre perfil y sidebar) */
.wider-offer-sidebar-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 580px;
  max-width: 100vw;
  height: 100%;
  background: #FFFFFF;
  z-index: 10000;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.wider-offer-sidebar-drawer.active {
  transform: translateX(0);
  pointer-events: auto;
}

.drawer-header-bar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  flex-shrink: 0;
}

.drawer-body-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Overlay Oscuro de Carga GPS en el Mapa */
.map-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.map-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.radar-spinner-container {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.radar-icon {
  font-size: 1.8rem;
  color: #0E7C86;
  z-index: 2;
  animation: pulseIcon 1.5s infinite ease-in-out;
}

.radar-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  border: 2px solid #0E7C86;
  animation: radarExpand 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes radarExpand {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.map-loading-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.2px;
}

.map-loading-sub {
  font-size: 0.80rem;
  color: #94A3B8;
  margin-top: 4px;
}

/* Botón Flotante para Fijar/Arrastrar Zona de Interés (MuÑeco Pegman) */
.btn-pegman-target-floating {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
  cursor: grab;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pegman-target-floating:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.btn-pegman-target-floating:hover {
  background: #EFF6FF;
  border-color: #0E7C86;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-pegman-target-floating.active-mode {
  background: #0E7C86;
  border-color: #1D4ED8;
  animation: pulsePegmanBtn 3.2s infinite ease-in-out;
}

.btn-pegman-target-floating.active-mode i {
  color: #FFFFFF !important;
}

@keyframes pulsePegmanBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
}

/* Banner de Instrucción del MuÑeco Pegman */
.pegman-instruction-banner {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 1000;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.84rem;
  color: #0F172A;
  font-family: var(--font-body);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
}

.pegman-instruction-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Ocultar marca de agua técnica de atribución del mapa */
.leaflet-control-attribution {
  display: none !important;
}

/* Avatar de arrastre personalizado sin efecto imagen de navegador */
.custom-drag-pegman-ghost {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.15);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease-out;
}

.ghost-pegman-badge {
  width: 44px;
  height: 44px;
  background: #0E7C86;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

.ghost-ping-ring {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px dashed #0E7C86;
  animation: rotateGhostRing 7s linear infinite;
}

@keyframes rotateGhostRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast / Notificación Integrada de la Aplicación */
.ubijob-app-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  z-index: 999999;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ubijob-app-toast.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ubijob-app-toast.toast-warning {
  border-left: 4px solid #EF4444;
}

.ubijob-app-toast.toast-success {
  border-left: 4px solid #10B981;
}

.ubijob-app-toast.toast-info {
  border-left: 4px solid #0E7C86;
}

/* Indicador de Geolocalización en Tiempo Real */
.location-geocoding-spinner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 2000;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.80rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-geocoding-spinner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SISTEMA DE MODO NOCTURNO / MODO OSCURO (DARK THEME COMPLETE OVERRIDE)
   ========================================================================== */

body.dark-theme {
  --bg-main: #090D16;
  --bg-card: #151D2A;
  --primary-navy: #F8FAFC;
  --text-muted: #94A3B8;
  --border-light: #263346;
  background-color: #090D16 !important;
  color: #F8FAFC !important;
}

/* Anular fondos blancos inline en toda la app cuando esté el modo oscuro */
body.dark-theme [style*="background: #FFFFFF"],
body.dark-theme [style*="background:#FFFFFF"],
body.dark-theme [style*="background: white"],
body.dark-theme [style*="background:white"] {
  background-color: #1E293B !important;
}

body.dark-theme [style*="background: #F8FAFC"],
body.dark-theme [style*="background:#F8FAFC"],
body.dark-theme [style*="background: #f8fafc"],
body.dark-theme [style*="background:#f8fafc"] {
  background-color: #0F172A !important;
}

body.dark-theme [style*="border: 1px solid #E2E8F0"],
body.dark-theme [style*="border-bottom: 1px solid #F1F5F9"],
body.dark-theme [style*="border: 1px solid #CBD5E1"] {
  border-color: #334155 !important;
}

body.dark-theme .app-header-unified,
body.dark-theme .app-header {
  background: #0F172A !important;
  border-bottom: 1px solid #1E293B !important;
}

body.dark-theme .search-box-ubijob {
  background: #1E293B !important;
  border-color: #334155 !important;
}

body.dark-theme #search-input-display {
  color: #94A3B8 !important;
}

body.dark-theme .header-search-trigger-btn {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .header-search-trigger-btn span {
  color: #F8FAFC !important;
}

body.dark-theme .header-nav-btn {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .app-sidebar,
body.dark-theme .wider-offer-sidebar-drawer,
body.dark-theme .sidebar-tab-content,
body.dark-theme #sidebar-content-profile,
body.dark-theme #sidebar-content-settings,
body.dark-theme #sidebar-content-chat {
  background: #0F172A !important;
  border-color: #1E293B !important;
  color: #F8FAFC !important;
}

body.dark-theme .drawer-header-bar {
  background: #0F172A !important;
  border-bottom: 1px solid #1E293B !important;
}

body.dark-theme .drawer-header-bar span {
  color: #F8FAFC !important;
}

body.dark-theme .drawer-body-content p,
body.dark-theme .drawer-body-content li,
body.dark-theme .drawer-body-content div,
body.dark-theme .drawer-body-content span {
  color: #CBD5E1 !important;
}

body.dark-theme .drawer-body-content h3,
body.dark-theme .drawer-body-content h4,
body.dark-theme .drawer-body-content h5 {
  color: #F8FAFC !important;
}

body.dark-theme {
  background-color: #0B0F17 !important;
  color: #F1F5F9 !important;
}

body.dark-theme .card-ubijob,
body.dark-theme .card-ubijob-app-item,
body.dark-theme .card-chat-item,
body.dark-theme .modal-dialog-content,
body.dark-theme .bottom-sheet-panel,
body.dark-theme .sidebar-tab-content,
body.dark-theme .drawer-body-content,
body.dark-theme .bg-highlight-card,
body.dark-theme div[style*="background: #F0FCFD"],
body.dark-theme div[style*="background:#F0FCFD"] {
  background: #16202B !important;
  border-color: #1F2937 !important;
  color: #F1F5F9 !important;
}

body.dark-theme .card-job-title,
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, 
body.dark-theme h4, body.dark-theme h5, body.dark-theme h6 {
  color: var(--texto-principal) !important;
}

body.dark-theme p, body.dark-theme label, body.dark-theme span {
  color: var(--texto-secundario);
}

body.dark-theme .card-company-name,
body.dark-theme .card-job-snippet,
body.dark-theme .card-posted-time {
  color: var(--texto-secundario) !important;
}

body.dark-theme .bottom-sheet-header,
body.dark-theme .modal-header-block {
  background: var(--header-bg) !important;
  border-bottom-color: var(--bordes-separadores) !important;
}

body.dark-theme .input-ubijob,
body.dark-theme .input-ubijob-text,
body.dark-theme .input-ubijob-field,
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme input[type="search"],
body.dark-theme input[type="tel"],
body.dark-theme textarea,
body.dark-theme select {
  background: #16202B !important;
  border-color: #1F2937 !important;
  color: #F1F5F9 !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: #94A3B8 !important;
}

body.dark-theme .ubijob-autocomplete-dropdown,
body.dark-theme .suggestions-list-container {
  background: #0F172A !important;
  border-color: #334155 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8) !important;
}

body.dark-theme .suggestion-item-ubijob {
  color: #F8FAFC !important;
  border-bottom-color: #1E293B !important;
}

body.dark-theme .suggestion-item-ubijob:hover {
  background: #1E293B !important;
}

body.dark-theme .btn-contract-chip,
body.dark-theme .btn-shift-chip,
body.dark-theme .skill-chip {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #CBD5E1 !important;
}

body.dark-theme .btn-contract-chip.active,
body.dark-theme .btn-shift-chip.active,
body.dark-theme .skill-chip.active {
  background: #0E7C86 !important;
  color: #FFFFFF !important;
  border-color: #0E7C86 !important;
}

body.dark-theme .btn-outline-ubijob {
  border-color: #334155 !important;
  color: #F8FAFC !important;
  background: #1E293B !important;
}

body.dark-theme .pegman-instruction-banner {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .chat-msg-received {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .right-sidebar-panel {
  background: #0F172A !important;
  border-color: #1E293B !important;
}

body.dark-theme .sidebar-user-profile-card {
  background: #0F172A !important;
  border-bottom-color: #1E293B !important;
}

body.dark-theme .profile-user-name {
  color: #F8FAFC !important;
}

body.dark-theme .sidebar-dock-navigation {
  background: #0F172A !important;
  border-color: #1E293B !important;
}

body.dark-theme .dock-tab-btn {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #94A3B8 !important;
}

body.dark-theme .dock-tab-btn:hover {
  background: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .dock-tab-btn.active {
  background: #0E7C86 !important;
  border-color: #0E7C86 !important;
  color: #FFFFFF !important;
}

body.dark-theme .ubijob-bottom-sheet,
body.dark-theme .sheet-header-ubijob,
body.dark-theme .sheet-content-ubijob {
  background: #0F172A !important;
  border-color: #1E293B !important;
  color: #F8FAFC !important;
}

body.dark-theme #sheet-title-text,
body.dark-theme #sheet-count-text {
  color: #F8FAFC !important;
}

body.dark-theme .btn-quick-zone {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme #btn-save-general-settings,
body.dark-theme .btn-navy {
  background: #0E7C86 !important;
  color: #FFFFFF !important;
  border-color: #0E7C86 !important;
}

body.dark-theme #modal-filters .modal-dialog-content,
body.dark-theme #modal-filters .modal-body,
body.dark-theme #modal-filters .modal-footer,
body.dark-theme #modal-filters .filter-section,
body.dark-theme #modal-filters .filter-chip-btn {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

/* Selector de Idiomas Elegante con Tarjetas */
/* Desplegable Moderno de Idiomas (Sin Emojis) */
.input-ubijob-modern-select {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 36px 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--primary-navy);
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.input-ubijob-modern-select:hover,
.input-ubijob-modern-select:focus {
  border-color: #0E7C86;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.dark-theme .input-ubijob-modern-select {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .language-dropdown-wrapper {
  background: #0F172A !important;
  border-color: #1E293B !important;
}

/* Barra de Filtros Activos en Modo Oscuro */
body.dark-theme .active-filters-bar {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

body.dark-theme .filter-badge-tag {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
  box-shadow: none !important;
}

body.dark-theme .filter-badge-tag i {
  color: #94A3B8 !important;
}

/* Modal de Filtros Completo en Modo Oscuro */
body.dark-theme .modal-ubijob-card,
body.dark-theme .modal-ubijob-header,
body.dark-theme .modal-ubijob-body,
body.dark-theme .modal-ubijob-footer {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .input-ubijob-styled {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

body.dark-theme .modal-search-field-wrapper i.field-icon {
  color: #60A5FA !important;
}

/* Zona de Carga de CV en Perfil y Modo Oscuro */
.cv-upload-dropzone:hover {
  border-color: #0E7C86 !important;
  background: #F1F5F9 !important;
}

body.dark-theme .cv-upload-dropzone {
  background: #0F172A !important;
  border-color: #334155 !important;
}

body.dark-theme .cv-upload-dropzone:hover {
  background: #1E293B !important;
  border-color: #0E7C86 !important;
}

body.dark-theme #sidebar-content-profile {
  background: #0F172A !important;
  color: #F8FAFC !important;
}

body.dark-theme .profile-form-group {
  border-bottom-color: #1E293B !important;
}

/* Custom Filter Chips Grid & Buttons */
.filter-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.filter-chip-btn {
  padding: 8px 16px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  color: #475569;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.filter-chip-btn:hover {
  border-color: #0E7C86;
  color: #0E7C86;
  background: #EFF6FF;
  transform: translateY(-1px);
}

.filter-chip-btn.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

body.dark-theme .filter-chip-btn {
  background: #1E293B;
  border-color: #334155;
  color: #94A3B8;
}

body.dark-theme .filter-chip-btn:hover {
  border-color: #3B82F6;
  color: #3B82F6;
  background: #1E293B;
}

body.dark-theme .filter-chip-btn.active {
  background: #0E7C86;
  border-color: #0E7C86;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Core Leaflet Positioning Rules */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
/* UbicaJobs Toast Notification System (Sin bocadillos nativos HTML5) */
.ubijob-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.ubijob-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
  border-left: 5px solid #0E7C86;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0F172A;
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ubijob-toast.toast-error {
  border-left-color: #EF4444;
  background: #FFFFFF;
  color: #0F172A;
}

.ubijob-toast.toast-warning {
  border-left-color: #F59E0B;
  background: #FFFFFF;
  color: #0F172A;
}

.ubijob-toast.toast-success {
  border-left-color: #10B981;
  background: #FFFFFF;
  color: #0F172A;
}

.ubijob-toast i.toast-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ubijob-toast.toast-error i.toast-icon { color: #EF4444; }
.ubijob-toast.toast-warning i.toast-icon { color: #F59E0B; }
.ubijob-toast.toast-success i.toast-icon { color: #10B981; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to { opacity: 0.99; transform: translateY(0) scale(1); }
}

@keyframes toastFadeOut {
  from { opacity: 0.99; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-16px); }
}

.input-error-shake {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
  animation: inputShake 0.35s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.leaflet-container {
  overflow: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  outline: 0;
}
.leaflet-tile {
  filter: inherit;
  visibility: hidden;
}
.leaflet-tile-loaded {
  visibility: inherit;
}
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-popup-pane   { z-index: 700; }

/* Insignia Flotante del Mapa - Encuadre Perfecto */
.talent-count-badge-marker {
  width: auto !important;
  height: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
}

/* DRAWER / BARRA LATERAL DESPLIZABLE DE DETALLE DE OFERTA (580px) */
.wider-offer-sidebar-drawer {
  position: fixed !important;
  top: 68px !important;
  right: -620px !important;
  width: 580px !important;
  max-width: 92vw !important;
  height: calc(100vh - 68px) !important;
  background: #FFFFFF !important;
  border-left: 1.5px solid #CBD5E1 !important;
  box-shadow: -10px 0 36px rgba(15, 23, 42, 0.25) !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

.wider-offer-sidebar-drawer.active {
  right: 0 !important;
}

.drawer-body-content {
  overflow-y: auto !important;
  flex: 1 !important;
}

