:root {
  --conx-red: #f01822;
  --conx-red-dark: #a90f18;
  --ink: #070808;
  --ink-soft: #101214;
  --panel: #151719;
  --panel-2: #1d2024;
  --line: rgba(255,255,255,.16);
  --text: #ffffff;
  --muted: rgba(255,255,255,.74);
  --light: #f5f5f2;
  --light-text: #171717;
  --shadow: 0 20px 70px rgba(0,0,0,.36);
  --radius: 8px;
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Montserrat, system-ui, sans-serif;
  line-height: 1.55;
}
body.wp-theme-conx-consorcio360-theme {
  background: #050606 !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover,
a:focus-visible {
  color: #fff;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 9999;
  background: var(--conx-red);
  color: #fff;
  padding: 10px 14px;
}
.skip-link:focus { left: 8px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  max-width: 1360px;
  min-height: 96px;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand img,
.footer-brand img {
  width: 210px;
  max-height: 70px;
  object-fit: contain;
}
.primary-nav { margin-left: auto; }
.primary-nav__list,
.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  opacity: .96;
  transition: color .18s ease, opacity .18s ease, background-color .18s ease, border-color .18s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #fff !important;
  opacity: 1;
}
.primary-nav li:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius);
  background: var(--conx-red);
  color: #fff !important;
}
.primary-nav li:last-child a:hover,
.primary-nav li:last-child a:focus-visible {
  background: #d9151e;
  color: #fff !important;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  border-radius: var(--radius);
  padding: 9px 12px;
  font-weight: 700;
}

.hero {
  min-height: 590px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.78) 42%, rgba(0,0,0,.18) 100%),
    var(--hero-image) center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "X";
  position: absolute;
  right: -70px;
  bottom: 30px;
  font-size: 360px;
  font-weight: 900;
  line-height: .7;
  color: rgba(240,24,34,.72);
  z-index: 0;
}
.hero__content {
  width: min(760px, calc(100% - 80px));
  margin-left: max(42px, calc((100vw - 1360px) / 2 + 42px));
  position: relative;
  z-index: 2;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  color: var(--conx-red);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-label::after {
  content: "";
  width: 94px;
  height: 2px;
  background: var(--conx-red);
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .96;
  font-weight: 800;
  text-transform: uppercase;
}
.hero__subtitle {
  margin: 22px 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  color: #fff;
}
.hero__text {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: 18px;
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--red { background: var(--conx-red); color: #fff; }
.btn--ghost { border: 1px solid var(--conx-red); color: #fff; }
.btn:hover,
.btn:focus-visible {
  color: #fff !important;
  transform: translateY(-1px);
}
.btn--red:hover,
.btn--red:focus-visible {
  background: #d9151e;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(240,24,34,.16);
  border-color: #ff3038;
}

.search-form {
  margin-top: 34px;
  width: min(450px, 100%);
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,.38);
}
.search-form label { flex: 1; }
.search-field {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 18px;
  font: inherit;
}
.search-field::placeholder { color: rgba(255,255,255,.68); }
.search-submit {
  min-height: 58px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.category-band {
  padding: 48px max(42px, calc((100vw - 1360px) / 2 + 42px)) 50px;
  margin: 0;
  background: #050606;
  color: #fff;
}
.section-heading {
  text-align: center;
  margin: 0 0 24px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.category-card {
  min-height: 205px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: #fff !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.category-card:hover,
.category-card:focus-visible {
  color: #fff !important;
  border-color: rgba(240,24,34,.7);
  background: linear-gradient(145deg, rgba(240,24,34,.14), rgba(255,255,255,.04));
  transform: translateY(-2px);
}
.conx-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: var(--conx-red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-card strong { font-size: 18px; }
.category-card span { color: rgba(255,255,255,.9); font-size: 14px; }

.featured-post {
  max-width: 1240px;
  margin: 0 auto 40px;
  min-height: 400px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.78) 46%, rgba(0,0,0,.18) 100%),
    var(--featured-image) center right / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.featured-post__content {
  width: min(600px, 100%);
  padding: 58px 48px;
}
.featured-post h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.09;
}
.featured-post p { color: #fff; font-size: 17px; }

.posts-section {
  background: var(--light);
  color: var(--light-text);
  padding: 28px 42px 56px;
}
.posts-section--related { padding-top: 56px; }
.section-heading--light h2 { color: #111; }
.section-heading--light h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--conx-red);
}
.post-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.07);
}
.post-card__media img {
  width: 128px;
  height: 164px;
  object-fit: cover;
  border-radius: 4px;
}
.post-card__cat,
.read-more {
  color: var(--conx-red);
  font-size: 13px;
  font-weight: 800;
}
.read-more:hover,
.read-more:focus-visible,
.post-card:hover .read-more {
  color: #b70f17 !important;
}
.post-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}
.post-card h2 a {
  color: #151515;
}
.post-card h2 a:hover,
.post-card h2 a:focus-visible {
  color: var(--conx-red);
}
.post-card p {
  margin: 0 0 12px;
  color: #2d2d2d;
  font-size: 14px;
  line-height: 1.4;
}

.final-cta {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 62px max(42px, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 80% 55%, rgba(240,24,34,.24), transparent 30%),
    linear-gradient(105deg, rgba(5,6,6,.98) 0%, rgba(8,9,10,.93) 56%, rgba(240,24,34,.13) 100%),
    url('../images/conx-bg.jpg') center right / cover no-repeat,
    linear-gradient(90deg, #050606, #111416);
  display: flex;
  align-items: center;
}
.final-cta > div {
  max-width: 720px;
  position: relative;
  z-index: 2;
}
.final-cta h2 {
  margin: 16px 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}
.final-cta p { color: #fff; font-size: 17px; }
.x-mark {
  display: none;
}

.category-landing-hero,
.about-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 92px max(42px, calc((100vw - 1240px) / 2)) 72px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.86) 48%, rgba(0,0,0,.38) 100%),
    url('../images/conx-hero-consorcio.jpg') center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.category-landing-hero::after,
.about-hero::after {
  content: "";
  position: absolute;
  inset: auto -7vw -22vw auto;
  width: 34vw;
  height: 34vw;
  min-width: 300px;
  min-height: 300px;
  background: rgba(240,24,34,.2);
  transform: rotate(45deg);
}
.category-landing-hero__inner,
.about-hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.category-landing-hero .conx-icon svg {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}
.category-landing-hero h1,
.about-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 7vw, 84px);
  line-height: .96;
  text-transform: uppercase;
}
.category-landing-hero p:not(.section-label),
.about-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #fff;
  font-size: 19px;
}
.category-posts {
  padding: 58px max(42px, calc((100vw - 1240px) / 2)) 72px;
  background: #050606;
  color: #fff;
}
.category-posts__head {
  margin-bottom: 28px;
}
.category-posts__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}
.category-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card--dark {
  grid-template-columns: 1fr;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: none;
}
.post-card--dark .post-card__media img {
  width: 100%;
  height: 220px;
  border-radius: 0;
}
.post-card--dark .post-card__body {
  padding: 22px;
}
.post-card--dark .post-card__cat,
.post-card--dark .read-more {
  color: #ff3038;
}
.post-card--dark h2 a,
.post-card--dark p {
  color: #fff;
}
.post-card--dark h2 {
  font-size: 22px;
}
.post-card--dark p {
  color: rgba(255,255,255,.9);
  font-size: 15px;
}
.post-card--dark:hover,
.post-card--dark:focus-within {
  border-color: rgba(240,24,34,.72);
  transform: translateY(-2px);
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 58px max(42px, calc((100vw - 1240px) / 2));
  background: #050606;
}
.about-pillar {
  min-height: 230px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}
.about-pillar h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 24px;
}
.about-pillar p,
.empty-state {
  color: #fff;
}
.final-cta--compact {
  min-height: 300px;
}

.archive-hero,
.single-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 76px 42px;
}
.archive-hero {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.archive-hero h1,
.entry-header h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
}
.archive-hero p,
.entry-meta {
  color: #fff;
  font-size: 17px;
}
.entry {
  background: #fff;
  color: #141414;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.entry-header {
  padding: 54px 58px 28px;
}
.eyebrow {
  color: var(--conx-red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}
.entry-meta {
  display: flex;
  gap: 14px;
  color: #666;
  margin-top: 18px;
}
.entry-media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.entry-content {
  padding: 42px 58px 58px;
  font-size: 18px;
  line-height: 1.75;
}
.entry-content a { color: var(--conx-red); font-weight: 700; }
.entry-content h2,
.entry-content h3 { line-height: 1.2; }
.entry-footer { padding: 0 58px 58px; }
.tags a {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f0f0ef;
  color: #222;
  font-size: 13px;
}
.navigation.pagination {
  max-width: 1240px;
  margin: 28px auto 0;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.page-numbers {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #fff;
  color: #111;
}
.page-numbers.current {
  background: var(--conx-red);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050505;
  color: #fff;
}
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 42px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.footer-nav__list {
  justify-content: flex-end;
  gap: 18px;
  font-size: 13px;
}
.footer-nav__list a {
  color: rgba(255,255,255,.78) !important;
}
.footer-nav__list a:hover,
.footer-nav__list a:focus-visible {
  color: #fff !important;
}
.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}
.footer-widgets { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .site-header__inner { min-height: 78px; padding: 0 22px; }
  .brand img { width: 150px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    padding: 20px 22px 26px;
    background: #050505;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { align-items: stretch; flex-direction: column; gap: 10px; }
  .primary-nav li:last-child a { min-height: 46px; }
  .hero { min-height: 620px; align-items: flex-end; padding-bottom: 44px; }
  .hero__content { width: calc(100% - 44px); margin: 0 22px; }
  .category-grid,
  .post-grid,
  .category-post-grid,
  .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-post { margin-left: 22px; margin-right: 22px; }
}

@media (max-width: 680px) {
  .hero::after { font-size: 210px; right: -50px; }
  .category-band,
  .posts-section,
  .category-landing-hero,
  .about-hero,
  .category-posts,
  .about-pillars,
  .archive-hero,
  .single-wrap { padding-left: 20px; padding-right: 20px; }
  .category-grid,
  .post-grid,
  .category-post-grid,
  .about-pillars { grid-template-columns: 1fr; }
  .featured-post {
    min-height: 460px;
    background-position: center;
  }
  .featured-post__content { padding: 36px 24px; }
  .post-card { grid-template-columns: 104px 1fr; padding: 14px; }
  .post-card__media img { width: 104px; height: 142px; }
  .final-cta { padding: 44px 22px; }
  .x-mark { opacity: .24; right: -20px; }
  .entry-header,
  .entry-content,
  .entry-footer { padding-left: 24px; padding-right: 24px; }
  .site-footer__inner { grid-template-columns: 1fr; padding: 30px 22px; }
  .footer-nav__list { justify-content: flex-start; flex-wrap: wrap; }
}
