/* ═══════════════════════════════════════════════════════════
   AppleThan Road — Main Stylesheet
   Centraliza: variables, navbar, footer, animations,
               secciones de index y de verticales.
═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Avenir';
  src: url('../fonts/Avenir-Black.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('../fonts/Avenir-Book.woff2') format('woff2');
  font-weight: 300 400 500 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --gold-dim: #8A6E2F;
  --onyx: #1E1E2E;
  --onyx2: #262640;
  --onyx3: #303050;
  --onyx4: #3A3A58;
  --glass: rgba(255,255,255,0.07);
  --glass-border: rgba(201,168,76,0.18);
  --glass-border-hover: rgba(201,168,76,0.45);
  --text-primary: #FDFCF8;
  --text-secondary: #CEC7BC;
  --text-muted: #9A9088;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Avenir', 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--onyx);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--onyx2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ─── NAVBAR ─── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(20,34,72,0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(201,168,76,0.20);
  transition: background 0.4s;
}

nav.scrolled {
  background: rgba(20,34,72,0.88);
  border-bottom-color: rgba(201,168,76,0.28);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  position: relative;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  padding-bottom: 4px;
  display: block;
}

.nav-links > li > a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
  margin-top: 3px;
}

.nav-links > li:hover > a,
.nav-links > li > a:hover { color: var(--gold); }
.nav-links > li:hover > a::after { width: 100%; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(18,18,26,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 8px 0;
  box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.06);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: rgba(18,18,26,0.96);
  border-left: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
  transform: translateX(-50%) rotate(45deg);
}

.nav-links > li:hover .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.dropdown a:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  border-left-color: var(--gold);
  padding-left: 24px;
}

.nav-cta {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 8px 22px;
  border-radius: 2px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(201,168,76,0.16);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}

/* ─── FOOTER ─── */

footer {
  border-top: 1px solid rgba(201,168,76,0.16);
  padding: 60px 48px 40px;
  background: var(--onyx2);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand img {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 2.0;
  color: var(--text-muted);
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.04em;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1400px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ─── ANIMATIONS ─── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION COMMON ─── */

.section {
  padding: 120px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold-dim);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-title em { font-style: italic; color: var(--gold-light); }

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-secondary);
  max-width: 560px;
}


/* ── INDEX · HERO ── */
/* ─── HERO ─── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(180deg, rgba(20,34,72,0.59) 0%, rgba(20,34,72,0.39) 50%, rgba(20,34,72,0.66) 100%),
  will-change: transform;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 32px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '——';
  margin: 0 12px;
  opacity: 0.5;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 2.1;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.7s;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.9s;
}

.btn-primary {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--onyx);
  background: var(--gold);
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 2px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 32px rgba(201,168,76,0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.2s;
}

.hero-scroll span {
  font-size: 0.80rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* ── INDEX · INTRO STATS ── */
/* ─── INTRO STATS ─── */

.stats-band {
  border-top: 1px solid rgba(201,168,76,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  background:
    linear-gradient(90deg, rgba(20,34,72,0.85), rgba(20,34,72,0.78), rgba(20,34,72,0.85)),
    url('../images/stock_148640614692.jpg') center/cover no-repeat;
  padding: 60px 48px;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.16);
}

.stat-item {
  background: var(--onyx);
  padding: 40px 32px;
  text-align: center;
  transition: background 0.3s;
}

.stat-item:hover { background: var(--onyx2); }

.stat-number {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ── INDEX · VERTICALS GRID ── */
/* ─── VERTICALS GRID ─── */

.verticals-section {
  padding: 120px 48px;
}

.verticals-header {
  max-width: 1400px;
  margin: 0 auto 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.verticals-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.08);
}

.vertical-card {
  position: relative;
  background: var(--onyx2);
  padding: 52px 44px 44px;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.4s;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  group: true;
}

.vertical-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.vertical-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.vertical-card:hover {
  background: var(--onyx3);
}

.vertical-card:hover::before { opacity: 1; }
.vertical-card:hover::after { transform: scaleX(1); }

.card-number {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 300;
  color: rgba(201,168,76,0.18);
  line-height: 1;
  position: absolute;
  top: 28px;
  right: 36px;
  transition: color 0.4s;
}

.vertical-card:hover .card-number {
  color: rgba(201,168,76,0.22);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  opacity: 0.6;
  transition: opacity 0.4s;
}

.vertical-card:hover .card-icon { opacity: 1; }

.card-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.vertical-card:hover .card-title { color: var(--gold-light); }

.card-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 2.0;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 32px;
}

.card-services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.card-services li {
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 4px 10px;
  border-radius: 1px;
  transition: all 0.3s;
}

.vertical-card:hover .card-services li {
  border-color: rgba(201,168,76,0.28);
  color: var(--text-secondary);
}

.card-arrow {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.card-arrow::after {
  content: '→';
  transition: transform 0.3s;
}

.vertical-card:hover .card-arrow {
  color: var(--gold);
  gap: 14px;
}

.vertical-card:hover .card-arrow::after {
  transform: translateX(4px);
}


/* ── INDEX · PHILOSOPHY ── */
/* ─── PHILOSOPHY ─── */

.philosophy {
  padding: 140px 48px;
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.philosophy-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.philosophy-quote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 40px 0;
  font-style: italic;
}

.philosophy-quote strong {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-light);
}

.philosophy-author {
  font-size: 1.08rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ── INDEX · APPROACH ── */
/* ─── APPROACH ─── */

.approach {
  padding: 120px 48px;
  background:
    linear-gradient(90deg, rgba(20,34,72,0.88) 0%, rgba(20,34,72,0.79) 55%, rgba(20,34,72,0.59) 100%),
    url('../images/stock_149736621654.jpg') right center/cover no-repeat;
  position: relative;
}

.approach-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
  cursor: default;
}

.step:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.step:hover { background: rgba(201,168,76,0.03); padding-left: 8px; }

.step-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-dim);
  padding-top: 2px;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.step:hover .step-title { color: var(--gold); }

.step-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 2.0;
  color: var(--text-muted);
}

.approach-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.orb-outer {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.16);
  animation: orbitSpin 20s linear infinite;
}

.orb-middle {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
  animation: orbitSpin 14s linear infinite reverse;
}

.orb-inner {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.22);
  animation: orbitSpin 8s linear infinite;
}

.orb-core {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.3) 0%, rgba(201,168,76,0.05) 60%, transparent 100%);
  border: 1px solid rgba(201,168,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.80rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.orb-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
}

.orb-outer .orb-dot { top: -3px; left: 50%; transform: translateX(-50%); }
.orb-middle .orb-dot { top: -3px; right: 30px; }
.orb-inner .orb-dot { bottom: -3px; left: 20px; }


/* ── INDEX · CONTACT TEASER ── */
/* ─── CONTACT TEASER ─── */

.contact-teaser {
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20,34,72,0.82) 0%, rgba(20,34,72,0.72) 50%, rgba(20,34,72,0.84) 100%),
    url('../images/stock_149736681135.jpg') center/cover no-repeat;
}

.contact-teaser::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.contact-teaser::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.16);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.contact-teaser-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.contact-teaser h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
}

.contact-teaser h2 em { font-style: italic; color: var(--gold-light); }

.contact-teaser p {
  font-size: 1.0rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-secondary);
  margin-bottom: 48px;
}


/* ── INDEX · DIVIDER ── */
/* ─── DIVIDER ─── */

.gold-divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 40px;
}


/* ── VERTICAL · HERO IMAGE ── */
/* ── HERO IMAGE ── */

.hero-vert-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(20,34,72,0.78) 0%, rgba(20,34,72,0.44) 55%, rgba(20,34,72,0.72) 100%);
}


/* ── VERTICAL · SUBSECTION IMAGE PANELS ── */
/* ── SUBSECTION IMAGE PANELS ── */

.sub-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  height: 320px;
  flex-shrink: 0;
}
.sub-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) brightness(0.85);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.sub-img-wrap:hover img {
  transform: scale(1.04);
  filter: saturate(0.9) brightness(0.95);
}
.sub-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,14,32,0.5) 100%);
  pointer-events: none;
}


/* ── VERTICAL · ADJUST SUBSECTION BODY LAYOUT TO INCLUDE IMAGE ── */
/* ── ADJUST SUBSECTION BODY LAYOUT TO INCLUDE IMAGE ── */

.sub-body {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.sub-body-left { display: flex; flex-direction: column; gap: 0; }
.sub-deco-stack { display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 1100px) {
  .sub-body { grid-template-columns: 1fr; gap: 32px; }
  .sub-img-wrap { height: 240px; }
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1100px) {
  .verticals-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .approach-inner { grid-template-columns: 1fr; gap: 60px; }
  .approach-visual { height: 300px; }
  .orb-outer { width: 260px; height: 260px; }
  .orb-middle { width: 190px; height: 190px; }
  .orb-inner { width: 120px; height: 120px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .section, .verticals-section, .philosophy, .approach, .contact-teaser { padding: 80px 24px; }
  .verticals-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .verticals-header { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
/* ══════════════════════════════════════════════════════════
   VERTICAL PAGES — hero, subsections, deco, vert-nav
══════════════════════════════════════════════════════════ */

/* ── HERO VERTICAL ── */
.hero-vert {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-vert-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(20,34,72,0.82) 0%, rgba(20,34,72,0.49) 55%, rgba(20,34,72,0.76) 100%);
}

.hero-vert-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 30%, black 70%, transparent);
}

.hero-vert-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.hero-vert-tag {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.80rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 28px;
}

.hero-vert-tag .tag-num {
  font-family: var(--serif); font-size: 1rem;
  color: var(--gold-dim); font-style: italic;
}

.hero-vert-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--text-primary); margin-bottom: 24px;
}

.hero-vert-sub {
  font-size: 1.05rem; font-weight: 300; letter-spacing: 0.04em;
  line-height: 2.1; color: var(--text-secondary);
  margin-bottom: 40px; max-width: 460px;
}

.hero-vert-intro {
  font-family: var(--serif); font-size: 1.3rem; font-style: italic;
  font-weight: 300; line-height: 1.7; color: var(--text-secondary);
  border-left: 1px solid rgba(201,168,76,0.3); padding-left: 28px;
}

.hero-vert-links {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 4px; overflow: hidden; margin-top: 32px;
}

.hero-vert-links a {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; font-size: 0.88rem; font-weight: 400;
  letter-spacing: 0.06em; color: var(--text-secondary);
  text-decoration: none; transition: all 0.2s;
  border-bottom: 1px solid rgba(201,168,76,0.06);
}

.hero-vert-links a:last-child { border-bottom: none; }

.hero-vert-links a::before {
  content: '·'; color: var(--gold-dim); font-size: 1rem;
}

.hero-vert-links a:hover {
  color: var(--gold-light);
  background: rgba(201,168,76,0.05);
  padding-left: 28px;
}

/* ── SUBSECTIONS ── */
.subsection { padding: 100px 48px; position: relative; }
.subsection-even { background: var(--onyx2); }
.subsection-odd  { background: var(--onyx); }

.subsection::before {
  content: '';
  position: absolute; top: 0; left: 48px; right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.18), transparent);
}

.subsection-inner { max-width: 1200px; margin: 0 auto; }

.sub-header {
  display: flex; align-items: baseline; gap: 28px;
  margin-bottom: 56px;
}

.sub-number {
  font-family: var(--serif); font-size: 4.5rem; font-weight: 300;
  color: rgba(201,168,76,0.20); line-height: 1; flex-shrink: 0;
  transition: color 0.4s;
}

.sub-header:hover .sub-number { color: rgba(201,168,76,0.28); }

.sub-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300; line-height: 1.2; color: var(--text-primary);
}

.sub-body {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 64px; align-items: start;
}

.sub-text p {
  font-size: 1.05rem; font-weight: 300; line-height: 2.2;
  color: var(--text-secondary); margin-bottom: 32px;
}

.sub-bullets {
  list-style: none; display: flex; flex-direction: column;
  gap: 12px; margin-bottom: 40px;
}

.sub-bullets li {
  font-size: 0.95rem; font-weight: 300; letter-spacing: 0.04em;
  color: var(--text-muted); display: flex; align-items: flex-start;
  gap: 14px; transition: color 0.3s;
}

.sub-bullets li::before {
  content: '';
  display: block; flex-shrink: 0;
  width: 16px; height: 1px;
  background: var(--gold-dim); margin-top: 9px;
}

.sub-bullets li:hover { color: var(--text-secondary); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.08rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 4px; transition: all 0.3s;
}

.btn-cta::after { content: '→'; transition: transform 0.3s; }

.btn-cta:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.btn-cta:hover::after { transform: translateX(4px); }

/* ── DECO CARD ── */
.sub-deco-stack { display: flex; flex-direction: column; gap: 24px; }

.deco-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 4px; padding: 36px 32px;
  position: sticky; top: 100px;
  transition: border-color 0.4s;
}

.deco-card:hover { border-color: rgba(201,168,76,0.38); }

.deco-label {
  font-size: 1.0rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}

.deco-area {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 300;
  color: var(--gold-light); margin-bottom: 24px; line-height: 1.4;
}

.deco-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
  margin-bottom: 24px;
}

.deco-service {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 300;
  color: var(--text-primary); line-height: 1.3; margin-bottom: 32px;
}

.deco-cta-wrap {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.deco-cta {
  font-size: 1.08rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-dim);
  text-decoration: none; transition: color 0.3s;
}

.deco-cta:hover { color: var(--gold); }

/* ── SUB IMAGE WRAP ── */
.sub-img-wrap {
  position: relative; overflow: hidden;
  border-radius: 2px; height: 320px; flex-shrink: 0;
}

.sub-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.75) brightness(0.88);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.sub-img-wrap:hover img {
  transform: scale(1.04);
  filter: saturate(0.95) brightness(0.98);
}

.sub-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,34,72,0.39) 100%);
  pointer-events: none;
}

/* ── VERTICAL NAVIGATION FOOTER ── */
.vert-nav {
  padding: 80px 48px;
  background:
    linear-gradient(90deg, rgba(12,22,52,0.97) 0%, rgba(20,34,72,0.84) 100%),
    url('../images/stock_149736675403.jpg') center/cover no-repeat;
  border-top: 1px solid rgba(201,168,76,0.16);
}

.vert-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
}

.vert-nav-link {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; transition: opacity 0.3s; max-width: 280px;
}

.vert-nav-link:hover { opacity: 0.7; }

.vert-nav-direction {
  font-size: 1.0rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-muted);
}

.vert-nav-title {
  font-family: var(--serif); font-size: 1.6rem;
  font-weight: 300; color: var(--text-primary);
}

.vert-nav-arrow {
  font-size: 1.3rem; color: var(--gold-dim);
  align-self: center; flex-shrink: 0;
}

/* ── VERTICAL NAV CSS (vertical pages nav bar) ── */
.nav-area-label {
  font-size: 0.80rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  border-left: 1px solid rgba(201,168,76,0.3); padding-left: 24px;
}

.nav-right {
  display: flex; align-items: center; gap: 32px;
}

.nav-back {
  font-size: 0.80rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; transition: color 0.3s;
  display: flex; align-items: center; gap: 8px;
}

.nav-back::before { content: '←'; }
.nav-back:hover { color: var(--gold); }

/* Hero animation for vertical pages */
.hero-vert-inner > * {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}
.hero-vert-inner > *:nth-child(1) { animation-delay: 0.2s; }
.hero-vert-inner > *:nth-child(2) { animation-delay: 0.4s; }

/* ── RESPONSIVE VERTICAL ── */
@media (max-width: 1100px) {
  .hero-vert-inner { grid-template-columns: 1fr; gap: 48px; }
  .sub-body { grid-template-columns: 1fr; gap: 40px; }
  .deco-card { position: static; }
  .sub-img-wrap { height: 240px; }
}

@media (max-width: 768px) {
  .hero-vert { padding: 100px 24px 60px; }
  .subsection { padding: 60px 24px; }
  .vert-nav { padding: 60px 24px; }
  .vert-nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-area-label { display: none; }
}


/* ── HERO IMAGES PER PAGE (resolves ../images/ from styles/) ── */

body.page-index .hero-bg,
body.page-index .hero-vert-bg {
  background-image:
    linear-gradient(105deg, rgba(20,34,72,0.76) 0%, rgba(20,34,72,0.44) 55%, rgba(20,34,72,0.72) 100%),
    url('../images/stock_148640614692.jpg');
  background-size: cover;
  background-position: center;
}

body.page-fiscal .hero-bg,
body.page-fiscal .hero-vert-bg {
  background-image:
    linear-gradient(105deg, rgba(20,34,72,0.76) 0%, rgba(20,34,72,0.44) 55%, rgba(20,34,72,0.72) 100%),
    url('../images/stock_1554224155-8.jpg');
  background-size: cover;
  background-position: center;
}

body.page-finanzas .hero-bg,
body.page-finanzas .hero-vert-bg {
  background-image:
    linear-gradient(105deg, rgba(20,34,72,0.76) 0%, rgba(20,34,72,0.44) 55%, rgba(20,34,72,0.72) 100%),
    url('../images/stock_161197478985.jpg');
  background-size: cover;
  background-position: center;
}

body.page-legal .hero-bg,
body.page-legal .hero-vert-bg {
  background-image:
    linear-gradient(105deg, rgba(20,34,72,0.76) 0%, rgba(20,34,72,0.44) 55%, rgba(20,34,72,0.72) 100%),
    url('../images/stock_158982954585.jpg');
  background-size: cover;
  background-position: center;
}

body.page-internacional .hero-bg,
body.page-internacional .hero-vert-bg {
  background-image:
    linear-gradient(105deg, rgba(20,34,72,0.76) 0%, rgba(20,34,72,0.44) 55%, rgba(20,34,72,0.72) 100%),
    url('../images/stock_145118758045.jpg');
  background-size: cover;
  background-position: center;
}

body.page-risks .hero-bg,
body.page-risks .hero-vert-bg {
  background-image:
    linear-gradient(105deg, rgba(20,34,72,0.76) 0%, rgba(20,34,72,0.44) 55%, rgba(20,34,72,0.72) 100%),
    url('../images/stock_150486858481.jpg');
  background-size: cover;
  background-position: center;
}

body.page-restructuring .hero-bg,
body.page-restructuring .hero-vert-bg {
  background-image:
    linear-gradient(105deg, rgba(20,34,72,0.76) 0%, rgba(20,34,72,0.44) 55%, rgba(20,34,72,0.72) 100%),
    url('../images/stock_146092589591.jpg');
  background-size: cover;
  background-position: center;
}

body.page-index .hero-bg {
  background-image:
    linear-gradient(180deg, rgba(20,34,72,0.59) 0%, rgba(20,34,72,0.36) 50%, rgba(20,34,72,0.66) 100%),
    url('../images/stock_148640614692.jpg');
  background-size: cover;
  background-position: center;
}


/* ── TEXT SHADOWS — legibilidad sobre imágenes ── */

/* Hero index */
.hero-content .hero-eyebrow,
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-title em {
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.40);
}

/* Hero verticales */
.hero-vert-title,
.hero-vert-sub,
.hero-vert-intro,
.hero-vert-tag,
.hero-vert-tag .tag-num {
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.40);
}

/* Sección approach (fondo de imagen) */
.approach .section-title,
.approach .section-subtitle,
.approach .step-title,
.approach .step-desc,
.approach .step-num,
.approach .section-label {
  text-shadow: 0 1px 8px rgba(0,0,0,0.50), 0 1px 2px rgba(0,0,0,0.35);
}

/* Vert-nav (fondo de imagen) */
.vert-nav-title,
.vert-nav-direction {
  text-shadow: 0 1px 8px rgba(0,0,0,0.60), 0 1px 2px rgba(0,0,0,0.40);
}

/* Contact teaser (fondo de imagen) */
.contact-teaser h2,
.contact-teaser p,
.contact-teaser .section-label {
  text-shadow: 0 2px 10px rgba(0,0,0,0.50), 0 1px 3px rgba(0,0,0,0.35);
}
