/* =====================================================================
   Portal de reclutamiento
   Sin fuentes ni librerias externas: el portal no envia datos del
   visitante a terceros (Aviso de privacidad / ISO 27001 5.34).

   Colores: copia de los tokens de AdmCloud (admcloud-main, AdmWeb):
     - Content\DesignSystemBase.css : paleta (--neutral-*, --resolution-blue-*,
       --summer-sky-*, --green-*, ...) y tokens de estado (--state-*).
     - Content\DarkMode.css : el "flip" de --neutral-* a la escala --dark-*
       bajo :root[data-theme="dark"], los re-tintes de marca y los
       --dark-state-*.
   Si cambian alla, actualizar tambien este archivo (igual que hace
   AdmCloud.ApiHost\Content\AdmApiLandingBase.css). El resto del archivo
   usa solo los --hp-* de abajo, que apuntan a esos tokens.
   ===================================================================== */

:root {
    /* --- AdmCloud: NEUTRAL --- */
    --neutral-100: #FFFFFF;
    --neutral-200: #F7F9FC;
    --neutral-300: #E9EAF3;
    --neutral-400: #CACBD7;
    --neutral-500: #989AAD;
    --neutral-600: #6F7182;
    --neutral-700: #303350;
    --neutral-800: #0B0E2C;
    /* --- AdmCloud: RESOLUTION BLUE --- */
    --resolution-blue-100: #657AFB;
    --resolution-blue-200: #4D64F4;
    --resolution-blue-400: #3243AC;
    --resolution-blue-500: #28368D;
    /* --- AdmCloud: SUMMER SKY --- */
    --summer-sky-200: #88CCE8;
    --summer-sky-500: #25AAE1;
    /* --- AdmCloud: estados --- */
    --green-500: #3FB206;
    --tangerine-yellow-600: #FFC407;
    --fire-engine-red-500: #CF2127;
    --state-info-bg: #e6f6fb;
    --state-info-text: #0e5a72;
    --state-success-bg: #edf7e9;
    --state-success-text: #2e6b12;
    --state-warning-bg: #fff9e6;
    --state-warning-text: #7a5c00;
    --state-danger-bg: #fdecea;
    --state-danger-text: #a01c22;
    --white: #FFFFFF;

    /* --- Portal: roles de color --- */
    --hp-bg: var(--neutral-200);
    --hp-surface: var(--neutral-100);
    --hp-surface-muted: var(--neutral-200);
    --hp-input: var(--neutral-100);
    --hp-border: var(--neutral-300);
    --hp-border-strong: var(--neutral-400);
    --hp-text: var(--neutral-800);
    --hp-text-muted: var(--neutral-600);
    --hp-text-subtle: var(--neutral-500);
    --hp-chip: var(--neutral-300);
    --hp-chip-text: var(--neutral-700);
    --hp-primary: var(--resolution-blue-500);
    --hp-primary-hover: var(--resolution-blue-400);
    --hp-primary-disabled: var(--resolution-blue-100);
    --hp-on-primary: var(--white);
    --hp-primary-soft: var(--state-info-bg);
    --hp-link: var(--resolution-blue-500);
    --hp-link-hover: var(--resolution-blue-400);
    /* Foco: en AdmCloud el acento de foco es summer-sky (borde del toggle de tema, inputs) */
    --hp-focus: var(--summer-sky-500);
    --hp-focus-ring: rgba(37, 170, 225, 0.35);
    /* Superficie de marca (hero, panel "Tu información está protegida"): el azul de AdmCloud */
    --hp-brand: var(--resolution-blue-500);
    --hp-on-brand: var(--white);
    --hp-on-brand-muted: var(--neutral-300);
    --hp-on-brand-subtle: var(--neutral-400);
    --hp-eyebrow: var(--summer-sky-200);
    --hp-success: var(--green-500);
    --hp-success-soft: var(--state-success-bg);
    --hp-warning-soft: var(--state-warning-bg);
    --hp-warning-text: var(--state-warning-text);
    --hp-warning-icon: var(--tangerine-yellow-600);
    --hp-info-text: var(--state-info-text);
    --hp-danger: var(--fire-engine-red-500);
    --hp-danger-text: var(--state-danger-text);
    --hp-danger-soft: var(--state-danger-bg);
    --hp-shadow-color: rgba(11, 14, 44, 0.08);
    --hp-backdrop: rgba(11, 14, 44, 0.55);
    --hp-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230B0E2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    --hp-radius: 14px;
    --hp-radius-sm: 10px;
    --hp-font: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --hp-container: 1270px;
    --hp-gutter: 32px;
}

/* --- MODO OSCURO ---
   Se activa con [data-theme="dark"] en <html> (toggle del encabezado, misma llave
   "adm_dark_mode" de localStorage que AdmCloud). El flip neutral -> dark es identico
   al de Content\DarkMode.css; los roles que no se resuelven solos con el flip
   (superficie de marca, inputs, estados) se reasignan aqui. */
:root[data-theme="dark"] {
    color-scheme: dark;

    /* --- Flip neutral -> dark (identico a DarkMode.css) --- */
    --neutral-100: var(--dark-600);
    --neutral-200: var(--dark-700);
    --neutral-300: var(--dark-500);
    --neutral-400: var(--dark-400);
    --neutral-500: var(--dark-300);
    --neutral-600: var(--dark-200);
    --neutral-700: var(--dark-100);
    --neutral-800: var(--dark-100);

    /* --- Marca re-tintada para oscuro (DarkMode.css) --- */
    --resolution-blue-100: #8C9CFC;
    --resolution-blue-200: #738AFF;
    --resolution-blue-400: #4D64F4;
    --resolution-blue-500: #657AFB;
    --summer-sky-500: #45D8EE;

    /* --- Escala de grises oscura (DarkMode.css) --- */
    --dark-100: #F1F1F1;
    --dark-200: #C5C5C5;
    --dark-300: #9A9A9A;
    --dark-400: #3A3A3A;
    --dark-500: #2C2C2C;
    --dark-600: #242424;
    --dark-700: #1C1C1C;
    --dark-800: #161616;

    /* --- Superficies y acentos de estado (DarkMode.css) --- */
    --dark-state-info-bg: #1e3a47;
    --dark-state-warning-bg: #4a3608;
    --dark-state-success-bg: #1f4221;
    --dark-state-danger-bg: #4a1c1a;
    --dark-state-info-accent: #5BC0DE;
    --dark-state-success-accent: #5cb85c;
    --dark-state-danger-accent: #FF6B6B;

    /* --- Portal: roles que el flip no resuelve --- */
    --hp-input: var(--dark-800);
    --hp-primary-disabled: var(--resolution-blue-200);
    --hp-primary-soft: var(--dark-state-info-bg);
    --hp-link: var(--resolution-blue-200);
    --hp-link-hover: var(--resolution-blue-100);
    --hp-focus-ring: rgba(69, 216, 238, 0.35);
    /* El azul re-tintado es demasiado claro para una superficie grande: la marca va en gris recesado */
    --hp-brand: var(--dark-800);
    --hp-on-brand: var(--dark-100);
    --hp-on-brand-muted: var(--dark-200);
    --hp-on-brand-subtle: var(--dark-300);
    --hp-success: var(--dark-state-success-accent);
    --hp-success-soft: var(--dark-state-success-bg);
    --hp-warning-soft: var(--dark-state-warning-bg);
    --hp-warning-text: var(--dark-100);
    --hp-info-text: var(--dark-100);
    --hp-danger: var(--dark-state-danger-accent);
    --hp-danger-text: var(--dark-state-danger-accent);
    --hp-danger-soft: var(--dark-state-danger-bg);
    --hp-shadow-color: rgba(0, 0, 0, 0.35);
    --hp-backdrop: rgba(0, 0, 0, 0.65);
    --hp-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23F1F1F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--hp-bg);
    color: var(--hp-text);
    font-family: var(--hp-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

h1, h2, h3, p, ul, ol, dl, dd {
    margin: 0;
}

a {
    color: var(--hp-link);
}

a:hover {
    color: var(--hp-link-hover);
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--hp-focus-ring);
    outline-offset: 2px;
}

html:not(.js) [data-js-only] {
    display: none !important;
}

.hp-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hp-icon {
    flex-shrink: 0;
    vertical-align: middle;
}

.hp-container {
    width: 100%;
    max-width: var(--hp-container);
    margin: 0 auto;
    padding: 0 var(--hp-gutter);
}

.hp-page {
    padding-top: 44px;
    padding-bottom: 72px;
}

.hp-muted {
    color: var(--hp-text-muted);
}

.hp-small {
    color: var(--hp-text-muted);
    font-size: 15px;
}

.hp-label {
    color: var(--hp-text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hp-optional {
    color: var(--hp-text-subtle);
    font-weight: 400;
}

.hp-required {
    color: var(--hp-danger);
}

/* ---------- Botones y enlaces ---------- */

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: var(--hp-radius-sm);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Primario y secundario como .adm__btn-primary / .adm__btn-secondary de AdmCloud */
.hp-btn-primary {
    background: var(--hp-primary);
    color: var(--hp-on-primary);
}

.hp-btn-primary:hover {
    background: var(--hp-primary-hover);
    color: var(--hp-on-primary);
}

.hp-btn-outline {
    background: var(--hp-surface);
    border-color: var(--hp-primary);
    color: var(--hp-primary);
}

.hp-btn-outline:hover {
    background: var(--hp-surface-muted);
    color: var(--hp-primary);
}

.hp-btn:disabled,
.hp-btn[aria-disabled="true"] {
    background: var(--hp-primary-disabled);
    border-color: transparent;
    color: var(--hp-on-primary);
    cursor: not-allowed;
}

:root[data-theme="dark"] .hp-btn:disabled,
:root[data-theme="dark"] .hp-btn[aria-disabled="true"] {
    opacity: 0.5;
}

.hp-btn-block {
    width: 100%;
}

.hp-btn-large {
    min-height: 56px;
    font-size: 17px;
}

.hp-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--hp-link);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.hp-link:hover {
    color: var(--hp-link-hover);
}

.hp-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hp-text-muted);
    cursor: pointer;
}

.hp-icon-button:hover {
    background: var(--hp-surface-muted);
    color: var(--hp-text);
}

/* ---------- Encabezado y pie ---------- */

.hp-header {
    background: var(--hp-surface);
    border-bottom: 1px solid var(--hp-border);
}

.hp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.hp-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: var(--hp-text);
    text-decoration: none;
}

.hp-brand:hover {
    color: var(--hp-text);
}

.hp-brand-logo {
    display: block;
    max-width: 180px;
    max-height: 44px;
    object-fit: contain;
}

/* El logo lo sube cada empresa y casi siempre esta hecho para fondo claro: en oscuro se
   le pone una base blanca en vez de alterarlo con filtros */
:root[data-theme="dark"] .hp-brand-logo {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--white);
}

.hp-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hp-brand-divider {
    width: 1px;
    height: 32px;
    background: var(--hp-border);
}

.hp-brand-section {
    color: var(--hp-text-muted);
    font-size: 18px;
    font-weight: 500;
}

.hp-header-link {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hp-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Toggle de tema: mismo boton que .adm-api-landing__theme-toggle de AdmCloud
   (circulo de 44px, borde neutral-300, foco y hover en summer-sky / resolution-blue) */
.hp-theme-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--neutral-300);
    border-radius: 50%;
    background-color: var(--neutral-100);
    color: var(--neutral-600);
    cursor: pointer;
    transition: border-color 250ms ease, background-color 250ms ease, color 250ms ease;
}

.hp-theme-toggle:hover,
.hp-theme-toggle:focus-visible {
    border-color: var(--summer-sky-500);
    background-color: var(--neutral-200);
    color: var(--resolution-blue-500);
    outline: none;
}

.hp-theme-toggle .hp-icon {
    width: 22px;
    height: 22px;
}

/* Tema claro -> luna (accion: activar oscuro). Tema oscuro -> sol (volver a claro). */
.hp-theme-icon-sun,
:root[data-theme="dark"] .hp-theme-icon-moon {
    display: none;
}

.hp-theme-icon-moon,
:root[data-theme="dark"] .hp-theme-icon-sun {
    display: inline-flex;
}

.hp-footer {
    margin-top: auto;
    background: var(--hp-surface);
    border-top: 1px solid var(--hp-border);
}

.hp-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hp-footer-title {
    margin-bottom: 4px;
    font-weight: 700;
}

.hp-footer-text {
    color: var(--hp-text-muted);
    font-size: 15px;
}

.hp-footer-powered {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hp-powered-link {
    display: inline-flex;
}

.hp-powered-logo {
    display: block;
    width: auto;
    height: 30px;
}

/* Logo normal en claro y el de modo oscuro en oscuro (Global.NAV_LOGO / NAV_LOGO_WHITE de AdmCloud) */
.hp-powered-logo-dark,
:root[data-theme="dark"] .hp-powered-logo-light {
    display: none;
}

:root[data-theme="dark"] .hp-powered-logo-dark {
    display: block;
}

/* ---------- Tarjetas ---------- */

.hp-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
}

.hp-card-padded {
    padding: 48px;
}

.hp-card-compact {
    padding: 26px;
}

.hp-divider {
    margin: 36px 0;
    border: 0;
    border-top: 1px solid var(--hp-border);
}

.hp-divider-tight {
    margin: 20px 0;
}

.hp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.hp-chip {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--hp-chip);
    color: var(--hp-chip-text);
    font-size: 15px;
    font-weight: 500;
}

.hp-empty {
    text-align: center;
}

.hp-empty-icon {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--hp-text-subtle);
}

.hp-empty-title {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---------- Listado de posiciones ---------- */

.hp-hero {
    padding: 76px 0 136px;
    background: var(--hp-brand);
    color: var(--hp-on-brand);
}

.hp-eyebrow {
    margin-bottom: 14px;
    color: var(--hp-eyebrow);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hp-hero-lead {
    margin-top: 18px;
    color: var(--hp-on-brand-muted);
    font-size: 20px;
}

.hp-listing {
    padding-bottom: 72px;
}

.hp-listing > :first-child {
    margin-top: -42px;
}

.hp-search {
    position: relative;
    padding: 22px;
    box-shadow: 0 10px 30px var(--hp-shadow-color);
}

.hp-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--hp-border-strong);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-input);
    color: var(--hp-text-subtle);
}

.hp-search-field:focus-within {
    border-color: var(--hp-focus);
    box-shadow: 0 0 0 3px var(--hp-focus-ring);
}

.hp-search-input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 0;
    background: transparent;
    color: var(--hp-text);
    font: inherit;
    font-size: 17px;
    outline: none;
}

.hp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hp-filter {
    padding: 10px 18px;
    border: 1px solid var(--hp-border-strong);
    border-radius: 999px;
    background: var(--hp-surface);
    color: var(--hp-text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.hp-filter:hover {
    border-color: var(--hp-text-subtle);
}

.hp-filter.is-active {
    border-color: var(--hp-primary);
    background: var(--hp-primary);
    color: var(--hp-on-primary);
}

.hp-listing-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0 18px;
}

.hp-listing-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hp-positions {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.hp-position {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    color: var(--hp-text);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hp-position:hover {
    border-color: var(--hp-border-strong);
    box-shadow: 0 6px 20px var(--hp-shadow-color);
    color: var(--hp-text);
}

.hp-position-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hp-position-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hp-position-meta {
    color: var(--hp-text-muted);
}

.hp-position-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-link);
    font-weight: 700;
    white-space: nowrap;
}

.hp-trust {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
    padding: 22px 26px;
    font-size: 15.5px;
}

/* ---------- Detalle y aplicacion ---------- */

.hp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    font-weight: 600;
    text-decoration: none;
}

.hp-job-header {
    margin-bottom: 32px;
}

.hp-job-title {
    margin-bottom: 16px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 308px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "main aside"
        "main protected";
    gap: 18px 26px;
    align-items: start;
}

.hp-layout > .hp-card:first-child {
    grid-area: main;
}

/* La barra lateral se reparte en dos areas para reordenarla en pantallas pequeñas */
.hp-sidebar {
    display: contents;
}

.hp-sidebar > .hp-card {
    grid-area: aside;
}

.hp-sidebar > .hp-protected {
    grid-area: protected;
}

.hp-sidebar-title {
    margin-bottom: 14px;
    font-size: 19px;
    font-weight: 700;
}

.hp-apply-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--hp-text-muted);
    font-size: 15px;
}

.hp-closed {
    color: var(--hp-text-muted);
    font-weight: 600;
}

/* Las filas comparten columnas: la de etiquetas toma el ancho de la etiqueta mas larga */
.hp-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px;
    margin-bottom: 14px;
}

.hp-fact {
    display: contents;
}

.hp-fact dt {
    color: var(--hp-text-subtle);
}

.hp-fact dd {
    font-weight: 600;
}

.hp-protected {
    padding: 28px 26px;
    border-radius: var(--hp-radius);
    background: var(--hp-brand);
    color: var(--hp-on-brand);
}

/* En oscuro la superficie de marca es un gris recesado: el borde la separa de las tarjetas */
:root[data-theme="dark"] .hp-protected {
    border: 1px solid var(--hp-border);
}

.hp-protected-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.hp-protected-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    color: var(--hp-on-brand-muted);
    font-size: 15.5px;
    line-height: 1.5;
}

.hp-protected-footnote {
    margin-top: 18px;
    color: var(--hp-on-brand-subtle);
    font-size: 13.5px;
}

.hp-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hp-cta-text {
    font-size: 18px;
    font-weight: 700;
}

/* ---------- Texto enriquecido de la vacante ---------- */

.hp-description-block,
.hp-rich-section {
    display: grid;
    gap: 18px;
}

.hp-rich-section + .hp-rich-section {
    margin-top: 22px;
}

.hp-section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.hp-rich-group {
    display: grid;
    gap: 10px;
}

.hp-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.hp-rich-column {
    display: grid;
    gap: 10px;
    align-content: start;
}

.hp-paragraph {
    color: var(--hp-text-muted);
    font-size: 17px;
    line-height: 1.65;
}

.hp-paragraph strong {
    color: var(--hp-text);
}

.hp-list {
    display: grid;
    gap: 8px;
    padding-left: 22px;
    color: var(--hp-text-muted);
    font-size: 17px;
    line-height: 1.55;
}

.hp-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 36px;
}

.hp-security {
    padding: 24px 26px;
    border-radius: 12px;
    background: var(--hp-surface-muted);
}

.hp-security .hp-list {
    font-size: 16px;
}

.hp-prose h3 {
    margin: 20px 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.hp-prose h3:first-child {
    margin-top: 0;
}

.hp-prose p {
    color: var(--hp-text-muted);
}

/* ---------- Aviso de privacidad completo ---------- */

.hp-privacy-notice {
    max-width: 880px;
    margin: 0 auto;
}

.hp-privacy-notice-company {
    color: var(--hp-text-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-privacy-notice-title {
    margin: 6px 0 28px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* El contenido lo escribe la empresa: los margenes se definen aqui porque la base los pone en 0 */
.hp-privacy-notice-body {
    overflow-wrap: anywhere;
}

.hp-privacy-notice-body > * + * {
    margin-top: 14px;
}

.hp-privacy-notice-body h1,
.hp-privacy-notice-body h2 {
    margin: 32px 0 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.hp-privacy-notice-body h3,
.hp-privacy-notice-body h4,
.hp-privacy-notice-body h5,
.hp-privacy-notice-body h6 {
    margin: 24px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.hp-privacy-notice-body > :first-child {
    margin-top: 0;
}

.hp-privacy-notice-body ul,
.hp-privacy-notice-body ol {
    padding-left: 24px;
}

.hp-privacy-notice-body ul {
    list-style: disc;
}

.hp-privacy-notice-body ol {
    list-style: decimal;
}

/* Enlace al que la limpieza le quito un destino no permitido (javascript:, data:): queda como texto */
.hp-privacy-notice-body a:not([href]) {
    color: inherit;
}

.hp-privacy-notice-body li + li {
    margin-top: 6px;
}

.hp-privacy-notice-body blockquote {
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    border-left: 3px solid var(--hp-border);
    color: var(--hp-text-muted);
}

.hp-privacy-notice-body hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--hp-border);
}

/* En movil la tabla se desplaza dentro del aviso en lugar de ensanchar la pagina */
.hp-privacy-notice-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.hp-privacy-notice-body th,
.hp-privacy-notice-body td {
    padding: 8px 12px;
    border: 1px solid var(--hp-border);
    text-align: left;
    vertical-align: top;
}

.hp-privacy-notice-body th {
    background: var(--hp-surface-muted);
    font-weight: 700;
}

.hp-privacy-notice-footer {
    display: flex;
    justify-content: flex-end;
}

/* ---------- Pasos del formulario ---------- */

.hp-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.hp-stepper-item {
    padding-top: 12px;
    border-top: 4px solid var(--hp-border);
    color: var(--hp-text-subtle);
    font-size: 15px;
    line-height: 1.35;
}

.hp-stepper-item.is-active,
.hp-stepper-item.is-done {
    border-top-color: var(--hp-primary);
    color: var(--hp-primary);
}

.hp-stepper-item.is-active {
    font-weight: 700;
}

.hp-stepper-item.is-done::after {
    content: " ✓";
}

.js .hp-step:not(.is-active) {
    display: none;
}

html:not(.js) .hp-step + .hp-step {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--hp-border);
}

.hp-step-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    outline: none;
}

.hp-step-lead {
    margin: 8px 0 28px;
    color: var(--hp-text-muted);
    font-size: 18px;
}

.hp-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--hp-border);
}

.hp-step-footer > :only-child {
    margin-left: auto;
}

.hp-step-footnote {
    color: var(--hp-text-muted);
    font-size: 15px;
}

.hp-subtitle {
    margin: 36px 0 16px;
    font-size: 20px;
    font-weight: 700;
}

/* Hoja de vida */

.hp-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    border: 2px dashed var(--hp-border-strong);
    border-radius: 12px;
    background: var(--hp-surface-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hp-dropzone:hover,
.hp-dropzone.is-dragover {
    border-color: var(--hp-primary);
    background: var(--hp-primary-soft);
}

.hp-dropzone:focus-within {
    border-color: var(--hp-focus);
    box-shadow: 0 0 0 3px var(--hp-focus-ring);
}

.js .hp-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hp-dropzone-icon {
    display: inline-flex;
    color: var(--hp-primary);
}

.hp-dropzone-icon .hp-icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.6;
}

.hp-dropzone-title {
    font-size: 19px;
    font-weight: 700;
}

.hp-dropzone-or {
    color: var(--hp-text-subtle);
    font-size: 15px;
}

.hp-dropzone-hint {
    color: var(--hp-text-muted);
    font-size: 15px;
}

.hp-file {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
}

.hp-file-icon {
    display: inline-flex;
    color: var(--hp-primary);
}

.hp-file-text {
    display: grid;
    flex: 1;
    min-width: 0;
}

.hp-file-name {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-file-size {
    color: var(--hp-text-subtle);
    font-size: 14px;
}

/* Avisos */

.hp-notice,
.hp-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--hp-radius-sm);
    font-size: 15.5px;
    line-height: 1.5;
}

.hp-notice {
    margin-top: 24px;
}

.hp-notice .hp-icon,
.hp-alert .hp-icon {
    margin-top: 1px;
}

.hp-notice-warning {
    background: var(--hp-warning-soft);
    color: var(--hp-warning-text);
}

.hp-notice-warning .hp-icon {
    color: var(--hp-warning-icon);
}

.hp-notice-info {
    margin: 0 0 28px;
    background: var(--hp-primary-soft);
    color: var(--hp-info-text);
}

.hp-notice-info .hp-icon {
    color: var(--hp-primary);
}

.hp-alert {
    margin-bottom: 28px;
}

.hp-alert-error {
    border: 1px solid var(--hp-danger);
    background: var(--hp-danger-soft);
    color: var(--hp-danger-text);
}

.hp-alert-error p + p {
    margin-top: 4px;
}

/* Campos */

.hp-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.hp-fieldset + .hp-fieldset {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--hp-border);
}

/* float saca la leyenda del borde del fieldset para que el separador superior no la atraviese */
.hp-fieldset > legend {
    float: left;
    width: 100%;
}

.hp-fieldset > legend + * {
    clear: both;
}

.hp-fieldset-title {
    margin-bottom: 18px;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
}

.hp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hp-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hp-field-wide {
    grid-column: 1 / -1;
}

.hp-field label {
    margin-bottom: 8px;
    font-size: 15.5px;
    font-weight: 600;
}

.hp-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--hp-border-strong);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-input);
    color: var(--hp-text);
    font: inherit;
    font-size: 16.5px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hp-input::placeholder {
    color: var(--hp-text-subtle);
}

.hp-input:focus {
    border-color: var(--hp-focus);
    box-shadow: 0 0 0 3px var(--hp-focus-ring);
    outline: none;
}

.hp-input.input-validation-error,
.hp-input[aria-invalid="true"] {
    border-color: var(--hp-danger);
}

.hp-select {
    padding-right: 44px;
    appearance: none;
    background-image: var(--hp-select-arrow);
    background-position: right 14px center;
    background-repeat: no-repeat;
}

.hp-textarea {
    height: auto;
    min-height: 128px;
    padding: 14px 16px;
    resize: vertical;
}

.hp-field-error {
    display: block;
    margin-top: 6px;
    color: var(--hp-danger);
    font-size: 14.5px;
    font-weight: 500;
}

.hp-field-error:empty {
    display: none;
}

.hp-field-ok {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: var(--hp-success);
    font-size: 14.5px;
    font-weight: 600;
}

.hp-field-ok .hp-icon {
    width: 16px;
    height: 16px;
}

.hp-field-hint {
    margin-top: 6px;
    color: var(--hp-text-subtle);
    font-size: 14.5px;
}

/* Preguntas */

.hp-question + .hp-question {
    margin-top: 30px;
}

.hp-question-title {
    margin-bottom: 14px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.hp-field label.hp-question-title {
    margin-bottom: 12px;
    font-size: 18px;
}

.hp-options {
    display: grid;
    gap: 14px;
}

.hp-options-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-options-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hp-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 18px;
    border: 1px solid var(--hp-border-strong);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface);
    font-size: 16.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.hp-option:hover {
    border-color: var(--hp-text-subtle);
}

.hp-option:has(input:checked) {
    border-color: var(--hp-primary);
    background: var(--hp-primary-soft);
    box-shadow: inset 0 0 0 1px var(--hp-primary);
}

.hp-option:has(input:focus-visible) {
    box-shadow: 0 0 0 3px var(--hp-focus-ring);
}

.hp-option input,
.hp-consent input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--hp-primary);
}

/* Revision */

.hp-summary {
    border: 1px solid var(--hp-border);
    border-radius: 12px;
}

.hp-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
}

.hp-summary-row + .hp-summary-row {
    border-top: 1px solid var(--hp-border);
}

.hp-summary-row > div {
    min-width: 0;
}

.hp-summary-main {
    margin-top: 2px;
    font-size: 16.5px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.hp-summary-detail {
    color: var(--hp-text-muted);
    font-size: 15px;
}

.hp-privacy-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.hp-tile {
    padding: 16px 18px;
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface-muted);
    font-size: 15px;
}

.hp-tile p:not(.hp-tile-title) {
    color: var(--hp-text-muted);
}

.hp-tile-title {
    font-weight: 700;
}

.hp-consents {
    border-top: 1px solid var(--hp-border);
}

.hp-consent {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--hp-border);
    font-size: 16.5px;
    line-height: 1.55;
    cursor: pointer;
}

.hp-consent input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.hp-consent-optional {
    border-bottom: 0;
    color: var(--hp-text-muted);
}

.hp-optional-tag {
    color: var(--hp-text-subtle);
    font-weight: 600;
}

.hp-consents .hp-field-error {
    margin: -12px 0 12px 38px;
}

.hp-submit {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ---------- Dialogos ---------- */

.hp-dialog {
    width: calc(100% - 32px);
    max-width: 640px;
    max-height: calc(100vh - 64px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: var(--hp-surface);
    color: var(--hp-text);
    box-shadow: 0 24px 60px var(--hp-shadow-color);
}

.hp-dialog-wide {
    max-width: 880px;
}

.hp-dialog::backdrop {
    background: var(--hp-backdrop);
}

.hp-dialog[open] {
    display: flex;
    flex-direction: column;
}

.hp-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 16px 28px;
    border-bottom: 1px solid var(--hp-border);
}

.hp-dialog-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.hp-dialog-body {
    padding: 24px 28px 32px;
    overflow-y: auto;
}

/* ---------- Confirmacion ---------- */

.hp-done {
    max-width: 830px;
    margin: 0 auto;
}

.hp-done-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--hp-success-soft);
    color: var(--hp-success);
}

.hp-done-icon .hp-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.4;
}

.hp-done-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-align: center;
}

.hp-done-lead {
    max-width: 580px;
    margin: 14px auto 0;
    color: var(--hp-text-muted);
    font-size: 18px;
    text-align: center;
}

.hp-done-lead strong {
    color: var(--hp-text);
}

.hp-chip-reference {
    display: table;
    margin: 18px auto 0;
    font-weight: 600;
}

.hp-done .hp-subtitle {
    margin-top: 0;
}

.hp-timeline {
    display: grid;
    gap: 20px;
    padding: 0;
    list-style: none;
}

.hp-timeline li {
    display: flex;
    gap: 16px;
}

.hp-timeline-number {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--hp-border);
    color: var(--hp-chip-text);
    font-size: 14px;
    font-weight: 700;
}

.hp-timeline li.is-current .hp-timeline-number {
    background: var(--hp-primary);
    color: var(--hp-on-primary);
}

.hp-timeline-title {
    font-size: 17px;
    font-weight: 700;
}

.hp-done-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-weight: 600;
}

/* ---------- Pantallas medianas y pequeñas ---------- */

@media (max-width: 1080px) {
    .hp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-options-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .hp-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "main"
            "aside"
            "protected";
    }

    /* En el detalle, la tarjeta para aplicar va antes de la descripcion */
    .hp-layout-detail {
        grid-template-areas:
            "aside"
            "main"
            "protected";
    }

    .hp-privacy-tiles {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    :root {
        --hp-gutter: 16px;
    }

    .hp-page {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .hp-card-padded {
        padding: 28px 20px;
    }

    .hp-hero {
        padding: 48px 0 104px;
    }

    .hp-hero-title {
        font-size: 40px;
    }

    .hp-hero-lead {
        font-size: 17px;
    }

    .hp-job-title {
        font-size: 30px;
    }

    .hp-step-title {
        font-size: 26px;
    }

    .hp-position {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .hp-listing-header {
        flex-direction: column;
        gap: 2px;
    }

    .hp-grid,
    .hp-columns,
    .hp-options-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-stepper {
        gap: 6px;
        margin-bottom: 28px;
    }

    .hp-stepper-item {
        font-size: 12.5px;
    }

    .hp-brand-section,
    .hp-brand-divider {
        display: none;
    }

    .hp-header-link {
        font-size: 15px;
    }

    .hp-footer-inner {
        flex-direction: column;
    }

    .hp-footer-powered {
        align-items: flex-start;
    }

    .hp-summary-row {
        align-items: flex-start;
    }

    .hp-step-footer .hp-btn {
        flex: 1;
    }

    .hp-submit {
        width: 100%;
    }

    .hp-submit .hp-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
