/*
Theme Name: Contrata
Theme URI: https://contrata.com.pe
Author: Contrata
Description: Tema de presentación de Contrata: empleos, cachuelos y servicios. Profesionales y servicios a un click.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: contrata
*/
/* Layout: split hero (headline left, phone with a swipe card right), then three job types, two how-it-works columns, trust list, business band, footer. Yellow on near-white, black pills. */
:root {
  --bg: #FBF8F1;
  --surface: #FFFFFF;
  --ink: #111111;
  --muted: #6F6753;
  --line: #EBDFC4;
  --brand: #F6C23E;
  --coral: #F5A27E;
  --sage: #A7D3A0;
  --on-brand: #111111;
  --dot: #F5A524;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 24px 44px -18px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 18px -10px rgba(0, 0, 0, 0.3);
  --font: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0A; --surface: #181818; --ink: #F5F5F5; --muted: #A3A3A3; --line: #2A2A2A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 44px -18px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 18px -10px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0A; --surface: #181818; --ink: #F5F5F5; --muted: #A3A3A3; --line: #2A2A2A;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 44px -18px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 18px -10px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 32px;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.mono { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; background: var(--ink); color: var(--bg); }
.btn.alt { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav .btn { color: var(--bg); min-height: 42px; padding: 0 20px; font-size: 15px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; padding: 28px 0 64px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.hl { background: linear-gradient(transparent 62%, var(--brand) 62%, var(--brand) 92%, transparent 92%); }
.hero p.lead { margin: 22px 0 0; max-width: 34em; font-size: 19px; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* phone mock */
.stage { position: relative; display: grid; place-items: center; padding: 18px 0; }
.stage::before { content: ""; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--brand); opacity: 0.28; }
.phone { position: relative; width: min(300px, 100%); border: 9px solid var(--ink); border-radius: 40px; background: var(--bg); padding: 12px 12px 14px; box-shadow: var(--shadow); transform: rotate(2.5deg); }
.p-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.p-top .brand { font-size: 17px; gap: 6px; }
.p-top .brand svg { width: 22px; height: 22px; }
.p-chips { display: flex; gap: 6px; }
.p-chips i { font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.p-chips i:first-child { background: var(--ink); color: var(--bg); }
.pcard { position: relative; height: 338px; border-radius: 24px; overflow: hidden; background: linear-gradient(170deg, var(--brand), #FBDB84); color: #111111; }
.pcard .scene { position: absolute; left: 0; right: 0; top: 14px; width: 100%; height: 190px; }
.pcard .tag { position: absolute; top: 12px; left: 12px; background: #111111; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.pcard .panel { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(255, 253, 248, 0.96); border-radius: 18px; padding: 12px 14px 38px; }
.pcard h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.pcard .org { margin: 2px 0 0; font-size: 12.5px; color: #6F6753; }
.pcard .pay { margin: 6px 0 0; font-size: 12.5px; color: #6F6753; }
.pcard .pay b { font-size: 21px; color: #111111; letter-spacing: -0.02em; }
.p-btns { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 14px; z-index: 2; }
.p-btns span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.p-btns span:first-child { background: #111111; color: #fff; }
.p-btns span:last-child { background: var(--brand); color: #111111; }
.p-btns svg { width: 22px; height: 22px; }
.phone .tilt { position: absolute; inset: 22% -7% 18% 12%; background: var(--coral); border-radius: 26px; transform: rotate(7deg); z-index: -1; }

.eyebrow { display: inline-block; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
/* sections */
section { padding: 56px 0; }
h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; max-width: 18em; }
.sub { margin: 14px 0 0; max-width: 38em; color: var(--muted); font-size: 18px; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.type { border-radius: 28px; padding: 24px 24px 28px; color: #111111; box-shadow: var(--shadow-sm); }
.type.e { background: var(--brand); } .type.c { background: var(--coral); } .type.s { background: var(--sage); }
.type .pill { display: inline-block; background: #111111; color: #fff; border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 700; }
.type h3 { margin: 18px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.type p { margin: 0; font-size: 16px; }
.type ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.type li { background: rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 4px 11px; font-size: 13.5px; font-weight: 600; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.col { background: var(--surface); border-radius: 28px; padding: 26px; box-shadow: var(--shadow-sm); }
.col > .mono { color: var(--muted); }
.col h3 { margin: 6px 0 18px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.col ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: s; }
.col li { position: relative; padding-left: 46px; counter-increment: s; }
.col li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.col li b { display: block; font-size: 17px; }
.col li span { color: var(--muted); font-size: 15.5px; }
.col .btn { margin-top: 22px; }

.trust { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--surface); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.rules .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.rules .ic svg { width: 22px; height: 22px; }
.rules b { display: block; font-size: 17px; }
.rules span { color: var(--muted); font-size: 15.5px; }

.band { background: var(--ink); color: var(--bg); border-radius: 36px; padding: 44px clamp(22px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 28px; align-items: center; }
.band h2 { color: var(--bg); }
.band p { margin: 14px 0 0; color: var(--bg); opacity: 0.78; font-size: 18px; max-width: 34em; }
.band .btn { background: var(--brand); color: #111111; justify-self: start; }

footer { padding: 28px 0 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); margin-top: 24px; }
footer b { color: var(--ink); }
.url { font-weight: 700; color: var(--ink); user-select: all; }

.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.frame { border: 6px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); aspect-ratio: 390 / 800; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot figcaption { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.shot figcaption b { color: var(--ink); font-size: 16px; }
@media (max-width: 860px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 10px; margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-right: 16px; }
  .shot { flex: none; width: 220px; scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .hero, .trust, .band { grid-template-columns: minmax(0, 1fr); }
  .types, .two { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.btn) { display: none; }
  .hero { padding-bottom: 36px; }
  section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- WordPress ---- */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; clip: auto; width: auto; height: auto; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 999px; }
.nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.shot img, .frame img { height: 100%; }
.content { max-width: 720px; margin: 0 auto; padding: 28px 0 56px; }
.content h1 { margin: 0 0 14px; font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.content h2 { margin: 1.6em 0 0.4em; font-size: clamp(24px, 3.4vw, 32px); }
.content h3 { margin: 1.4em 0 0.4em; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.content p, .content li { font-size: 18px; }
.content a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.content img { border-radius: 20px; }
.content blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--brand); color: var(--muted); }
.meta-line { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.post-list { display: grid; gap: 14px; margin-top: 24px; }
.post-card { background: var(--surface); border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.post-card h2 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -0.03em; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }
.pagination { display: flex; gap: 12px; margin-top: 24px; }
.alignwide { max-width: 100%; }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { color: var(--muted); font-size: 14px; }
.btn.wa { background: #1F9D6B; color: #fff; }

.btn, .nav .btn { white-space: nowrap; }
@media (max-width: 420px) { .nav .btn { padding: 0 16px; } }
