/* Tema IEN Empleo - extraido de index-ui.html del rediseno (rama nueva-interfaz-bolsatrabajo). */
@layer base, components, utilities;

:root {
  --font-size: 16px;
  --background: #F8F3F0;
  --foreground: #26222E;
  --card: #FEFCF9;
  --primary: #512DA8;
  --primary-600: #43218F;
  --sun: #FFDE59;
  --sun-foreground: #26222E;
  --secondary: #f5e6a8;
  --muted: #F0E9E1;
  --muted-foreground: #6B645C;
  --accent: #F1EAE2;
  --destructive: #d4183d;
  --border: rgba(110, 85, 55, 0.16);
  --input-background: #F3EDE5;
  --switch-background: #cbced4;
  --radius: 0.75rem;
}

* { box-sizing: border-box; min-width: 0; }

html { font-size: var(--font-size); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--primary); color: #fff; }

@layer base {
  h1 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
  h2 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
  h3 { font-weight: 600; line-height: 1.4; }
  h4 { font-weight: 500; line-height: 1.5; }
  label { font-weight: 500; line-height: 1.5; }
  button { font-weight: 500; line-height: 1.5; }
  input { font-weight: 400; line-height: 1.5; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.btn-ien {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(81, 45, 168, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-ien:hover { transform: translateY(-2px); background: var(--primary-600); box-shadow: 0 16px 32px -12px rgba(81, 45, 168, 0.6); }

.btn-sun {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 9999px;
  background: var(--sun);
  color: var(--sun-foreground);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(255, 222, 89, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-sun:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 16px 36px -12px rgba(255, 222, 89, 0.75); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(38, 34, 46, 0.14);
  background: transparent;
  color: var(--foreground);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.78rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(81, 45, 168, 0.05); }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  background: rgba(81, 45, 168, 0.08);
  color: var(--primary);
  border: 1px solid rgba(81, 45, 168, 0.12);
}

.hero-dots { background-image: none; }

.hero-grid-fade {
  background-image: linear-gradient(rgba(81, 45, 168, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(81, 45, 168, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 55%, transparent 100%);
}

.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  padding-left: 1.25rem;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

.input-ien {
  width: 100%;
  background: var(--input-background);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input-ien:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(81, 45, 168, 0.12); background: #fff; }

.switch-ien { position: relative; display: inline-flex; cursor: pointer; }
.switch-ien input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ien .track { height: 1.75rem; width: 3rem; border-radius: 9999px; background: var(--switch-background); transition: background 0.2s ease; }
.switch-ien .thumb { position: absolute; left: 3px; top: 3px; height: 1.375rem; width: 1.375rem; border-radius: 9999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
.switch-ien input:checked + .track { background: var(--primary); }
.switch-ien input:checked + .track + .thumb { transform: translateX(1.25rem); }

svg.ic { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .reveal { animation: none; transition: none; transform: none; opacity: 1; }
}

/* ---------------------------------------------------------------------------
 * Utilidades que faltan en tailwind-ui.css
 *
 * tailwind-ui.css es Tailwind YA COMPILADO a partir del mockup: solo contiene
 * las clases que aparecian en index-ui.html. Cualquier clase que usemos en una
 * plantilla nueva y no estuviera en el mockup simplemente no existe y no hace
 * nada. Estas son las que hicieron falta al portar las pantallas.
 *
 * Si algun dia se compila Tailwind desde el proyecto (con las plantillas de
 * Django como content), este bloque se puede borrar entero.
 * ------------------------------------------------------------------------ */

/* Layout de dos columnas de la seccion del postulante (sidebar + contenido) */
@media (min-width: 1024px) {
  .lg\:grid-cols-\[16rem_1fr\] { grid-template-columns: 16rem 1fr; }
}

/* Descripciones recortadas a dos lineas en las tarjetas de oferta */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Respeta los saltos de linea de la descripcion cargada por la empresa */
.whitespace-pre-line { white-space: pre-line; }

/* Estados de error y exito (mensajes, errores de formulario) */
.bg-\[\#d4183d\]\/10    { background-color: rgba(212, 24, 61, 0.1); }
.border-\[\#d4183d\]\/30 { border-color: rgba(212, 24, 61, 0.3); }
.border-\[\#27AE60\]\/30 { border-color: rgba(39, 174, 96, 0.3); }
.hover\:bg-\[\#d4183d\]\/5:hover { background-color: rgba(212, 24, 61, 0.05); }

.min-h-\[70vh\] { min-height: 70vh; }

@media (min-width: 640px) {
  .sm\:w-auto { width: auto; }
  .sm\:\!px-10 { padding-left: 2.5rem !important; padding-right: 2.5rem !important; }
}

/* Switch del formulario de oferta (Publicacion confidencial).
   El input lleva "sr-only peer" y este div es su hermano siguiente. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.switch-track {
  position: relative;
  height: 1.5rem;
  width: 2.75rem;
  border-radius: 9999px;
  background: var(--switch-background);
  transition: background 0.2s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.peer:checked ~ .switch-track { background: var(--primary); }
.peer:checked ~ .switch-track::after { transform: translateX(1.25rem); }
.peer:focus-visible ~ .switch-track { box-shadow: 0 0 0 4px rgba(81, 45, 168, 0.2); }

/* Solapas del panel del oferente. dashboard.js agrega y saca estas clases,
   asi que tienen que existir aunque no vinieran del mockup. */
.border-primary { border-color: var(--primary); }
.text-primary { color: var(--primary); }
.border-transparent { border-color: transparent; }
.text-muted-foreground { color: var(--muted-foreground); }

/* Badges de estado del oferente: los nombres los devuelve
   apps/usuarios/estado_oferente.py, no se tocan desde la plantilla. */
.bg-yellow-50  { background-color: #FEF8E7; }
.border-yellow-200 { border-color: #F5E3A8; }
.text-yellow-800 { color: #8A6400; }
.bg-green-50   { background-color: #ECF8F1; }
.border-green-200 { border-color: #B7E4C9; }
.text-green-800 { color: #1B6B42; }
.bg-red-50     { background-color: #FDEEF1; }
.border-red-200 { border-color: #F5C2CD; }
.text-red-800  { color: #8A1028; }

/* Utilidades que hicieron falta al portar el panel del oferente y sus parciales. */
.from-\[\#512DA8\]\/25 { --tw-gradient-from: rgba(81, 45, 168, 0.25); }
.to-\[\#FFDE59\]\/25   { --tw-gradient-to: rgba(255, 222, 89, 0.25); }
.bg-gradient-to-r      { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }

.max-w-sm  { max-width: 24rem; }
.max-h-48  { max-height: 12rem; }
.max-h-60  { max-height: 15rem; }
.list-disc { list-style-type: disc; }
.pl-5      { padding-left: 1.25rem; }

/* Estados de las ofertas en el listado del panel */
.bg-\[\#F0E9E1\]    { background-color: #F0E9E1; }
.bg-\[\#FFDE59\]\/35 { background-color: rgba(255, 222, 89, 0.35); }
.text-\[\#1B6B42\]  { color: #1B6B42; }
.text-\[\#8A6400\]  { color: #8A6400; }
.text-\[\#8A1028\]  { color: #8A1028; }
.text-\[\#6B645C\]\/60 { color: rgba(107, 100, 92, 0.6); }

.hover\:bg-\[\#b01333\]:hover     { background-color: #b01333; }
.hover\:border-\[\#d4183d\]:hover { border-color: #d4183d; }
.hover\:text-\[\#d4183d\]:hover   { color: #d4183d; }
.hover\:text-\[\#26222E\]:hover   { color: #26222E; }

@media (min-width: 640px) {
  .sm\:p-10 { padding: 2.5rem; }
}

/* dashboard.js dibuja las pildoras de habilidades con "chip !text-sm" */
.\!text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }

/* ---------------------------------------------------------------------------
 * Vocabulario semantico (compatibilidad)
 *
 * Las pantallas de moderacion, recuperacion de contrasena y perfil de empresa
 * fueron escritas con los nombres del tema anterior (bg-primary, text-muted-
 * foreground, border-border...). Antes los generaba el CDN de Tailwind; ahora
 * que todo corre con el CSS compilado hay que definirlos, apuntados a la
 * paleta del rediseno. Asi esas pantallas se repintan sin reescribir su markup.
 *
 * Si algun dia se compila Tailwind desde el proyecto, este bloque sobra.
 * ------------------------------------------------------------------------ */

.bg-background            { background-color: var(--background); }
.bg-card                  { background-color: var(--card); }
.bg-accent                { background-color: var(--accent); }
.bg-muted                 { background-color: var(--muted); }
.bg-muted\/40             { background-color: rgba(240, 233, 225, 0.4); }
.bg-muted\/50             { background-color: rgba(240, 233, 225, 0.5); }
.bg-input-background      { background-color: var(--input-background); }
.bg-primary               { background-color: var(--primary); }
.bg-primary\/10           { background-color: rgba(81, 45, 168, 0.1); }
.bg-primary\/20           { background-color: rgba(81, 45, 168, 0.2); }
.bg-secondary\/20         { background-color: rgba(255, 222, 89, 0.2); }
.bg-destructive           { background-color: var(--destructive); }
.bg-destructive\/10       { background-color: rgba(212, 24, 61, 0.1); }

.text-foreground          { color: var(--foreground); }
.text-primary-foreground  { color: #fff; }
.text-secondary-foreground { color: var(--sun-foreground); }
.text-destructive         { color: var(--destructive); }
.text-success             { color: #27AE60; }
.text-primary\/40         { color: rgba(81, 45, 168, 0.4); }

.border-border            { border-color: var(--border); }
.border-destructive\/30   { border-color: rgba(212, 24, 61, 0.3); }
.border-success\/30       { border-color: rgba(39, 174, 96, 0.3); }

.hover\:bg-accent:hover        { background-color: var(--accent); }
.hover\:bg-muted:hover         { background-color: var(--muted); }
.hover\:bg-muted\/40:hover     { background-color: rgba(240, 233, 225, 0.4); }
.hover\:bg-muted\/50:hover     { background-color: rgba(240, 233, 225, 0.5); }
.hover\:bg-muted\/80:hover     { background-color: rgba(240, 233, 225, 0.8); }
.hover\:bg-primary\/20:hover   { background-color: rgba(81, 45, 168, 0.2); }
.hover\:bg-primary\/90:hover   { background-color: var(--primary-600); }
.hover\:bg-secondary\/30:hover { background-color: rgba(255, 222, 89, 0.3); }
.hover\:bg-destructive\/20:hover { background-color: rgba(212, 24, 61, 0.2); }
.hover\:bg-destructive\/90:hover { background-color: #b01333; }
.hover\:text-foreground:hover  { color: var(--foreground); }
.hover\:text-primary:hover     { color: var(--primary); }
.hover\:border-primary\/30:hover { border-color: rgba(81, 45, 168, 0.3); }
.hover\:border-primary\/40:hover { border-color: rgba(81, 45, 168, 0.4); }

.focus\:ring-ring:focus,
.focus\:ring-primary\/30:focus { outline: none; box-shadow: 0 0 0 4px rgba(81, 45, 168, 0.12); }

.from-primary\/20 { --tw-gradient-from: rgba(81, 45, 168, 0.2); }
.to-primary\/10   { --tw-gradient-to: rgba(81, 45, 168, 0.1); }

/* Colores de estado. Se reencuadran en la paleta calida del rediseno para que
   no desentonen con el resto (el verde y el rojo planos quedaban muy crudos). */
.bg-green-50   { background-color: #ECF8F1; }
.bg-green-100  { background-color: #D9F0E3; }
.text-green-600 { color: #27AE60; }
.text-green-700 { color: #1B6B42; }
.border-green-200 { border-color: #B7E4C9; }
.hover\:bg-green-50:hover { background-color: #ECF8F1; }

.bg-yellow-100 { background-color: rgba(255, 222, 89, 0.35); }
.text-yellow-700 { color: #8A6400; }
.bg-\[\#FEFCE8\] { background-color: #FEFCE8; }

.bg-red-50     { background-color: #FDEEF1; }
.bg-red-100    { background-color: #FAD9E0; }
.text-red-500  { color: #d4183d; }
.text-red-600  { color: #c21537; }
.text-red-700  { color: #8A1028; }
.border-red-200 { border-color: #F5C2CD; }
.hover\:bg-red-50:hover { background-color: #FDEEF1; }

.text-orange-600 { color: #C77B1E; }
.border-orange-200 { border-color: #F0D5A8; }
.hover\:bg-orange-50:hover { background-color: #FDF6E9; }

.border-amber-200 { border-color: #F0D5A8; }
.text-amber-800   { color: #8A6400; }

/* Utilidades sueltas que usan esas pantallas */
.-mt-12        { margin-top: -3rem; }
.ml-4          { margin-left: 1rem; }
.px-12         { padding-left: 3rem; padding-right: 3rem; }
.col-span-full { grid-column: 1 / -1; }
@media (min-width: 640px) { .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .md\:mt-14 { margin-top: 3.5rem; } }

/* Clases que ofertas_moderacion.js genera en tiempo de ejecucion
   (badges de estado y botones del modal), no aparecen en ninguna plantilla. */
.bg-gray-100     { background-color: #F0E9E1; }
.text-gray-700   { color: #6B645C; }
.bg-orange-600   { background-color: #C77B1E; }
.hover\:bg-orange-700:hover { background-color: #A66415; }

/* Tamanos y espaciados que solo aparecen dentro de strings de JS */
.p-0\.5   { padding: 0.125rem; }
.p-1\.5   { padding: 0.375rem; }
.py-1\.5  { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5  { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.w-3\.5   { width: 0.875rem; }
.h-3\.5   { height: 0.875rem; }
.hover\:opacity-60:hover { opacity: 0.6; }

/* Spinner de la carga de CV (cv_upload.js) */
.animate-spin { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }
.text-blue-600 { color: #512DA8; }

/* Botones de analisis de CV (rama ia). cv_upload.js agrega y saca estas clases. */
.border-\[1\.5px\] { border-width: 1.5px; border-style: solid; }
.cursor-wait { cursor: wait; }
.mr-2 { margin-right: 0.5rem; }
.hover\:bg-primary\/5:hover { background-color: rgba(81, 45, 168, 0.05); }

/* Barra de progreso indeterminada del panel de analisis de CV (mi_perfil.html) */
.barra-indeterminada {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: rgba(81, 45, 168, 0.1);
}
.barra-indeterminada > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--sun));
  animation: barra-ida-vuelta 1.4s ease-in-out infinite;
}
@keyframes barra-ida-vuelta {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .barra-indeterminada > span { animation-duration: 3s; }
}
.text-green-800 { color: #1B6B42; }

/* ---------------------------------------------------------------------------
 * Popups: IenUI.confirmar() y IenUI.aviso() (static/js/ui/ien-ui.js)
 * ------------------------------------------------------------------------ */
.ien-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(38, 34, 46, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.18s ease;
}
.ien-overlay.abierto { opacity: 1; }
.ien-modal {
  width: 100%; max-width: 24rem;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(38, 34, 46, 0.45);
  transform: translateY(10px) scale(0.97);
  transition: transform 0.18s ease;
}
.ien-overlay.abierto .ien-modal { transform: none; }
.ien-modal-icono {
  margin: 0 auto 1rem; display: grid; place-items: center;
  height: 3rem; width: 3rem; border-radius: 9999px;
}
.ien-modal-icono.es-info    { background: rgba(81, 45, 168, 0.1); color: var(--primary); }
.ien-modal-icono.es-peligro { background: rgba(212, 24, 61, 0.1); color: var(--destructive); }
.ien-modal-titulo { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--foreground); }
.ien-modal-texto  { margin: 0.4rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted-foreground); }
.ien-modal-botones { margin-top: 1.5rem; display: flex; gap: 0.75rem; }
.ien-modal-botones > * { flex: 1; font-size: 0.875rem; padding-top: 0.65rem; padding-bottom: 0.65rem; }
.btn-peligro { background: var(--destructive); box-shadow: 0 10px 24px -10px rgba(212, 24, 61, 0.55); }
.btn-peligro:hover { background: #b01333; box-shadow: 0 16px 32px -12px rgba(212, 24, 61, 0.6); }

#ien-avisos {
  position: fixed; z-index: 310;
  top: 1.25rem; right: 1.25rem; left: 1.25rem;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem;
  pointer-events: none;
}
.ien-aviso {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 0.75rem;
  width: 100%; max-width: 24rem;
  padding: 0.9rem 0.9rem 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left-width: 4px;
  box-shadow: 0 20px 50px -24px rgba(38, 34, 46, 0.45);
  font-size: 0.875rem; line-height: 1.45; color: var(--foreground);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ien-aviso.abierto { opacity: 1; transform: none; }
.ien-aviso > p { margin: 0; flex: 1; padding-top: 0.05rem; }
.ien-aviso.es-exito { border-left-color: #27AE60; }
.ien-aviso.es-exito > .ic { color: #27AE60; }
.ien-aviso.es-error { border-left-color: var(--destructive); }
.ien-aviso.es-error > .ic { color: var(--destructive); }
.ien-aviso.es-info  { border-left-color: var(--primary); }
.ien-aviso.es-info > .ic  { color: var(--primary); }
.ien-aviso-cerrar {
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted-foreground); padding: 0.1rem; border-radius: 9999px;
}
.ien-aviso-cerrar:hover { color: var(--foreground); }
@media (prefers-reduced-motion: reduce) {
  .ien-overlay, .ien-modal, .ien-aviso { transition: none; }
}

/* Portada: distribución propia para no depender de regenerar Tailwind. */
.ien-home-container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 2rem; }
.ien-home-section { padding: 4.5rem 0; }
.ien-home-section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ien-home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 5rem; }
.ien-home-title { max-width: 12ch; margin-top: 1.25rem; font-size: clamp(2.4rem, 4.2vw, 3.75rem); line-height: 1.12; letter-spacing: -0.035em; }
.ien-home-title-accent {
  display: inline-block;
  color: var(--primary);
  white-space: nowrap;
  padding-bottom: 0.3em;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%2032%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M8%2023%20Q185%201%20392%2018%22%20fill%3D%22none%22%20stroke%3D%22%23FFDE59%22%20stroke-width%3D%2214%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0.32em;
}
.ien-home-intro { max-width: 42rem; margin-top: 1rem; color: var(--muted-foreground); line-height: 1.8; }
.ien-home-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; color: var(--muted-foreground); font-size: 0.875rem; }
.ien-home-stats strong { color: var(--primary); font-size: 1.25rem; }
.ien-home-search { display: grid; gap: 1.25rem; padding: 2rem; box-shadow: 0 18px 50px -30px rgba(60, 40, 80, 0.25); }
.ien-home-search h2 { font-size: 1.35rem; }
.ien-home-search label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; }
.ien-home-search input, .ien-home-search select { min-height: 3rem; }
.ien-home-filter-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ien-home-search .btn-ien { margin-top: 0.25rem; }
.ien-section-title { margin-top: 0.75rem; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.ien-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.ien-section-heading .btn-ghost { font-size: 0.875rem; flex-shrink: 0; }
.ien-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.ien-course-card { display: flex; flex-direction: column; align-items: start; padding: 1.75rem; }
.ien-card-meta { color: var(--muted-foreground); font-size: 0.75rem; line-height: 1.6; }
.ien-course-card h2, .ien-course-card h3 { margin-top: 0.75rem; font-size: 1.125rem; }
.ien-course-description { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }
.ien-course-details { display: grid; gap: 0.6rem; margin: 1.5rem 0; font-size: 0.8125rem; line-height: 1.6; }
.ien-course-details dt { font-weight: 600; }
.ien-course-details dd { color: var(--muted-foreground); }
.ien-text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.ien-text-link:hover { text-decoration: underline; }
.ien-course-card .ien-text-link { margin-top: auto; }
.ien-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.ien-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: #eee8fa;
  border: 1px solid rgba(81, 45, 168, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.04);
}
.ien-step:nth-child(1) { background: #e7ddf6; }
.ien-step:nth-child(2) { background: #ece3f8; }
.ien-step:nth-child(3) { background: #f3edfb; }
.ien-step-number {
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
}
.ien-step h3 {
  margin-top: 1rem;
  color: #26222e;
  font-size: 1.125rem;
}
.ien-step p {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  color: #48414f;
  font-size: 0.875rem;
  line-height: 1.8;
}
.ien-step .btn-ghost {
  margin-top: auto;
  border-color: var(--primary);
  color: var(--primary);
  font-size: 0.875rem;
}
.ien-step .btn-ghost:focus-visible {
  outline: 3px solid #26222e;
  outline-offset: 4px;
}
.ien-home-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.ien-home-offer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.75rem;
  background: #f3edfb;
  border-color: rgba(81, 45, 168, 0.2);
}
.ien-home-offer h3 { font-size: 1.0625rem; overflow-wrap: anywhere; }
.ien-home-offer p { margin-top: 0.35rem; color: var(--muted-foreground); font-size: 0.875rem; }
.ien-home-offer .ien-card-meta { font-size: 0.75rem; }
.ien-offer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; color: var(--muted-foreground); font-size: 0.8125rem; }
.ien-home-offer .btn-ghost {
  align-self: flex-start;
  margin-top: auto;
  border-color: var(--primary);
  color: var(--primary);
  font-size: 0.875rem;
}
.ien-home-offer .btn-ghost:focus-visible {
  outline: 3px solid var(--foreground);
  outline-offset: 4px;
}
.ien-home-empty { grid-column: 1 / -1; padding: 2rem; color: var(--muted-foreground); }
.ien-breadcrumbs { margin-top: 0.875rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.ien-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.ien-breadcrumbs li { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.ien-breadcrumbs a { color: var(--primary); }
.ien-breadcrumbs a:hover { text-decoration: underline; }
.ien-breadcrumbs [aria-current] { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .ien-home-hero { gap: 2.5rem; }
  .ien-course-grid, .ien-home-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ien-home-container { padding: 0 1.25rem; }
  .ien-home-section { padding: 3rem 0; }
  .ien-home-hero, .ien-course-grid, .ien-steps-grid, .ien-home-offers { grid-template-columns: minmax(0, 1fr); }
  .ien-home-title { max-width: 16ch; }
  .ien-home-search { padding: 1.5rem; }
  .ien-section-heading { align-items: start; flex-direction: column; }
  .ien-home-offer { padding: 1.5rem; }
}
@media (max-width: 399px) {
  .ien-home-filter-pair { grid-template-columns: minmax(0, 1fr); }
}

.password-field { position: relative; }
.password-field > .password-input { padding-right: 3.5rem; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}
.password-toggle:hover { color: var(--primary); background: rgba(81, 45, 168, 0.06); }
.password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.password-toggle[hidden], .password-toggle svg[hidden] { display: none; }

.ien-profile-next { background: #f3edfb; border-color: rgba(81, 45, 168, 0.2); }

.ien-home-search { background: #e7ddf6; border-color: rgba(81, 45, 168, 0.25); }
.ien-company-guide { background: #f3edfb; border-color: rgba(81, 45, 168, 0.2); }

.ien-course-card:nth-child(3n+1) { background: #e7ddf6; }
.ien-course-card:nth-child(3n+2) { background: #ece3f8; }
.ien-course-card:nth-child(3n) { background: #f3edfb; }
.ien-course-card { border-color: rgba(81, 45, 168, 0.2); }
.ien-course-card .btn-ghost { margin-top: auto; border-color: var(--primary); color: var(--primary); font-size: .875rem; }
.ien-category-help { margin-top: .5rem; padding: .875rem; background: #f3edfb; border-radius: .75rem; color: var(--muted-foreground); font-size: .8125rem; line-height: 1.6; }
.ien-category-help a { color: var(--primary); font-weight: 600; text-decoration: underline; }

.description-counter { margin-top: .4rem; color: var(--muted-foreground); font-size: .75rem; line-height: 1.5; }
.description-counter.is-over-limit { color: #b91c1c; font-weight: 600; }
.character-limit-exceeded { border-color: #b91c1c !important; box-shadow: 0 0 0 2px rgba(185, 28, 28, .14); }
.skill-picker { position: relative; margin-top: .5rem; }
.skill-picker-entry { display: flex; gap: .5rem; align-items: center; }
.skill-picker-entry .input-ien { flex: 1; }
.skill-picker-options { position: absolute; z-index: 20; width: 100%; max-height: 13rem; overflow-y: auto; list-style: none; padding: .35rem; margin: .35rem 0 0; background: var(--card); border: 1px solid var(--border); border-radius: .75rem; box-shadow: 0 8px 24px rgba(38,34,46,.12); }
.skill-picker-options[hidden] { display: none; }
.skill-picker-options li { padding: .6rem; cursor: pointer; border-radius: .5rem; }
.skill-picker-options li:hover, .skill-picker-options [aria-selected="true"] { background: #e7ddf6; color: var(--primary); }
.skill-picker-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.skill-picker-remove { padding: .25rem .4rem; border: 0; border-radius: 999px; background: transparent; color: var(--primary); cursor: pointer; }
.skill-picker-remove:focus-visible { outline: 2px solid var(--primary); }
