/* ════════════════════════════════════════════════════════════════════
   CONTACTAMOS · Sistema de diseño (tema claro, verde corporativo)

   Tokens, tipografía y componentes compartidos por toda la aplicación.
   Las pantallas del módulo Reclutamiento externo añaden su propia capa en
   reclutamiento.css y usan los componentes base de este archivo
   (.btn, .btn-icon, .form-*, .modalf*, .content, tokens).
   ════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/pjs-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/pjs-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Ephesis';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ephesis.woff2') format('woff2');
}

:root {
  /* Paleta corporativa Contactamos (tema claro único). */
  --ground: #F6F9F6;            /* Fondo general */
  --surface: #EBF5EE;           /* Superficie verde clara */
  --surface-2: #C8DCC8;         /* Superficie verde media */
  --border: #DCE6DC;            /* Bordes suaves */
  --text: #1C2A20;              /* Texto principal */
  --muted: #5E6E62;             /* Texto secundario */

  --accent: #C0392B;            /* Rojo: alertas / PDF */
  --accent-2: #1B6B2E;          /* Verde corporativo primario (logo) */
  --accent-2-soft: #E3F2E6;     /* Verde muy claro */
  --accent-hover: #145222;      /* Verde oscuro (hover) */
  --accent-dark: #0F3D1C;       /* Verde profundo (paneles de marca) */

  --fs-xs: 0.72rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;

  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* Sombras y aros teñidos del verde corporativo (nunca negro puro). */
  --ring: rgba(27, 107, 46, 0.14);
  --tint: rgba(15, 61, 28, 0.12);
  --shadow: 0 1px 2px rgba(15, 61, 28, 0.04), 0 10px 24px -16px rgba(15, 61, 28, 0.18);
  --shadow-lg: 0 24px 50px -22px rgba(15, 61, 28, 0.35);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ancho-app: 1440px; /* ancho máximo de cabecera y contenido */
  --logo-alto: 42px; /* alto del logo; el texto "Tami / Contactamos" mide lo mismo */
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--ground);
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(227, 242, 230, 0.9), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }
a { color: var(--accent-2); }
:focus-visible { outline: 3px solid rgba(27, 107, 46, 0.35); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── CABECERA: isla flotante, no una barra pegada al borde ───────────── */
.app-header {
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  width: min(var(--ancho-app), calc(100% - 2rem));
  min-height: 66px;
  margin: 0.75rem auto 0;
  padding: 0 1rem 0 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--ring), 0 18px 32px -24px var(--tint);
}
@media (prefers-reduced-transparency: reduce) { .app-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

.app-header__brand { display: flex; align-items: center; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; border-radius: 14px; text-decoration: none; }
.brand__texto { display: flex; flex-direction: column; justify-content: space-between; height: var(--logo-alto); line-height: 1; }
/* "Tami": caligrafía de trazo fino y grueso con florituras, en degradado verde */
.brand__tami {
  display: inline-block; font-family: 'Ephesis', 'Segoe Script', cursive; font-size: 2.45rem; font-weight: 400; line-height: 0.7;
  -webkit-text-stroke: 0.7px #1B6B2E; paint-order: stroke fill;
  padding: 0 0.18em 0 0; margin: 0.12em 0 0;
  background: linear-gradient(135deg, #38a653 0%, var(--accent-2) 45%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(27, 107, 46, 0.22));
  transition: transform 0.45s var(--ease);
}
.brand:hover .brand__tami { transform: translateY(-1px) scale(1.05); }
.brand__empresa { margin: 0; padding-left: 0.2rem; line-height: 1; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.app-header__logo-img { height: var(--logo-alto); width: auto; display: block; }

/* Logo <-> Tami: el logo se transforma en el logo de la camisa y la cámara se aleja hasta mostrar a Tami saludando.
   --av: tamaño del avatar; el globo de la camisa está en (77.2 %, 68 %) de la imagen y mide 8.3 % de su ancho,
   por eso el zoom inicial (--av-zoom) lo deja del mismo tamaño que el logo de la cabecera. */
.brand__marca { --av: calc(var(--logo-alto) * 1.6); --av-zoom: 8.6; position: relative; display: block; flex-shrink: 0; width: calc(var(--logo-alto) * 1.175); height: var(--logo-alto); }
.brand__marca .app-header__logo-img { position: absolute; inset: 0; margin: auto; transition: opacity 0.3s var(--ease) 0.5s; }
.brand__avatar {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  width: var(--av); height: var(--av); margin: calc(var(--av) * -0.5) 0 0 calc(var(--av) * -0.5);
  opacity: 0; filter: drop-shadow(0 6px 9px rgba(15, 61, 28, 0.28));
  transition: opacity 0.3s var(--ease) 0.75s;
}
.brand__avatar-clip {
  display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: #eef1f6;
  box-shadow: 0 0 0 2px #fff; clip-path: circle(34% at 50% 50%);
  transition: clip-path 0.7s cubic-bezier(0.5, 0, 0.7, 0.4) 0.05s;
}
.brand__avatar-clip > * {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 77.2% 68%; transform: translate(-27.2%, -18%) scale(var(--av-zoom));
  transition: transform 0.8s cubic-bezier(0.55, 0, 0.45, 1);
}
.brand__marca.is-avatar .app-header__logo-img { opacity: 0; transition-delay: 0s; transition-duration: 0.3s; }
.brand__marca.is-avatar .brand__avatar { opacity: 1; transition-delay: 0s; transition-duration: 0.25s; }
.brand__marca.is-avatar .brand__avatar-clip { clip-path: circle(50% at 50% 50%); transition: clip-path 0.9s cubic-bezier(0.22, 0.9, 0.25, 1) 0.35s; }
.brand__marca.is-avatar .brand__avatar-clip > * { transform: none; transition: transform 1.05s cubic-bezier(0.22, 0.9, 0.25, 1) 0.3s; }
/* Fuera de su turno el avatar no gasta animaciones */
.brand__marca:not(.is-avatar) .brand__avatar svg * { animation-play-state: paused !important; }

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
  padding: 0 1.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.app-nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-link__icon { display: inline-flex; width: 17px; height: 17px; flex-shrink: 0; }
.nav-link__icon svg { width: 100%; height: 100%; }
.nav-link:hover { background: var(--surface); color: var(--accent-2); }
.nav-link--active { background: var(--accent-2-soft); color: var(--accent-2); }

.app-header__user-bar { display: flex; align-items: center; gap: 0.7rem; margin-left: 0.4rem; padding-left: 1.2rem; border-left: 1px solid var(--border); font-size: 0.8rem; flex-shrink: 0; }
.user-bar__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-2), var(--accent-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 0.85rem; flex-shrink: 0;
  box-shadow: 0 6px 14px -8px rgba(15, 61, 28, 0.7);
}
.user-bar__info { display: flex; flex-direction: column; line-height: 1.25; }
.user-bar__name { color: #2D3D2D; font-weight: 650; font-size: 0.82rem; }
.user-bar__perfil { color: var(--accent-2); font-size: 0.64rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.user-bar__logout {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: transparent; color: var(--muted);
  border-radius: 12px; padding: 0.45rem 0.8rem;
  font-size: 0.78rem; font-weight: 650; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px var(--border);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.user-bar__logout-icon { display: inline-flex; width: 15px; height: 15px; }
.user-bar__logout-icon svg { width: 100%; height: 100%; }
.user-bar__logout:hover { background: rgba(192, 57, 43, 0.07); color: #b91c1c; box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.3); }

/* ── CONTENEDOR ─────────────────────────────────────────────────────── */
/* Mismo ancho que la cabecera para que todo quede alineado a sus bordes. */
.content { max-width: calc(var(--ancho-app) + 2rem); margin: 0 auto; padding: 2rem 1rem 4rem; }

/* Encabezado de página reutilizable */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-title { font-size: var(--fs-xl); }
.page-sub { margin-top: 0.3rem; color: var(--muted); font-size: 0.9rem; max-width: 64ch; }
.page-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Doble marco: bandeja exterior + núcleo interior con radios concéntricos */
.panel { padding: 0.4rem; border-radius: 24px; background: linear-gradient(160deg, #fff, var(--surface)); box-shadow: 0 0 0 1px var(--ring), 0 24px 40px -30px var(--tint); }
.panel__core { height: 100%; border-radius: 19px; background: #fff; box-shadow: inset 0 1px 0 #fff; overflow: hidden; }
.panel__pad { padding: 1.25rem 1.4rem; }

/* ── BOTONES ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-size: var(--fs-sm); font-family: inherit; font-weight: 650; line-height: 1.3;
  cursor: pointer; border: none; text-decoration: none;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background-color: var(--accent-2); color: #fff; box-shadow: 0 10px 20px -12px rgba(27, 107, 46, 0.8); }
.btn--primary:hover { background-color: var(--accent-hover); }
.btn--ghost { background-color: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.btn--ghost:hover { background-color: var(--ground); color: var(--accent-2); box-shadow: 0 0 0 1px var(--surface-2); }
.btn--export { background-color: var(--accent-2); color: #fff; box-shadow: 0 10px 20px -12px rgba(27, 107, 46, 0.8); }
.btn--export:hover { background-color: var(--accent-hover); }
.btn--sm { padding: 0.4rem 0.8rem; font-size: 0.78rem; border-radius: 10px; }

.btn-icon {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #fff; border: 0; border-radius: 10px;
  padding: 0.38rem 0.7rem; cursor: pointer;
  font-size: 0.8rem; font-weight: 650; font-family: inherit; color: #374137; text-decoration: none;
  box-shadow: 0 0 0 1px var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-icon:hover { background: var(--surface); color: var(--accent-2); box-shadow: 0 0 0 1px var(--surface-2); }
.btn-icon--danger { color: #dc2626; box-shadow: 0 0 0 1px #fca5a5; }
.btn-icon--danger:hover { background: #fef2f2; color: #b91c1c; box-shadow: 0 0 0 1px #dc2626; }

/* ── CAMPOS DE FORMULARIO ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: 0.74rem; font-weight: 700; color: #374151;
  margin-bottom: 0.4rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.form-input, .form-select {
  width: 100%; padding: 0.62rem 0.85rem;
  border: 0; border-radius: 12px;
  font-size: 0.93rem; font-family: inherit; color: var(--text); background-color: #fff;
  box-shadow: 0 0 0 1.5px var(--border);
  outline: none;
  transition: box-shadow 0.25s var(--ease);
}
.form-input:focus, .form-select:focus { box-shadow: 0 0 0 2px var(--accent-2), 0 0 0 5px rgba(27, 107, 46, 0.12); }
.form-input:disabled, .form-select:disabled { background: var(--surface); color: var(--muted); }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }

/* ── ALERTAS ────────────────────────────────────────────────────────── */
.alert { border-radius: 12px; padding: 0.75rem 1rem; font-size: 0.875rem; margin-bottom: 1.1rem; }
.alert--ok { background: #eefaf0; box-shadow: 0 0 0 1px #bfe8c9; color: #145222; }
.alert--error { background: #fef2f2; box-shadow: 0 0 0 1px #fecaca; color: #b91c1c; }

/* ── INSIGNIAS ──────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.65rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; background: var(--accent-2-soft); color: var(--accent-2); white-space: nowrap; }
.badge--muted { background: #f1f2f1; color: var(--muted); }
.badge--warn { background: #fef9c3; color: #854d0e; }
.badge--info { background: #dbeafe; color: #1e40af; }
.badge--ok { background: #d1fae5; color: #065f46; }
.badge--err { background: #fee2e2; color: #991b1b; }

/* ── TABLAS ─────────────────────────────────────────────────────────── */
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.tabla { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.86rem; }
.tabla th { text-align: left; padding: 0.8rem 1rem; background: #fbfdfb; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--border); }
.tabla td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover td { background: #f7fbf8; }
.tabla__empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem !important; }

/* ── SEGMENTADO / PESTAÑAS ──────────────────────────────────────────── */
.seg { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--ring), 0 8px 18px -12px var(--tint); }
.seg__item { padding: 0.5rem 1.05rem; border-radius: 10px; color: var(--muted); font-size: 0.85rem; font-weight: 650; text-decoration: none; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.seg__item:hover { color: var(--accent-2); background: var(--surface); }
.seg__item--active, .seg__item--active:hover { color: #fff; background: var(--accent-2); }

/* ── PAGINACIÓN ─────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.35rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination__btn {
  min-width: 38px; height: 38px; padding: 0 0.7rem; border-radius: 12px; border: 0;
  background: #fff; color: var(--text); font-size: 0.84rem; font-weight: 650; font-family: inherit;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px var(--border);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.pagination__btn:hover { box-shadow: 0 0 0 1.5px var(--accent-2); color: var(--accent-2); }
.pagination__btn:active { transform: scale(0.95); }
.pagination__btn--active, .pagination__btn--active:hover { background: var(--accent-2); color: #fff; box-shadow: 0 8px 16px -10px rgba(27, 107, 46, 0.8); }
.pagination__btn[disabled], .pagination__btn--disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* ── ESTADOS ────────────────────────────────────────────────────────── */
.state-empty, .state-initial { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.state-empty__icon, .state-initial__icon {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-2-soft); color: var(--accent-2);
}
.state-empty__icon svg, .state-initial__icon svg { width: 28px; height: 28px; }
.state-empty__title, .state-initial__title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.state-empty__sub, .state-initial__sub { font-size: var(--fs-sm); }
.state-loading { text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: var(--fs-sm); }
.spinner { display: inline-block; width: 22px; height: 22px; border: 2.5px solid var(--surface-2); border-top-color: var(--accent-2); border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════
   BUSCADOR
   ════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: min(var(--ancho-app), calc(100% - 2rem)); margin: 1rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 120% at 100% -20%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(60% 90% at 0% 115%, rgba(95, 166, 110, 0.38), transparent 60%),
    linear-gradient(150deg, var(--accent-dark) 0%, #14532a 55%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 30px 50px -34px rgba(15, 61, 28, 0.75);
}
.hero__main { min-width: 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0.75rem; margin-bottom: 0.9rem; border-radius: 99px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.hero__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.45rem; line-height: 1.1; color: #fff; text-wrap: balance; }
.hero__subtitle { font-size: 0.95rem; color: rgba(255, 255, 255, 0.74); margin-bottom: 1.5rem; max-width: 52ch; }

.search-wrap { position: relative; }
.search-input {
  width: 100%; padding: 1.05rem 1.2rem 1.05rem 3.4rem;
  font-size: var(--fs-lg); font-family: inherit; font-weight: 500;
  background-color: #fff; color: var(--text);
  border: 0; border-radius: 20px; outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 24px 40px -22px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.3s var(--ease);
}
.search-input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 24px 40px -22px rgba(0, 0, 0, 0.5); }
.search-input::placeholder { color: rgba(28, 42, 32, 0.42); font-weight: 450; }
.search-icon { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--accent-2); pointer-events: none; display: flex; align-items: center; }
.search-icon svg { width: 21px; height: 21px; }

.paquetes-section { margin-top: 1.1rem; }
.paquetes-label { font-size: 0.7rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.55rem; }
.paquetes-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.paquete-btn {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  max-width: 220px; padding: 0.5rem 0.85rem; cursor: pointer; font-family: inherit;
  background: rgba(255, 255, 255, 0.1); border: 0; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.paquete-btn:hover { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); transform: translateY(-2px); }
.paquete-btn:active { transform: scale(0.97); }
.paquete-btn__name { font-size: 0.8rem; font-weight: 700; color: #fff; line-height: 1.3; }
.paquete-btn__words { font-size: 0.7rem; color: rgba(255, 255, 255, 0.66); margin-top: 0.1rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }

.search-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.1rem; }
.search-filter-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.city-select {
  background-color: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: 12px;
  padding: 0.45rem 0.9rem; font-size: 0.82rem; font-weight: 600; font-family: inherit; cursor: pointer; outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.city-select:hover, .city-select:focus { background-color: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.city-select option { background-color: #145222; color: #fff; }

/* Indicadores dentro del hero (vidrio sobre el verde) */
.hero__kpis { display: grid; gap: 0.8rem; }
.kpi-glass {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 1.1rem 1.25rem;
  border-radius: 22px; background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.kpi-glass__label { font-size: 0.74rem; font-weight: 650; color: rgba(255, 255, 255, 0.72); }
.kpi-glass__value { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-glass__note { font-size: 0.72rem; color: rgba(255, 255, 255, 0.62); }
.kpi-glass--row > div { display: flex; flex-direction: column; gap: 0.15rem; }
.kpi-glass--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
.kpi-glass__delta { display: inline-flex; align-items: center; padding: 0.22rem 0.65rem; border-radius: 99px; background: rgba(255, 255, 255, 0.18); font-size: 0.74rem; font-weight: 750; white-space: nowrap; }

.results-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.results-header__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.results-count { font-size: var(--fs-sm); color: var(--muted); }
.results-count strong { color: var(--text); font-weight: 750; }

.result-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1rem; align-items: start; }

.result-card {
  display: flex; flex-direction: column; gap: 0.9rem;
  background-color: #fff; border-radius: 22px; padding: 1.15rem 1.2rem 1rem;
  box-shadow: 0 0 0 1px var(--border), 0 14px 26px -22px var(--tint);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.result-card:hover { box-shadow: 0 0 0 1px var(--surface-2), 0 24px 36px -24px var(--tint); transform: translateY(-2px); }
.result-card__head { display: flex; align-items: flex-start; gap: 0.85rem; }
.result-card__check { display: flex; align-items: center; padding-top: 0.7rem; }
.result-card__check input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent-2); }
.result-card__avatar {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--accent-2-soft), #d3ebd9); color: var(--accent-2);
  font-size: 0.88rem; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(27, 107, 46, 0.12);
}
.result-card__info { flex: 1; min-width: 0; }
.result-card__name { font-size: 1.02rem; font-weight: 750; line-height: 1.3; margin-bottom: 0.4rem; color: var(--text); overflow-wrap: anywhere; }
.result-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rc-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.65rem; border-radius: 99px; font-size: 0.74rem; font-weight: 650; background: #f1f4f1; color: #4b5b4f; }
.rc-chip--accent { background: var(--accent-2-soft); color: var(--accent-2); }
.rc-chip svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Anillo de similitud: el porcentaje se dibuja, no solo se escribe */
.sim { --p: 100; --c: var(--accent-2); position: relative; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e6ede7 0); }
.sim::before { content: ''; position: absolute; inset: 4.5px; border-radius: 50%; background: #fff; }
.sim span { position: relative; font-size: 0.68rem; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.sim--mid { --c: #4c9a5d; }
.sim--warn { --c: #d08a1e; }
.sim--low { --c: #c0392b; }

.result-card__ferias { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.result-card__feria { display: inline-flex; align-items: center; padding: 0.16rem 0.6rem; border-radius: 99px; background: #E8F0FE; color: #2457A6; font-size: var(--fs-xs); font-weight: 700; }
.result-card__hunty { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 12px; background: #FFF6E0; color: #7A5200; font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; }
.result-card__hunty svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 0.1rem; }
.result-card__hunty strong { font-weight: 800; }
.result-card__snippet {
  font-size: 0.82rem; color: rgba(28, 42, 32, 0.7); line-height: 1.65; overflow-wrap: anywhere;
  padding: 0.8rem 0.9rem; border-radius: 14px; background: #f8faf8;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.result-card__snippet mark { background-color: #D4F0DC; color: var(--text); border-radius: 4px; padding: 0 3px; }
.result-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.result-card__phone { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; font-weight: 700; color: var(--accent-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.result-card__phone svg { width: 15px; height: 15px; }
.result-card__phone--none { color: var(--muted); font-weight: 550; }
.result-card__action { flex-shrink: 0; display: flex; gap: 0.5rem; }

/* Envío a Hunty */
.hunty-modal-summary { background: var(--surface); border-radius: 14px; padding: 0.85rem 1rem; font-size: 0.85rem; margin-bottom: 1.1rem; }
.hunty-modal-summary strong { color: var(--accent-2); }
.hunty-modo { display: grid; gap: 0.5rem; margin-bottom: 1.2rem; }
.hunty-modo label { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: 14px; font-size: 0.88rem; font-weight: 600; cursor: pointer; background: #fff; box-shadow: 0 0 0 1.5px var(--border); transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease); }
.hunty-modo label:has(input:checked) { background: var(--accent-2-soft); box-shadow: 0 0 0 1.5px var(--accent-2); }
.hunty-modo input[type="radio"] { accent-color: var(--accent-2); width: 16px; height: 16px; }
.hunty-modo label.is-disabled { color: var(--muted); cursor: not-allowed; background: var(--ground); }
.hunty-cantidad { margin: -0.4rem 0 1.2rem; padding: 0.85rem 0.9rem; border-radius: 14px; background: var(--surface); }
.hunty-cantidad .form-label { margin-bottom: 0.4rem; }
.hunty-cantidad__fila { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.hunty-cantidad .form-input { width: 7.5rem; font-variant-numeric: tabular-nums; }
.hunty-cantidad__nota { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
/* Lista previa del envío por afinidad: quiénes saldrán, con botón para corregir nombre o teléfono */
.hunty-lista { margin: -0.4rem 0 1.2rem; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.hunty-lista__cab { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 0.9rem; background: var(--surface); font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.hunty-lista__cab strong { color: var(--accent-2); font-size: 0.86rem; }
.hunty-lista__items { list-style: none; margin: 0; padding: 0; max-height: min(17rem, 38vh); overflow-y: auto; overscroll-behavior: contain; }
.hunty-lista__item { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto auto; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; border-top: 1px solid var(--border); transition: background-color 0.2s var(--ease); }
.hunty-lista__item:first-child { border-top: 0; }
.hunty-lista__item:hover { background: var(--ground); }
.hunty-lista__n { color: var(--muted); font-size: 0.74rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hunty-lista__quien { min-width: 0; }
.hunty-lista__nombre { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; font-weight: 700; color: var(--text); }
.hunty-lista__meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hunty-lista__afi { padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--accent-2-soft); color: var(--accent-2); font-size: 0.74rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hunty-lista__editar { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--border); color: var(--text); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: box-shadow 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease); }
.hunty-lista__editar svg { width: 14px; height: 14px; }
.hunty-lista__editar:hover { color: var(--accent-2); box-shadow: 0 0 0 1.5px var(--accent-2); }
.hunty-lista__editar:active { transform: scale(0.97); }
.hunty-lista__editar:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.hunty-lista__vacio { padding: 1rem 0.9rem; color: var(--muted); font-size: 0.84rem; }
.hunty-lista__cargando { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 0.9rem; color: var(--muted); font-size: 0.84rem; }
.hunty-lista__cargando .spinner { margin: 0; flex-shrink: 0; }
@media (max-width: 520px) {
  .hunty-lista__item { grid-template-columns: minmax(0, 1fr) auto auto; }
  .hunty-lista__n { display: none; }
  .hunty-lista__editar span { display: none; }
  .hunty-lista__editar { padding: 0.45rem; }
}
.hunty-limite { margin: -0.4rem 0 1.2rem; padding: 0.65rem 0.9rem; border-radius: 12px; background: var(--ground); color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.hunty-cargando { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-radius: 14px; background: var(--ground); color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; }
.hunty-cargando .spinner { margin: 0; flex-shrink: 0; }
.hunty-error { padding: 0.85rem 1rem; border-radius: 14px; background: #fef2f2; box-shadow: 0 0 0 1px #fecaca; color: #b91c1c; font-size: 0.86rem; margin-bottom: 1rem; }
.campo-bloqueado { position: relative; }
.campo-bloqueado .form-input { padding-right: 2.6rem; background: var(--surface); color: var(--accent-hover); font-weight: 750; letter-spacing: 0.02em; cursor: not-allowed; }
.campo-bloqueado svg { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--accent-2); pointer-events: none; }

/* ════════════════════════════════════════════════════════════════════
   MODALES DE FORMULARIO (ventana centrada en escritorio, hoja inferior en móvil)
   ════════════════════════════════════════════════════════════════════ */
.modalf-overlay { position: fixed; inset: 0; background: rgba(15, 30, 20, 0); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 300; transition: background-color 0.3s var(--ease); }
.modalf-overlay.open { display: flex; }
.modalf-overlay.show { background-color: rgba(15, 30, 20, 0.52); }
.modalf {
  background: #fff; border-radius: 28px; width: 100%; max-width: 500px; max-height: min(92vh, 900px); overflow-y: auto;
  box-shadow: 0 0 0 1px var(--ring), var(--shadow-lg);
  opacity: 0; transform: translateY(16px) scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
  overscroll-behavior: contain;
}
.modalf--md { max-width: 640px; }
.modalf--lg { max-width: 880px; }
.modalf-overlay.show .modalf { opacity: 1; transform: translateY(0) scale(1); }
.modalf__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.75rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 2; }
.modalf__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; color: var(--text); }
.modalf__sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }
.modalf__close { background: var(--ground); border: none; width: 36px; height: 36px; font-size: 1rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 12px; flex-shrink: 0; transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.modalf__close:hover { background: var(--surface); color: var(--accent-2); }
.modalf__close:active { transform: scale(0.92); }
.modalf__body { padding: 1.5rem 1.75rem 1.75rem; }
.modalf__actions { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.modalf__actions--sticky { position: sticky; bottom: -1.75rem; margin: 1.5rem -1.75rem -1.75rem; padding: 1rem 1.75rem; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--border); justify-content: flex-start; flex-direction: row-reverse; z-index: 2; }
.modalf__actions--sticky .btn { min-width: 130px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }

/* Selector nativo con la misma forma que el resto de campos */
.form-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%235E6E62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center;
}

/* Permisos: tarjetas con interruptor, agrupadas por tema */
.permisos-panel { margin-top: 0.2rem; }
.permisos-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.permisos-panel__titulo { font-size: 0.74rem; font-weight: 700; color: #374151; letter-spacing: 0.04em; text-transform: uppercase; }
.permisos-panel__acciones { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; }
.permisos-panel__acciones button { background: none; border: 0; padding: 0.25rem 0.5rem; border-radius: 8px; color: var(--accent-2); font: inherit; font-weight: 700; cursor: pointer; }
.permisos-panel__acciones button:hover { background: var(--accent-2-soft); }
.permisos-panel__contador { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.permiso-grupo__titulo { margin: 1.1rem 0 0.55rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.permiso-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.permiso-card {
  position: relative; display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.85rem 0.95rem; border-radius: 16px; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--border);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.permiso-card:hover { box-shadow: 0 0 0 1.5px var(--surface-2); }
.permiso-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.permiso-card__switch { position: relative; flex: 0 0 38px; height: 22px; margin-top: 0.1rem; border-radius: 99px; background: #cdd6cf; transition: background 0.3s var(--ease); }
.permiso-card__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease); }
.permiso-card input:checked + .permiso-card__switch { background: var(--accent-2); }
.permiso-card input:checked + .permiso-card__switch::after { transform: translateX(16px); }
.permiso-card input:focus-visible + .permiso-card__switch { outline: 3px solid rgba(27, 107, 46, 0.35); outline-offset: 2px; }
.permiso-card:has(input:checked) { background: var(--accent-2-soft); box-shadow: 0 0 0 1.5px var(--accent-2); }
.permiso-card__texto { display: flex; flex-direction: column; min-width: 0; }
.permiso-card__texto strong { font-size: 0.86rem; line-height: 1.3; color: var(--text); }
.permiso-card__texto small { margin-top: 0.1rem; font-size: 0.74rem; line-height: 1.4; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════
   PAQUETES · USUARIOS · VACANTES · SINCRONIZACIÓN · CV
   ════════════════════════════════════════════════════════════════════ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card { background: #fff; border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; box-shadow: 0 0 0 1px var(--border), 0 14px 26px -22px var(--tint); transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px var(--surface-2), 0 24px 36px -24px var(--tint); transform: translateY(-2px); }
.chip { display: inline-flex; align-items: center; padding: 0.18rem 0.65rem; border-radius: 99px; background: var(--surface); color: var(--accent-2); font-size: var(--fs-xs); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.empty-note { color: var(--muted); padding: 2rem 0; }

/* Filtros en forma de píldora (vacantes) */
.pill-filter { display: inline-flex; align-items: center; padding: 0.38rem 0.95rem; border-radius: 99px; border: 0; background: #fff; font-size: 0.78rem; font-weight: 650; color: #5b6b5b; cursor: pointer; font-family: inherit; text-decoration: none; line-height: 1.4; box-shadow: 0 0 0 1px var(--border); transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.pill-filter:hover { box-shadow: 0 0 0 1.5px var(--accent-2); color: var(--accent-2); }
.pill-filter.active { background: var(--accent-2); color: #fff; box-shadow: 0 8px 16px -10px rgba(27, 107, 46, 0.8); }

/* Detalle de CV */
.cv-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 1.5rem;
  margin-top: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-xl); color: #fff;
  background:
    radial-gradient(70% 120% at 100% -30%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(50% 90% at 0% 120%, rgba(95, 166, 110, 0.34), transparent 60%),
    linear-gradient(150deg, var(--accent-dark), #14532a 55%, var(--accent-2));
  box-shadow: 0 28px 46px -34px rgba(15, 61, 28, 0.75);
}
.cv-hero__avatar { width: 76px; height: 76px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; }
.cv-hero__name { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; overflow-wrap: anywhere; text-wrap: balance; }
.cv-hero__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.cv-hero__chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.78rem; font-weight: 650; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.cv-hero__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; }
.cv-hero__actions .btn { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.cv-hero__actions .btn:hover { background: rgba(255, 255, 255, 0.24); }
.cv-hero__actions .btn--solid { background: #fff; color: var(--accent-hover); box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.5); }
.cv-hero__actions .btn--solid:hover { background: #f1f8f2; }
.cv-hero__actions svg { width: 16px; height: 16px; }

.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; margin-top: 1.25rem; }
.cv-reader__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.6rem; border-bottom: 1px solid var(--border); }
.cv-reader__bar h2 { font-size: 1rem; }
.cv-reader { padding: 1.5rem 1.6rem 2rem; font-size: 0.92rem; line-height: 1.75; color: rgba(28, 42, 32, 0.86); overflow-wrap: anywhere; }
.cv-reader p { margin: 0 0 0.35rem; max-width: 78ch; }
.cv-reader h3 { margin: 1.6rem 0 0.55rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.cv-reader h3:first-child { margin-top: 0; }
.cv-reader .cv-gap { height: 0.6rem; }
.cv-vacio { padding: 2rem 1.6rem; color: var(--muted); font-style: italic; text-align: center; }

.cv-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 6rem; }
.info-card { background: #fff; border-radius: 22px; padding: 1.15rem 1.3rem; box-shadow: 0 0 0 1px var(--border), 0 14px 26px -22px var(--tint); }
.info-card__titulo { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.8rem; }
.info-list { display: grid; gap: 0.65rem; margin: 0; }
.info-list div { display: grid; gap: 0.1rem; }
.info-list dt { font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.info-list dd { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.info-list a { color: var(--accent-2); text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-card .chips { margin-top: 0.1rem; }

/* Sincronización */
.trabajo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; align-items: start; margin-bottom: 1.25rem; }
.trabajo-bloque { background: #fff; border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; box-shadow: 0 0 0 1px var(--border), 0 14px 26px -22px var(--tint); }
.trabajo-bloque h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.badge-trabajo { display: inline-flex; align-items: center; padding: 0.22rem 0.7rem; border-radius: 99px; font-size: 0.76rem; font-weight: 700; }
.badge-trabajo--vacio { background: var(--surface); color: var(--muted); }
.badge-trabajo--pendiente { background: #fef9c3; color: #854d0e; }
.badge-trabajo--progreso { background: #dbeafe; color: #1e40af; }
.badge-trabajo--ok { background: #d1fae5; color: #065f46; }
.badge-trabajo--error { background: #fee2e2; color: #991b1b; }
.badge-trabajo--detenido { background: #e5e7eb; color: #374151; }

/* Detener un proceso en curso */
.trabajo-detener { margin: 0.6rem 0 0.2rem; }
.btn-detener { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.95rem; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1.5px #fca5a5; color: #b91c1c; font: inherit; font-size: 0.82rem; font-weight: 750; cursor: pointer; transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease); }
.btn-detener svg { width: 13px; height: 13px; }
.btn-detener:hover { background: #fef2f2; box-shadow: 0 0 0 1.5px #ef4444; }
.btn-detener:active { transform: scale(0.97); }
.btn-detener:focus-visible { outline: 2px solid #ef4444; outline-offset: 2px; }
.trabajo-aviso { margin-top: 0.5rem; padding: 0.55rem 0.8rem; border-radius: 10px; background: var(--ground); color: var(--muted); font-size: 0.82rem; line-height: 1.45; }

/* Ventana de confirmación de la captura de Computrabajo */
.ct-pasos { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.95rem; }
.ct-pasos li { display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.85rem; align-items: start; }
.ct-pasos__n { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 10px; background: var(--accent-2-soft); color: var(--accent-2); font-size: 0.85rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ct-pasos__n--ok { background: var(--accent-2); color: #fff; }
.ct-pasos strong { display: block; font-size: 0.92rem; color: var(--text); }
.ct-pasos p { margin: 0.15rem 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.ct-aviso { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 0.95rem; border-radius: 14px; background: #fffbeb; box-shadow: 0 0 0 1px #fde68a; color: #92400e; font-size: 0.84rem; line-height: 1.5; }
.ct-aviso svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1rem; }
.ct-aviso strong { color: #78350f; }
.trabajo-meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.55rem; }
.trabajo-resultado { font-size: 0.85rem; margin-top: 0.55rem; line-height: 1.6; }
.trabajo-error { font-size: 0.85rem; color: #b91c1c; margin-top: 0.55rem; }
.trabajo-log { margin-top: 0.7rem; font-size: 0.78rem; }
.trabajo-log summary { cursor: pointer; color: var(--accent-2); font-weight: 650; }
.trabajo-log pre { white-space: pre-wrap; max-height: 240px; overflow-y: auto; background: #f8faf8; border-radius: 12px; padding: 0.75rem; margin-top: 0.5rem; box-shadow: inset 0 0 0 1px var(--border); }
.trabajo-barra { margin-top: 0.7rem; height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.trabajo-barra__relleno { height: 100%; background: linear-gradient(90deg, var(--accent-2), #5fa66e); border-radius: 99px; transition: width 0.5s var(--ease); }
.sinc-acciones { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Vacantes */
.vac-toolbar { padding: 1.15rem 1.3rem; margin-bottom: 1.25rem; }
.vac-toolbar__divider { border-top: 1px solid var(--surface); margin: 1rem 0 0.85rem; }
.vac-toolbar__title { font-size: 0.7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.7rem; }
.vac-filter-row { display: flex; flex-wrap: wrap; column-gap: 1.75rem; row-gap: 0.7rem; align-items: center; }
.vac-filter-group { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.vac-filter-label { font-size: 0.7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 0.2rem; }
.vac-filter-clear { margin-left: auto; font-size: 0.78rem; color: var(--muted); }
.vac-search { display: flex; gap: 0.5rem; max-width: 460px; }
.vac-search .form-input { margin: 0; }
.vac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.vac-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--border), 0 14px 26px -22px var(--tint); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.vac-card:hover { box-shadow: 0 0 0 1px var(--surface-2), 0 24px 36px -24px var(--tint); transform: translateY(-2px); }
.vac-card__head { padding: 1.1rem 1.2rem 0.8rem; border-bottom: 1px solid var(--surface); }
.vac-card__title { font-size: 1rem; font-weight: 750; margin-bottom: 0.45rem; line-height: 1.3; }
.vac-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.badge-status { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 99px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-status--SAVED { background: #f3f4f6; color: #6b7280; }
.badge-status--IN_PROGRESS { background: #d1fae5; color: #065f46; }
.badge-status--CLOSED { background: #fee2e2; color: #991b1b; }
.badge-modality { display: inline-flex; align-items: center; background: var(--surface); color: var(--accent-2); font-size: 0.7rem; font-weight: 650; padding: 0.2rem 0.6rem; border-radius: 99px; }
.badge-country { background: #eef1f7; color: #4b5563; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 99px; font-weight: 550; }
.vac-card__body { padding: 0.85rem 1.2rem; flex: 1; }
.vac-card__desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vac-card__foot { padding: 0.7rem 1.2rem; border-top: 1px solid var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.vac-card__meta2 { font-size: 0.72rem; color: var(--muted); }
.vac-card__meta2 strong { color: var(--text); }
.vac-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 30, 20, 0.5); z-index: 300; align-items: center; justify-content: center; padding: 1rem; }
.vac-modal-backdrop.open { display: flex; }
.vac-modal { background: #fff; border-radius: 24px; width: 100%; max-width: 700px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--ring), var(--shadow-lg); overflow: hidden; }
.vac-modal__head { background: linear-gradient(150deg, var(--accent-dark), var(--accent-2)); color: #fff; padding: 1.15rem 1.4rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.vac-modal__title { font-size: 1.1rem; font-weight: 750; line-height: 1.3; }
.vac-modal__close { background: rgba(255, 255, 255, 0.15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.vac-modal__close:hover { background: rgba(255, 255, 255, 0.28); }
.vac-modal__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.8rem 1.4rem; border-bottom: 1px solid var(--border); }
.vac-modal__body { padding: 1.3rem 1.4rem; overflow-y: auto; flex: 1; }
.vac-modal__section { margin-bottom: 1.25rem; }
.vac-modal__section-title { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-2); border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; margin-bottom: 0.65rem; }
.vac-modal__html { font-size: 0.875rem; line-height: 1.75; color: rgba(28, 42, 32, 0.82); }
.vac-empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); grid-column: 1 / -1; }
.vac-empty__icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--accent-2-soft); color: var(--accent-2); }
.vac-empty__icon svg { width: 28px; height: 28px; }
.vac-empty__title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }

/* ── PAGINADOR ──────────────────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.95rem 1.25rem; border-top: 1px solid var(--border); background: #fbfdfb; }
.pager__info { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager__info strong { color: var(--text); }
.pager .pagination { margin-top: 0; justify-content: flex-end; }

/* Barra de herramientas de listados (buscador + contador) */
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.list-tools__search { position: relative; flex: 1 1 280px; max-width: 420px; }
.list-tools__search input { padding-left: 2.6rem; }
.list-tools__search svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.list-tools__count { font-size: 0.82rem; color: var(--muted); }

/* ── ACCESIBILIDAD Y CUENTA ─────────────────────────────────────────── */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 500; padding: 0.6rem 1rem; border-radius: 12px; background: var(--accent-2); color: #fff; font-weight: 700; text-decoration: none; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 0.75rem; }
button.user-bar__avatar { border: 0; font-family: inherit; cursor: pointer; padding: 0; }
.user-bar__avatar--lg { width: 48px; height: 48px; font-size: 1.05rem; border-radius: 16px; }

/* ── BARRA INFERIOR Y HOJA "MÁS" (móvil) ────────────────────────────── */
.tabbar { display: none; }
.sheet-overlay { display: none; }

@media (max-width: 900px) {
  body:has(.tabbar) { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  body.sheet-open, body.modal-open { overflow: hidden; }

  .tabbar {
    position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.7rem + env(safe-area-inset-bottom)); z-index: 150;
    display: flex; align-items: center; justify-content: space-between; gap: 0.2rem; padding: 0.4rem;
    background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
    border-radius: 26px; box-shadow: 0 0 0 1px var(--ring), 0 22px 38px -18px rgba(15, 61, 28, 0.5);
  }
  .tabbar__item {
    flex: 1 1 0; min-width: 0; height: 50px; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: 0; background: transparent; border-radius: 20px; color: var(--muted); font: inherit; text-decoration: none; cursor: pointer;
    transition: flex-grow 0.45s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar__icon { display: inline-flex; flex-shrink: 0; }
  .tabbar__icon svg { width: 22px; height: 22px; }
  .tabbar__label { display: none; font-size: 0.8rem; font-weight: 750; white-space: nowrap; }
  .tabbar__item--active { flex-grow: 2.7; background: var(--accent-2); color: #fff; box-shadow: 0 12px 20px -12px rgba(27, 107, 46, 0.95); }
  .tabbar__item--active .tabbar__label { display: inline; }
  .tabbar__item:not(.tabbar__item--active):active { background: var(--surface); }

  .sheet-overlay { position: fixed; inset: 0; z-index: 400; display: none; align-items: flex-end; background: rgba(15, 30, 20, 0); transition: background-color 0.3s var(--ease); }
  .sheet-overlay.open { display: flex; }
  .sheet-overlay.show { background: rgba(15, 30, 20, 0.5); }
  .sheet {
    width: 100%; padding: 0.7rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: #fff;
    box-shadow: 0 -24px 50px -20px rgba(15, 61, 28, 0.5); transform: translateY(100%); transition: transform 0.45s var(--ease);
  }
  .sheet-overlay.show .sheet { transform: translateY(0); }
  .sheet__grip { display: block; width: 42px; height: 5px; margin: 0 auto 1rem; border-radius: 99px; background: #d5ddd7; }
  .sheet__user { display: flex; align-items: center; gap: 0.9rem; padding: 0.4rem 0.3rem 1rem; border-bottom: 1px solid var(--border); }
  .sheet__name { font-weight: 800; font-size: 1.02rem; }
  .sheet__list { display: grid; gap: 0.4rem; padding-top: 0.9rem; }
  .sheet__link { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 0.9rem; border-radius: 16px; background: var(--ground); color: var(--text); font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: background 0.25s var(--ease); }
  .sheet__link:active { background: var(--surface); }
  .sheet__link--active { background: var(--accent-2-soft); color: var(--accent-2); }
  .sheet__icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: #fff; color: var(--accent-2); box-shadow: 0 0 0 1px var(--border); flex-shrink: 0; }
  .sheet__icon svg { width: 19px; height: 19px; }
  .sheet__link--salir { margin-top: 0.4rem; background: #fef2f2; color: #b91c1c; }
  .sheet__link--salir .sheet__icon { color: #b91c1c; box-shadow: 0 0 0 1px #fecaca; }
}

/* ── TABLAS → TARJETAS EN MÓVIL ─────────────────────────────────────── */
@media (max-width: 720px) {
  .tabla--cards { display: block; }
  .tabla--cards thead { display: none; }
  .tabla--cards tbody { display: grid; gap: 0.75rem; padding: 0.75rem; }
  .tabla--cards tr { display: block; padding: 0.95rem 1rem; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 12px 22px -20px var(--tint); }
  .tabla--cards tbody tr:hover td { background: transparent; }
  .tabla--cards td { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--border); text-align: right; white-space: normal !important; max-width: none !important; }
  .tabla--cards td:last-child { border-bottom: 0; }
  .tabla--cards td::before { content: attr(data-label); flex-shrink: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; }
  .tabla--cards td[data-principal] { display: block; padding: 0 0 0.6rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 1.05rem; font-weight: 800; }
  .tabla--cards td[data-principal]::before { content: none; }
  .tabla--cards td[data-acciones] { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.5rem; padding-top: 0.8rem; }
  .tabla--cards td[data-acciones]::before { content: none; }
  .tabla--cards .tabla__empty { display: block; text-align: center; }
  .tabla--cards .tabla__empty::before { content: none; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1480px) {
  .app-nav { padding: 0 1rem; gap: 0.1rem; }
  .nav-link { padding: 0.55rem 0.75rem; }
}
@media (max-width: 1360px) {
  .app-nav { padding: 0 0.6rem; }
  .nav-link { padding: 0.55rem 0.65rem; }
}
@media (max-width: 1180px) {
  .user-bar__info { display: none; }
  .nav-link { padding: 0.55rem 0.7rem; }
}
@media (min-width: 901px) {
  button.user-bar__avatar { pointer-events: none; }
}
@media (max-width: 900px) {
  .app-nav, .user-bar__logout { display: none; }
  .app-header__user-bar { margin-left: 0; padding-left: 0; border-left: 0; }
  .app-header { justify-content: space-between; min-height: 58px; }
  .hero { grid-template-columns: 1fr; }
  .hero__kpis { grid-template-columns: 1fr 1fr; }
  .cv-hero { grid-template-columns: auto minmax(0, 1fr); }
  .cv-hero__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-side { position: static; }
  .result-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-header { top: 0.5rem; width: calc(100% - 1rem); padding: 0 0.7rem 0 0.8rem; margin-top: 0.5rem; }
  :root { --logo-alto: 36px; }
  .brand { gap: 0.55rem; }
  .brand__tami { font-size: 2.1rem; -webkit-text-stroke-width: 0.55px; }
  .brand__empresa { font-size: 0.54rem; letter-spacing: 0.26em; }
  .hero { width: calc(100% - 1rem); border-radius: 26px; padding: 1.4rem 1.15rem; }
  .hero__subtitle { margin-bottom: 1.15rem; }
  .search-input { font-size: 1rem; padding: 0.95rem 1rem 0.95rem 3.1rem; border-radius: 18px; }
  .paquetes-list { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1.15rem; padding: 0.15rem 1.15rem 0.4rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .paquetes-list::-webkit-scrollbar { display: none; }
  .paquete-btn { flex: 0 0 auto; scroll-snap-align: start; }
  .city-select { flex: 1 1 180px; max-width: 100%; }
  .kpi-glass { padding: 0.9rem 1rem; border-radius: 20px; }
  .content { padding: 1.25rem 1rem 2rem; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .results-header { align-items: stretch; }
  .results-header__actions { width: 100%; }
  .results-header__actions .btn { flex: 1; }
  .result-card { padding: 1rem; border-radius: 22px; }
  .result-card__avatar { flex-basis: 42px; width: 42px; height: 42px; border-radius: 14px; }
  .vac-filter-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1.3rem; padding: 0 1.3rem 0.3rem; scrollbar-width: none; }
  .vac-filter-group { flex-wrap: nowrap; flex: 0 0 auto; }
  .pill-filter { flex: 0 0 auto; }
  .vac-search { max-width: none; }
  .vac-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .pager { justify-content: center; text-align: center; }
  .pager .pagination { justify-content: center; }
  .cv-hero { border-radius: 26px; padding: 1.2rem; }
  .cv-hero__avatar { width: 60px; height: 60px; border-radius: 20px; font-size: 1.3rem; }
  .cv-hero__actions .btn { flex: 1 1 calc(50% - 0.3rem); }
  .cv-reader__bar, .cv-reader { padding-left: 1.1rem; padding-right: 1.1rem; }

  /* Modales: hoja que sube desde abajo */
  .modalf-overlay { align-items: flex-end; padding: 0; }
  .modalf, .modalf--md, .modalf--lg { max-width: none; width: 100%; max-height: 92dvh; border-radius: 28px 28px 0 0; transform: translateY(60px); }
  .modalf-overlay.show .modalf { transform: translateY(0); }
  .modalf__header { padding: 1rem 1.2rem; }
  .modalf__body { padding: 1.2rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); }
  .modalf__actions--sticky { margin: 1.3rem -1.2rem calc(-1.4rem - env(safe-area-inset-bottom)); padding: 0.9rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom)); bottom: calc(-1.4rem - env(safe-area-inset-bottom)); }
  .modalf__actions--sticky .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .permiso-lista { grid-template-columns: 1fr; }
  .vac-modal-backdrop { align-items: flex-end; padding: 0; }
  .vac-modal { max-width: none; max-height: 90dvh; border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand__tami { transition: none; }
  .brand__avatar, .brand__avatar-clip, .brand__avatar-clip > *, .brand__marca .app-header__logo-img { transition: none !important; }
  .spinner { animation: none; }
  .btn, .btn-icon, .nav-link, .result-card, .card, .vac-card, .paquete-btn, .pagination__btn, .modalf, .modalf-overlay,
  .tabbar__item, .sheet, .sheet-overlay, .permiso-card, .permiso-card__switch, .permiso-card__switch::after { transition: none; }
}

/* ── ESQUELETOS DE CARGA ────────────────────────────────────────────── */
.skeleton { display: block; border-radius: 10px; background: linear-gradient(90deg, #edf2ee 25%, #f7faf8 37%, #edf2ee 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.15rem; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--border); }
.skeleton-card__head { display: flex; align-items: center; gap: 0.85rem; }
.sk-avatar { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 16px; }
.sk-line { height: 14px; margin-bottom: 0.5rem; }
.sk-line--sm { height: 10px; margin-bottom: 0; }
.sk-block { height: 64px; border-radius: 14px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
body.modal-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════════════
   TAMI en pantallas públicas (inicio de sesión y formulario QR)
   .tami-escena > .tami-retrato + .tami-burbuja ; .tami-firma = "Tami / CONTACTAMOS"
   ════════════════════════════════════════════════════════════════ */
.tami-escena { --tami: 232px; position: relative; display: inline-block; flex-shrink: 0; }
/* Anillo discontinuo que gira despacio alrededor del retrato, con un punto dorado */
.tami-escena::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  border: 1.5px dashed rgba(27, 107, 46, 0.35);
  animation: tami-gira 38s linear infinite;
}
.tami-escena::after {
  content: ''; position: absolute; top: 6%; left: 10%; width: 11px; height: 11px; border-radius: 50%; pointer-events: none;
  background: #e8b14a; box-shadow: 0 0 0 4px rgba(232, 177, 74, 0.25);
  animation: tami-orbita 5s ease-in-out infinite;
}
.tami-retrato {
  position: relative; display: block; width: var(--tami); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #fff, #e6f3e9 70%);
  box-shadow: 0 0 0 5px #fff, 0 0 0 6.5px rgba(27, 107, 46, 0.22), 0 34px 46px -26px rgba(15, 61, 28, 0.6);
  animation: tami-entra 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.tami-retrato img { display: block; width: 100%; height: 100%; object-fit: cover; }

.tami-burbuja {
  position: absolute; z-index: 2; top: 4%; right: -34%; padding: 0.5rem 0.85rem; border-radius: 16px 16px 16px 4px;
  background: #fff; color: var(--text); font-size: 0.82rem; font-weight: 750; line-height: 1.25; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(27, 107, 46, 0.12), 0 16px 26px -14px rgba(15, 61, 28, 0.5);
  transform-origin: 0 100%; animation: tami-pop 0.6s 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.tami-burbuja::before { content: ''; position: absolute; left: 14px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.tami-burbuja strong { color: var(--accent-2); font-weight: 800; }

/* "Tami" en caligrafía + "CONTACTAMOS" */
.tami-firma { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.tami-firma__nombre {
  display: inline-block; padding: 0 0.16em 0.08em 0; font-family: 'Ephesis', 'Segoe Script', cursive; font-size: 3.1rem; font-weight: 400; line-height: 0.95;
  -webkit-text-stroke: 0.9px #1b6b2e; paint-order: stroke fill;
  background: linear-gradient(135deg, #38a653 0%, var(--accent-2) 45%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 4px rgba(27, 107, 46, 0.22));
}
.tami-firma__empresa { margin-top: 0.1rem; padding-left: 0.3em; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
/* Sobre fondo verde */
.tami-firma--clara .tami-firma__nombre {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.85); background: linear-gradient(135deg, #fff 0%, #e7f6ea 60%, #bfe5c8 100%);
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}
.tami-firma--clara .tami-firma__empresa { color: rgba(255, 255, 255, 0.82); }

/* Avatar pequeño de la cara para mensajes guiados */
.tami-cara { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #e6f3e9; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px rgba(27, 107, 46, 0.25), 0 8px 14px -8px rgba(15, 61, 28, 0.5); }

@keyframes tami-gira { to { transform: rotate(360deg); } }
@keyframes tami-orbita { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6px, 8px) scale(1.25); } }
@keyframes tami-entra { from { opacity: 0; transform: translateY(16px) scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes tami-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .tami-escena::before, .tami-escena::after, .tami-retrato, .tami-burbuja { animation: none; }
}

/* Aviso flotante del avance de trabajos en cola (public/assets/js/trabajos.js) */
.trabajos-chip { position: fixed; right: 1rem; bottom: 1rem; z-index: 400; display: none; align-items: center; gap: 0.6rem; max-width: min(24rem, calc(100vw - 2rem)); padding: 0.65rem 0.95rem; border-radius: 14px; background: #fff; color: var(--text); font-size: 0.82rem; font-weight: 600; line-height: 1.35; box-shadow: 0 0 0 1px var(--border), 0 18px 34px -16px rgba(15, 61, 28, 0.45); }
.trabajos-chip.is-visible { display: flex; }
.trabajos-chip--ok { background: var(--accent-2-soft); color: var(--accent-hover); }
.trabajos-chip--ok .spinner, .trabajos-chip--error .spinner { display: none; }
.trabajos-chip--error { background: #fef2f2; color: #b91c1c; }
@media (max-width: 720px) { .trabajos-chip { bottom: 5.5rem; } }
.trabajos-chip .spinner { flex-shrink: 0; width: 18px; height: 18px; margin: 0; }
