/* ===== Variables base (colores en themes.css) ===== */
:root {
  --font: 'Raleway', sans-serif;
  --radius: 8px;
  --transition: 0.3s ease;
}

/* Selector de versión del sitio */
.version-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9998;
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--navy-dark);
  color: var(--white);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(var(--navy-dark-rgb), 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.version-fab a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--silver);
  text-decoration: none;
}
.version-fab a.is-active,
.version-fab a:hover {
  background: var(--gold);
  color: var(--btn-on-gold);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--navy-dark);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn--gold {
  background: var(--gold);
  color: var(--btn-on-gold);
}

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 22px; font-size: 0.8rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-dark);
  box-shadow: 0 2px 16px rgba(13, 27, 42, 0.2);
  transition: box-shadow var(--transition);
}

.navbar--solid {
  background: var(--navy-dark);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.navbar .container.navbar__inner {
  width: min(1240px, 96%);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
}

.logo-text small {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.15em;
}

.logo-mark--sm { width: 36px; height: 45px; }
.logo-mark--lg { width: 80px; height: 100px; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 18px);
  flex-wrap: nowrap;
  min-width: 0;
}

.navbar__links a {
  color: var(--silver);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  transition: color var(--transition);
  flex-shrink: 0;
}

.navbar__links a:hover { color: var(--gold); }

.navbar__links .btn--sm {
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.navbar__link--hse.is-active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

@media (max-width: 1100px) {
  .logo-text small { display: none; }

  .navbar__links a {
    font-size: 0.7rem;
  }

  .navbar__links {
    gap: 10px;
  }
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  filter: brightness(0.82) saturate(0.92);
  transition: opacity 1.4s ease, transform 8s ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(var(--gold-rgb), 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(var(--accent-2-rgb), 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(var(--navy-rgb), 0.22) 0%, transparent 50%);
  animation: meshPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(var(--navy-dark-rgb), 0.82) 0%,
    rgba(var(--navy-dark-rgb), 0.68) 45%,
    rgba(var(--navy-rgb), 0.52) 100%
  );
}

.hero__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: 20px;
  margin-bottom: 20px;
  background: rgba(var(--gold-rgb), 0.1);
}

.hero__title {
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.hero__value {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 24px;
  color: #fff;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero__rotator {
  color: var(--gold);
  display: inline-block;
  min-width: 9ch;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__rotator.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero__caption {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 12px;
  max-width: 480px;
  line-height: 1.6;
  min-height: 3em;
  transition: opacity 0.5s ease;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.hero__caption.is-changing { opacity: 0; }

.hero__tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero__line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__indicators {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.hero__dot {
  width: 36px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.4s ease, width 0.4s ease;
}

.hero__dot.is-active {
  background: var(--gold);
  width: 52px;
}

.hero__hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__hub-visual {
  position: relative;
  width: min(420px, 92vw);
  height: min(420px, 92vw);
  --hub-r: calc(min(420px, 92vw) * 0.37);
}

.hero__hub-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.15));
}

.hero__hub-orbit {
  transform-origin: 200px 200px;
  animation: hubSpin 80s linear infinite;
}

.hero__hub-orbit--inner {
  animation: hubSpin 50s linear infinite reverse;
}

.hero__hub-line {
  stroke: rgba(var(--gold-rgb), 0.55);
  stroke-width: 2;
}

.hero__hub-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 148px;
  min-height: 148px;
  padding: 22px 16px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(30, 58, 95, 0.95) 0%, rgba(13, 27, 42, 0.98) 100%);
  border: 2.5px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  box-shadow:
    0 0 0 6px rgba(var(--gold-rgb), 0.08),
    0 0 50px rgba(var(--gold-rgb), 0.3),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hero__hub-logo {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--white);
  margin: 0;
  padding-left: 0.2em;
}

.hero__hub-divider {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin: 14px 0 12px;
  border-radius: 1px;
}

.hero__hub-tagline {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.55;
  margin: 0;
}

.hero__hub-node {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 108px;
  text-align: center;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  /* Centro del ícono sobre la órbita; --a = ángulo desde arriba, horario */
  transform: translate(-50%, -28px) rotate(var(--a, 0deg)) translateY(calc(var(--hub-r) * -1)) rotate(calc(var(--a, 0deg) * -1));
  transition: transform 0.35s ease;
}

.hero__hub-node__badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.92);
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(var(--gold-rgb), 0.2);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hero__hub-node__badge svg {
  width: 26px;
  height: 26px;
}

.hero__hub-node__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(var(--navy-dark-rgb), 0.62);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero__hub-node:hover {
  transform: translate(-50%, -28px) rotate(var(--a, 0deg)) translateY(calc(var(--hub-r) * -1 - 8px)) rotate(calc(var(--a, 0deg) * -1));
}

.hero__hub-node:hover .hero__hub-node__badge {
  background: var(--gold);
  color: var(--navy-dark);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(var(--gold-rgb), 0.55);
}

.hero__hub-node:hover .hero__hub-node__label {
  background: var(--gold);
  color: var(--btn-on-gold);
  border-color: var(--gold);
  text-shadow: none;
}

@keyframes hubSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__hub-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.hero__hub-text em {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--navy-dark);
  padding: 0;
  position: relative;
  z-index: 4;
  margin-top: -1px;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(var(--gold-rgb), 0.2);
}

.stat {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.stat:last-child { border-right: none; }

.stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  font-size: 0.8rem;
  color: var(--silver);
  line-height: 1.4;
}

/* ===== Explore Cards ===== */
.explore {
  padding: 64px 0 72px;
  background: var(--white);
}

.explore__header {
  text-align: center;
  margin-bottom: 40px;
}

.explore__header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.explore__header p {
  color: var(--gray);
  font-size: 1rem;
}

.explore__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.explore__card {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 42, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.explore__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(13, 27, 42, 0.18);
}

.explore__card-bg {
  position: absolute;
  inset: 0;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.explore__card:hover .explore__card-bg {
  transform: scale(1.08);
}

.explore__card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.5) 50%, rgba(13, 27, 42, 0.2) 100%);
  transition: background 0.4s ease;
}

.explore__card:hover .explore__card-bg::after {
  background: linear-gradient(to top, rgba(13, 27, 42, 0.97) 0%, rgba(30, 58, 95, 0.7) 100%);
}

.explore__card--highlight .explore__card-bg::after {
  background: linear-gradient(to top, rgba(var(--navy-rgb), 0.95) 0%, rgba(var(--gold-rgb), 0.15) 100%);
}

.explore__card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  color: var(--white);
}

.explore__card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.explore__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
}

.explore__card p {
  font-size: 0.8rem;
  color: var(--silver);
  line-height: 1.5;
  margin-bottom: 12px;
}

.explore__card-arrow {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.explore__card:hover .explore__card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity 0.5s ease; transform: none !important; }
  .hero__mesh { animation: none; }
  .hero__scroll span { animation: none; }
  .hero__hub-orbit,
  .hero__hub-orbit--inner { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--gray { background: var(--bg-light); }

.section--dark {
  background: var(--navy-dark);
  color: var(--white);
}

.section__lead {
  max-width: 720px;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  margin: -32px 0 40px;
}

.section--dark .section__lead { color: var(--silver); }

.section__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.section__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-dark);
}

.section__header--light h2 { color: var(--white); }

.section__number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about__quote {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--navy-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  border-left: 4px solid var(--gold);
  position: relative;
}

.about__quote-mark {
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  font-family: Georgia, serif;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ===== Misión y Visión ===== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mv-card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.mv-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 12px 0 16px;
}

.mv-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Values Bar ===== */
.values-bar {
  padding: 20px 0;
}

.values-bar--dark { background: var(--navy-dark); }
.values-bar--light { background: var(--white); border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); }

.values-bar__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.values-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.values-bar--dark .values-bar__item { color: var(--silver); }
.values-bar--light .values-bar__item { color: var(--navy); }

.values-bar__item svg { width: 28px; height: 28px; }

.values-bar__item span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Pillars (hover flip cards) ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pillar-card {
  perspective: 1000px;
  min-height: 300px;
  cursor: pointer;
}

.pillar-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.pillar-card:hover .pillar-card__inner,
.pillar-card.is-flipped .pillar-card__inner {
  transform: rotateY(180deg);
}

.pillar-card__front,
.pillar-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.pillar-card__front {
  background: var(--white);
  justify-content: center;
}

.pillar-card__back {
  background: var(--navy-dark);
  color: var(--white);
  transform: rotateY(180deg);
  justify-content: center;
  overflow: hidden;
}

.pillar-card__back h3 {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.pillar-card__back p {
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.55;
  text-align: center;
  width: 100%;
}

.pillar-card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.pillar-card__link:hover {
  border-color: var(--gold);
}
}

.pillar-card__summary {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 16px;
}

.pillar-card__hint {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
}

.pillar h3,
.pillar-card__front h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.pillar__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar__icon svg { width: 48px; height: 48px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card__area {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 4px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.service-card__link {
  display: block;
  color: inherit;
}

.service-card:hover { transform: translateY(-6px); }

.service-card__img { height: 200px; overflow: hidden; }

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__img img { transform: scale(1.05); }

.service-card__body {
  background: var(--navy-dark);
  padding: 24px;
  position: relative;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -46px;
  margin-bottom: 16px;
  color: var(--navy-dark);
}

.service-card__icon svg { width: 22px; height: 22px; }

.service-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.service-card__body p {
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.5;
}

/* ===== Projects ===== */
.projects {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.projects__sectors { display: flex; flex-direction: column; gap: 24px; }

.sector {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sector svg { width: 32px; height: 32px; flex-shrink: 0; margin-top: 2px; }

.sector h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.sector p { font-size: 0.85rem; color: var(--gray); }

.projects__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.projects__gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.projects__gallery img:hover { transform: scale(1.03); }

/* ===== Why NEXO ===== */
.why-nexo-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.why-nexo__main .section__header {
  margin-bottom: 24px;
}

.why-nexo__intro {
  font-size: 1.05rem;
  color: var(--silver);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.7;
}

.why-nexo__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.why-nexo__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(191, 197, 204, 0.15);
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
}

.why-nexo__list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.why-nexo__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 40px 32px;
  background: rgba(30, 58, 95, 0.5);
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
}

.why-nexo__badge svg {
  width: 72px;
  height: 72px;
}

.why-nexo__closing {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--white);
}

.why-nexo__closing em {
  color: var(--gold);
  font-style: normal;
}

/* ===== Contact ===== */
.contact {
  position: relative;
  color: var(--white);
  padding-top: 80px;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1920&q=80') center/cover no-repeat;
}

.contact__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.94) 60%, rgba(30, 58, 95, 0.9) 100%);
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 60px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--silver);
}

.contact__list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); }

.contact__list a:hover { color: var(--gold); }

.contact__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tag--navy { background: var(--navy-dark); color: var(--white); border: 1px solid var(--silver); }
.tag--blue { background: var(--navy); color: var(--white); }
.tag--gold { background: var(--gold); color: var(--btn-on-gold); }
.tag--gray { background: var(--gray); color: var(--white); }
.tag--silver { background: var(--silver); color: var(--navy-dark); }

.contact__logo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__logo-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 12px;
}

.contact__logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--silver);
  margin-top: 4px;
}

.contact__logo-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-top: 12px;
}

.contact__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(191, 197, 204, 0.2);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--silver);
}

@media (hover: none) {
  .pillar-card__hint::after { content: ' (tocá)'; }
}
@media (max-width: 992px) {
  .hero__layout { grid-template-columns: 1fr; text-align: center; }
  .hero__content { align-items: center; text-align: center; }
  .hero__caption { margin-left: auto; margin-right: auto; }
  .hero__cta-group { justify-content: center; }
  .hero__indicators { justify-content: center; }
  .hero__hub { margin: 32px auto 0; }
  .hero__hub-visual {
    width: min(300px, 85vw);
    height: min(300px, 85vw);
    --hub-r: calc(min(300px, 85vw) * 0.37);
  }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .why-nexo-layout { grid-template-columns: 1fr; }
  .why-nexo__list { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }

  .navbar__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
  }

  .navbar__links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .hero__cta-group { flex-direction: column; width: 100%; }
  .hero__cta-group .btn { text-align: center; width: 100%; }
  .explore__track { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat:last-child { border-bottom: none; }
  .about { grid-template-columns: 1fr; }
  .about__image { order: -1; }
  .pillars { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 280px; }
  .pillar-card__inner { min-height: 280px; }
  .values-bar__inner { justify-content: center; }
  .section { padding: 60px 0; }
}
