/* my.worx1hr.com — employee portal home (2026-11-04: most used, quick look-up, accordion by need) */
@font-face {
  font-family: 'Avenir_Book';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/assets/fonts/Avenir-Book.ttf') format('truetype');
}

:root {
  --navy: #001B54;
  --navy-3: #122a5e;
  --gold: #C09473;
  --gold-soft: #e3c6ad;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, .68);
  --hair: rgba(255, 255, 255, .08);
  --border: rgba(192, 148, 115, .26);
  --radius: 18px;
  --maxw: 880px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Avenir_Book', 'Poppins', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* One color per group. Light tones so text and icons stay legible on navy. */
  --c-dia: #86BCF2;
  --c-equipos: #D8AA82;
  --c-manuales: #82D2B0;
  --c-tramites: #BBA7F2;
  --c-consulta: #F0A595;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-color: rgba(192, 148, 115, .45) var(--navy); }
html, body { margin: 0; padding: 0; background: var(--navy); color: var(--white); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: radial-gradient(1100px 520px at 50% -14%, var(--navy-3) 0%, var(--navy) 64%), var(--navy); }
::selection { background: var(--gold); color: var(--navy); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Group color hook: every colored element reads --c */
.c-dia { --c: var(--c-dia); }
.c-equipos { --c: var(--c-equipos); }
.c-manuales { --c: var(--c-manuales); }
.c-tramites { --c: var(--c-tramites); }
.c-consulta { --c: var(--c-consulta); }


/* ---------- Header ---------- */
.topbar { padding: 18px 0 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.lang-toggle { display: inline-flex; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-radius: 100px; padding: 4px; gap: 2px; }
.lang-toggle button { border: 0; background: transparent; color: var(--muted); font-size: 13px; letter-spacing: .04em; padding: 7px 14px; border-radius: 100px; cursor: pointer; transition: background .2s, color .2s; }
.lang-toggle button:hover { color: var(--white); }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--navy); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 34px 24px 0; }
.hero h1 { margin: 0 0 8px; font-size: clamp(27px, 4.4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: clamp(15px, 2vw, 16.5px); line-height: 1.5; }

/* ---------- Search ---------- */
.search { position: relative; max-width: 620px; margin: 22px auto 0; }
.search svg.search-icon { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); stroke: var(--gold); pointer-events: none; }
.search input { width: 100%; height: 56px; padding: 0 52px 0 54px; border-radius: 100px; border: 1px solid var(--border); background: rgba(255, 255, 255, .07); font-size: 16.5px; color: var(--white); caret-color: var(--gold); outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.search input::placeholder { color: rgba(227, 198, 173, .72); }
.search input:hover { border-color: rgba(192, 148, 115, .5); }
.search input:focus { border-color: var(--gold); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(192, 148, 115, .16); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; display: grid; place-items: center; }
.search .clear:hover { background: rgba(255, 255, 255, .18); }
.search .clear svg { width: 14px; height: 14px; stroke: var(--white); }
.search-status { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Zones ---------- */
.zone { margin-top: 30px; }
.zone-title { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; font-size: clamp(14px, 2vw, 15.5px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.zone-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }

/* Most used: six buttons, name only */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 78px;
  padding: 14px 40px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .35s var(--ease), border-color .2s, background .2s, box-shadow .35s var(--ease);
}
.tile:hover, .tile:focus-visible { transform: translateY(-2px); border-color: var(--c); background: rgba(255, 255, 255, .1); box-shadow: 0 12px 26px -12px rgba(0, 6, 24, .75); outline: none; }
.tile:focus-visible { box-shadow: 0 0 0 2px var(--c), 0 12px 26px -12px rgba(0, 6, 24, .75); }
.tile .icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 24%, transparent); }
.tile .icon svg { width: 23px; height: 23px; stroke: var(--c); }
.tile .title { font-size: 16px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.tile .go { position: absolute; right: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px; stroke: var(--white); opacity: .4; transition: transform .35s var(--ease), opacity .2s; }
.tile:hover .go, .tile:focus-visible .go { opacity: 1; transform: translateX(3px); }
.tile.external:hover .go, .tile.external:focus-visible .go { transform: translate(3px, -3px); }

/* Quick look-up: holidays and open positions, always in sight */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 78px;
  padding: 14px 40px 14px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
  transition: transform .35s var(--ease), border-color .2s, background .2s, box-shadow .35s var(--ease);
}
.feature:hover, .feature:focus-visible { transform: translateY(-2px); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 12px 26px -12px rgba(0, 6, 24, .75); outline: none; }
.feature:focus-visible { box-shadow: 0 0 0 2px var(--c), 0 12px 26px -12px rgba(0, 6, 24, .75); }
.feature .icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.feature .icon svg { width: 22px; height: 22px; stroke: var(--c); }
.feature .body { min-width: 0; }
.feature .title { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; }
.feature .desc { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.feature .go { position: absolute; right: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px; stroke: var(--white); opacity: .4; transition: transform .35s var(--ease), opacity .2s; }
.feature:hover .go, .feature:focus-visible .go { opacity: 1; transform: translateX(3px); }
.feature.external:hover .go, .feature.external:focus-visible .go { transform: translate(3px, -3px); }

/* Everything else: accordion by need */
.groups { display: grid; gap: 10px; }
.group { border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s, background .2s; }
.group[open] { background: rgba(255, 255, 255, .06); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.group summary {
  display: flex; align-items: center; gap: 14px;
  min-height: 74px;
  padding: 13px 16px;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}
.group summary::-webkit-details-marker { display: none; }
.group summary:hover .title { color: var(--c); }
.group summary:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }
.group summary .icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 24%, transparent); }
.group summary .icon svg { width: 22px; height: 22px; stroke: var(--c); }
.group summary .body { flex: 1 1 auto; min-width: 0; }
.group summary .title { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.3; transition: color .2s; }
.group summary .hint { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.group summary .count { flex: none; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 100px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.group summary .chev { flex: none; width: 20px; height: 20px; stroke: var(--white); opacity: .6; transition: transform .35s var(--ease); }
.group[open] summary .chev { transform: rotate(180deg); opacity: 1; }

.group-body { padding: 0 8px 8px; }
.group[open] .group-body { animation: reveal .4s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px;
  padding: 11px 12px 11px 66px;
  border-radius: 12px;
  border-top: 1px solid var(--hair);
  transition: background .2s;
}
.row:hover, .row:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.row:focus-visible { box-shadow: inset 0 0 0 2px var(--c); }
.row .body { flex: 1 1 auto; min-width: 0; }
.row .title { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.row .desc { display: block; margin-top: 1px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.row:hover .title { color: var(--c); }
.row .go { flex: none; width: 16px; height: 16px; stroke: var(--white); opacity: .4; transition: transform .35s var(--ease), opacity .2s; }
.row:hover .go, .row:focus-visible .go { opacity: 1; transform: translateX(3px); }
.row[target]:hover .go { transform: translate(3px, -3px); }

/* Type tag: text + icon, so the type never relies on color */
.tag { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 100px; font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
.tag svg { width: 14px; height: 14px; stroke: currentColor; }
.tag-form { color: var(--white); background: rgba(255, 255, 255, .1); }
.tag-read { color: var(--gold-soft); border: 1px solid rgba(192, 148, 115, .45); }
.tag-tool { color: var(--white); border: 1px dashed rgba(255, 255, 255, .35); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 40px 20px 10px; color: var(--muted); line-height: 1.5; }
.empty strong { display: block; color: var(--white); font-size: 19px; margin-bottom: 6px; }
.empty a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* No-JS fallback */
.plain { margin: 12px 0 24px; padding-left: 20px; line-height: 2; }
.plain a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

footer { text-align: center; padding: 60px 0 40px; color: rgba(255, 255, 255, .5); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar { padding-top: 14px; }
  .hero { padding: 24px 16px 0; }
  .hero p { font-size: 14.5px; }
  .search { margin-top: 18px; }
  .search input { height: 52px; font-size: 16px; }
  .zone { margin-top: 22px; }
  .tile { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px 30px 14px 14px; }
  .tile .icon { width: 40px; height: 40px; border-radius: 12px; }
  .tile .icon svg { width: 21px; height: 21px; }
  .tile .title { font-size: 15px; }
  .tile .go { top: 22px; right: 13px; margin-top: 0; }
  .features { grid-template-columns: 1fr; gap: 10px; }
  .feature { min-height: 66px; padding: 12px 36px 12px 12px; gap: 12px; }
  .feature .icon { width: 40px; height: 40px; }
  .feature .icon svg { width: 20px; height: 20px; }
  .feature .title { font-size: 15.5px; }
  .group summary { gap: 12px; padding: 12px 14px; min-height: 70px; }
  .group summary .icon { width: 40px; height: 40px; }
  .group summary .title { font-size: 15.5px; }
  .group-body { padding: 0 6px 6px; }
  /* Tag moves under the description so the title keeps the full width */
  .row { flex-wrap: wrap; padding: 11px 10px 11px 12px; row-gap: 6px; }
  .row .body { flex-basis: calc(100% - 30px); }
  .row .tag { order: 3; margin-left: 0; height: 24px; font-size: 11.5px; }
  .row .go { order: 2; }
}
@media (max-width: 440px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
