/* Identidad del portal de empleos: referencia visual Jobtex, no copia del tema.
   Conservamos el icono azul de Centro Educatic; el verde distingue esta plataforma. */
:root {
    --brand: #159b80;
    --brand-dark: #107a65;
    --brand-soft: #eaf8f3;
    --navy: #17352f;
    --muted: #5d7169;
    --line: #dfece5;
    --surface-soft: #f7faf8;
    --shadow-sm: 0 8px 24px rgba(14, 76, 56, .05);
    --shadow-md: 0 18px 42px rgba(14, 76, 56, .09);
}
body {
    color: var(--navy);
    background: radial-gradient(circle at top right, rgba(21,155,128,.055), transparent 360px), #f7faf8;
}
.navbar { background: rgba(255,255,255,.97); border-bottom-color: #e3ede8; }
.brand-mark { background: linear-gradient(145deg, #2563eb, #1d4ed8); }
.nav-link:hover, .nav-link.active, .nav-dropdown > summary:hover, .nav-dropdown[open] > summary {
    background: #eaf8f3;
    color: #107a65;
}
.nav-auth-actions a.nav-signin {
    color: #107a65;
    background: #eaf8f3;
    border-color: #c7e6d8;
}
.nav-auth-actions a.nav-signin:hover {
    color: #0d6655;
    background: #def5e9;
    border-color: #a9d9c7;
}
.nav-auth-actions a.nav-signup {
    color: #fff;
    background: linear-gradient(135deg, #159b80, #1ca58b);
    border-color: #159b80;
    box-shadow: 0 7px 17px rgba(21,155,128,.14);
}
.nav-auth-actions a.nav-signup:hover {
    color: #fff;
    background: linear-gradient(135deg, #107a65, #159b80);
    box-shadow: 0 10px 22px rgba(21,155,128,.21);
}
.nav-auth-actions a:focus-visible { outline-color: #98dbc2; }
.portal-social-strip { background: #17352f; border-bottom-color: #2b4e43; }
.portal-social-message span { color: #77e1bb; }
h1, h2, h3 { color: #17352f; }
.card, .filter-card, .job-card, .feature-card, .partner-card, .quick-link-card, .audience-card {
    border-color: #e0ece5;
}
.job-card {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.job-card:hover {
    border-color: #bedfcf;
    box-shadow: 0 14px 32px rgba(19,90,65,.08);
    transform: translateY(-2px);
}
.job-card h2 a:hover, .job-card-employer a:hover { color: #107a65; }
.quick-link-card:hover { border-color: #b4dbc8; background: #f0fbf5; }
.jobs-directory-hero {
    margin-bottom: 22px;
    padding: 28px;
    border-radius: 19px;
    background: linear-gradient(110deg, #eaf8f3, #f6fcf9);
}
.jobs-directory-hero .eyebrow { color: #107a65; }
.apply-card { border-color: #bde3cf; background: linear-gradient(145deg, #eaf8f3, #fff); }
.job-detail-hero { border-color: #e0ece5; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline-color: #159b80;
}
.portal-footer {
    background: radial-gradient(circle at top right, rgba(21,155,128,.12), transparent 330px), #122a25;
    border-top-color: #294c41;
}
@media (prefers-reduced-motion: reduce) {
    .job-card { transition: none; }
    .job-card:hover { transform: none; }
}
/* Ubicaciones para publicidad: solo visibles en modo vista previa.
   Los tamaños evitan saltos cuando se integre el proveedor real. */
.portal-ad {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #b9cfc5;
    border-radius: 14px;
    background: #f0f5f2;
    color: #657b70;
    text-align: center;
}
.portal-ad--horizontal { min-height: 112px; margin: 30px 0 8px; }
.portal-ad--rectangle { min-height: 250px; margin: 22px 0 0; }
.portal-ad-label {
    position: absolute;
    top: 10px;
    left: 14px;
    color: #687b72;
    font-size: .67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}
.portal-ad p { margin: 0; padding: 16px; font-size: .83rem; }
@media (max-width: 900px) {
    .jobs-directory-hero { padding: 22px; }
    .portal-ad--rectangle { min-height: 180px; }
}

/* Identidad: Centro Educatic conserva el azul, EMPLEOS adopta verde esmeralda. */
.brand {
    gap: 12px;
}
.brand-mark {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(37,99,235,.18);
}
.brand-icon { width: 25px; height: 25px; }
.brand-copy { gap: 3px; }
.brand-name { display: block; color: #17352f; font-size: 1rem; font-weight: 850; letter-spacing: -.035em; }
.brand-name-accent { color: #2563eb; }
.brand-copy small {
    justify-self: start;
    display: inline-block;
    margin-top: 1px;
    padding: 3px 7px;
    border-radius: 5px;
    background: #e3f7ec;
    color: #0b8067;
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .12em;
}
.navbar .container { min-height: 81px; }
.nav-actions .nav-link, .nav-actions .nav-dropdown > summary { font-weight: 750; }

/* Tarjetas laborales con ícono identificador y lectura más clara. */
.job-card-identity-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.job-card-avatar {
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid #bfe9d5;
    border-radius: 13px;
    background: #eaf9f1;
    color: #149b80;
}
.job-card-avatar svg { display: block; width: 23px; height: 23px; }
.job-card-identity-copy { min-width: 0; flex: 1; }
.job-card-identity-copy h2 { overflow-wrap: anywhere; }
.job-card-identity-copy .job-card-employer { margin-top: 4px; color: #697b71; }
.job-card .badge.success { background: #eaf9f0; color: #137b5f; }
.job-card .badge.brand { background: #eff6ff; color: #2563eb; }
.job-card .job-card-footer .button.primary { background: #159b80; border-color: #159b80; }
.job-card .job-card-footer .button.primary:hover { background: #107a65; border-color: #107a65; }
.job-card .job-card-footer { gap: 12px; }
.job-card .meta-row { gap: 8px; }
.job-card-published { font-size: .73rem; color: #788b81; }
.job-card .meta-item { font-size: .82rem; }
@media (max-width: 620px) {
    .navbar .container { min-height: 0; }
    .brand-mark { width: 41px; height: 41px; }
    .brand-name { font-size: .93rem; }
}


/* Tarjetas renovadas para listados y portada: iconos vectoriales y metadatos alineados. */
.job-card {
    border: 1px solid #e0ebe6;
    border-radius: 18px;
    background: #fff;
    padding: 23px;
    gap: 15px;
    box-shadow: 0 10px 29px rgba(21, 75, 56, .04);
}
.job-card:hover { border-color: #b7d9c8; box-shadow: 0 15px 35px rgba(22,83,61,.085); }
.job-card-topline { gap: 10px; }
.job-card-topline .badge { border-radius: 7px; padding: 5px 9px; }
.job-card-identity-row { gap: 13px; }
.job-card-avatar {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
}
.job-card-avatar--company { border-color: #cadbfb; background: #eef4ff; color: #2563eb; }
.job-card-avatar--public { border-color: #c6e7d5; background: #e8f8ef; color: #11866a; }
.job-card-identity-copy { display: flex; flex-direction: column; gap: 5px; }
.job-card-identity-copy h2 { margin: 0; line-height: 1.34; font-size: 1.08rem; }
.job-card-identity-copy h2 a { color: #1b3c30; text-decoration: none; }
.job-card-employer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    margin-top: 2px;
    font-size: .83rem;
    line-height: 1.45;
}
.job-card-employer svg {
    display: block;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: #87a395;
}
.job-card-employer-name { min-width: 0; overflow-wrap: anywhere; }
.job-card-facts { gap: 10px 16px; align-items: center; }
.job-card-facts .meta-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    color: #526d5e;
    line-height: 1.5;
}
.job-card-facts .meta-item svg {
    display: inline-block;
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: #159b80;
}
.job-card-published {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #73877c;
    white-space: nowrap;
    font-size: .72rem;
}
.job-card-published svg { width: 14px; height: 14px; color: #94a99d; }
.job-card-footer {
    border-top: 1px solid #e8f1eb;
    padding-top: 15px;
    gap: 15px;
}
.job-deadline { display: flex; align-items: flex-start; gap: 7px; line-height: 1.55; }
.job-deadline > svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: #159b80; }
.job-card-detail {
    min-height: 37px;
    padding: 8px 12px;
    gap: 5px;
    font-size: .77rem;
    border-radius: 9px;
    white-space: nowrap;
}
.job-card-detail svg { width: 14px; height: 14px; }
@media (max-width: 620px) {
    .job-card { padding: 19px; }
    .job-card-footer { align-items: center; flex-direction: row; }
}
@media (max-width: 390px) {
    .job-card-footer { flex-direction: column; align-items: stretch; }
    .job-card-detail { align-self: stretch; }
}


/* =============================================================
   Tarjetas laborales premium (compartidas por portada y listado)
   ============================================================= */
.job-card--premium {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    gap: 17px;
    padding: clamp(19px, 2.3vw, 26px);
    border: 1px solid #dfeee5;
    border-radius: 20px;
    background: linear-gradient(156deg, #fff 0%, #fff 72%, #f7fcf9 100%);
    box-shadow: 0 9px 29px rgba(12, 84, 60, .048);
    transition: border-color .26s ease, transform .26s ease, box-shadow .26s ease;
}
.job-card--premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
    background: linear-gradient(90deg, #139b7f, #85deac 55%, transparent);
    opacity: .68;
    transition: opacity .25s ease;
}
.job-card--company::before { background: linear-gradient(90deg, #2563eb, #9ac7ff 55%, transparent); }
.job-card--expired::before { background: linear-gradient(90deg, #a8b2ba, #eef0f2 55%, transparent); }
.job-card--premium::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -115px;
    right: -115px;
    width: 225px;
    height: 225px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21,155,128,.07), rgba(21,155,128,0) 72%);
    pointer-events: none;
}
.job-card--company::after { background: radial-gradient(circle, rgba(37,99,235,.07), rgba(37,99,235,0) 72%); }
.job-card--premium:hover,
.job-card--premium:focus-within {
    transform: translateY(-5px);
    border-color: #a8d9c2;
    box-shadow: 0 22px 44px rgba(17,99,72,.12);
}
.job-card--company:hover,
.job-card--company:focus-within { border-color: #bdd5fb; box-shadow: 0 22px 44px rgba(36,85,156,.10); }
.job-card--premium:hover::before,
.job-card--premium:focus-within::before { opacity: 1; }
.job-card--premium .job-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.job-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.job-card--premium .job-card-status,
.job-card--premium .job-card-origin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid #d4ebdd;
    border-radius: 8px;
    font-size: .66rem;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: .025em;
    white-space: normal;
}
.job-card--premium .job-card-status.success { color: #0b8061; border-color: #cef0dd; background: #e7f8ed; }
.job-card--premium .job-card-status.danger { color: #ad5552; border-color: #f1d5d4; background: #fff0f0; }
.job-card-status-dot {
    display: inline-block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16b687;
    box-shadow: 0 0 0 3px #c9f3e1;
}
.job-card-status.danger .job-card-status-dot { background: #d77070; box-shadow: 0 0 0 3px #f7dada; }
.job-card--premium .job-card-origin { border-color: #d9e7fb; color: #2863b8; background: #f0f6ff; }
.job-card--premium .job-card-origin svg { flex: none; width: 13px; height: 13px; }
.job-card--premium .job-card-published {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #798c82;
    white-space: nowrap;
    font-size: .7rem;
    line-height: 1.55;
}
.job-card--premium .job-card-avatar {
    display: grid;
    flex: 0 0 55px;
    place-items: center;
    width: 55px;
    height: 55px;
    border: 1px solid #c0e7d0;
    border-radius: 16px;
    background: linear-gradient(145deg, #def6e9, #f2fdf7);
    color: #12886c;
    box-shadow: 0 7px 14px rgba(22,120,77,.065);
    transition: transform .3s ease, box-shadow .3s ease;
}
.job-card--premium .job-card-avatar--company {
    border-color: #cfdefd;
    color: #2a68dd;
    background: linear-gradient(145deg,#e4edff,#f6f9ff);
}
.job-card--premium .job-card-avatar svg { width: 27px; height: 27px; }
.job-card--premium:hover .job-card-avatar { transform: rotate(-5deg) translateY(-2px); box-shadow: 0 12px 23px rgba(22,120,77,.12); }
.job-card--premium .job-card-identity-copy { gap: 8px; }
.job-card--premium h2 { margin: 0; font-size: 1.09rem; font-weight: 850; line-height: 1.38; letter-spacing: -.02em; }
.job-card--premium h2 a { color: #183e31; overflow-wrap: anywhere; }
.job-card--premium h2 a:hover { color: #0a9271; }
.job-card--premium .job-card-employer { display: flex; gap: 7px; color: #688076; font-weight: 650; line-height: 1.45; }
.job-card--premium .job-card-employer > svg { flex: none; width: 16px; height: 16px; color: #6aaa8e; }
.job-card--premium .job-card-facts {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}
.job-card--premium .job-card-facts .meta-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 10px;
    max-width: 100%;
    border: 1px solid #e6f1ea;
    border-radius: 9px;
    background: #f7fbf9;
    color: #597366;
    font-size: .77rem;
    font-weight: 650;
    line-height: 1.4;
}
.job-card--premium .job-card-facts .meta-item svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; color: #159b80; }
.job-card--premium .job-card-facts .meta-item span { overflow-wrap: anywhere; }
.job-card--premium .job-card-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.job-card--premium .job-card-category {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce9e0;
    border-radius: 7px;
    padding: 6px 10px;
    background: #fff;
    color: #4f7360;
    font-size: .73rem;
    font-weight: 700;
    text-decoration: none;
}
.job-card--premium a.job-card-category:hover { background: #e9f8ef; border-color: #a3d6ba; color: #0b795a; }
.job-card--premium .job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e4f0e8;
}
.job-card--premium .job-deadline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #658174;
    font-size: .77rem;
    line-height: 1.5;
}
.job-card--premium .job-deadline strong { display: block; color: #1e5742; font-size: .81rem; }
.job-card--premium .job-deadline > svg { color: #138c6f; }
.job-card--premium .job-card-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid #159b80;
    border-radius: 10px;
    background: #159b80;
    color: #fff;
    box-shadow: 0 6px 16px rgba(21,155,128,.13);
    font-size: .78rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    transition: background .22s ease, box-shadow .22s ease;
}
.job-card--premium .job-card-detail:hover {
    background: #107a65;
    border-color: #107a65;
    color: #fff;
    box-shadow: 0 10px 19px rgba(21,155,128,.2);
}
.job-card--premium .job-card-detail svg { width: 15px; height: 15px; transition: transform .22s ease; }
.job-card--premium .job-card-detail:hover svg { transform: translate(2px,-2px); }
.job-card--premium a:focus-visible { outline: 3px solid #81dfb8; outline-offset: 3px; }
@media (max-width: 700px) {
    .job-card--premium { padding: 19px; gap: 14px; }
    .job-card--premium .job-card-topline { flex-wrap: wrap; }
    .job-card--premium .job-card-identity-row { gap: 10px; }
    .job-card--premium .job-card-avatar { flex-basis: 47px; width: 47px; height: 47px; border-radius: 13px; }
}
@media (max-width: 405px) {
    .job-card--premium .job-card-footer { flex-direction: column; align-items: stretch; }
    .job-card--premium .job-card-detail { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .job-card--premium,
    .job-card--premium .job-card-avatar,
    .job-card--premium .job-card-detail,
    .job-card--premium .job-card-detail svg { transition: none !important; }
    .job-card--premium:hover,
    .job-card--premium:focus-within,
    .job-card--premium:hover .job-card-avatar,
    .job-card--premium .job-card-detail:hover svg { transform: none !important; }
}
