/* HagoElTrabajo v1775 — home page layout (index.html only).
   Uses its own hx-* class names, so the older home rules in styles.css do not apply here. */

/* Hero: copy and search on the left, photo on the right */
.hx-hero{max-width:1200px;margin:0 auto;padding:48px 24px 56px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:44px;align-items:center}
.hx-hero-copy{display:flex;flex-direction:column;gap:20px;min-width:0}
.hx-hero h1{margin:0;font-size:clamp(38px,5.2vw,66px);line-height:1.02;font-weight:800;font-stretch:118%;letter-spacing:-.025em;color:var(--hx-ink)}
.hx-lede{margin:0;max-width:34em;font-size:19px;line-height:1.5;color:var(--hx-muted)}
.hx-hero-photo{align-self:stretch;min-height:440px;border-radius:28px;background:var(--hx-forest) url('assets/hero-worker.jpg') 62% 30%/cover no-repeat}

/* Search */
.hx-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;margin-top:4px;padding:8px;background:#fff;border:1px solid #D3D9DD;border-radius:16px;box-shadow:0 10px 30px -18px rgba(9,57,96,.45)}
.hx-field{display:flex;flex-direction:column;gap:2px;padding:8px 14px;border-radius:10px;background:#F6F9F7;min-width:0}
.hx-field>span{font-size:13px;font-weight:600;color:var(--hx-muted)}
.hx-field select{border:0;background:transparent;font-size:16px;font-weight:600;color:var(--hx-ink);padding:4px 0;min-height:32px;width:100%;outline-offset:4px}
.hx-field select:disabled{color:#7A838A}
.hx-actions{display:flex;gap:8px}
.hx-voice{flex:0 0 56px;min-height:56px;border:1px solid #D3D9DD;border-radius:10px;background:#fff;color:var(--hx-green);display:grid;place-items:center;cursor:pointer;padding:0}
.hx-voice svg{width:22px;height:22px}
.hx-go{min-height:56px;padding:0 26px;border:0;border-radius:10px;background:var(--hx-green);color:#fff;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
.hx-go svg{width:20px;height:20px}
.hx-go:hover{background:var(--hx-forest)}
.hx-voice:focus-visible,.hx-go:focus-visible,.hx-cats-toggle:focus-visible,.hx-btn:focus-visible,#categories .cat:focus-visible{outline:3px solid var(--hx-yellow);outline-offset:2px}
/* District and corregimiento appear once a province is chosen (browsers without :has always show them) */
.hx-more{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hx-search:has(#districtFilter:disabled) .hx-more{display:none}
.voice-search-status:empty{display:none}
.hx-search>.voice-search-status{grid-column:1 / -1;order:10;margin:0;padding:6px 8px 2px;font-size:14px;line-height:1.4;color:var(--hx-forest);font-weight:600}
.hx-actions .voice-search-status{display:none}

/* Services */
.hx-services{background:#fff;border-top:1px solid var(--hx-line);border-bottom:1px solid var(--hx-line)}
.hx-services>*{max-width:1200px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
.hx-section-head{padding-top:48px}
.hx-section-head h2{margin:0 0 24px;font-size:32px;font-weight:800;font-stretch:112%;letter-spacing:-.015em;color:var(--hx-ink)}
#categories.hx-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:12px;max-height:none;overflow:visible}
#categories.hx-cats .cat{display:flex;align-items:center;gap:14px;min-height:76px;padding:12px 16px;border:1px solid var(--hx-line);border-radius:14px;background:#FBFCFB;color:var(--hx-ink);text-align:left;font-size:16px;font-weight:700;line-height:1.25;cursor:pointer;box-shadow:none}
#categories.hx-cats .cat:hover{border-color:var(--hx-green);background:#fff}
#categories.hx-cats .cat{max-width:none;min-width:0;width:auto;flex:none;transform:none}
#categories.hx-cats .cat-ico{flex:none;width:48px;height:48px;margin:0;border-radius:12px;background:var(--hx-mint);color:var(--hx-green);display:grid;place-items:center;font-size:26px}
#categories.hx-cats .cat-ico .het-ico{width:26px;height:26px}
#categories.hx-cats .cat-name{display:block;flex:1 1 auto;width:auto;height:auto;margin:0;font-size:inherit;line-height:1.25;text-align:left}
.hx-cats-toggle{display:flex;align-items:center;justify-content:center;min-height:48px;margin:16px auto 48px;padding:0 24px;border:1.5px solid var(--hx-green);border-radius:10px;background:#fff;color:var(--hx-green);font-size:15px;font-weight:700;cursor:pointer}

/* Provider cards: line icon on the card cover */
.service-visual-icon .het-ico{width:44px;height:44px;margin:0 auto}

/* How it works */
.hx-how{background:var(--hx-forest);color:#fff}
.hx-inner{max-width:1200px;margin:0 auto;padding:60px 24px}
.hx-how h2{margin:0 0 32px;font-size:32px;font-weight:800;font-stretch:112%;color:#fff}
.hx-how ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.hx-how li{display:flex;flex-direction:column;gap:10px;border-top:2px solid var(--hx-yellow);padding-top:18px}
.hx-num{font-size:44px;font-weight:800;font-stretch:125%;line-height:1;color:var(--hx-yellow)}
.hx-how strong{font-size:20px}
.hx-how p{margin:0;font-size:16px;line-height:1.5;color:#CEDAE3}

/* Provider and advertiser boxes */
.hx-paths{max-width:1200px;margin:0 auto;padding:56px 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.hx-path{display:flex;flex-direction:column;gap:12px;padding:32px;border:1px solid var(--hx-line);border-radius:22px;background:#fff}
.hx-path h2{margin:0;font-size:26px;font-weight:800;font-stretch:112%;color:var(--hx-ink)}
.hx-path p{margin:0;font-size:16px;line-height:1.55;color:var(--hx-muted)}
.hx-path-biz{background:#FFF7DB;border-color:#F1DE9C}
.hx-path-biz p{color:#4A3F17}
.hx-btn{align-self:flex-start;margin-top:8px;display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border:0;border-radius:10px;background:var(--hx-green);color:#fff;font-size:16px;font-weight:700;text-decoration:none;cursor:pointer}
.hx-btn:visited{color:#fff}
/* Visited links in styles.css inherit the surrounding text color; keep button text white in every state */
.hx-btn:hover,.hx-btn:focus-visible,.hx-btn:active{background:var(--hx-forest);color:#fff}
.hx-btn-ink{background:var(--hx-ink)}
.hx-btn-ink:hover,.hx-btn-ink:focus-visible{background:#000;color:#fff}

/* Tablet and phone */
@media (max-width:900px){
  .hx-hero{grid-template-columns:1fr;padding-top:28px;gap:24px}
  .hx-hero-photo{min-height:220px;border-radius:20px;order:-1}
  .hx-how ol{grid-template-columns:1fr;gap:22px}
  .hx-paths{grid-template-columns:1fr}
}
@media (max-width:620px){
  .hx-hero{padding:20px 16px 28px}
  .hx-hero-photo{display:none}
  .hx-lede{font-size:17px}
  .hx-search{grid-template-columns:1fr}
  .hx-go{flex:1}
  .hx-more{grid-template-columns:1fr;order:1}
  .hx-actions{order:2}
  .hx-services>*{padding-left:16px;padding-right:16px}
  .hx-section-head{padding-top:28px}
  .hx-section-head h2,.hx-how h2{font-size:24px}
  #categories.hx-cats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #categories.hx-cats .cat{min-height:60px;padding:10px 12px;gap:10px;font-size:14px}
  #categories.hx-cats .cat-ico{width:38px;height:38px;font-size:22px}
  #categories.hx-cats .cat-ico .het-ico{width:22px;height:22px}
  .hx-cats-toggle{width:100%;margin:12px 0 28px}
  .hx-inner{padding:32px 16px}
  .hx-paths{padding:24px 16px}
  .hx-path{padding:22px}
  .hx-btn{align-self:stretch;justify-content:center}
}
