/* ============================================================
   LIBERMINE GLOBAL ADVISOR — MAIN STYLESHEET
   ============================================================ */

:root {
  --gold: #BE923F;
  --gold-light: #d4a855;
  --gold-dark: #9a7230;
  --gold-subtle: rgba(190, 146, 63, 0.12);
  --dark: #0d0d0d;
  --dark-2: #141414;
  --dark-3: #1e1e1e;
  --dark-4: #252525;
  --gray: #4a4a4a;
  --gray-light: #888;
  --border: rgba(255,255,255,0.07);
  --white: #ffffff;
  --off-white: #f5f5f0;
  --section-light: #f9f8f5;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== LOADER ===== */
#loader {
  position: fixed; inset: 0;
  background: #f5f2ec;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
  display: flex; flex-direction: column; align-items: center;
}

/* Ring + logo container */
.loader-ring {
  position: relative;
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.loader-ring-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: loaderRotate 2s linear infinite;
}
@keyframes loaderRotate {
  to { transform: rotate(360deg); }
}
.loader-circle {
  animation: dashDraw 1.6s ease forwards;
  transform-origin: center;
}
@keyframes dashDraw {
  to { stroke-dashoffset: 0; }
}

/* Actual logo centered inside the ring */
.loader-logo-img {
  width: 110px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  animation: fadeIn 0.5s 0.4s ease forwards;
  position: relative; z-index: 1;
}

/* Fallback if logo.png is missing */
.loader-logo-fallback {
  display: none;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--gold);
  border-radius: 12px;
  font-size: 20px; font-weight: 900; color: #fff;
  letter-spacing: 1px;
  position: relative; z-index: 1;
  opacity: 0;
  animation: fadeIn 0.5s 0.4s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

/* ===== UTILITY ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section-light { background: var(--section-light); }

.gold-text { color: var(--gold); }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
}

.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: 4px;
  color: var(--gold);
  background: var(--gold-subtle);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-tag.light {
  background: rgba(190,146,63,0.2);
  color: var(--gold-light);
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.section-title.light { color: var(--white); }

.section-desc {
  font-size: 16px; color: var(--gray-light);
  max-width: 580px;
  line-height: 1.8;
}

.section-header.centered {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 64px;
}

.section-bg-pattern {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(190,146,63,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(190,146,63,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.section-bg-pattern.alt {
  background-image:
    radial-gradient(circle at 80% 10%, rgba(190,146,63,0.05) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(190,146,63,0.05) 0%, transparent 50%);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.8px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: var(--transition);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(190,146,63,0.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }
.btn-primary.sm { padding: 10px 22px; font-size: 13px; }
.btn-primary.full { width: 100%; justify-content: center; padding: 16px; font-size: 15px; border-radius: var(--radius); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-weight: 600; font-size: 14px;
  padding: 12px 28px;
  border-radius: 100px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(190,146,63,0.1); transform: translateY(-2px); }

/* ===== HEADER ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: linear-gradient(135deg, #ffffff 0%, #f8f4ee 60%, #f2ece0 100%);
  box-shadow: 0 1px 0 rgba(190,146,63,0.18), 0 2px 16px rgba(0,0,0,0.07);
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}
#header.scrolled {
  background: linear-gradient(135deg, #ffffff 0%, #f5eedf 100%);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(190,146,63,0.25), 0 4px 24px rgba(0,0,0,0.10);
  height: 64px;
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  z-index: 2;
}
/* Real logo image */
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s, transform 0.3s;
}
.logo:hover .logo-img { opacity: 0.85; transform: scale(1.03); }
.logo-fallback { display: none; align-items: center; gap: 12px; }

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
}

.logo-lm {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: var(--white);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 15px; font-weight: 800; color: var(--dark); letter-spacing: 2px; }
.logo-sub { font-size: 9px; font-weight: 500; color: var(--gold); letter-spacing: 3px; }

.nav-desktop {
  display: flex; align-items: center; gap: 4px;
}
.nav-desktop a {
  font-family: 'Montserrat', sans-serif;
  color: rgba(30,20,10,0.65);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.6px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--gold);
  border-radius: 1px;
  transition: left 0.3s, right 0.3s;
}
.nav-desktop a:hover { color: var(--dark); }
.nav-desktop a:hover::after,
.nav-desktop a.active::after { left: 14px; right: 14px; }
.nav-desktop a.active { color: var(--dark); }
.nav-desktop .nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 100px;
  margin-left: 8px;
}
.nav-desktop .nav-cta::after { display: none; }
.nav-desktop .nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; padding: 4px;
  z-index: 2;
}
.hamburger span {
  display: block; height: 2px; background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile .mobile-link {
  color: rgba(255,255,255,0.8);
  font-size: 22px; font-weight: 700; letter-spacing: 1px;
  padding: 12px 32px;
  border-radius: var(--radius);
  transition: var(--transition);
  transform: translateY(20px);
  opacity: 0;
}
.nav-mobile.open .mobile-link { transform: translateY(0); opacity: 1; }
.nav-mobile.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.nav-mobile.open .mobile-link:nth-child(2) { transition-delay: 0.10s; }
.nav-mobile.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.nav-mobile.open .mobile-link:nth-child(4) { transition-delay: 0.20s; }
.nav-mobile.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.nav-mobile.open .mobile-link:nth-child(6) { transition-delay: 0.30s; }
.nav-mobile.open .mobile-link:nth-child(7) { transition-delay: 0.35s; }
.nav-mobile .mobile-link:hover, .nav-mobile .mobile-link.active { color: var(--gold); }
.nav-mobile .mobile-cta {
  background: var(--gold); color: var(--white);
  margin-top: 16px;
}
.nav-mobile .mobile-cta:hover { background: var(--gold-light); color: var(--white); }

/* ===== HERO PHOTO ===== */
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
  opacity: 0.72;
  animation: heroPhotoFade 1.2s ease forwards;
}
@keyframes heroPhotoFade {
  from { opacity: 0; }
  to   { opacity: 0.72; }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start;
  padding-top: var(--header-h);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: all;
}
.hero-slide .hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide .hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px;
  margin: 0 auto; padding: 40px 24px 80px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}
.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 5px;
  color: var(--gold);
  border: 1px solid rgba(190,146,63,0.4);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
  width: fit-content;
}

/* Carousel controls */
.carousel-controls {
  position: absolute; bottom: 48px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px;
  z-index: 10;
}
.carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.carousel-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: scale(1.1);
}
.carousel-dots {
  display: flex; align-items: center; gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}
.carousel-dot:hover { background: rgba(255,255,255,0.6); }

/* Progress bar per slide */
.carousel-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 10;
  width: 0%;
  transition: width linear;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(190,146,63,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(190,146,63,0.06) 0%, transparent 50%),
    linear-gradient(135deg, rgba(13,13,13,0.55) 0%, rgba(20,20,20,0.38) 100%);
}
.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  padding-top: 100px; padding-bottom: 60px;
}
.hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 5px;
  color: var(--gold);
  border: 1px solid rgba(190,146,63,0.4);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 700; line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 42px; font-weight: 900; color: var(--white);
  line-height: 1;
}
.stat-plus { color: var(--gold); font-size: 24px; font-weight: 900; display: inline; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 1px; margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.1); }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  animation: bounce 2s ease infinite;
  z-index: 1;
  transition: color 0.3s;
}
.hero-scroll:hover { color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* hero reveal — instant trigger */
.hero .reveal-up {
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero .reveal-up.delay-1 { transition-delay: 0.3s; }
.hero .reveal-up.delay-2 { transition-delay: 0.5s; }
.hero .reveal-up.delay-3 { transition-delay: 0.7s; }
.hero .reveal-up.delay-4 { transition-delay: 0.9s; }

/* ===== NOSOTROS ===== */
.nosotros { background: var(--white); }
.nosotros-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.nosotros-visual { position: relative; }

/* Single full-height image replacing the two previous photos */
.nosotros-img-single {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
}
.nosotros-img-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nosotros-badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.nosotros-badge-float i { font-size: 20px; }

.nosotros-accent-line {
  position: absolute; top: 40px; left: -20px;
  width: 4px; height: 60%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 2px;
}
.nosotros-text {
  color: var(--gray); line-height: 1.8; margin-bottom: 16px;
}
.nosotros-pillars {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 32px;
}
.pillar {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px;
  background: var(--section-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  transition: var(--transition);
}
.pillar:hover { transform: translateX(4px); background: var(--gold-subtle); }
.pillar-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gold-subtle);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 16px;
}
.pillar div { display: flex; flex-direction: column; }
.pillar strong { font-size: 14px; font-weight: 700; color: var(--dark); }
.pillar span { font-size: 13px; color: var(--gray-light); }

/* ===== CONSULTORÍA ===== */
.consultoria { background: var(--section-light); }
.consultoria > .container { position: relative; z-index: 1; }

.consultoria-main { margin-bottom: 48px; }
.consultoria-highlight {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex; align-items: center; gap: 32px;
  border: 1px solid rgba(190,146,63,0.2);
  position: relative; overflow: hidden;
}
.consultoria-highlight::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ch-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--gold-subtle);
  border: 1px solid rgba(190,146,63,0.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 28px;
}
.ch-content { flex: 1; }
.ch-content h3 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.ch-content p { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.7; }

.detail-note {
  background: rgba(190,146,63,0.07);
  border: 1px dashed rgba(190,146,63,0.35);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 40px;
}
.detail-note-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 10px;
}
.detail-note p { font-size: 14px; color: var(--gray); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0%;
  background: var(--gold);
  transition: height 0.4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sc-icon {
  width: 48px; height: 48px;
  background: var(--gold-subtle);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}
.service-card:hover .sc-icon { background: var(--gold); color: var(--white); }
.service-card h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--gray-light); line-height: 1.7; margin-bottom: 16px; }
.sc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--gold);
  transition: gap 0.3s;
}
.sc-link:hover { gap: 10px; }

/* ===== GLOBE ANIMATION ===== */
.globe-scroll-wrapper {
  position: relative;
  height: 350vh; /* scroll distance that drives animation */
  background: #000;
}

.globe-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #040d1f 0%, #000 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#globeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.globe-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(32px, 8vw, 140px);
  pointer-events: none;
  z-index: 2;
}

.globe-text {
  max-width: 400px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.1s linear, transform 0.1s linear;
}

.globe-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(190, 146, 63, 0.4);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.globe-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 20px;
}

.globe-heading span {
  color: var(--gold);
}

.globe-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
}

.globe-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.globe-scroll-hint i {
  animation: globeHintBounce 1.4s ease-in-out infinite;
}

@keyframes globeHintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* Mobile: text centered / smaller */
@media (max-width: 768px) {
  .globe-overlay {
    justify-content: center;
    align-items: flex-end;
    padding: 0 24px 80px;
  }
  .globe-text { max-width: 100%; text-align: center; }
  .globe-scroll-wrapper { height: 280vh; }
}

/* ===== MAQUINARIA ===== */
.maquinaria {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.maquinaria::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(190,146,63,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.maquinaria::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(190,146,63,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.maquinaria > .container { position: relative; z-index: 1; }

.maquinaria-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.maq-text {
  color: rgba(255,255,255,0.65);
  font-size: 16px; line-height: 1.8;
  margin-bottom: 36px;
}
.maq-advantage {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 40px;
}
.maq-adv-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.maq-adv-item:hover {
  background: rgba(190,146,63,0.08);
  border-color: rgba(190,146,63,0.2);
  transform: translateY(-2px);
}
.maq-adv-item strong { font-size: 14px; font-weight: 700; color: var(--white); }
.maq-adv-item span { font-size: 13px; color: rgba(255,255,255,0.45); }

.maq-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 28px;
}
.maq-eq-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.maq-eq-card:hover {
  background: rgba(190,146,63,0.08);
  border-color: rgba(190,146,63,0.25);
  transform: translateY(-3px);
}
.maq-eq-card h5 { font-size: 13px; font-weight: 700; color: var(--white); margin: 0; }
.maq-eq-card p { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.5; margin: 0; }

/* ===== MAQUINARIA PHOTO GALLERY ===== */
.maq-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 3px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}
.maq-gallery-cell {
  overflow: hidden;
  background: #0d0d0d;
}
.maq-gallery-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.maq-gallery-cell:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.maq-gallery-cell:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.maq-gallery-cell:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.maq-gallery-cell:nth-child(4) { border-radius: 0 0 var(--radius) 0; }
.maq-gallery-cell:hover img { transform: scale(1.03); }

.maq-brands-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  color: rgba(255,255,255,0.3); text-transform: uppercase;
  margin-bottom: 12px;
}
.maq-brands {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.maq-brands span {
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.maq-brands span:hover {
  background: rgba(190,146,63,0.12);
  border-color: rgba(190,146,63,0.3);
  color: var(--gold-light);
}

/* ===== REPUESTOS ===== */
.repuestos { background: var(--white); }
.repuestos > .container { position: relative; z-index: 1; }

.repuestos-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-bottom: 56px;
}
.rep-feature {
  position: relative; padding: 32px 24px;
  background: var(--section-light);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  overflow: hidden;
}
.rep-feature::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.rep-feature:hover::before { transform: scaleX(1); }
.rep-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rep-feat-num {
  font-size: 48px; font-weight: 900;
  color: rgba(190,146,63,0.12);
  line-height: 1;
  position: absolute; top: 16px; right: 20px;
}
.rep-feat-icon {
  width: 52px; height: 52px;
  background: var(--gold-subtle);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 22px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.rep-feature:hover .rep-feat-icon { background: var(--gold); color: var(--white); }
.rep-feature h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.rep-feature p { font-size: 13px; color: var(--gray-light); line-height: 1.7; }

.repuestos-categories { margin-bottom: 48px; }
.rep-cat-title {
  font-size: 18px; font-weight: 700; color: var(--dark);
  margin-bottom: 20px;
}
.rep-cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rep-cat {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--section-light);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 13px; font-weight: 600; color: var(--gray);
  transition: var(--transition);
  cursor: default;
}
.rep-cat i { color: var(--gold); font-size: 14px; flex-shrink: 0; }
.rep-cat:hover {
  background: var(--gold-subtle);
  border-color: rgba(190,146,63,0.2);
  color: var(--dark);
  transform: translateX(3px);
}

.rep-cta-box {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border: 1px solid rgba(190,146,63,0.15);
  position: relative; overflow: hidden;
}
.rep-cta-box::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 200px;
  background: radial-gradient(circle at right center, rgba(190,146,63,0.1), transparent);
}
.rep-cta-content {
  display: flex; align-items: center; gap: 24px;
}
.rep-cta-icon { font-size: 48px; color: rgba(190,146,63,0.3); }
.rep-cta-content h4 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.rep-cta-content p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ===== SUCURSALES ===== */
.sucursales { background: var(--section-light); }
.branches-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.branch-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.branch-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.branch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.branch-badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 100px;
}
.branch-badge.secondary { background: var(--dark-3); }
.branch-icon {
  width: 56px; height: 56px;
  background: var(--gold-subtle);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 24px;
  margin-bottom: 20px;
}
.branch-card h4 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.branch-info { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.branch-info-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--gray);
}
.branch-info-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; width: 14px; }
.branch-info-item a { color: var(--gray); transition: color 0.3s; }
.branch-info-item a:hover { color: var(--gold); }
.branch-map-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--gold);
  padding: 10px 20px;
  border: 1px solid rgba(190,146,63,0.3);
  border-radius: 100px;
  transition: var(--transition);
}
.branch-map-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ===== CONTACTO ===== */
.contacto { background: var(--white); }
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: start;
}
.contacto-desc {
  font-size: 15px; color: var(--gray-light);
  line-height: 1.8; margin-bottom: 36px;
}
.contacto-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.08);
  transition: var(--transition);
}
.contact-link i {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-link.whatsapp i { background: rgba(37,211,102,0.1); color: #25d366; }
.contact-link.email i { background: var(--gold-subtle); color: var(--gold); }
.contact-link.instagram i { background: rgba(225,48,108,0.08); color: #e1306c; }
.contact-link div { display: flex; flex-direction: column; }
.contact-link strong { font-size: 14px; font-weight: 700; color: var(--dark); }
.contact-link span { font-size: 13px; color: var(--gray-light); }
.contact-link:hover { border-color: var(--gold); background: var(--gold-subtle); transform: translateX(4px); }

/* Form */
.contacto-form-wrap {
  background: var(--section-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.06);
}
.contacto-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  font-size: 14px; color: var(--dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(190,146,63,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.field-error { font-size: 12px; color: #e53e3e; display: none; }
.field-error.visible { display: block; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: #e53e3e; }

.form-message {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  text-align: center;
}
.form-message.success { background: rgba(56,161,105,0.1); color: #276749; border: 1px solid rgba(56,161,105,0.2); }
.form-message.error { background: rgba(229,62,62,0.1); color: #c53030; border: 1px solid rgba(229,62,62,0.2); }

/* ===== FOOTER ===== */
.footer { background: #e8e4de; }
.footer-top { padding: 64px 0 48px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .footer-logo {
  display: flex; align-items: flex-start;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px; color: rgba(30,20,10,0.55);
  line-height: 1.7; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(30,20,10,0.45); font-size: 14px;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-nav h5, .footer-contact h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--dark); text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-nav a {
  color: rgba(30,20,10,0.5); font-size: 14px;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold-dark); }
.footer-contact p {
  color: rgba(30,20,10,0.5); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.footer-contact p i { color: var(--gold-dark); width: 14px; flex-shrink: 0; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-bottom p {
  font-size: 13px; color: rgba(30,20,10,0.35);
  text-align: center;
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 900;
  transition: var(--transition);
  animation: waPulse 3s ease infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nosotros-grid { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-visual { max-width: 400px; }
  .nosotros-img-wrap { aspect-ratio: 16/9; }
  .maquinaria-grid { grid-template-columns: 1fr; gap: 56px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .repuestos-features { grid-template-columns: repeat(2, 1fr); }
  .rep-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stat-divider { display: none; }
  .consultoria-highlight { flex-direction: column; align-items: flex-start; padding: 28px; }
  .rep-cta-box { flex-direction: column; padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .repuestos-features { grid-template-columns: 1fr; }
  .rep-cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .maq-cards { grid-template-columns: 1fr 1fr; }
  .hero-title { letter-spacing: -0.5px; }
}

@media (max-width: 480px) {
  .rep-cat-grid { grid-template-columns: 1fr; }
  .maq-cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .contacto-form-wrap { padding: 24px; }
  .rep-cta-content { flex-direction: column; }
}
