:root {
  --g-bg: #fff8ef;
  --g-bg-soft: #fff7e8;
  --g-surface: #ffffff;
  --g-surface-soft: #f7efdf;
  --g-border: #d9c7a3;
  --g-border-strong: #c9b58b;
  --g-text: #1f2933;
  --g-muted: #6c7278;
  --g-primary: #0f5b8d;
  --g-primary-deep: #083f63;
  --g-accent: #f2a900;
  --g-accent-deep: #c78400;
  --g-shadow: 0 24px 60px rgba(15, 41, 56, 0.12);
  --g-radius-lg: 28px;
  --g-radius-md: 18px;
  --g-radius-sm: 12px;
  --g-font-display: "Epilogue", "Arial", sans-serif;
  --g-font-body: "Manrope", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--g-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--g-text);
  background:
    radial-gradient(circle at top right, rgba(242, 169, 0, 0.18), transparent 28%),
    radial-gradient(circle at left top, rgba(15, 91, 141, 0.10), transparent 24%),
    linear-gradient(180deg, #fffaf3 0%, #fff7e8 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--g-primary);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

a:hover,
a:focus {
  color: var(--g-primary-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(242, 169, 0, 0.55);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-family: var(--g-font-display);
  line-height: 1.1;
  color: var(--g-text);
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.g-site-shell {
  min-height: 100vh;
}

.g-header-shell {
  position: relative;
  z-index: 1000;
}

.g-header-main {
  background: rgba(255, 250, 243, 0.86);
  border-bottom: 1px solid rgba(15, 91, 141, 0.12);
  backdrop-filter: blur(18px);
}

.g-header-main.g-header-stuck,
.g-header-stuck {
  box-shadow: 0 16px 40px rgba(15, 41, 56, 0.08);
}

.g-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: var(--g-text);
}

.g-brand:hover {
  color: var(--g-text);
}

.g-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--g-accent), #ffd379);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.g-brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--g-primary);
}

.g-brand-copy {
  display: flex;
  flex-direction: column;
}

.g-brand-name {
  font-family: var(--g-font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.g-brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g-muted);
}

.g-header-shell .uk-navbar-nav > li > a {
  min-height: 78px;
  padding: 0 0.95rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-primary);
}

.g-header-shell .uk-navbar-nav > li.uk-active > a,
.g-header-shell .uk-navbar-nav > li > a:hover {
  color: var(--g-accent-deep);
}

.g-header-shell .uk-navbar-dropdown {
  border: 1px solid rgba(15, 91, 141, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--g-shadow);
}

.g-header-shell .uk-navbar-dropdown-nav > li > a {
  color: var(--g-text);
  font-weight: 700;
}

.g-subnav-shell {
  background: linear-gradient(90deg, var(--g-primary), #1d6f9f);
}

.g-subnav-list {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
}

.g-subnav-list a {
  display: inline-flex;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.g-subnav-list .is-current a {
  background: var(--g-accent);
  color: var(--g-primary-deep);
}

.uk-offcanvas-bar {
  background: var(--g-primary-deep);
}

.g-mobile-brand {
  margin-bottom: 1.2rem;
  font-family: var(--g-font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.g-home-hero,
.g-hero {
  position: relative;
  padding: 7rem 0 4rem;
  background:
    linear-gradient(115deg, rgba(8, 63, 99, 0.94), rgba(15, 91, 141, 0.56)),
    var(--hero-image) center/cover no-repeat;
}

.g-home-hero::before,
.g-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(242, 169, 0, 0.24), transparent 26%);
}

.g-home-hero-card,
.g-hero-card,
.g-home-stat-card,
.g-story-card,
.g-surface-panel,
.g-side-panel,
.g-campaign-card,
.g-community-card,
.g-map-card,
.g-toc-panel,
.g-article-panel,
.g-category-card,
.g-category-intro {
  position: relative;
  border: 1px solid rgba(201, 181, 139, 0.55);
  border-radius: var(--g-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--g-shadow);
}

.g-home-hero-card,
.g-home-stat-card,
.g-hero-card,
.g-story-copy,
.g-surface-panel,
.g-side-panel,
.g-campaign-copy,
.g-community-copy,
.g-toc-panel,
.g-article-panel,
.g-category-intro,
.g-category-card-body {
  padding: 2rem;
}

.g-eyebrow {
  margin: 0 0 0.95rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-primary);
}

.g-home-title,
.g-page-title,
.g-article-header h1,
.g-category-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  margin-bottom: 1.1rem;
  color: var(--g-text);
}

.g-home-lead,
.g-hero-lead,
.g-article-summary,
.g-category-lead {
  max-width: 44rem;
  color: rgba(31, 41, 51, 0.84);
  font-size: 1.08rem;
}

.g-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.g-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.g-home-button-primary {
  background: var(--g-accent);
  color: var(--g-primary-deep);
}

.g-home-button-secondary {
  background: rgba(15, 91, 141, 0.08);
  color: var(--g-primary);
}

.g-home-stat-card {
  min-height: 100%;
  background: rgba(255, 247, 232, 0.92);
}

.g-ribbon-strip {
  margin-top: -2rem;
  padding-bottom: 1rem;
}

.g-ribbon-card,
.g-media-card {
  overflow: hidden;
  border-radius: var(--g-radius-md);
  background: var(--g-surface-soft);
}

.g-ribbon-card img,
.g-media-card img,
.g-story-media img,
.g-campaign-media img,
.g-community-card img,
.g-map-card img,
.g-hero-aside img,
.g-side-photo,
.g-category-card-media img,
.g-article-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-ribbon-card img {
  aspect-ratio: 4 / 3;
}

.g-story-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
}

.g-story-media {
  min-height: 100%;
}

.g-story-media img {
  min-height: 100%;
}

.g-link-grid {
  display: grid;
  gap: 1rem;
}

.g-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(15, 91, 141, 0.12);
  border-radius: var(--g-radius-md);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px rgba(15, 41, 56, 0.06);
}

.g-link-card:hover {
  transform: translateY(-2px);
}

.g-link-card-label {
  font-weight: 800;
  color: var(--g-text);
}

.g-link-card-arrow {
  font-size: 1.2rem;
  color: var(--g-accent-deep);
}

.g-campaign-shell {
  padding: 0 0 2rem;
}

.g-campaign-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(242, 169, 0, 0.22), rgba(255, 255, 255, 0.98));
  color: var(--g-text);
}

.g-campaign-media {
  min-height: 100%;
}

.g-campaign-media img {
  min-height: 100%;
}

.g-section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(247, 239, 223, 0.75));
}

.g-community-stack {
  display: grid;
  gap: 1rem;
}

.g-community-card,
.g-map-card {
  overflow: hidden;
}

.g-community-card img,
.g-map-card img {
  aspect-ratio: 4 / 3;
}

.g-community-card-alt {
  background: rgba(255, 247, 232, 0.98);
}

.g-home-story h2,
.g-community-copy h3,
.g-campaign-copy h2,
.g-story-copy h2 {
  margin-bottom: 0.8rem;
}

.g-hero-compact {
  padding-top: 5.5rem;
  padding-bottom: 2.5rem;
}

.g-hero-card {
  background: rgba(255, 250, 243, 0.93);
}

.g-hero-aside {
  overflow: hidden;
  border-radius: 22px;
  min-height: 260px;
}

.g-breadcrumb-wrap {
  margin-bottom: 1.2rem;
}

.g-breadcrumb-wrap .uk-breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

.g-breadcrumb-wrap .uk-breadcrumb > * > * {
  color: rgba(255, 255, 255, 0.92);
}

.g-breadcrumb-wrap .uk-breadcrumb > :last-child > span {
  color: var(--g-accent);
}

.g-page-grid {
  align-items: flex-start;
}

.g-side-panel {
  background: linear-gradient(180deg, rgba(255, 247, 232, 0.96), rgba(255, 255, 255, 0.98));
}

.g-side-panel-media {
  overflow: hidden;
  padding: 0;
}

.g-side-photo {
  aspect-ratio: 4 / 3;
}

.g-side-panel-media .g-side-eyebrow,
.g-side-panel-media .g-side-list {
  padding-left: 2rem;
  padding-right: 2rem;
}

.g-side-panel-media .g-side-list {
  padding-bottom: 2rem;
}

.g-side-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g-primary);
}

.g-side-list,
.g-footer-list,
.g-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-side-list li + li,
.g-footer-list li + li,
.g-toc-list li + li {
  margin-top: 0.45rem;
}

.g-side-list a,
.g-footer-list a,
.g-toc-list a {
  display: inline-flex;
  color: var(--g-text);
  font-weight: 700;
}

.g-side-list .is-current a,
.g-toc-list .is-sub a {
  color: var(--g-primary);
}

.g-surface-panel {
  background: rgba(255, 255, 255, 0.94);
}

.g-surface-panel-home {
  padding-top: 1.6rem;
}

.g-variant-formation {
  border-top: 6px solid rgba(15, 91, 141, 0.72);
}

.g-variant-empleo,
.g-variant-users,
.g-variant-empresas,
.g-variant-reserva {
  border-top: 6px solid rgba(242, 169, 0, 0.82);
}

.g-variant-juventud {
  border-top: 6px solid rgba(15, 91, 141, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 232, 0.92));
}

.g-block + .g-block {
  margin-top: 1.5rem;
}

.g-heading-1,
.g-heading-2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.g-heading-3 {
  font-size: 1.4rem;
}

.g-richtext,
.g-block-paragraph {
  color: rgba(31, 41, 51, 0.92);
}

.g-richtext p + p {
  margin-top: 1rem;
}

.g-richtext a,
.g-inline-link {
  color: var(--g-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.g-list-block {
  padding-left: 0;
}

.g-bullet-list,
.g-ordered-list {
  margin: 0;
  padding-left: 1.25rem;
}

.g-bullet-list li + li,
.g-ordered-list li + li {
  margin-top: 0.4rem;
}

.g-table-block {
  overflow: hidden;
  border: 1px solid rgba(15, 91, 141, 0.10);
  border-radius: var(--g-radius-md);
  background: var(--g-bg-soft);
}

.g-table-head,
.g-table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.g-table-head {
  background: rgba(15, 91, 141, 0.08);
  color: var(--g-primary-deep);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g-table-head span,
.g-table-cell {
  padding: 0.9rem 1rem;
}

.g-table-row + .g-table-row {
  border-top: 1px solid rgba(15, 91, 141, 0.08);
}

.g-table-cell {
  min-width: 0;
}

.g-table-cell > * + * {
  margin-top: 0.8rem;
}

.g-gallery-grid {
  margin-top: 0;
}

.g-gallery-item {
  height: 100%;
}

.g-gallery-item img {
  aspect-ratio: 4 / 3;
}

.g-inline-media,
.g-media-card {
  border: 1px solid rgba(15, 91, 141, 0.08);
}

.g-inline-media figcaption,
.g-media-card figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--g-muted);
  font-size: 0.92rem;
}

.g-quote {
  margin: 0;
  padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--g-accent);
  border-radius: 0 var(--g-radius-md) var(--g-radius-md) 0;
  background: rgba(242, 169, 0, 0.08);
  font-family: var(--g-font-display);
  font-size: 1.06rem;
}

.g-code {
  overflow-x: auto;
  padding: 1rem 1.2rem;
  border-radius: var(--g-radius-md);
  background: #102331;
  color: #f4f7fa;
}

.g-divider {
  border: 0;
  border-top: 1px solid rgba(15, 91, 141, 0.12);
}

.g-list-item-card {
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(15, 91, 141, 0.10);
  border-radius: var(--g-radius-md);
  background: rgba(255, 255, 255, 0.88);
}

.g-list-item-card h3 {
  margin-bottom: 0.5rem;
}

.g-footer-shell {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(15, 91, 141, 0.12);
  background: linear-gradient(180deg, rgba(255, 247, 232, 0.96), rgba(242, 169, 0, 0.14));
}

.g-footer-brand {
  font-family: var(--g-font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

.g-footer-copy,
.g-footer-meta {
  color: var(--g-muted);
}

.g-footer-title {
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-primary);
}

.g-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 91, 141, 0.10);
  color: var(--g-muted);
  font-size: 0.9rem;
}

.g-article-shell,
.g-category-shell {
  padding: 4rem 0;
}

.g-article-grid {
  align-items: start;
}

.g-toc-panel {
  background: linear-gradient(180deg, rgba(255, 247, 232, 0.98), rgba(255, 255, 255, 0.98));
}

.g-toc-title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-primary);
}

.g-toc-list li.is-sub {
  padding-left: 0.8rem;
}

.g-article-header {
  margin-bottom: 1.5rem;
}

.g-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 0.7rem;
  color: var(--g-muted);
  font-size: 0.92rem;
}

.g-article-main-image {
  float: right;
  width: min(34%, 340px);
  margin: 0 0 1.2rem 1.4rem;
  overflow: hidden;
  border-radius: var(--g-radius-md);
  border: 1px solid rgba(15, 91, 141, 0.10);
}

.g-article-main-image img {
  aspect-ratio: 4 / 5;
}

.g-category-intro {
  margin-bottom: 1.5rem;
}

.g-category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.g-category-card-media img {
  aspect-ratio: 16 / 10;
}

.g-category-card-horizontal {
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1.15fr);
}

.g-category-card-horizontal .g-category-card-media img {
  min-height: 100%;
  aspect-ratio: auto;
}

.g-category-card-minimal {
  border-left: 4px solid var(--g-accent);
  background: rgba(255, 255, 255, 0.7);
}

.g-category-card-body h2 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.g-category-card-body p {
  color: rgba(31, 41, 51, 0.84);
}

.g-youth-mode .g-header-main {
  background: rgba(247, 239, 223, 0.92);
}

@media (max-width: 1199px) {
  .g-story-card,
  .g-campaign-card,
  .g-category-card-horizontal {
    grid-template-columns: 1fr;
  }

  .g-article-main-image {
    float: none;
    width: 100%;
    margin: 0 0 1.2rem;
  }
}

@media (max-width: 959px) {
  .g-home-hero,
  .g-hero {
    padding-top: 5.8rem;
  }

  .g-home-title,
  .g-page-title,
  .g-article-header h1,
  .g-category-intro h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .g-home-hero-card,
  .g-home-stat-card,
  .g-hero-card,
  .g-story-copy,
  .g-surface-panel,
  .g-side-panel,
  .g-campaign-copy,
  .g-community-copy,
  .g-toc-panel,
  .g-article-panel,
  .g-category-intro,
  .g-category-card-body {
    padding: 1.4rem;
  }

  .g-footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 639px) {
  .g-header-shell .uk-navbar {
    min-height: 72px;
  }

  .g-brand-name {
    font-size: 1rem;
  }

  .g-brand-tag {
    font-size: 0.65rem;
  }

  .g-home-actions,
  .g-subnav-list {
    gap: 0.55rem;
  }

  .g-home-button,
  .g-link-card {
    width: 100%;
  }

  .g-table-head,
  .g-table-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .g-header-shell,
  .g-footer-shell,
  .g-side-panel,
  .g-toc-panel,
  .uk-offcanvas-bar {
    display: none !important;
  }

  .g-surface-panel,
  .g-article-panel,
  .g-category-card,
  .g-category-intro,
  .g-home-hero-card,
  .g-home-stat-card {
    box-shadow: none;
    border-color: #ccc;
  }
}
