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

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f8f4e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 40, 24, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.whatsapp-fab__btn {
  display: grid;
  place-items: center;
}

.whatsapp-fab__btn svg {
  width: 24px;
  height: 24px;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  background: #187a42;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

/* ===== 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);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

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: #ffffff;
}

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.4);
  color: #ffffff;
}

.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); }

/* Dropdown Servicios */
.nav-drop {
  position: relative;
  flex-shrink: 0;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.nav-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--silver);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.nav-drop__btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-drop__btn:hover,
.nav-drop:hover .nav-drop__btn,
.nav-drop.is-open .nav-drop__btn,
.nav-drop.is-open-page .nav-drop__btn {
  color: var(--gold);
}

.nav-drop:hover .nav-drop__btn svg,
.nav-drop.is-open .nav-drop__btn svg {
  transform: rotate(180deg);
}

.nav-drop__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 10px;
  margin-top: 0;
  border-radius: 12px;
  background: rgba(26, 29, 33, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 200;
}

/* Puente invisible para no perder el hover al bajar al menú */
.nav-drop__menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.nav-drop__menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

.nav-drop__menu a:hover,
.nav-drop__menu a.is-active {
  color: #fff;
  background: rgba(0, 184, 169, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .nav-drop:hover .nav-drop__menu,
  .nav-drop.is-open .nav-drop__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-drop.is-open .nav-drop__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.navbar__links .btn--sm {
  padding: 10px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  background: var(--gold);
  color: #ffffff !important;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 22px rgba(var(--gold-rgb), 0.35);
}

.navbar__links .btn--sm:hover {
  background: var(--gold-hover);
  color: #ffffff !important;
  border-color: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(var(--gold-rgb), 0.5);
}

.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-nodes {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.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: none;
  cursor: default;
  text-decoration: none;
  user-select: 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;
}

@media (hover: hover) and (min-width: 993px) {
  .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;
}

.mv-card p + p {
  margin-top: 14px;
}

/* ===== 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(3, 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(3, 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;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--silver);
  line-height: 1.45;
}

.contact__list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}

.contact__list a,
.contact__list span {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.02em;
  font-style: normal;
  font-weight: 500;
}

.contact__list a[href^="tel:"] {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.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);
}
.contact__bottom a { color: var(--gold); text-decoration: none; }
.contact__bottom a:hover { text-decoration: underline; }

@media (hover: none) {
  .pillar-card__hint::after { content: ' (tocá)'; }
}
@media (max-width: 992px) {
  .hero__layout { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .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: 4px auto 0;
    width: 100%;
    max-width: 360px;
  }
  .hero__hub-visual {
    position: relative;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    --hub-r: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 4px 0 0;
  }
  .hero__hub-svg { display: none !important; }
  .hero__hub-core {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 124px;
    min-height: 124px;
    margin: 0 auto;
    padding: 16px 12px;
    flex-shrink: 0;
  }
  .hero__hub-logo { font-size: 1.35rem; letter-spacing: 0.14em; }
  .hero__hub-tagline { font-size: 0.55rem; }
  .hero__hub-nodes {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    justify-items: center;
    pointer-events: none;
  }
  .hero__hub-node {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 148px;
    transform: none !important;
    gap: 6px;
  }
  .hero__hub-node:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 148px;
  }
  .hero__hub-node__badge {
    width: 48px;
    height: 48px;
  }
  .hero__hub-node__badge svg {
    width: 22px;
    height: 22px;
  }
  .hero__hub-node__label {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    white-space: normal;
    line-height: 1.2;
  }
  .hero__hub-text {
    margin-top: 4px;
    font-size: 0.9rem;
    padding: 0 8px;
  }
  .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;
  }

  .nav-drop {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-drop__btn {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
  }

  .nav-drop__menu {
    position: static;
    left: auto;
    transform: none !important;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none;
  }

  .nav-drop__menu::before { display: none; }

  .nav-drop.is-open .nav-drop__menu {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 40px;
  }
  .hero__title { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .hero__hub { max-width: 320px; }
  .hero__hub-core {
    width: 112px;
    min-height: 112px;
  }
  .hero__hub-nodes { gap: 10px 8px; }
  .hero__hub-node__badge {
    width: 44px;
    height: 44px;
  }

  .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; }
}
