@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600;1,700&family=JetBrains+Mono:wght@500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #051628;
  --navy2: #0a2542;
  --navy-dark: #020c17;
  --gold: #d4a849;
  --gold2: #f4d483;
  --gold-glow: rgba(212, 168, 73, 0.32);
  --ink: #0c1826;
  --muted: #56677d;
  --light-muted: #8a99ad;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --border-light: rgba(216, 226, 238, 0.95);
  --shadow-sm: 0 6px 18px rgba(5, 22, 40, 0.05);
  --shadow-md: 0 14px 34px rgba(5, 22, 40, 0.09);
  --shadow-lg: 0 24px 56px rgba(5, 22, 40, 0.15);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: opacity 0.22s ease-in-out;
}

body.page-leaving {
  opacity: 0.15;
}

/* Barra superior de progreso de scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;

  background: linear-gradient(90deg, var(--gold), var(--gold2), #fff);
  z-index: 2000;
  box-shadow: 0 0 12px var(--gold);
  transition: width 0.08s linear;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1220px, 92%);
  margin: auto;
}

/* ==========================================
   KEYFRAMES & EFECTOS ESTÁTICOS CONTINUOS
   ========================================== */
@keyframes kenBurnsHero {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1.5%, -1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

@keyframes kenBurnsSubpage {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(1.5%, -1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

@keyframes preloaderGlow {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(212, 168, 73, 0.3));
    transform: scale(0.98);
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(212, 168, 73, 0.8));
    transform: scale(1.02);
  }
}

@keyframes preloaderLine {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Preloader Splash Screen */
#page-preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #08213b 0%, #020b16 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

#page-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-brand-img {
  height: 95px;
  width: auto;
  max-width: 320px;
  animation: preloaderGlow 2.4s ease-in-out infinite;
  margin-bottom: 24px;
}

.preloader-bar-wrap {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold2), #fff);
  box-shadow: 0 0 12px var(--gold);
  animation: preloaderLine 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardShimmer {
  0% {
    transform: translateX(-140%) skewX(-22deg);
  }

  45%,
  100% {
    transform: translateX(220%) skewX(-22deg);
  }
}

@keyframes ambientFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }

  50% {
    transform: translate(25px, -18px) scale(1.12);
    opacity: 0.85;
  }
}

@keyframes iconBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes radarPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(212, 168, 73, 0.22);
    box-shadow: 0 6px 20px rgba(5, 22, 40, 0.05);
  }

  50% {
    border-color: rgba(212, 168, 73, 0.55);
    box-shadow: 0 10px 28px rgba(212, 168, 73, 0.14);
  }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 14, 27, 0.92);
  border-bottom: 1px solid rgba(212, 168, 73, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(2, 10, 20, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0;
  transition: min-height 0.3s ease;
}

header.scrolled .nav {
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 88px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
}

header.scrolled .brand-logo-img {
  height: 70px;
}

.brand:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-footer .brand-logo-img {
  height: 84px;
  max-width: 310px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.menu a {
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 2px;
  position: relative;
  display: inline-block;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  box-shadow: 0 0 10px var(--gold);
  transition: width 0.3s ease;
}

.menu a:hover,
.menu a.active {
  color: #ffffff;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}
/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(212, 168, 73, 0.12);
  border: 1px solid rgba(212, 168, 73, 0.45);
  color: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--gold2);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -330px;
  width: min(320px, 86vw);
  height: 100vh;
  background: linear-gradient(180deg, #051a30 0%, #020c18 100%);
  border-left: 1px solid rgba(212, 168, 73, 0.35);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 24px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.mobile-drawer-close:hover {
  background: rgba(212, 168, 73, 0.2);
  color: var(--gold2);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-links a {
  color: #e2ecf7;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
  transition: all 0.2s ease;
}

.mobile-menu-links a.active,
.mobile-menu-links a:hover {
  color: var(--gold2);
  background: rgba(212, 168, 73, 0.12);
  padding-left: 18px;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-140%) skewX(-20deg);
  animation: cardShimmer 5.5s infinite;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  color: #041527;
  box-shadow: 0 6px 22px rgba(212, 168, 73, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(212, 168, 73, 0.45);
}

.btn-outline {
  border: 1px solid rgba(244, 212, 131, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(212, 168, 73, 0.16);
  border-color: var(--gold2);
  transform: translateY(-3px);
}

/* ==========================================
   TYPOGRAPHY (CORMORANT GARAMOND + PLUS JAKARTA + MONO)
   ========================================== */
h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  color: inherit;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 12px 0 20px;
}

h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #ffffff 10%, var(--gold2) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.25;
}

.feature b,
.stat strong,
.contact-item b {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(212, 168, 73, 0.12);
  border: 1px solid rgba(212, 168, 73, 0.28);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold2);
  box-shadow: 0 0 8px var(--gold2);
}

/* ==========================================
   HERO SECTION CON EFECTOS AMBIENTALES & MOVIMIENTO DINÁMICO
   ========================================== */
.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  background-color: #030e1a;
}

/* Capa de imagen de fondo con efecto Ken Burns cinematográfico */
.hero-bg-layer {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-image: linear-gradient(95deg, rgba(2, 12, 24, 0.94) 0%, rgba(4, 22, 41, 0.82) 48%, rgba(6, 27, 48, 0.32) 100%), url('img/home-global-trade-strategic partnerships.webp');
  background-size: cover;
  background-position: center;
  animation: kenBurnsHero 24s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero.hero-subpage .hero-bg-layer {
  background-image: linear-gradient(95deg, rgba(2, 12, 24, 0.95) 0%, rgba(4, 22, 41, 0.82) 50%, rgba(6, 27, 48, 0.32) 100%), url('img/hero-global-we-service-contact.webp');
  animation: kenBurnsSubpage 22s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 2;
}

.hero.short {
  min-height: 420px;
}

.hero .container {
  min-height: inherit;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-copy {
  max-width: 650px;
  padding: 76px 0;
}

.lead {
  font-size: clamp(0.98rem, 1.3vw, 1.14rem);
  color: #dce5ee;
  max-width: 600px;
  font-weight: 400;
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ==========================================
   FEATURE STRIP
   ========================================== */
.feature-strip {
  background: #031527;
  color: #fff;
  border-top: 1px solid rgba(212, 168, 73, 0.28);
  border-bottom: 1px solid rgba(212, 168, 73, 0.28);
  position: relative;
  overflow: hidden;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  padding: 28px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.feature::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 73, 0.07), transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: cardShimmer 7s infinite;
}

.feature:last-child {
  border-right: 0;
}

.feature b {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
  font-family: 'Syne', sans-serif;
}

.feature span {
  color: #9fb0c3;
  font-size: 13.5px;
  line-height: 1.45;
  display: block;
}

.icon {
  font-size: 24px;
  color: var(--gold2);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 168, 73, 0.14);
  border: 1px solid rgba(212, 168, 73, 0.3);
  line-height: 1;
  animation: iconBob 4s ease-in-out infinite;
}

/* ==========================================
   SECTIONS & HEADINGS
   ========================================== */
section {
  padding: 84px 0;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-end;
  margin-bottom: 42px;
}

.section-head h2 {
  margin: 6px 0 0;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

/* ==========================================
   CARDS CON EFECTOS ESTÁTICOS Y HOVER
   ========================================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid rgba(212, 168, 73, 0.25);
  background: #051b30;
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 16, 31, 0.55) 100%);
  pointer-events: none;
}

.photo-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover img {
  transform: scale(1.04);
}

.gold-card {
  background: linear-gradient(145deg, #fffdf7 0%, #ffffff 100%);
  border-left: 4px solid var(--gold);
  border-top: 1px solid #efe3c6;
  border-right: 1px solid #efe3c6;
  border-bottom: 1px solid #efe3c6;
  padding: 38px 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: borderGlow 5s ease-in-out infinite;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card,
.value,
.service,
.stat {
  position: relative;
  overflow: hidden;
}

/* Brillo estático periódico en todas las tarjetas */
.card::after,
.value::after,
.service::after,
.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 73, 0.11), transparent);
  transform: translateX(-150%) skewX(-22deg);
  animation: cardShimmer 6.5s infinite;
  pointer-events: none;
}

.card:nth-child(2)::after,
.value:nth-child(2)::after,
.stat:nth-child(2)::after {
  animation-delay: 1.2s;
}

.card:nth-child(3)::after,
.value:nth-child(3)::after,
.stat:nth-child(3)::after {
  animation-delay: 2.4s;
}

.card:nth-child(4)::after,
.value:nth-child(4)::after,
.stat:nth-child(4)::after {
  animation-delay: 3.6s;
}

.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: borderGlow 6s ease-in-out infinite;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
  flex-grow: 1;
}

.link {
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 29, 45, 0.06);
}

.link span {
  color: var(--gold);
  transition: transform 0.25s ease;
}

.link:hover {
  color: var(--gold);
}

.link:hover span {
  transform: translateX(4px);
}

/* ==========================================
   DARK SECTION & STATS
   ========================================== */
.dark {
  background: radial-gradient(circle at 85% 20%, #0d3158 0%, var(--navy) 60%, #03101f 100%);
  color: #fff;
}

.dark p {
  color: #b6c6d8;
}

.dark .eyebrow {
  color: var(--gold2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat {
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 168, 73, 0.25);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  border-color: var(--gold2);
  background: rgba(212, 168, 73, 0.08);
}

.stat strong {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  color: var(--gold2);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  display: block;
  line-height: 1.05;
  margin-bottom: 6px;
}

.stat div {
  color: #d5e0ec;
  font-size: 13.5px;
  font-weight: 500;
}

/* ==========================================
   VALUES & SERVICES GRIDS
   ========================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.value {
  padding: 28px 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  animation: borderGlow 6s ease-in-out infinite;
}

.value:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.value h3 {
  font-size: 19px;
  margin: 10px 0 8px;
  font-weight: 700;
}

.value p {
  color: var(--muted);
  font-size: 13.8px;
  margin: 0;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.service {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: #fff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  animation: borderGlow 6.5s ease-in-out infinite;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service img {
  height: 100%;
  min-height: 250px;
  width: 100%;
  object-fit: cover;
}

.service .card-body {
  padding: 26px;
}

.service h3 {
  font-size: 21px;
  margin: 0 0 8px;
  font-weight: 700;
}

.checks {
  padding: 0;
  margin: 14px 0 18px;
  list-style: none;
}

.checks li {
  margin: 8px 0;
  color: #4a596a;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dark .checks li {
  color: #cbd7e4;
}

.checks li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(212, 168, 73, 0.18);
  color: var(--gold);
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

/* ==========================================
   CONTACT & MODERN INTERACTIVE LONDON MAP
   ========================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.contact-item:hover {
  border-color: var(--gold);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-item .round {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(212, 168, 73, 0.16);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 73, 0.35);
  font-size: 18px;
}

.contact-item b {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  color: var(--navy);
}

.contact-item a {
  color: var(--muted);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--gold);
}

.form {
  background: #fff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--gold);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #f9fbfd;
  transition: all 0.2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 168, 73, 0.2);
}

.form textarea {
  height: 130px;
  resize: vertical;
}

.form .full {
  grid-column: 1 / -1;
}

/* Rediseño Profesional del Mapa */
.map-showcase {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #041526;
  border: 1px solid rgba(212, 168, 73, 0.38);
  box-shadow: var(--shadow-lg);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) invert(92%) contrast(90%) hue-rotate(185deg);
  opacity: 0.82;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.map-showcase:hover .map-iframe {
  opacity: 0.96;
}

.map-overlay-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 20%, rgba(3, 15, 29, 0.65) 100%);
  pointer-events: none;
}

.radar-pin-wrap {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}

.radar-Core {
  width: 16px;
  height: 16px;
  background: var(--gold2);
  border: 3px solid #041526;
  border-radius: 50%;
  box-shadow: 0 0 20px var(--gold);
  position: relative;
  z-index: 2;
}

.radar-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold2);
  border-radius: 50%;
  animation: radarPulse 2.6s infinite ease-out;
}

.radar-wave.delay {
  animation-delay: 1.3s;
}

.map-card-floating {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(3, 16, 30, 0.94);
  color: #fff;
  padding: 22px 24px;
  border-radius: 12px;
  max-width: 340px;
  font-size: 13.5px;
  border: 1px solid rgba(212, 168, 73, 0.42);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 4;
}

.map-coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold2);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.map-card-floating h4 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #fff;
}

.map-card-floating p {
  margin: 0 0 14px;
  color: #b8c7d9;
  line-height: 1.5;
}

.map-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold2);
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(212, 168, 73, 0.14);
  border: 1px solid rgba(212, 168, 73, 0.3);
}

.map-ext-link:hover {
  background: var(--gold);
  color: #041526;
}

/* ==========================================
   CTA & FOOTER
   ========================================== */
.cta {
  background: linear-gradient(115deg, #031324 0%, #0a2d52 100%);
  color: #fff;
  padding: 60px 0;
  border-top: 1px solid rgba(212, 168, 73, 0.28);
  border-bottom: 1px solid rgba(212, 168, 73, 0.28);
  position: relative;
  overflow: hidden;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  margin: 0 0 6px;
}

.cta p {
  color: #c5d4e4;
  margin: 0;
  font-size: 15.5px;
}

footer {
  background: #020e1b;
  color: #9eb0c4;
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

footer h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

footer a {
  display: block;
  margin: 8px 0;
  font-size: 13.5px;
  color: #9eb0c4;
}

footer a:hover {
  color: var(--gold2);
  transform: translateX(4px);
}

.bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 38px;
  padding-top: 22px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #7e8fxa;
  flex-wrap: wrap;
}

.bottom-links {
  display: flex;
  gap: 18px;
}

.bottom-links a {
  display: inline;
  margin: 0;
  color: #9eb0c4;
}

.bottom-links a:hover {
  color: var(--gold2);
}

/* Legal pages */
.legal-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: auto;
}

.legal-box h2 {
  font-size: 22px;
  margin: 28px 0 10px;
  color: var(--navy);
}

.legal-box h2:first-child {
  margin-top: 0;
}

.legal-box p,
.legal-box li {
  color: var(--muted);
  font-size: 14.5px;
}

/* ==========================================
   SCROLL REVEAL & 3D ASSEMBLY / DESPIECE
   ========================================== */
.cards,
.value-grid,
.service-grid,
.stats,
.split {
  perspective: 1200px;
}

.card,
.service,
.value,
.stat,
.photo-card,
.gold-card {
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

/* Efecto de Despiece / Ensamble 3D cinemático al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(48px) rotateX(24deg) rotateY(-8deg) scale(0.92);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
}

/* Despiece escalonado en 3D para tarjetas contiguas */
.card.reveal:nth-child(1), .value.reveal:nth-child(1), .stat.reveal:nth-child(1) {
  transform: translateY(60px) rotateX(28deg) rotateY(-14deg) translateZ(-40px) scale(0.88);
}
.card.reveal:nth-child(2), .value.reveal:nth-child(2), .stat.reveal:nth-child(2) {
  transform: translateY(75px) rotateX(32deg) rotateY(-6deg) translateZ(-60px) scale(0.86);
}
.card.reveal:nth-child(3), .value.reveal:nth-child(3), .stat.reveal:nth-child(3) {
  transform: translateY(75px) rotateX(32deg) rotateY(6deg) translateZ(-60px) scale(0.86);
}
.card.reveal:nth-child(4), .value.reveal:nth-child(4), .stat.reveal:nth-child(4) {
  transform: translateY(60px) rotateX(28deg) rotateY(14deg) translateZ(-40px) scale(0.88);
}

.reveal.is-visible:nth-child(1),
.reveal.is-visible:nth-child(2),
.reveal.is-visible:nth-child(3),
.reveal.is-visible:nth-child(4) {
  transform: translateY(0) rotateX(0deg) rotateY(0deg) translateZ(0) scale(1);
}

/* Despiece interno al pasar el ratón (Exploded View 3D): la imagen y el texto flotan en capas Z distintas */
.card:hover,
.service:hover,
.value:hover,
.stat:hover {
  box-shadow: 0 24px 50px rgba(5, 22, 40, 0.22), 0 0 20px rgba(212, 168, 73, 0.2);
  border-color: var(--gold);
}

.card:hover img,
.service:hover img {
  transform: translateZ(30px) scale(1.04);
}

.card:hover .card-body,
.service:hover .card-body {
  transform: translateZ(24px);
}

.card:hover h3,
.service:hover h3,
.value:hover h3 {
  transform: translateZ(38px);
  color: var(--navy);
}

.stat:hover strong {
  transform: translateZ(42px);
  text-shadow: 0 4px 18px rgba(212, 168, 73, 0.6);
}

.card img,
.service img,
.card-body,
.service .card-body,
.card h3,
.service h3,
.value h3,
.stat strong {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  transform-style: preserve-3d;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.18s;
}

.reveal-delay-3 {
  transition-delay: 0.28s;
}

.reveal-delay-4 {
  transition-delay: 0.38s;
}

/* ==========================================
   RESPONSIVE & COMPACTACIÓN MÓVIL (2 EN 2)
   ========================================== */
@media (max-width: 1024px) {

  .menu,
  .btn-header {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav {
    min-height: 86px;
  }

  .brand-logo-img {
    height: 70px;
    max-width: 250px;
  }

  .features,
  .cards,
  .stats,
  .value-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service {
    grid-template-columns: 1fr;
  }

  .service img {
    min-height: 170px;
    height: 170px;
  }

  .split,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MODO MÓVIL ULTRA-EFICIENTE: TARJETAS DE 2 EN 2 */
@media (max-width: 680px) {
  section {
    padding: 48px 0;
  }

  .container {
    width: 94%;
  }

  .nav {
    min-height: 72px;
  }

  .brand-logo-img {
    height: 54px;
    max-width: 200px;
  }

  .brand-footer .brand-logo-img {
    height: 58px;
    max-width: 210px;
  }

  .hero {
    min-height: 430px;
  }

  .hero.short {
    min-height: 310px;
  }

  .hero-copy {
    padding: 40px 0;
  }

  .lead {
    font-size: 14.5px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .actions .btn {
    width: 100%;
    padding: 11px 10px;
    font-size: 12.5px;
    margin: 0;
  }

  /* GRIDS DE 2 EN 2 EN MÓVIL */
  .features,
  .cards,
  .stats,
  .value-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .feature {
    padding: 16px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .feature:nth-child(2n) {
    border-right: 0;
  }

  .feature b {
    font-size: 13.5px;
  }

  .feature span {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
    margin-bottom: 6px;
  }

  /* Tarjetas compactadas 2x2 */
  .card img,
  .service img {
    height: 110px;
    min-height: 110px;
  }

  .card-body,
  .service .card-body,
  .value {
    padding: 13px 11px;
  }

  .card h3,
  .service h3,
  .value h3 {
    font-size: 14.5px;
    line-height: 1.25;
    margin: 0 0 6px;
  }

  .card p,
  .service p,
  .value p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 10px;
  }

  .checks {
    margin: 8px 0 10px;
  }

  .checks li {
    font-size: 11.2px;
    margin: 5px 0;
    gap: 6px;
  }

  .checks li::before {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }

  .link {
    font-size: 11.5px;
    padding-top: 6px;
  }

  /* Estadísticas 2x2 */
  .stats {
    margin-top: 22px;
  }

  .stat {
    padding: 16px 12px;
  }

  .stat strong {
    font-size: 24px;
  }

  .stat div {
    font-size: 11.5px;
  }

  .section-head {
    display: block;
    margin-bottom: 22px;
  }

  .section-head p {
    font-size: 13.5px;
    margin-top: 8px;
  }

  .photo-card img {
    height: 220px;
  }

  .gold-card {
    padding: 22px 18px;
  }

  /* Contacto y Mapa en Móvil */
  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    font-size: 12px;
  }

  .contact-item:last-child {
    grid-column: 1 / -1;
  }

  .form {
    padding: 20px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .map-showcase {
    height: 360px;
  }

  .map-card-floating {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 14px 16px;
  }

  /* CTA y Footer compactos */
  .cta {
    padding: 36px 0;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cta .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .footer-grid>div:first-child {
    grid-column: 1 / -1;
  }

  .bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
  }

  .legal-box {
    padding: 22px 16px;
  }
}