/*
 * Human Gestión
 * Identidad visual pública
 *
 * Regla:
 * - El contenido dinámico viene de PHP/BD.
 * - Este archivo controla exclusivamente presentación y experiencia visual.
 * - No modificar aquí lógica de negocio.
 */

:root {
    --hg-primary: #c6a04a;
    --hg-primary-dark: #96731f;
    --hg-primary-light: #e5cc83;
    --hg-dark: #111214;
    --hg-dark-2: #1b1d20;
    --hg-text: #1b1c1f;
    --hg-muted: #6f737b;
    --hg-light: #f6f5f2;
    --hg-white: #ffffff;
    --hg-border: #e8e5de;
    --hg-radius: 16px;
    --hg-radius-sm: 10px;
    --hg-shadow: 0 12px 38px rgba(0, 0, 0, .08);
    --hg-shadow-hover: 0 20px 55px rgba(0, 0, 0, .14);
    --hg-transition: 220ms ease;
}

/* =========================================================
   Base
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    color: var(--hg-text);
    background: var(--hg-white);
    font-family: "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    transition:
        color var(--hg-transition),
        background-color var(--hg-transition),
        border-color var(--hg-transition),
        box-shadow var(--hg-transition),
        transform var(--hg-transition),
        opacity var(--hg-transition);
}

img {
    max-width: 100%;
}

/* =========================================================
   Header público
   ========================================================= */

.hg-public-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, .985);
    border-bottom: 1px solid rgba(17, 18, 20, .07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hg-navbar {
    min-height: 88px;
    padding: .7rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .045);
}

.hg-navbar-container {
    max-width: 1440px;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

.hg-brand {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
}

.hg-brand-logo {
    display: block;
    width: auto;
    max-width: 154px;
    max-height: 48px;
    object-fit: contain;
}

.hg-brand-name {
    color: var(--hg-dark);
    font-family: "Oswald", sans-serif;
    font-size: 1.55rem;
    letter-spacing: .02em;
}

.hg-main-nav {
    align-items: center;
    gap: .5rem;
}

.hg-nav-link {
    position: relative;
    padding: .7rem 1rem !important;
    color: #25262a !important;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hg-nav-link::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .18rem;
    height: 1px;
    border-radius: 2px;
    background: var(--hg-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--hg-transition);
}

.hg-nav-link:hover,
.hg-nav-link:focus,
.hg-nav-link.is-active {
    color: var(--hg-primary-dark) !important;
}

.hg-nav-link:hover::after,
.hg-nav-link:focus::after,
.hg-nav-link.is-active::after {
    transform: scaleX(1);
}

.hg-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}

.hg-header-action,
.hg-cart-button,
.hg-user-button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .5rem .75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--hg-text);
    font-size: .86rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.hg-header-action:hover,
.hg-cart-button:hover,
.hg-user-button:hover {
    color: var(--hg-primary-dark);
    background: var(--hg-light);
    border-color: var(--hg-border);
}

.hg-header-action i,
.hg-cart-button i {
    font-size: 1.05rem;
}

.hg-user-button {
    cursor: pointer;
}

.hg-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--hg-dark);
    color: var(--hg-primary-light);
}

.hg-user-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hg-login-action {
    border-color: var(--hg-border);
}

.hg-cart-button {
    background: #0d0e10;
    color: var(--hg-white);
    border-top: 1px solid rgba(198, 160, 74, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.hg-cart-button:hover {
    background: var(--hg-primary-dark);
    border-color: var(--hg-primary-dark);
    color: var(--hg-white);
}

.hg-navbar-toggler {
    border-color: var(--hg-border) !important;
}

.hg-dropdown-menu {
    margin-top: .55rem !important;
    padding: .45rem;
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius-sm);
    box-shadow: var(--hg-shadow);
}

.hg-dropdown-item {
    border-radius: 7px;
    padding: .65rem .8rem;
}

.hg-dropdown-item:hover,
.hg-dropdown-item:focus {
    color: var(--hg-primary-dark);
    background: rgba(198, 160, 74, .10);
}

/* =========================================================
   Botones
   ========================================================= */

.btn-hg,
.btn-gold-hg {
    --bs-btn-color: var(--hg-white);
    --bs-btn-bg: var(--hg-primary);
    --bs-btn-border-color: var(--hg-primary);
    --bs-btn-hover-color: var(--hg-white);
    --bs-btn-hover-bg: var(--hg-primary-dark);
    --bs-btn-hover-border-color: var(--hg-primary-dark);
    --bs-btn-focus-shadow-rgb: 198, 160, 74;
    --bs-btn-active-color: var(--hg-white);
    --bs-btn-active-bg: var(--hg-primary-dark);
    --bs-btn-active-border-color: var(--hg-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .7rem 1.15rem;
    border-radius: 9px;
    font-weight: 700;
}

.btn-gold-hg {
    box-shadow: 0 9px 24px rgba(198, 160, 74, .22);
}

.btn-gold-hg:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(198, 160, 74, .28);
}

.btn-outline-hg {
    --bs-btn-color: var(--hg-primary-dark);
    --bs-btn-border-color: var(--hg-primary);
    --bs-btn-hover-color: var(--hg-white);
    --bs-btn-hover-bg: var(--hg-primary);
    --bs-btn-hover-border-color: var(--hg-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    border-radius: 9px;
    font-weight: 700;
}

/* =========================================================
   Hero / slider
   ========================================================= */

.hg-hero {
    position: relative;
    overflow: hidden;
    background: var(--hg-dark);
}

.hg-hero .swiper-slide {
    min-height: min(650px, calc(100vh - 88px));
}

.hg-hero .bg-img-cover {
    background-size: cover;
    background-position: center center;
    transform: scale(1.015);
}

.hg-hero .bg-dark.opacity-25 {
    opacity: .72 !important;
    background: linear-gradient(90deg, rgba(5, 6, 8, .86) 0%, rgba(5, 6, 8, .58) 38%, rgba(5, 6, 8, .18) 78%, rgba(5, 6, 8, .08) 100%) !important;
}

.hg-hero-content {
    position: relative;
    z-index: 2;
    color: var(--hg-white);
}

.hg-hero-eyebrow,
.hg-eyebrow {
    color: var(--hg-primary-light);
    font-family: "Oswald", sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hg-hero-title {
    max-width: 760px;
    margin-top: .15rem;
    color: var(--hg-white);
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.012em;
    text-wrap: balance;
}

.hg-hero-description {
    max-width: 610px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.65;
}

.hg-hero .swiper-pagination {
    bottom: 24px !important;
    z-index: 20;
}

.hg-hero .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 5px !important;
    background: rgba(255, 255, 255, .5);
    opacity: 1;
}

.hg-hero .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 20px;
    background: var(--hg-primary-light);
}

/* =========================================================
   Benefits
   ========================================================= */

.hg-benefits {
    position: relative;
    z-index: 5;
    background: var(--hg-dark);
    color: var(--hg-white);
}

.hg-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 118px;
    padding: 1.35rem 1.75rem;
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.col-md-4:last-child .hg-benefit {
    border-right: 0;
}

.hg-benefit-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(198, 160, 74, .45);
    border-radius: 50%;
    color: var(--hg-primary-light);
    font-size: 1.15rem;
    background: rgba(198, 160, 74, .045);
}

.hg-benefit-title {
    margin-bottom: .3rem;
    font-family: "Oswald", sans-serif;
    font-size: 1.02rem;
    letter-spacing: .015em;
}

.hg-benefit-text {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: .88rem;
    line-height: 1.5;
}

/* =========================================================
   Secciones
   ========================================================= */

.hg-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.hg-section-light {
    background: var(--hg-light);
}

.hg-section-carbon {
    background: var(--hg-dark);
    color: var(--hg-white);
}

.hg-section-title {
    margin-bottom: .7rem;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.015em;
}

.hg-section-carbon .hg-section-title {
    color: var(--hg-white);
}

.hg-section-subtitle {
    color: var(--hg-muted);
    max-width: 760px;
    line-height: 1.7;
}

.hg-section-carbon .hg-section-subtitle {
    color: rgba(255, 255, 255, .65);
}

/* =========================================================
   Categorías
   ========================================================= */

.hg-category-card {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--hg-radius);
    background: var(--hg-dark);
    color: var(--hg-white);
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
}

.hg-category-card img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    opacity: .74;
    transition: transform 450ms ease, opacity 450ms ease;
}

.hg-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .02) 25%, rgba(0, 0, 0, .82) 100%);
}

.hg-category-card:hover {
    color: var(--hg-white);
    transform: translateY(-5px);
    box-shadow: var(--hg-shadow-hover);
}

.hg-category-card:hover img {
    transform: scale(1.06);
    opacity: .62;
}

.hg-category-card-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 1.5rem;
}

.hg-category-card-title {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
}

.hg-category-card-line {
    width: 38px;
    height: 2px;
    margin-top: .8rem;
    background: var(--hg-primary-light);
    transition: width 280ms ease;
}

.hg-category-card:hover .hg-category-card-line {
    width: 70px;
}

/* =========================================================
   Cursos
   ========================================================= */

.hg-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius);
    background: var(--hg-white);
    box-shadow: 0 5px 24px rgba(0, 0, 0, .045);
    transition: transform var(--hg-transition), box-shadow var(--hg-transition), border-color var(--hg-transition);
}

.hg-course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(198, 160, 74, .45);
    box-shadow: var(--hg-shadow-hover);
}

.hg-course-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--hg-light);
}

.hg-course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.hg-course-card:hover .hg-course-card-image img {
    transform: scale(1.045);
}

.hg-course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.hg-course-card-category {
    margin-bottom: .55rem;
    color: var(--hg-primary-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hg-course-card-title {
    margin-bottom: .5rem;
    font-family: "Oswald", sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.28;
}

.hg-course-card-title a {
    color: var(--hg-text);
    text-decoration: none;
}

.hg-course-card-title a:hover {
    color: var(--hg-primary-dark);
}

.hg-course-card-description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hg-muted);
    font-size: .9rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hg-course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: 1.15rem;
}

.hg-course-card-price {
    color: var(--hg-primary-dark);
    font-size: 1.18rem;
    font-weight: 700;
}

/* =========================================================
   Banners
   ========================================================= */

.hg-banner {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--hg-radius);
    background: var(--hg-dark-2);
    color: var(--hg-white);
}

.hg-banner img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    opacity: .78;
    transition: transform 500ms ease;
}

.hg-banner:hover img {
    transform: scale(1.035);
}

.hg-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18));
}

.hg-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.hg-banner-title {
    max-width: 620px;
    color: var(--hg-white);
    font-family: "Oswald", sans-serif;
    font-weight: 600;
}

/* =========================================================
   Producto / formularios / mensajes
   ========================================================= */

.hg-product-image {
    overflow: hidden;
    border-radius: var(--hg-radius);
    background: var(--hg-light);
}

.hg-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hg-product-price {
    color: var(--hg-primary-dark);
    font-size: 1.75rem;
    font-weight: 700;
}

.hg-product-meta {
    color: var(--hg-muted);
    font-size: .92rem;
}

.hg-form-card {
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius);
    box-shadow: var(--hg-shadow);
    background: var(--hg-white);
}

.hg-form-card .form-control,
.hg-form-card .form-select {
    min-height: 46px;
    border-color: var(--hg-border);
    border-radius: 9px;
}

.hg-form-card .form-control:focus,
.hg-form-card .form-select:focus {
    border-color: var(--hg-primary);
    box-shadow: 0 0 0 .2rem rgba(198, 160, 74, .14);
}

.hg-message {
    border-radius: var(--hg-radius-sm);
}

/* =========================================================
   Footer
   ========================================================= */

.hg-public-footer {
    margin-top: 0;
    background: #0d0e10;
    color: rgba(255, 255, 255, .68);
}

.hg-public-footer a {
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
}

.hg-public-footer a:hover {
    color: var(--hg-primary-light);
}

.hg-public-footer-title {
    color: var(--hg-white);
    font-weight: 700;
}

.hg-public-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
}

/* =========================================================
   Utilidades
   ========================================================= */

.hg-muted {
    color: var(--hg-muted) !important;
}

.hg-gold {
    color: var(--hg-primary) !important;
}

.hg-bg-light {
    background: var(--hg-light) !important;
}

.hg-rounded {
    border-radius: var(--hg-radius) !important;
}

.hg-shadow {
    box-shadow: var(--hg-shadow) !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {
    .hg-navbar-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hg-main-nav {
        gap: 0;
    }

    .hg-nav-link {
        padding-left: .65rem !important;
        padding-right: .65rem !important;
    }

    .hg-header-action,
    .hg-cart-button,
    .hg-user-button {
        padding-left: .5rem;
        padding-right: .5rem;
    }
}

@media (max-width: 991.98px) {
    .hg-navbar {
        min-height: 74px;
    }

    .hg-navbar-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hg-brand-logo {
        max-width: 140px;
        max-height: 44px;
    }

    .hg-navbar-collapse {
        padding-top: 1rem;
    }

    .hg-main-nav {
        align-items: stretch;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hg-nav-link {
        padding: .7rem 0 !important;
    }

    .hg-nav-link::after {
        left: 0;
        right: auto;
        width: 34px;
        bottom: .35rem;
    }

    .hg-header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: .75rem;
        border-top: 1px solid var(--hg-border);
    }

    .hg-hero .swiper-slide,
    .hg-hero .container,
    .hg-hero .min-vh-75 {
        min-height: 590px;
    }

    .hg-hero-title {
        max-width: 620px;
        font-size: clamp(2.9rem, 7vw, 4.5rem);
    }

    .hg-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hg-benefit {
        min-height: 112px;
    }
}

@media (max-width: 767.98px) {
    .hg-hero .swiper-slide,
    .hg-hero .container,
    .hg-hero .min-vh-75 {
        min-height: 540px;
    }

    .hg-hero-title {
        font-size: clamp(2.5rem, 11vw, 3.7rem);
    }

    .hg-hero-description {
        font-size: 1rem;
    }

    .hg-benefit {
        min-height: auto;
        padding: 1.15rem 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .10);
    }

    .col-md-4:last-child .hg-benefit {
        border-bottom: 0;
    }

    .hg-section {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .hg-category-card,
    .hg-category-card img {
        min-height: 250px;
    }

    .hg-banner,
    .hg-banner img {
        min-height: 240px;
    }

    .hg-banner-content {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .hg-brand-logo {
        max-width: 132px;
        max-height: 42px;
    }

    .hg-header-action span,
    .hg-cart-button span {
        display: inline;
    }

    .hg-course-card-body {
        padding: 1rem;
    }

    .hg-course-card-footer {
        align-items: flex-end;
    }
}


/* =========================================================
   HUMAN GESTIÓN — CATÁLOGO DE CURSOS
   Iteración 1
   ========================================================= */

.hg-catalog {
    background: var(--hg-white);
}

.hg-catalog-header {
    padding: 4.75rem 0 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
    border-bottom: 1px solid var(--hg-border);
}

.hg-catalog-title {
    margin: 0 0 1rem;
    color: var(--hg-dark);
    font-family: "Oswald", sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.025em;
}

.hg-catalog-description {
    max-width: 680px;
    margin: 0;
    color: var(--hg-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.hg-catalog-search {
    width: 100%;
}

.hg-search-field {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: .35rem .35rem .35rem 1.1rem;
    border: 1px solid #dcd8cf;
    border-radius: 12px;
    background: var(--hg-white);
    box-shadow: 0 10px 35px rgba(0,0,0,.055);
    transition: border-color var(--hg-transition), box-shadow var(--hg-transition);
}

.hg-search-field:focus-within {
    border-color: var(--hg-primary);
    box-shadow: 0 12px 40px rgba(0,0,0,.09);
}

.hg-search-field > i {
    flex: 0 0 auto;
    margin-right: .65rem;
    color: var(--hg-muted);
    font-size: 1.15rem;
}

.hg-search-field input {
    min-width: 0;
    flex: 1 1 auto;
    height: 48px;
    padding: 0 .4rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--hg-text);
    font-size: .95rem;
}

.hg-search-field input::placeholder {
    color: #96999f;
}

.hg-search-button {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 8px;
    background: var(--hg-dark);
    color: var(--hg-white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--hg-transition), transform var(--hg-transition);
}

.hg-search-button:hover {
    background: var(--hg-primary-dark);
    transform: translateY(-1px);
}

.hg-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin-right: .25rem;
    border-radius: 50%;
    color: var(--hg-muted);
    text-decoration: none;
}

.hg-search-clear:hover {
    background: var(--hg-light);
    color: var(--hg-dark);
}

.hg-catalog-filters {
    padding: 1.1rem 0;
    background: var(--hg-white);
    border-bottom: 1px solid var(--hg-border);
}

.hg-category-filter-scroll {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding: .15rem 0;
    scrollbar-width: thin;
}

.hg-category-filter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .55rem .95rem;
    border: 1px solid #ddd9d0;
    border-radius: 999px;
    background: var(--hg-white);
    color: #45474d;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--hg-transition), background-color var(--hg-transition), border-color var(--hg-transition), transform var(--hg-transition);
}

.hg-category-filter:hover {
    border-color: var(--hg-primary);
    color: var(--hg-primary-dark);
    transform: translateY(-1px);
}

.hg-category-filter.is-active {
    border-color: var(--hg-dark);
    background: var(--hg-dark);
    color: var(--hg-white);
}

.hg-catalog-results {
    padding: 2.4rem 0 6rem;
}

.hg-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hg-results-count {
    color: var(--hg-muted);
    font-size: .9rem;
}

.hg-results-count > strong {
    color: var(--hg-dark);
}

.hg-results-search {
    margin-left: .25rem;
}

.hg-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--hg-primary-dark);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.hg-clear-filters:hover {
    color: var(--hg-dark);
}

.hg-catalog-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius);
    background: var(--hg-white);
    box-shadow: 0 8px 28px rgba(0,0,0,.045);
    transition: transform var(--hg-transition), box-shadow var(--hg-transition), border-color var(--hg-transition);
}

.hg-catalog-card:hover {
    transform: translateY(-5px);
    border-color: #ddd7c8;
    box-shadow: var(--hg-shadow-hover);
}

.hg-catalog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--hg-light);
}

.hg-catalog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.hg-catalog-card:hover .hg-catalog-card-image img {
    transform: scale(1.045);
}

.hg-course-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .65rem;
    border-radius: 999px;
    background: rgba(17,18,20,.9);
    color: var(--hg-white);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hg-course-featured i {
    color: var(--hg-primary-light);
}

.hg-catalog-card-body {
    display: flex;
    flex-direction: column;
    min-height: 238px;
    padding: 1.25rem;
}

.hg-catalog-card-category {
    margin-bottom: .55rem;
    color: var(--hg-primary-dark);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hg-catalog-card-title {
    margin: 0 0 .65rem;
    color: var(--hg-dark);
    font-family: "Oswald", sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.05;
}

.hg-catalog-card-title a {
    color: inherit;
    text-decoration: none;
}

.hg-catalog-card-title a:hover {
    color: var(--hg-primary-dark);
}

.hg-catalog-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--hg-muted);
    font-size: .86rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hg-catalog-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.15rem;
}

.hg-catalog-price {
    display: flex;
    flex-direction: column;
}

.hg-price-label {
    margin-bottom: .1rem;
    color: var(--hg-muted);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hg-catalog-price strong {
    color: var(--hg-dark);
    font-size: 1.12rem;
    line-height: 1.1;
}

.hg-catalog-price small {
    color: var(--hg-muted);
    font-size: .68rem;
    font-weight: 500;
}

.hg-catalog-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--hg-dark);
    color: var(--hg-white);
    text-decoration: none;
}

.hg-catalog-card-action:hover {
    background: var(--hg-primary);
    color: var(--hg-dark);
    transform: translateX(2px);
}

.hg-catalog-empty {
    max-width: 620px;
    margin: 3rem auto 0;
    padding: 4rem 1.5rem;
    text-align: center;
    border: 1px solid var(--hg-border);
    border-radius: var(--hg-radius);
    background: var(--hg-light);
}

.hg-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--hg-white);
    color: var(--hg-primary-dark);
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.hg-catalog-empty h2 {
    margin-bottom: .65rem;
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
}

.hg-catalog-empty p {
    max-width: 480px;
    margin: 0 auto 1.5rem;
    color: var(--hg-muted);
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .hg-catalog-header {
        padding: 3.5rem 0 2.5rem;
    }

    .hg-catalog-results {
        padding-bottom: 4rem;
    }
}

@media (max-width: 575.98px) {
    .hg-catalog-header {
        padding: 2.75rem 0 2rem;
    }

    .hg-catalog-title {
        font-size: 3rem;
    }

    .hg-search-field {
        min-height: 54px;
        padding-left: .85rem;
    }

    .hg-search-button {
        min-height: 44px;
        padding: 0 .85rem;
    }

    .hg-catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .hg-catalog-results {
        padding-top: 1.75rem;
    }

    .hg-catalog-card-body {
        min-height: 220px;
    }
}

/* =========================================================
   Footer Human Gestión — ajuste de distribución
   IMPORTANTE: este bloque se agrega al final para conservar
   íntegramente todo el CSS existente y solo ajustar el footer.
   ========================================================= */

.hg-public-footer {
    margin-top: 0;
    padding: 48px 0 0;
    background: #0d0e10;
    color: rgba(255, 255, 255, .68);
    overflow: hidden;
}

.hg-public-footer > .container {
    position: relative;
    z-index: 1;
}

.hg-footer-main {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(145px, 1fr));
    gap: 42px;
    align-items: start;
    width: 100%;
}

.hg-footer-brand,
.hg-footer-column {
    min-width: 0;
    align-self: start;
}

.hg-footer-brand {
    padding-right: 12px;
}

.hg-footer-brand-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
}

.hg-footer-logo {
    display: block;
    width: auto;
    max-width: 145px;
    height: auto;
    max-height: 82px;
    object-fit: contain;
}

.hg-footer-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(201, 162, 39, .55);
    border-radius: 14px;
    color: var(--hg-primary);
    font-weight: 800;
    letter-spacing: .08em;
}

.hg-footer-brand-name {
    margin-top: 2px;
    color: rgba(255, 255, 255, .86);
    font-size: .95rem;
    font-weight: 600;
}

.hg-footer-description {
    max-width: 320px;
    margin: 5px 0 18px;
    color: rgba(255, 255, 255, .62);
    font-size: .88rem;
    line-height: 1.55;
}

.hg-footer-contact {
    display: grid;
    gap: 8px;
}

.hg-footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: rgba(255, 255, 255, .68);
    font-size: .84rem;
    line-height: 1.35;
}

.hg-footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex: 0 0 20px;
    color: var(--hg-primary);
}

.hg-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.hg-footer-column h2 {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, .88);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}

.hg-footer-column > a {
    display: block;
    width: fit-content;
    color: rgba(255, 255, 255, .64);
    font-size: .84rem;
    line-height: 1.45;
    transition: color .18s ease, transform .18s ease;
}

.hg-footer-column > a:hover {
    color: var(--hg-primary-light);
    transform: translateX(2px);
}

.hg-footer-social-column p {
    max-width: 220px;
    margin: 0 0 7px;
    color: rgba(255, 255, 255, .56);
    font-size: .82rem;
    line-height: 1.5;
}

.hg-footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.hg-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: rgba(255, 255, 255, .72);
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.hg-footer-social a:hover {
    color: var(--hg-primary-light);
    border-color: rgba(201, 162, 39, .45);
    background: rgba(201, 162, 39, .08);
    transform: translateY(-2px);
}

.hg-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 38px;
    padding: 17px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.hg-footer-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    color: rgba(255, 255, 255, .42);
    font-size: .75rem;
    line-height: 1.4;
}

.hg-footer-meta {
    color: rgba(255, 255, 255, .38);
    font-size: .75rem;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .hg-footer-main {
        grid-template-columns: minmax(235px, 1.45fr) repeat(3, minmax(125px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 991.98px) {
    .hg-public-footer {
        padding-top: 40px;
    }

    .hg-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 28px;
    }

    .hg-footer-brand {
        padding-right: 0;
    }

    .hg-footer-bottom {
        margin-top: 34px;
    }
}

@media (max-width: 575.98px) {
    .hg-public-footer {
        padding-top: 34px;
    }

    .hg-footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hg-footer-description {
        max-width: none;
    }

    .hg-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 30px;
        padding-top: 15px;
    }

    .hg-footer-meta {
        white-space: normal;
    }
}


