:root {
  --wntic-primary: #16304f;
  --wntic-primary-dark: #0b1f36;
  --wntic-sky: #2aade4;
  --wntic-sky-soft: #e9f7fd;
  --wntic-gold: #d9b86c;
  --wntic-gold-soft: #fbf4e3;
  --wntic-accent: #08a565;
  --wntic-white: #ffffff;
  --wntic-black: #101828;
  --wntic-text: #344054;
  --wntic-muted: #667085;
  --wntic-border: #e4e7ec;
  --wntic-surface: #f7f9fc;
  --wntic-radius: 16px;
  --wntic-radius-small: 10px;
  --wntic-shadow: 0 18px 50px rgba(22, 48, 79, 0.12);
  --wntic-container: 1200px;
  --wntic-font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--wntic-text);
  background: var(--wntic-white);
  font-family: var(--wntic-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open {
  overflow: hidden;
}

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

a {
  color: var(--wntic-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--wntic-sky);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--wntic-black);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
}

.wntic-container {
  width: min(calc(100% - 40px), var(--wntic-container));
  margin-right: auto;
  margin-left: auto;
}

.wntic-reading-width {
  max-width: 860px;
}

.wntic-content-area {
  min-height: 55vh;
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(56px, 8vw, 110px);
}

.elementor-content {
  width: 100%;
  min-height: 40vh;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  display: block;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto !important;
  color: var(--wntic-white);
  background: var(--wntic-primary);
  border-radius: 8px;
}

.header-scroll-marker {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
}

.site-header {
  position: sticky;
  z-index: 999;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(22, 48, 79, 0.09);
}

.site-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-branding {
  flex-shrink: 0;
}

.site-branding .custom-logo-link,
.site-branding__fallback {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--wntic-primary);
  text-decoration: none;
}

.site-branding img,
.site-branding .custom-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.site-branding__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-branding__text strong {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.site-branding__text small {
  margin-top: 4px;
  color: var(--wntic-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-menu,
.footer-menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.primary-menu a {
  position: relative;
  display: block;
  padding: 28px 0;
  color: var(--wntic-black);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 3px;
  background: var(--wntic-gold);
  border-radius: 999px;
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.primary-menu a:hover::after,
.primary-menu a:focus::after,
.primary-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--wntic-primary);
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.wntic-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 23px;
  align-items: center;
  justify-content: center;
  color: var(--wntic-white);
  background: var(--wntic-primary);
  border: 2px solid var(--wntic-primary);
  border-radius: 11px;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.wntic-button:hover,
.wntic-button:focus,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  color: var(--wntic-white);
  background: var(--wntic-sky);
  border-color: var(--wntic-sky);
  box-shadow: 0 10px 25px rgba(42, 173, 228, 0.25);
  transform: translateY(-2px);
}

.wntic-button--small {
  min-height: 42px;
  padding: 10px 19px;
}

.wntic-button--outline {
  color: var(--wntic-primary);
  background: transparent;
}

.wntic-button--outline:hover,
.wntic-button--outline:focus {
  color: var(--wntic-white);
}

.wntic-button--gold {
  color: var(--wntic-primary-dark);
  background: var(--wntic-gold);
  border-color: var(--wntic-gold);
}

.wntic-button--gold:hover,
.wntic-button--gold:focus {
  color: var(--wntic-white);
  background: var(--wntic-sky);
  border-color: var(--wntic-sky);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(42, 173, 228, 0.19),
      transparent 28%
    ),
    linear-gradient(135deg, #f8fcff 0%, #ffffff 56%, #fbf4e3 100%);
}

.hero-section::before {
  position: absolute;
  top: -150px;
  left: -120px;
  width: 390px;
  height: 390px;
  background: rgba(42, 173, 228, 0.07);
  border-radius: 50%;
  content: "";
}

.hero-section__grid {
  position: relative;
  display: grid;
  min-height: 650px;
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(65px, 8vw, 110px);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(40px, 7vw, 96px);
}

.hero-section__content h1 {
  max-width: 800px;
  margin-bottom: 24px;
  color: var(--wntic-primary-dark);
}

.hero-section__content p {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--wntic-text);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--wntic-sky);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-section__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-section__visual::before,
.hero-section__visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-section__visual::before {
  width: 420px;
  height: 420px;
  max-width: 95%;
  background: var(--wntic-primary);
  box-shadow: var(--wntic-shadow);
}

.hero-section__visual::after {
  top: 2%;
  right: 2%;
  width: 100px;
  height: 100px;
  border: 18px solid var(--wntic-gold);
}

.hero-logo-card {
  position: relative;
  z-index: 2;
  width: min(340px, 82%);
  padding: 24px;
  text-align: center;
  background: var(--wntic-white);
  border: 7px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.hero-logo-card img {
  display: block;
  width: 100%;
  border-radius: 50%;
}

.hero-logo-card span {
  position: absolute;
  right: -22px;
  bottom: 12px;
  padding: 10px 16px;
  color: var(--wntic-primary-dark);
  background: var(--wntic-gold);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(22, 48, 79, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-page-content {
  padding-top: 70px;
  padding-bottom: 20px;
}

.benefits-section {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--wntic-white);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 46px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  position: relative;
  min-height: 240px;
  padding: 34px;
  overflow: hidden;
  background: var(--wntic-surface);
  border: 1px solid var(--wntic-border);
  border-radius: var(--wntic-radius);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.benefit-card:hover {
  border-color: rgba(42, 173, 228, 0.5);
  box-shadow: var(--wntic-shadow);
  transform: translateY(-5px);
}

.benefit-card::after {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  background: var(--wntic-sky-soft);
  border-radius: 50%;
  content: "";
}

.benefit-card__number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  align-items: center;
  justify-content: center;
  color: var(--wntic-primary);
  background: var(--wntic-gold-soft);
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 900;
}

.benefit-card h3,
.benefit-card p {
  position: relative;
  z-index: 1;
}

.benefit-card p {
  margin-bottom: 0;
  color: var(--wntic-muted);
}

.home-cta {
  padding: 0 0 clamp(70px, 9vw, 120px);
}

.home-cta__inner {
  display: flex;
  padding: clamp(38px, 6vw, 70px);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--wntic-white);
  background:
    linear-gradient(120deg, rgba(42, 173, 228, 0.16), transparent 45%),
    var(--wntic-primary-dark);
  border-radius: 24px;
  box-shadow: var(--wntic-shadow);
}

.home-cta__inner h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--wntic-white);
}

.entry-header {
  margin-bottom: 34px;
}

.entry-title {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.entry-meta {
  margin-bottom: 9px;
  color: var(--wntic-sky);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-thumbnail {
  margin-bottom: 38px;
}

.entry-thumbnail img {
  display: block;
  width: 100%;
  border-radius: var(--wntic-radius);
}

.entry-content > * {
  max-width: 100%;
}

.entry-content a:not(.wp-block-button__link) {
  color: var(--wntic-sky);
}

.entry-content blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  background: var(--wntic-sky-soft);
  border-left: 5px solid var(--wntic-sky);
  border-radius: 0 var(--wntic-radius-small) var(--wntic-radius-small) 0;
}

.entry-content input:not([type="submit"]),
.entry-content select,
.entry-content textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--wntic-black);
  background: var(--wntic-white);
  border: 1px solid var(--wntic-border);
  border-radius: 9px;
}

.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus {
  border-color: var(--wntic-sky);
  box-shadow: 0 0 0 3px rgba(42, 173, 228, 0.15);
  outline: none;
}

.archive-header {
  margin-bottom: 40px;
}

.archive-header h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  overflow: hidden;
  background: var(--wntic-white);
  border: 1px solid var(--wntic-border);
  border-radius: var(--wntic-radius);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.post-card:hover {
  box-shadow: var(--wntic-shadow);
  transform: translateY(-4px);
}

.post-card__image {
  display: block;
  height: 220px;
  overflow: hidden;
  color: var(--wntic-white);
  background: var(--wntic-primary);
  text-decoration: none;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, var(--wntic-primary), var(--wntic-sky));
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.post-card__body {
  padding: 25px;
}

.post-card__title {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.post-card__title a {
  color: var(--wntic-black);
  text-decoration: none;
}

.post-card__excerpt {
  color: var(--wntic-muted);
}

.text-link {
  color: var(--wntic-sky);
  font-weight: 800;
  text-decoration: none;
}

.navigation.pagination {
  margin-top: 45px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  color: var(--wntic-primary);
  background: var(--wntic-surface);
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  color: var(--wntic-white);
  background: var(--wntic-primary);
}

.empty-state {
  max-width: 680px;
  margin: 20px auto;
  padding: 60px 30px;
  text-align: center;
  background: var(--wntic-surface);
  border-radius: 22px;
}

.empty-state__code {
  display: block;
  margin-bottom: 12px;
  color: var(--wntic-sky);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 1;
}

.empty-state h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--wntic-primary-dark);
}

.site-footer__grid {
  display: grid;
  padding-top: 62px;
  padding-bottom: 50px;
  align-items: start;
  grid-template-columns: 1.35fr 1fr 0.7fr;
  gap: 45px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: var(--wntic-white);
  border: 3px solid var(--wntic-gold);
  border-radius: 50%;
}

.site-footer__brand strong,
.footer-widget__title {
  display: block;
  margin-bottom: 8px;
  color: var(--wntic-white);
  font-size: 1rem;
  font-weight: 900;
}

.site-footer__brand p {
  max-width: 440px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-widget__title {
  letter-spacing: 0;
}

.site-footer__links,
.footer-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--wntic-gold);
}

.site-footer__bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.82rem;
  text-align: center;
}

/* Componentes previstos para World NTIC Academy. */
.wntic-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wntic-course-card {
  overflow: hidden;
  background: var(--wntic-white);
  border: 1px solid var(--wntic-border);
  border-radius: var(--wntic-radius-small);
  box-shadow: 0 6px 18px rgba(22, 48, 79, 0.06);
}

.wntic-course-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--wntic-primary);
}

.wntic-course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wntic-course-card__body {
  padding: 18px;
}

.wntic-progress {
  height: 12px;
  overflow: hidden;
  background: #e8edf3;
  border-radius: 999px;
}

.wntic-progress__bar {
  width: var(--wntic-progress, 0%);
  height: 100%;
  background: var(--wntic-accent);
  border-radius: inherit;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    z-index: 998;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 30px 24px;
    align-items: stretch;
    flex-direction: column;
    background: var(--wntic-white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .primary-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-menu a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--wntic-border);
    font-size: 1.05rem;
  }

  .primary-menu a::after {
    display: none;
  }

  .primary-navigation .wntic-button {
    width: 100%;
  }

  .hero-section__grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-section__content {
    text-align: center;
  }

  .hero-section__content p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-section__actions {
    justify-content: center;
  }

  .hero-section__visual {
    min-height: 410px;
  }

  .benefits-grid,
  .post-grid,
  .wntic-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wntic-container {
    width: min(calc(100% - 28px), var(--wntic-container));
  }

  .site-header__inner {
    min-height: 72px;
  }

  .site-branding img,
  .site-branding .custom-logo {
    width: 48px;
    height: 48px;
  }

  .site-branding__text strong {
    font-size: 1rem;
  }

  .site-branding__text small {
    font-size: 0.62rem;
  }

  .primary-navigation {
    top: 72px;
  }

  .hero-section__grid {
    padding-top: 52px;
    padding-bottom: 65px;
    gap: 25px;
  }

  .hero-section__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-section__visual {
    min-height: 320px;
  }

  .hero-section__visual::before {
    width: 300px;
    height: 300px;
  }

  .hero-section__visual::after {
    width: 70px;
    height: 70px;
    border-width: 12px;
  }

  .hero-logo-card {
    width: 240px;
    padding: 17px;
  }

  .hero-logo-card span {
    right: -10px;
    bottom: 3px;
    padding: 8px 11px;
    font-size: 0.64rem;
  }

  .benefits-grid,
  .post-grid,
  .wntic-course-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 0;
    padding: 28px;
  }

  .home-cta__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
