/* ============================================================================
   LATICON — Trabaja con nosotros / Postúlate aquí
   Se apoya en ../assets/css/styles.css (tokens, header, botones, campos, pie).
   ========================================================================== */

:root { --error: #B42318; --error-bg: #FEF3F2; --error-borde: #FDA29B; --check-borde: #B8C7BF; }
[hidden] { display: none !important; }

/* ----------------------------- Header de esta página ---------------------- */
.pg-post .nav a { white-space: nowrap; }
.post-header-cta { padding: 12px 22px; font-size: .92rem; white-space: nowrap; }
@media (max-width: 900px) { .header .post-header-cta.desktop { display: none; } }

/* ----------------------------- Títulos de dos líneas ---------------------- */
.post-title span { display: block; white-space: nowrap; }
.post-title span:first-child { color: var(--ink-3); }

/* ----------------------------- Hero --------------------------------------- */
.post-hero {
  background: radial-gradient(1100px 520px at 88% -10%, rgba(34,168,95,.24), transparent 60%), var(--brand-900);
  color: #fff;
  padding-top: calc(84px + clamp(44px, 7vw, 96px));
  padding-bottom: clamp(52px, 7vw, 96px);
  overflow: hidden;
}
.post-hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.post-hero__text { container-type: inline-size; min-width: 0; }
.post-title--hero { color: #fff; font-size: clamp(1.75rem, 8.2cqi, 3.6rem); line-height: 1.04; margin: 16px 0 20px; }
.post-title--hero span:first-child { color: rgba(255,255,255,.6); }
.post-hero__lead { color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.7; max-width: 56ch; margin-bottom: 28px; }
.post-hero__cta { margin-bottom: 26px; }
.post-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.post-chips li {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; font-size: .86rem; color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.post-chips svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--brand-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.post-zonas {
  display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.post-zonas__titulo { font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-300); }
.post-zona { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); }
.post-zona img { width: 56px; height: 56px; object-fit: contain; flex: none; filter: brightness(0) invert(1); opacity: .85; }
.post-zona b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.post-zona span { display: block; font-size: .9rem; color: rgba(255,255,255,.72); white-space: nowrap; }

/* ----------------------------- Bloque principal --------------------------- */
.post-main { background: var(--mint-2); border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 104px); scroll-margin-top: 40px; }
.post-main__grid { display: grid; grid-template-columns: minmax(280px, 350px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.post-aside { display: grid; gap: 18px; position: sticky; top: 110px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.post-aside__h { font-size: 1.08rem; margin-bottom: 14px; }
.post-aside__p { font-size: .92rem; color: var(--ink-2); }
.post-aside__p--sm { font-size: .84rem; color: var(--ink-3); margin-top: 14px; }
.post-aside__p a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.post-card--aviso { border-left: 4px solid var(--brand-bright); }

.post-pasos { list-style: none; padding: 0; display: grid; gap: 14px; }
.post-pasos li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.post-pasos b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--brand); font-family: var(--font-display); font-size: .9rem; }
.post-pasos span { font-size: .94rem; color: var(--ink-2); padding-top: 4px; }

.post-cargos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.post-cargo {
  min-height: 40px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink); font-size: .84rem; font-weight: 500; line-height: 1.2; text-align: left;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.post-cargo:hover { border-color: var(--brand-300); background: var(--mint); }
.post-cargo[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ----------------------------- Formulario --------------------------------- */
.post-form, .post-ok {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 44px); box-shadow: var(--shadow); container-type: inline-size;
}
.post-title--form { font-size: clamp(1.5rem, 6.4cqi, 2.4rem); line-height: 1.08; }
.post-form__req { font-size: .86rem; color: var(--ink-3); margin-top: 10px; }
.post-form i, .post-check i { font-style: normal; color: var(--brand); font-weight: 700; }

.post-resumen-error { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--error-bg); border: 1px solid var(--error-borde); color: #912018; font-size: .92rem; font-weight: 500; }

.post-paso { border: 0; margin: 28px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.post-paso > legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.post-paso > legend + * { clear: both; }
.post-paso__n { font-size: .74rem; letter-spacing: .1em; color: var(--brand); background: var(--mint); padding: 5px 9px; border-radius: 8px; }

.post-form .field { scroll-margin-top: 120px; }
.field__label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 9px; font-family: var(--font-display); }
.field__hint { font-size: .8rem; color: var(--ink-3); margin: -4px 0 10px; }
.field__error { color: var(--error); font-size: .82rem; font-weight: 500; margin-top: 7px; }
.field__count { text-align: right; font-size: .76rem; color: var(--ink-3); margin-top: 4px; }
.opcional { font-weight: 400; color: var(--ink-3); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); background: #FFF8F7; }
.field input::placeholder, .field textarea::placeholder { color: #93A099; }
.post-form .field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23106735' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.post-form .field input, .post-form .field select { min-height: 48px; }

/* Opciones (pastillas y tarjetas de zona) */
.field .opc { display: block; margin: 0; font-size: .95rem; font-weight: 500; color: var(--ink); font-family: var(--font-body); }
.opc { position: relative; cursor: pointer; }
.opc input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.post-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.opc--pill span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 72px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-2);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.opc--pill:hover span { border-color: var(--brand-300); }
.opc input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.opc input:focus-visible + span { outline: 2px solid var(--brand-bright); outline-offset: 3px; }

.post-zonas-opc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opc--zona span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 66px; position: relative;
  padding: 12px 14px 12px 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.opc--zona span::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 6px; border: 2px solid var(--check-borde); background: #fff center/14px no-repeat;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.opc--zona b { font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink); }
.opc--zona small { font-size: .8rem; color: var(--ink-3); }
.opc--zona:hover span { border-color: var(--brand-300); }
.opc--zona input:checked + span { background: var(--mint); border-color: var(--brand); }
.opc--zona input:checked + span::before {
  background-color: var(--brand); border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.field.es-invalido .opc span { border-color: var(--error); }

.form__row--exp { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }

/* CV */
.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 26px 18px; border: 2px dashed #B8D3C4; border-radius: 14px; background: var(--paper-2); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.field .drop { display: grid; margin: 0; font-size: 1rem; font-weight: 500; font-family: var(--font-body); color: var(--ink-2); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:hover, .drop.encima { border-color: var(--brand); background: var(--mint); }
.drop:focus-within { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
.drop.es-invalido { border-color: var(--error); background: #FFF8F7; }
.drop__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); }
.drop__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop__text { font-size: .96rem; color: var(--ink-2); }
.drop__text b { color: var(--brand); font-family: var(--font-display); }
.drop__hint { font-size: .8rem; color: var(--ink-3); }
.drop__archivo { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border: 1px solid var(--brand-300); background: var(--mint); border-radius: 12px; }
.drop__archivo svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.drop__nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; color: var(--ink); }
.drop__quitar { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: .84rem; color: var(--brand); }
.drop__quitar:hover { border-color: var(--brand); }

/* Privacidad */
.post-privacidad { margin-top: 6px; padding: 18px; border-radius: 14px; background: var(--mint-2); border: 1px solid var(--line); }
.post-privacidad__corto { font-size: .9rem; color: var(--ink-2); }
.post-privacidad__corto b { color: var(--ink); }
.post-privacidad__det summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--brand); list-style: none; }
.post-privacidad__det summary::-webkit-details-marker { display: none; }
.post-privacidad__det summary::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.post-privacidad__det[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.post-privacidad__texto { padding: 4px 0 8px; }
.post-privacidad__texto p { font-size: .86rem; margin-bottom: 8px; }
.post-privacidad__texto a { color: var(--brand); font-weight: 600; }
.post-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); cursor: pointer; font-size: .92rem; color: var(--ink); }
.post-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.post-check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.post-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.post-enviar { width: 100%; margin-top: 26px; }
.post-enviar[disabled] { opacity: .75; cursor: progress; transform: none; }
.post-enviar.enviando svg { animation: post-giro 1s linear infinite; }
@keyframes post-giro { to { transform: rotate(360deg); } }

/* Confirmación */
.post-ok { text-align: center; padding: clamp(32px, 5vw, 60px) clamp(22px, 4vw, 48px); }
.post-ok:focus { outline: none; }
.post-ok__icono { width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); box-shadow: 0 14px 34px -12px rgba(16,103,53,.7); }
.post-ok__icono svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.post-ok .post-title span { white-space: normal; }
.post-ok__ref { margin-top: 18px; font-size: 1rem; color: var(--ink-2); }
.post-ok__ref b { display: inline-block; margin-top: 6px; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .06em; color: var(--brand); background: var(--mint); padding: 6px 14px; border-radius: 10px; }
.post-ok__p { max-width: 46ch; margin: 14px auto 0; font-size: .96rem; }
.post-ok__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Pie (en styles.css el párrafo hereda el gris de «p» y casi no se lee sobre el verde) */
.pg-post .footer ul a { white-space: nowrap; }
.pg-post .footer__brand p { color: rgba(255,255,255,.66); }

/* ----------------------------- Responsive --------------------------------- */
@media (max-width: 1099px) {
  .post-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .post-zonas { grid-template-columns: 1fr 1fr; }
  .post-zonas__titulo { grid-column: 1 / -1; }
  .post-main__grid { grid-template-columns: 1fr; }
  .post-form-wrap { order: 1; }
  .post-aside { order: 2; position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 900px) {
  .drop__solo-escritorio { display: none; }
}
@media (max-width: 620px) {
  .post-zonas { grid-template-columns: 1fr; padding: 18px; }
  .form__row--exp { grid-template-columns: 1fr; }
  .post-ok__acciones .btn { width: 100%; }
  .post-hero__cta { width: 100%; }
}
@media (max-width: 520px) {
  .post-zonas-opc { grid-template-columns: 1fr; }
}
