/*
 * 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;
    }
}




/* ==========================================================
   HUMAN GESTIÓN — ÁREAS DE APRENDIZAJE (HOME)
   ========================================================== */
.hg-areas-section {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 112px) 0;
    color: #f8f7f3;
    background: #101f35;
}
.hg-areas-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background: radial-gradient(circle at 88% 8%, rgba(201,164,91,.34), transparent 34%),
                radial-gradient(circle at 0% 100%, rgba(70,105,139,.28), transparent 36%);
}
.hg-areas-section > .container { position: relative; z-index: 1; }
.hg-areas-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 42px;
}
.hg-areas-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #d6b56f;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
}
.hg-areas-title {
    max-width: 760px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2.2rem, 4.3vw, 3.65rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
}
.hg-areas-lead {
    max-width: 650px;
    margin: 0;
    color: rgba(245,247,250,.72);
    font-size: 1.05rem;
    line-height: 1.75;
}
.hg-areas-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 19px;
    border: 1px solid rgba(214,181,111,.65);
    border-radius: 3px;
    color: #f2d99f;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.hg-areas-all:hover { color: #101f35; background: #d6b56f; transform: translateY(-2px); }
.hg-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.hg-area-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: inherit;
    background: rgba(255,255,255,.055);
    text-decoration: none;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hg-area-card:hover {
    color: inherit;
    transform: translateY(-7px);
    border-color: rgba(214,181,111,.75);
    box-shadow: 0 22px 48px rgba(0,0,0,.24);
}
.hg-area-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #20334d; }
.hg-area-image::after { content:""; position:absolute; inset:35% 0 0; background:linear-gradient(transparent,rgba(5,13,24,.5)); }
.hg-area-image img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.hg-area-card:hover .hg-area-image img { transform:scale(1.055); }
.hg-area-image-placeholder { display:grid; width:100%; height:100%; place-items:center; color:#d6b56f; font-family:Georgia,serif; font-size:4rem; background:linear-gradient(135deg,#243b58,#0c1728); }
.hg-area-arrow { position:absolute; z-index:2; right:18px; bottom:16px; display:grid; width:42px; height:42px; place-items:center; border:1px solid rgba(255,255,255,.65); border-radius:50%; color:#fff; font-size:1.25rem; }
.hg-area-content { display:flex; flex:1; flex-direction:column; padding:25px 25px 27px; }
.hg-area-meta { display:flex; justify-content:space-between; gap:10px; margin-bottom:17px; color:#d6b56f; font-size:.62rem; font-weight:700; letter-spacing:.13em; }
.hg-area-meta span:last-child { color:rgba(255,255,255,.55); white-space:nowrap; }
.hg-area-content h3 { margin:0 0 11px; color:#fff; font-size:1.45rem; font-weight:700; }
.hg-area-content p { margin:0 0 22px; color:rgba(245,247,250,.68); font-size:.92rem; line-height:1.65; }
.hg-area-link { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:16px; border-top:1px solid rgba(255,255,255,.13); color:#e7c985; font-size:.85rem; font-weight:700; }
.hg-area-link b { font-size:1.15rem; transition:transform .2s ease; }
.hg-area-card:hover .hg-area-link b { transform:translateX(5px); }
@media (max-width: 991.98px) {
    .hg-areas-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .hg-areas-heading { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 575.98px) {
    .hg-areas-section { padding:62px 0; }
    .hg-areas-grid { grid-template-columns:1fr; gap:18px; }
    .hg-area-content { padding:21px; }
    .hg-areas-all { width:100%; justify-content:space-between; }
}


/* ==========================================================
   HOME V2 — composición equilibrada y responsive
   ========================================================== */
.hg-home-benefits {
    background: #f7f6f2;
    color: #15243a;
    border-bottom: 1px solid #e9e4d9;
}
.hg-home-benefits .hg-benefit {
    min-height: 132px;
    padding: 1.65rem 1.8rem;
    border-right: 1px solid #e4dfd4;
}
.hg-home-benefits .hg-benefit-title { color: #15243a; font-size: 1.12rem; }
.hg-home-benefits .hg-benefit-text { color: #697487; }
.hg-home-benefits .hg-benefit-icon {
    width: 52px; height: 52px; flex-basis: 52px;
    border-color: rgba(181,139,55,.42);
    color: #a77b28; background: #fff;
}
.hg-areas-section { padding: clamp(68px, 7vw, 94px) 0; }
.hg-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
    align-items: stretch;
    gap: 26px;
}
.hg-area-card:only-child { width: 100%; max-width: 460px; justify-self: center; }
.hg-area-image { aspect-ratio: 16 / 9; }
.hg-area-content { min-height: 220px; }
.hg-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
    gap: 28px;
    align-items: stretch;
}
.hg-course-grid-item { min-width: 0; display: flex; }
.hg-course-grid-item .hg-course-card { width: 100%; }
.hg-course-card-image { aspect-ratio: 16 / 10; }
.hg-course-card-body { padding: 1.35rem 1.4rem 1.45rem; }
.hg-course-card-title { font-size: 1.28rem; }
.hg-course-card-description { min-height: 4.2em; }
.hg-home-cta { padding: 28px 0 88px; background: #fff; }
.hg-home-cta-panel {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 36px; overflow: hidden; padding: clamp(34px, 5vw, 64px);
    border: 1px solid rgba(214,181,111,.24); border-radius: 14px;
    color: #fff; background: linear-gradient(112deg,#101f35 0%,#172d49 62%,#203b5c 100%);
    box-shadow: 0 22px 55px rgba(16,31,53,.14);
}
.hg-home-cta-panel::before {
    content: ""; position: absolute; width: 420px; height: 420px; right: 9%; top: -260px;
    border: 1px solid rgba(214,181,111,.22); border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(214,181,111,.035), 0 0 0 70px rgba(214,181,111,.025);
}
.hg-home-cta-copy, .hg-home-cta-actions { position: relative; z-index: 1; }
.hg-home-cta-copy { max-width: 690px; }
.hg-home-cta-kicker { display:block; margin-bottom:14px; color:#dfc27e; font-size:.7rem; font-weight:800; letter-spacing:.19em; }
.hg-home-cta-copy h2 { max-width:660px; margin:0 0 14px; color:#fff; font-size:clamp(1.9rem,3.2vw,2.8rem); font-weight:700; line-height:1.12; letter-spacing:-.025em; }
.hg-home-cta-copy p { max-width:620px; margin:0; color:rgba(255,255,255,.72); font-size:1rem; line-height:1.7; }
.hg-home-cta-actions { display:flex; flex:0 0 auto; flex-direction:column; align-items:flex-start; gap:15px; }
.hg-home-cta-button { display:inline-flex; align-items:center; gap:22px; padding:15px 22px; border-radius:4px; color:#17243a; background:#d6b56f; font-weight:800; text-decoration:none; transition:transform .2s ease,background .2s ease; }
.hg-home-cta-button:hover { color:#17243a; background:#e5c985; transform:translateY(-2px); }
.hg-home-cta-secondary { color:rgba(255,255,255,.82); font-size:.9rem; font-weight:600; text-decoration:underline; text-decoration-color:rgba(214,181,111,.65); text-underline-offset:4px; }
.hg-home-cta-mark { position:absolute; right:26px; bottom:-52px; color:rgba(255,255,255,.035); font-family:Georgia,serif; font-size:13rem; font-weight:700; line-height:1; pointer-events:none; }
@media (max-width: 767.98px) {
    .hg-home-benefits .hg-benefit { min-height:0; padding:1.25rem .4rem; border-right:0; border-bottom:1px solid #e4dfd4; }
    .hg-home-benefits .col-md-4:last-child .hg-benefit { border-bottom:0; }
    .hg-areas-grid, .hg-courses-grid { grid-template-columns:1fr; gap:20px; }
    .hg-area-card:only-child { max-width:100%; }
    .hg-home-cta { padding:12px 0 60px; }
    .hg-home-cta-panel { align-items:flex-start; flex-direction:column; gap:26px; padding:32px 25px; }
    .hg-home-cta-actions { align-items:stretch; width:100%; }
    .hg-home-cta-button { justify-content:space-between; }
    .hg-home-cta-mark { right:8px; bottom:-26px; font-size:8rem; }
}


/* ==========================================================
   HOME V2.1 — pulido de áreas y cursos destacados
   ========================================================== */
.hg-area-card-single {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    width: 100%;
    max-width: 920px;
    min-height: 330px;
    justify-self: center;
}
.hg-area-card-single .hg-area-image {
    height: 100%;
    min-height: 330px;
    aspect-ratio: auto;
}
.hg-area-card-single .hg-area-content {
    justify-content: center;
    min-height: 0;
    padding: clamp(28px, 4vw, 48px);
}
.hg-area-card-single .hg-area-content h3 { font-size: clamp(1.7rem, 2.5vw, 2.15rem); }
.hg-area-card-single .hg-area-content p { max-width: 440px; font-size: 1rem; }
.hg-areas-grid:has(.hg-area-card-single) { grid-template-columns: minmax(0, 1fr); }

.hg-courses-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.hg-course-grid-item { min-width: 0; }
.hg-course-card { border-radius: 13px; }
.hg-course-card-image { aspect-ratio: 16 / 9; }
.hg-course-card-image img { object-fit: cover; }
.hg-course-card-body { padding: 1.45rem 1.5rem 1.55rem; }
.hg-course-card-title { font-size: 1.32rem; line-height: 1.25; }
.hg-course-card-description { min-height: 4.4em; }
.hg-course-card-price.is-free { color: #26734b; font-size: 1.12rem; }
.hg-courses-grid:has(.hg-course-grid-item:only-child) {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}
.hg-course-grid-item:only-child .hg-course-card-image { aspect-ratio: 16 / 9; }
.hg-course-grid-item:only-child .hg-course-card-body { padding: 1.65rem 1.8rem 1.75rem; }

@media (max-width: 991.98px) {
    .hg-courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .hg-area-card-single { grid-template-columns: 1fr; max-width: 560px; }
    .hg-area-card-single .hg-area-image { min-height: 0; aspect-ratio: 16 / 9; }
    .hg-area-card-single .hg-area-content { padding: 24px; }
    .hg-courses-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
    .hg-course-grid-item:only-child .hg-course-card-body { padding: 1.3rem; }
}


/* ==========================================================
   HUMAN GESTIÓN — CATÁLOGO PRO V3
   Reglas encapsuladas para cursos.php. No altera otras vistas.
   ========================================================== */
.hg-catalog { --hgc-navy:#10243d; --hgc-deep:#0b1b2d; --hgc-gold:#d6b56f; --hgc-ink:#17263b; --hgc-muted:#68778a; background:#f6f7f9; }
.hg-catalog-header { position:relative; isolation:isolate; overflow:hidden; padding:clamp(58px,7vw,96px) 0 clamp(42px,5vw,68px); color:#fff; background:linear-gradient(112deg,#0b1b2d 0%,#142d49 58%,#203d5a 100%); border:0; }
.hg-catalog-header:before { content:""; position:absolute; z-index:-1; width:600px;height:600px;right:-110px;top:-390px;border:1px solid rgba(214,181,111,.25);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.018),0 0 0 110px rgba(255,255,255,.014); }
.hg-catalog-header .hg-eyebrow { color:#e2c477; font-size:.72rem; letter-spacing:.24em; font-weight:800; }
.hg-catalog-title { max-width:850px; color:#fff; font-size:clamp(3rem,6vw,5.2rem); line-height:1.02; letter-spacing:-.035em; }
.hg-catalog-description { max-width:690px; color:rgba(255,255,255,.76); font-size:1.04rem; line-height:1.8; }
.hg-search-field { min-height:66px; padding:7px 7px 7px 20px; border:1px solid rgba(255,255,255,.22); border-radius:10px; box-shadow:0 18px 45px rgba(0,0,0,.2); }
.hg-search-field>i { color:#9b7a3c; }
.hg-search-field input { height:50px; }
.hg-search-button { min-height:50px; padding:0 25px; border-radius:7px; background:#d6b56f; color:#14263d; font-weight:800; }
.hg-search-button:hover { background:#e6ca8a; color:#14263d; }
.hg-catalog-filters { position:relative; padding:18px 0; background:#fff; border-bottom:1px solid #e5e9ef; box-shadow:0 8px 25px rgba(20,38,61,.035); }
.hg-category-filter-scroll { gap:9px; }
.hg-category-filter { min-height:42px; padding:10px 18px; border-color:#dce2e9; color:#34445a; font-size:.76rem; letter-spacing:.025em; }
.hg-category-filter.is-active { border-color:#142a44; background:#142a44; color:#fff; box-shadow:0 5px 14px rgba(16,36,61,.15); }
.hg-catalog-results { padding:clamp(35px,5vw,62px) 0 90px; }
.hg-catalog-toolbar { margin-bottom:25px; }
.hg-results-count { color:#69788b; font-size:.94rem; }
.hg-results-count>strong { color:#132943; font-size:1.18rem; }
.hg-catalog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr)); gap:28px; align-items:stretch; }
.hg-catalog-grid-item { display:flex; min-width:0; }
.hg-catalog-card { display:flex; flex-direction:column; width:100%; height:100%; border:1px solid #e3e8ee; border-radius:13px; box-shadow:0 9px 28px rgba(18,38,61,.055); }
.hg-catalog-card:hover { transform:translateY(-6px); border-color:rgba(183,145,67,.55); box-shadow:0 22px 48px rgba(18,38,61,.13); }
.hg-catalog-card-image { aspect-ratio:16/9; background:#e9edf2; }
.hg-catalog-card-image img { object-fit:cover; }
.hg-catalog-card-body { display:flex; flex:1; flex-direction:column; min-height:255px; padding:25px 25px 22px; }
.hg-catalog-card-category { color:#96732f; font-size:.68rem; letter-spacing:.15em; }
.hg-catalog-card-title { font-size:clamp(1.35rem,1.7vw,1.65rem); line-height:1.16; }
.hg-catalog-card-description { min-height:4.65em; font-size:.91rem; line-height:1.65; }
.hg-catalog-card-footer { align-items:center; padding-top:19px; border-top:1px solid #edf0f3; }
.hg-catalog-price strong { color:#142a44; font-size:1.25rem; }
.hg-catalog-price strong small { font-size:.68rem; }
.hg-catalog-price .is-free { color:#23764c; }
.hg-catalog-card-action { width:auto; height:auto; min-height:42px; padding:0 15px; gap:10px; border-radius:7px; background:#142a44; color:#fff; font-size:.78rem; font-weight:800; white-space:nowrap; }
.hg-catalog-card-action:hover { background:#d6b56f; color:#142a44; transform:translateY(-1px); }
.hg-catalog-empty { background:#fff; border-color:#e2e7ed; box-shadow:0 12px 35px rgba(18,38,61,.05); }
@media(max-width:767.98px){ .hg-catalog-header{padding:48px 0 40px}.hg-catalog-title{font-size:clamp(2.7rem,12vw,3.7rem)}.hg-search-field{flex-wrap:wrap;padding:8px 10px}.hg-search-field input{flex:1 1 65%;}.hg-search-button{width:100%;}.hg-catalog-grid{grid-template-columns:1fr;max-width:560px;margin-inline:auto;gap:20px}.hg-catalog-card-body{min-height:0;padding:21px}.hg-catalog-card-description{min-height:0}.hg-catalog-card-footer{align-items:center}.hg-catalog-results{padding-bottom:60px}}
