/* Centro Educatic Empleos — catálogo y fichas públicas de categorías.
   Identidad: verde esmeralda + acentos azules. CSS aislado de /categorias. */

.categories-breadcrumb {
    display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:24px 0 20px;
    color:#758c7d;font-size:.78rem;font-weight:700;
}
.categories-breadcrumb a { color:#28765d;text-decoration:none; }
.categories-breadcrumb a:hover { color:#0b8c67;text-decoration:underline;text-underline-offset:3px; }
.categories-breadcrumb svg { width:13px;height:13px;color:#9db7a6; }
.categories-breadcrumb span[aria-current="page"] {color:#284e3e;overflow-wrap:anywhere;}
.categories-hero {
    position:relative;isolation:isolate;overflow:hidden;display:grid;
    grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);
    align-items:center;gap:26px;min-height:330px;
    padding:clamp(28px,4.3vw,52px);border:1px solid #dbece2;border-radius:27px;
    background:linear-gradient(118deg,#ecf9f2 0%,#f8fdfa 64%,#e8f5ef 100%);
    box-shadow:0 18px 44px rgba(28,93,62,.065);
}
.categories-hero::after {
    content:"";position:absolute;z-index:-1;top:-185px;right:-170px;width:455px;height:455px;
    border-radius:50%;background:rgba(21,155,128,.052);pointer-events:none;
}
.categories-hero--detail {background:linear-gradient(114deg,#f1f8ff,#f7fcfb 65%,#e6f7f0);border-color:#dae9ec;}
.categories-hero-copy {position:relative;z-index:2;min-width:0;}
.categories-eyebrow {
    display:inline-flex;align-items:center;gap:9px;margin:0 0 17px;
    color:#11836a;font-size:.72rem;font-weight:850;letter-spacing:.095em;line-height:1.45;
}
.categories-eyebrow svg {width:18px;height:18px;}
.categories-hero h1 {
    max-width:740px;margin:0 0 18px;color:#173d30;
    font-size:clamp(2.1rem,3.85vw,3.45rem);line-height:1.1;letter-spacing:-.055em;
    font-weight:850;text-wrap:balance;
}
.categories-hero h1 span {color:#13987a;}
.categories-hero-copy > p {max-width:630px;margin:0;color:#5b7467;font-size:.97rem;line-height:1.7;}
.categories-hero-facts {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:23px;}
.categories-hero-facts > span {
    display:inline-flex;align-items:center;gap:7px;padding:9px 12px;
    border:1px solid #cce8d9;border-radius:9px;background:rgba(255,255,255,.84);
    color:#4c735f;font-size:.76rem;font-weight:750;line-height:1.4;
}
.categories-hero-facts svg {width:16px;height:16px;color:#13997d;}
.categories-hero-facts strong {font-variant-numeric:tabular-nums;color:#117b60;font-weight:900;}
.categories-hero-art {position:relative;display:grid;place-items:center;min-height:249px;}
.categories-hero-orbit {
    position:absolute;width:min(100%,250px);aspect-ratio:1;border-radius:50%;
    border:1px solid #c7e4d4;background:radial-gradient(circle,#fff 5%,#ebf9f1 80%);
    box-shadow:0 0 0 22px rgba(36,166,123,.045);
}
.categories-hero-orbit::after {
    content:"";position:absolute;inset:22px;border:1px dashed #bcdcc9;border-radius:50%;
}
.categories-hero-main {
    display:grid;place-items:center;position:relative;z-index:1;width:128px;height:128px;
    border:1px solid #c0e6d0;border-radius:33px;background:linear-gradient(145deg,#fff,#dcf5e5);
    color:#159b80;box-shadow:0 17px 36px rgba(21,96,61,.13);
    transform:rotate(-7deg);animation:categoryFloat 5.5s ease-in-out infinite;
}
.categories-hero--detail .categories-hero-main {background:linear-gradient(145deg,#fff,#e3efff);color:#2563eb;border-color:#cfe0f8;}
.categories-hero-main svg {width:69px;height:69px;stroke-width:1.45;transform:rotate(7deg);}
.categories-hero-float {
    position:absolute;z-index:2;display:inline-flex;align-items:center;gap:7px;
    padding:10px 12px;border:1px solid #dbe9dd;border-radius:12px;
    background:#fff;box-shadow:0 10px 23px rgba(25,95,64,.1);
    color:#217258;font-size:.75rem;font-weight:850;white-space:nowrap;
}
.categories-hero-float svg {width:17px;height:17px;}
.categories-hero-float--one {left:-3%;top:12%;transform:rotate(-5deg);}
.categories-hero-float--two {right:0;bottom:14%;transform:rotate(5deg);}
.category-hero-actions {display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin-top:23px;}
.category-hero-actions a {
    display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;
    border-radius:10px;border:1px solid #c0dfce;background:#fff;color:#16785e;
    font-size:.8rem;font-weight:850;text-decoration:none;
    transition:transform .2s ease,border-color .2s ease;
}
.category-hero-actions a:last-child {background:#159b80;border-color:#159b80;color:#fff;}
.category-hero-actions a:hover {transform:translateY(-2px);border-color:#159b80;}
.category-hero-actions a svg {width:16px;height:16px;}

/* Listados, buscador y tarjetas */
.categories-directory,.categories-results,.categories-related {margin-top:40px;}
.categories-directory-heading {
    display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:23px;
}
.categories-section-eyebrow {
    display:inline-flex;align-items:center;gap:7px;margin:0 0 9px;color:#12896d;
    font-size:.72rem;letter-spacing:.105em;font-weight:850;
}
.categories-section-eyebrow svg {width:17px;height:17px;}
.categories-directory-heading h2 {
    margin:0 0 9px;color:#193f32;letter-spacing:-.045em;line-height:1.18;
    font-size:clamp(1.65rem,2.7vw,2.3rem);font-weight:850;
}
.categories-directory-heading p:not(.categories-section-eyebrow) {
    margin:0;max-width:650px;color:#657d6e;font-size:.9rem;line-height:1.65;
}
.categories-text-link {
    display:inline-flex;align-items:center;gap:7px;padding:10px 0;
    color:#128366;font-size:.8rem;font-weight:850;text-decoration:none;white-space:nowrap;
}
.categories-text-link:hover {color:#08644e;text-decoration:underline;text-underline-offset:3px;}
.categories-text-link svg {width:16px;height:16px;}
.categories-searchbar {
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 18px;align-items:center;
    margin-bottom:23px;padding:19px 22px;border:1px solid #dcece3;
    border-radius:17px;background:#fff;box-shadow:0 9px 26px rgba(22,85,61,.045);
}
.categories-searchbar label {grid-column:1/-1;color:#2a5341;font-size:.81rem;font-weight:850;}
.categories-search-control {position:relative;max-width:610px;min-width:0;}
.categories-search-control svg {
    position:absolute;left:14px;top:50%;width:19px;height:19px;color:#159b80;
    transform:translateY(-50%);pointer-events:none;
}
.categories-search-control input {
    display:block;width:100%;height:48px;padding:12px 13px 12px 43px;
    border:1px solid #d4e8db;border-radius:11px;background:#fbfffc;
    color:#254b39;font:inherit;font-size:.86rem;outline:0;
    transition:border-color .2s ease,box-shadow .2s ease;
}
.categories-search-control input:focus {border-color:#159b80;box-shadow:0 0 0 3px rgba(21,155,128,.13);}
.categories-search-control input::placeholder {color:#93a79a;}
.categories-search-count {margin:0;align-self:center;color:#648576;font-size:.76rem;font-weight:800;white-space:nowrap;}
.categories-card-grid {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;
}
.category-premium-card {
    --cat-accent:#159b80;--cat-soft:#eaf8f0;--cat-outline:#c6e8d4;
    display:flex;flex-direction:column;align-items:flex-start;position:relative;isolation:isolate;
    min-width:0;min-height:275px;padding:23px;overflow:hidden;
    border:1px solid #dcece3;border-radius:20px;
    background:linear-gradient(150deg,#fff 0%,#fff 73%,#f5fcf7 100%);
    box-shadow:0 10px 29px rgba(24,79,55,.045);color:#193f31;text-decoration:none;
    transition:transform .26s ease,border-color .26s ease,box-shadow .26s ease;
}
.category-premium-card--tone-1 {--cat-accent:#2563eb;--cat-soft:#eef4ff;--cat-outline:#d0dffa;}
.category-premium-card--tone-2 {--cat-accent:#ad781d;--cat-soft:#fff6e8;--cat-outline:#f0deb8;}
.category-premium-card--tone-3 {--cat-accent:#108c7c;--cat-soft:#e8f8f4;--cat-outline:#c5e6de;}
.category-premium-card::before {
    content:"";position:absolute;top:0;left:0;right:0;height:3px;
    background:linear-gradient(90deg,var(--cat-accent),transparent);
}
.category-premium-card:hover,
.category-premium-card:focus-visible {
    transform:translateY(-5px);border-color:var(--cat-outline);
    box-shadow:0 20px 39px rgba(22,87,60,.11);color:#193f31;
}
.category-premium-card:focus-visible {outline:3px solid #83dcb7;outline-offset:3px;}
.category-card-watermark {
    position:absolute;right:-14px;top:10px;z-index:0;
    width:148px;height:148px;color:var(--cat-accent);opacity:.055;
    transform:rotate(-16deg);pointer-events:none;transition:transform .3s ease,opacity .3s ease;
}
.category-card-watermark svg {width:148px;height:148px;stroke-width:1.25;}
.category-premium-card:hover .category-card-watermark {opacity:.095;transform:rotate(0) scale(1.04);}
.category-premium-card > :not(.category-card-watermark) {position:relative;z-index:1;}
.category-card-icon {
    display:grid;place-items:center;width:61px;height:61px;margin-bottom:18px;
    border:1px solid var(--cat-outline);border-radius:18px;background:var(--cat-soft);color:var(--cat-accent);
    transition:transform .3s ease;
}
.category-card-icon svg {width:31px;height:31px;stroke-width:1.6;}
.category-premium-card:hover .category-card-icon {transform:rotate(-6deg) translateY(-3px);}
.category-card-kicker {margin:0 0 7px;color:var(--cat-accent);font-size:.66rem;font-weight:850;letter-spacing:.11em;}
.category-card-title {font-size:1.16rem;line-height:1.31;letter-spacing:-.024em;overflow-wrap:anywhere;font-weight:850;color:#193c2e;}
.category-card-count {display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0 17px;color:#6a8375;font-size:.77rem;font-weight:700;}
.category-card-count strong {
    display:inline-grid;place-items:center;min-width:31px;height:30px;
    padding:5px 8px;border:1px solid var(--cat-outline);border-radius:9px;
    background:var(--cat-soft);color:var(--cat-accent);font-weight:900;font-size:.84rem;
    font-variant-numeric:tabular-nums;
}
.category-card-cta {
    display:inline-flex;align-items:center;gap:6px;margin-top:auto;
    color:var(--cat-accent);font-size:.81rem;font-weight:850;
}
.category-card-cta svg {width:16px;height:16px;transition:transform .2s ease;}
.category-premium-card:hover .category-card-cta svg {transform:translate(3px,-3px);}
.category-premium-card[hidden],.categories-empty[hidden] {display:none !important;}
.categories-empty {
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
    padding:48px 24px;border:1px dashed #bcdcc9;border-radius:18px;
    background:linear-gradient(150deg,#f3fbf6,#fff);text-align:center;
}
.categories-empty > span {
    display:grid;place-items:center;width:76px;height:76px;margin-bottom:6px;
    border-radius:22px;background:#e0f6e9;color:#159b80;
}
.categories-empty > span svg {width:39px;height:39px;}
.categories-empty h3 {margin:0;color:#183c30;font-size:1.25rem;}
.categories-empty p {max-width:550px;margin:0 0 6px;color:#6e8375;font-size:.88rem;line-height:1.6;}
.categories-empty a,.categories-empty button {
    display:inline-flex;align-items:center;gap:7px;padding:10px 15px;
    border:1px solid #159b80;border-radius:10px;background:#159b80;color:#fff;
    font:inherit;font-size:.81rem;font-weight:850;text-decoration:none;cursor:pointer;
}
.categories-empty a:hover,.categories-empty button:hover {background:#107a65;color:#fff;}
.categories-empty a svg {width:16px;height:16px;}
.categories-bottom-banner {
    display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap;
    margin:40px 0 28px;padding:24px 27px;border:1px solid #dce9ea;border-radius:19px;
    background:linear-gradient(110deg,#ecf8f1,#f0f6ff);box-shadow:0 11px 28px rgba(26,85,63,.04);
}
.categories-bottom-icon {display:grid;place-items:center;width:51px;height:51px;flex:0 0 51px;border-radius:14px;background:#e2f4eb;color:#159b80;}
.categories-bottom-icon svg {width:27px;height:27px;}
.categories-bottom-banner > div {flex:1;min-width:180px;}
.categories-bottom-banner h2 {margin:0 0 6px;font-size:1.15rem;color:#174533;}
.categories-bottom-banner p {margin:0;color:#647e70;font-size:.82rem;line-height:1.6;}
.categories-bottom-banner > a {
    display:inline-flex;align-items:center;gap:8px;padding:11px 15px;
    border:1px solid #159b80;border-radius:10px;background:#159b80;color:#fff;
    text-decoration:none;font-weight:850;font-size:.81rem;
    transition:transform .2s ease,background .2s ease;
}
.categories-bottom-banner > a:hover {transform:translateY(-2px);background:#107a65;color:#fff;}
.categories-bottom-banner > a svg {width:16px;height:16px;}

/* Detail view: shared job cards, real data, two columns. */
.categories-jobs-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.categories-jobs-grid .job-card--premium {min-height:305px;}
.categories-jobs-grid .job-card--premium.will-reveal.is-visible:hover {transform:translateY(-5px);}
.categories-related {margin:44px 0;}
.categories-related-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
.categories-related-grid .category-premium-card {padding:17px;min-height:245px;}
.categories-related-grid .category-card-icon {width:48px;height:48px;border-radius:13px;margin-bottom:11px;}
.categories-related-grid .category-card-icon svg {width:24px;height:24px;}
.categories-related-grid .category-card-title {font-size:1rem;}

@media (max-width:1050px) {
    .categories-related-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
    .categories-hero-art {min-height:225px;}
    .categories-hero-float--one {left:-20px;}
}
@media (max-width:850px) {
    .categories-card-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
    .categories-hero {grid-template-columns:1fr;gap:12px;}
    .categories-hero-art {display:none;}
}
@media (max-width:720px) {
    .categories-jobs-grid {grid-template-columns:1fr;}
    .categories-breadcrumb {margin-top:16px;}
    .categories-searchbar {grid-template-columns:1fr;padding:16px;}
    .categories-searchbar label {grid-column:auto;}
    .categories-search-count {justify-self:start;}
    .categories-bottom-banner > a {width:100%;justify-content:center;}
}
@media (max-width:560px) {
    .categories-hero {padding:25px 20px;border-radius:20px;min-height:0;}
    .categories-hero h1 {font-size:clamp(2rem,8.5vw,2.7rem);}
    .categories-hero-copy > p {font-size:.92rem;}
    .categories-card-grid {grid-template-columns:1fr;gap:12px;}
    .category-premium-card {min-height:237px;padding:19px;}
    .category-card-icon {margin-bottom:13px;}
    .categories-related-grid {grid-template-columns:1fr;}
    .categories-related-grid .category-premium-card {min-height:215px;}
    .category-hero-actions a {width:100%;}
}
@keyframes categoryFloat {
    0%,100% {transform:translateY(0) rotate(-7deg);}
    50% {transform:translateY(-9px) rotate(-4deg);}
}
@media (prefers-reduced-motion:reduce) {
    .categories-hero-main {animation:none !important;transform:none !important;}
    .category-premium-card,.category-card-icon,.category-card-watermark,
    .category-card-cta svg,.categories-bottom-banner > a {transition:none !important;}
    .category-premium-card:hover,.category-premium-card:focus-visible,
    .category-premium-card.will-reveal.is-visible:hover,
    .category-premium-card:hover .category-card-icon,.category-premium-card:hover .category-card-watermark,
    .category-premium-card:hover .category-card-cta svg,.categories-bottom-banner > a:hover {transform:none !important;}
}
/* The shared reveal animation should not cancel the intended hover transform. */
.category-premium-card.will-reveal.is-visible:hover {transform:translateY(-5px);}
@media (prefers-reduced-motion:reduce) {
    .category-premium-card.will-reveal.is-visible:hover {transform:none !important;}
}
