/* Misma familia visual que los posteos de Instagram (instagram/diseno/antonia.css):
   verde agua de marca, durazno y menta como acentos, Fredoka para títulos, Nunito para textos,
   fichas blancas con borde y sombra dura verde oscuro, y la lupa del logo como único adorno. */
:root {
  --teal: #00bfa5;
  --teal-600: #00a38d;
  --teal-800: #0b5e55;
  --teal-50: #e8f8f5;
  --durazno: #f6a882;
  --durazno-50: #fff3ec;
  --durazno-tinta: #6b2e12;
  --menta: #bff2e8;
  --menta-50: #effbf8;
  --ink: #17302c;
  --muted: #5c726e;
  --line: #d3e6e1;
  --card: #ffffff;
  --radius: 18px;
  --sombra-dura: 5px 5px 0 var(--teal-800);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--menta-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.15; margin: 0; }
a { color: var(--teal-800); }
:focus-visible { outline: 3px solid var(--durazno); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--teal); border-bottom: 3px solid var(--teal-800); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.topbar__brand img { display: block; height: 44px; width: auto; }
.topbar__nav { display: flex; gap: 4px; }
.topbar__nav a {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background .15s;
}
.topbar__nav a:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Portada (como la portada de los posteos) ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal); color: #fff; padding: 48px 0 92px; }
.hero .wrap { position: relative; z-index: 1; }
.hero__lupa { position: absolute; z-index: 0; width: 560px; right: -150px; bottom: -230px; color: rgba(255, 255, 255, .14); pointer-events: none; }
.hero__lupa circle, .hero__lupa path { fill: none; stroke: currentColor; }
.hero__title {
  font-size: clamp(36px, 6.4vw, 64px); font-weight: 700; line-height: 1.02; max-width: 760px;
  text-shadow: 4px 4px 0 var(--teal-800);
}
.hero__sub { font-size: 18px; font-weight: 600; max-width: 560px; margin: 18px 0 0; }
.hero__cantidad {
  display: inline-block; margin-top: 22px; background: var(--durazno); color: var(--durazno-tinta);
  font-weight: 800; font-size: 17px; padding: 8px 18px; border-radius: 999px; box-shadow: 4px 4px 0 var(--teal-800);
}
.search {
  display: flex; align-items: center; gap: 10px; margin-top: 26px;
  background: #fff; border-radius: 999px; padding: 0 20px; max-width: 640px;
  border: 3px solid var(--teal-800); box-shadow: var(--sombra-dura);
}
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--teal-800); stroke-width: 2.4; stroke-linecap: round; }
.search input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 14px 0; color: var(--ink); background: transparent; min-width: 0;
}
.search:focus-within { outline: 3px solid var(--durazno); outline-offset: 2px; }

/* ---------- Filtros ---------- */
.jobs { margin-top: -48px; padding-bottom: 56px; position: relative; z-index: 2; }
.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  background: var(--card); border-radius: var(--radius); border: 2px solid var(--teal-800); box-shadow: var(--sombra-dura);
  padding: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.field label { font-size: 14px; font-weight: 800; color: var(--teal-800); }
.field select, .field input:not([type="checkbox"]) {
  font: inherit; font-size: 15px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--menta-50); width: 100%;
}
.field select:focus-visible, .field input:focus-visible { border-color: var(--teal); }
.field__label { font-size: 14px; font-weight: 800; color: var(--teal-800); }

/* Zona y Rubro: desplegable con casillas para elegir varias opciones */
.multi { position: relative; }
.multi summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--ink); background: var(--menta-50);
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; user-select: none;
}
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: -4px 2px 0 auto;
  border-right: 2.4px solid var(--teal-800); border-bottom: 2.4px solid var(--teal-800); transform: rotate(45deg);
  transition: transform .15s;
}
.multi[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.multi[open] summary, .multi summary:focus-visible { border-color: var(--teal); }
.multi--activo summary { border-color: var(--teal-800); background: #fff; font-weight: 800; color: var(--teal-800); }
.multi__texto { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.multi__panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  width: max-content; min-width: 100%; max-width: min(320px, calc(100vw - 32px));
  background: #fff; border: 2px solid var(--teal-800); border-radius: 14px; box-shadow: 5px 5px 0 var(--teal-800);
  padding: 8px;
}
.multi__ayuda { margin: 2px 6px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.multi__opciones { max-height: 260px; overflow-y: auto; }
.multi__op {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.multi__op:hover { background: var(--menta-50); }
.multi__op input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--teal-800); cursor: pointer; }
.multi__op input:checked ~ span:not(.multi__cuenta) { font-weight: 800; color: var(--teal-800); }
.multi__cuenta { margin-left: auto; padding-left: 12px; font-size: 13px; font-weight: 800; color: var(--muted); }
.multi__pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1.5px solid var(--line); margin-top: 6px; padding: 8px 4px 2px; }
.multi__quitar { background: none; border: 0; padding: 4px; font: inherit; font-size: 13px; font-weight: 800; color: var(--teal-800); text-decoration: underline; cursor: pointer; }
.filters__clear { flex: 0 0 auto; }

.jobs__count { color: var(--teal-800); font-weight: 800; margin: 26px 2px 12px; }
.jobs__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* ---------- Ficha de empleo (como las placas de puestos) ---------- */
.job {
  position: relative; background: var(--card); border-radius: var(--radius);
  border: 2px solid var(--teal-800); box-shadow: var(--sombra-dura);
  padding: 20px 22px; transition: transform .12s, box-shadow .12s;
}
.jobs__list .job:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--teal-800); }
.job__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.job__title { font-size: 22px; font-weight: 600; color: var(--ink); }
.job__company { color: var(--teal-800); font-weight: 700; margin-top: 2px; }
/* Solo lo publicado hoy se destaca en durazno; lo demás es un dato tranquilo */
.job__date { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.job__date--new {
  color: var(--durazno-tinta); background: var(--durazno); font-weight: 800;
  padding: 3px 11px; border-radius: 999px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--teal-50); border-radius: 999px; padding: 4px 11px;
}
.tag svg { width: 14px; height: 14px; fill: none; stroke: var(--teal-800); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag--cierre { color: #8a4b00; background: #fff6e0; box-shadow: inset 0 0 0 1.5px #f3d48a; }
.tag--cierre svg { stroke: #8a4b00; }

.job__summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.job__ver { flex: none; }
/* "Ver info" en durazno: el único naranja de la ficha, para que el botón se vea enseguida */
.btn.job__ver { background: var(--durazno); color: var(--teal-800); border-color: var(--teal-800); }
.btn.job__ver:hover { background: #f39468; }
/* Toda la ficha se puede tocar para abrir el puesto */
.job__ver::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Paginación (10 por página) ---------- */
.pag { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.pag:empty { display: none; }
.pag__numeros { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pag button {
  font: inherit; font-weight: 800; cursor: pointer; color: var(--teal-800);
  background: #fff; border: 2px solid var(--teal-800); border-radius: 999px; transition: background .15s;
}
.pag button:hover:not(:disabled) { background: var(--menta); }
.pag__num { min-width: 40px; height: 40px; padding: 0 10px; font-size: 15px; }
.pag__num[aria-current="page"] { background: var(--teal); color: #fff; box-shadow: 3px 3px 0 var(--teal-800); }
.pag__num[aria-current="page"]:hover { background: var(--teal); }
.pag__paso { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px; font-size: 14px; }
.pag__paso svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pag__paso:disabled { opacity: .35; cursor: default; }
.pag__puntos { color: var(--teal-800); font-weight: 800; padding: 0 2px; }

/* ---------- Vista de detalle ---------- */
body.en-detalle .vista-lista { display: none; }
.detail { max-width: 780px; padding-top: 24px; padding-bottom: 56px; }
.detail__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.detail__back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 800; color: var(--teal-800); cursor: pointer;
}
.detail__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.detail__back:hover { color: var(--teal-600); }
.detail__card { padding: 28px 28px 24px; border-width: 3px; box-shadow: 8px 8px 0 var(--teal-800); }
.detail__card .job__title { font-size: clamp(28px, 5vw, 38px); font-weight: 700; line-height: 1.05; }
.detail__card .job__company { font-size: 18px; margin-top: 6px; }
.detail__tags { margin-top: 16px; }
.detail__section { margin-top: 24px; }
.detail__section h2 { font-size: 20px; font-weight: 600; color: var(--teal-800); margin-bottom: 6px; }
.detail__section p { margin: 0; white-space: pre-line; }
.detail__section .contact { margin-top: 4px; }

/* "¿Problemas con tu CV?": en menta, para que se distinga de la ficha blanca del puesto */
.cv-promo {
  margin-top: 26px; display: flex; align-items: center; gap: 20px;
  background: var(--menta); color: var(--teal-800); border-radius: 22px; padding: 26px;
  border: 3px solid var(--teal-800); box-shadow: 8px 8px 0 var(--teal-800);
}
.cv-promo__icono { width: 92px; height: auto; flex: none; }
.cv-promo h2 { font-size: 28px; font-weight: 700; text-shadow: 3px 3px 0 #fff; }
.cv-promo p { margin: 8px 0 16px; font-size: 17px; font-weight: 700; color: var(--teal-800); }
.cv-promo__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cómo postularse (como el recuadro verde oscuro de las placas) ---------- */
.contact {
  margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--teal-800);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.contact__item {
  display: flex; align-items: center; gap: 10px; flex: 1 1 100%; min-width: 0;
  background: #fff; border-radius: 12px; padding: 7px 7px 7px 14px;
}
.contact__label { font-size: 13px; font-weight: 800; color: var(--muted); }
/* El mail se ve siempre completo: si no entra, pasa al renglón de abajo */
.contact__value { font-weight: 800; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.contact__actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.contact__actions .btn--ghost { border-color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none;
  border-radius: 999px; padding: 9px 16px; border: 2px solid transparent; transition: background .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--teal); color: #fff; border-color: var(--teal-800); }
.btn--primary:hover { background: var(--teal-600); }
.btn--ghost { background: #fff; color: var(--teal-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--light { background: #fff; color: var(--teal-800); border-color: var(--teal-800); }
.btn--light:hover { background: var(--menta-50); }
.btn.btn--outline-dark { color: var(--teal-800); border-color: var(--teal-800); background: transparent; }
.btn.btn--outline-dark:hover { background: rgba(255, 255, 255, .3); }

.empty {
  text-align: center; background: var(--card); border-radius: var(--radius); border: 2px solid var(--teal-800);
  padding: 40px 20px; color: var(--muted);
}
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ---------- Asesorías (como la placa final de los posteos) ---------- */
.advice { background: var(--menta); padding: 64px 0; border-top: 3px solid var(--teal-800); }
.advice__head { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }
.advice__icono { width: 96px; height: auto; flex: none; }
.section-title { font-size: clamp(30px, 4.6vw, 44px); font-weight: 700; color: var(--teal-800); text-shadow: 3px 3px 0 #fff; }
.section-sub { color: var(--teal-800); font-size: 17px; font-weight: 600; max-width: 600px; margin: 8px 0 0; }
.advice__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.service {
  display: flex; flex-direction: column;
  background: var(--teal); color: #fff; border-radius: 22px; padding: 26px;
  border: 3px solid var(--teal-800); box-shadow: 8px 8px 0 var(--teal-800);
}
/* Los servicios alternan verde agua y verde oscuro */
.service:nth-child(2n) { background: var(--teal-800); box-shadow: 8px 8px 0 var(--teal); }
.service h3 { font-size: 28px; font-weight: 700; text-shadow: 3px 3px 0 var(--teal-800); }
.service:nth-child(2n) h3 { text-shadow: 3px 3px 0 var(--teal); }
.service p { margin: 10px 0 14px; font-weight: 600; }
.service ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.service li { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; }
.service li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5e55' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.service__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.service__price { font-family: "Fredoka", sans-serif; font-size: 24px; font-weight: 600; }

/* ---------- Pie ---------- */
.footer { background: var(--teal-800); color: #fff; padding: 30px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__inner img { height: 40px; width: auto; }
.footer__inner p { margin: 0; font-weight: 700; opacity: .9; }
.footer__links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__links a { color: var(--menta); font-weight: 800; }

/* ---------- Aviso "copiado" ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--teal-800); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.notice { background: #fff6e0; border: 2px solid #f3d48a; color: #6b4e00; border-radius: 12px; padding: 14px 16px; }

@media (max-width: 600px) {
  .topbar__inner { height: 60px; }
  .topbar__brand img { height: 36px; }
  .topbar__nav a { padding: 6px 10px; font-size: 14px; }
  .hero { padding: 30px 0 82px; }
  .hero__lupa { width: 340px; right: -150px; bottom: -150px; }
  .hero__sub { font-size: 16px; }
  .job { padding: 18px 16px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .field label { font-size: 13px; }
  .field select, .field input:not([type="checkbox"]) { font-size: 14px; padding: 9px 8px; }
  .field__label { font-size: 13px; }
  .multi summary { font-size: 14px; padding: 9px 8px; }
  /* El de la columna derecha se abre hacia la izquierda para no salirse de la pantalla */
  #f-rubro .multi__panel { left: auto; right: 0; }
  .filters__clear { height: 42px; align-self: end; }
  .contact__actions .btn { flex: 1 1 auto; }
  .job__summary { flex-wrap: wrap; }
  /* En celular: números arriba y "Anterior / Siguiente" abajo, a lo ancho */
  .pag { flex-wrap: wrap; }
  .pag__numeros { order: -1; width: 100%; }
  .pag__paso { flex: 1 1 0; justify-content: center; }
  .job__ver { margin-left: auto; }
  .detail { padding-top: 16px; }
  .detail__card { padding: 22px 16px; box-shadow: 5px 5px 0 var(--teal-800); }
  .cv-promo { flex-direction: column; align-items: flex-start; padding: 22px 18px; box-shadow: 5px 5px 0 var(--teal-800); }
  .cv-promo__icono { width: 70px; }
  .cv-promo__actions { width: 100%; }
  .cv-promo__actions .btn { flex: 1 1 auto; }
  .advice__icono { width: 70px; }
  .service { box-shadow: 5px 5px 0 var(--teal-800); }
  .service:nth-child(2n) { box-shadow: 5px 5px 0 var(--teal); }
  .contact__item { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; }
  .contact__label { grid-column: 1; grid-row: 1; }
  .contact__value { grid-column: 1; grid-row: 2; font-size: 14px; }
  .contact__item .btn { grid-column: 2; grid-row: 1 / span 2; }
}
