/* ============================================================
   MARCELO BENÍTEZ CONSTRUCCIONES — Premium CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold:        #F5A800;
  --gold-light:  #FFD060;
  --gold-dark:   #D48A00;
  --black:       #111111;
  --dark:        #1A1A1A;
  --dark-mid:    #2A2A2A;
  --gray-800:    #333333;
  --gray-600:    #555555;
  --gray-400:    #888888;
  --gray-200:    #CCCCCC;
  --gray-100:    #F0F0F0;
  --gray-50:     #F8F8F8;
  --white:       #FFFFFF;
  --section-bg:  #FAFAFA;

  --font-main:   'Outfit', sans-serif;
  --font-body:   'Inter', sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.14);
  --shadow-xl:   0 32px 80px rgba(0,0,0,0.18);
  --shadow-gold: 0 8px 32px rgba(245,168,0,0.30);

  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.25s ease;

  --section-pad: clamp(80px, 10vw, 140px);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Loading Screen ─────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  width: 120px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  animation: loaderFill 1.6s ease forwards;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
@keyframes loaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ── Scroll Progress Bar ────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  height: 68px;
}
#navbar.scrolled .nav-logo img { height: 42px; }
/* When on white bg, links must be dark for readability */
#navbar.scrolled .nav-links a { color: var(--dark); }
#navbar.scrolled .nav-links a:hover { color: var(--gold-dark); }
.nav-logo img {
  height: 52px;
  width: auto;
  transition: height var(--transition);
}
#navbar.scrolled .nav-logo img { height: 42px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-links a {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold) !important;
}
.nav-cta::after { display: none !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  font-family: var(--font-main);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: var(--dark);
  transition: color var(--transition-fast);
}
.nav-mobile-overlay a:hover { color: var(--gold); }

/* ── Hero Section ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  will-change: transform;
  /* Subtle Ken Burns — safe range for 1024px at typical screens */
  transform: scale(1.04);
  transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.50);
}
.hero-bg img.loaded { transform: scale(1); }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* Gradient tuned for night blue sky: dark on left for text, subtle gold hint on right */
  background: linear-gradient(
    135deg,
    rgba(8, 12, 28, 0.72) 0%,
    rgba(10, 18, 40, 0.48) 55%,
    rgba(5, 15, 35, 0.20) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(100px, 15vw, 160px) clamp(24px, 8vw, 120px) clamp(80px, 10vw, 120px);
  max-width: 900px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}
.hero-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.hero-title {
  font-family: var(--font-main);
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease 1s forwards;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease 1.2s forwards;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease 1.4s forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245,168,0,0.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(245,168,0,0.10);
  transform: translateY(-2px);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: clamp(24px, 8vw, 120px);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease 2s forwards;
}
.hero-scroll-indicator span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollLineSweep 2s ease-in-out infinite;
}
@keyframes scrollLineSweep {
  0% { left: -100%; }
  100% { left: 100%; }
}
.hero-stats {
  position: absolute;
  bottom: 36px;
  right: clamp(24px, 8vw, 120px);
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.8s forwards;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-main);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── Section Utilities ──────────────────────────────────────── */
.section-pad { padding: var(--section-pad) clamp(20px, 6vw, 80px); }
.section-pad-sm { padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 80px); }
.container { max-width: 1280px; margin: 0 auto; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.section-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.section-title span { color: var(--gold); }
.section-subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 580px;
  margin-top: 16px;
}
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  margin-top: 20px;
}

/* ── Scroll Reveal Animations ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── About / Presentación ───────────────────────────────────── */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about-image-wrap:hover img { transform: scale(1.04); }
.about-image-badge {
  position: absolute;
  bottom: 28px;
  right: -20px;
  background: var(--gold);
  color: var(--dark);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-image-badge .badge-num {
  font-family: var(--font-main);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.about-image-badge .badge-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}
.about-text { }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.about-value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.about-value-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(245,168,0,0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: 2px;
}
.about-value-info h4 {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.about-value-info p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Services Section ───────────────────────────────────────── */
#services { background: var(--section-bg); }
.services-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.services-header .section-subtitle { margin: 16px auto 0; }
.services-header .gold-line { margin: 20px auto 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,168,0,0.20);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(245,168,0,0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold);
  transform: scale(1.08);
}
.service-card h3 {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── Projects / Gallery ─────────────────────────────────────── */
#projects { background: var(--white); }
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* Masonry/Grid Gallery */
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
  aspect-ratio: 4 / 3; /* uniform height for every card */
}
.proj-card:hover .proj-img { transform: scale(1.06); }
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-card:hover .proj-info { transform: translateY(0); opacity: 1; }
.proj-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,17,17,0.90) 0%,
    rgba(17,17,17,0.30) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.proj-info {
  transform: translateY(12px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.proj-category {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.proj-title {
  font-family: var(--font-main);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.proj-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 14px;
}
.proj-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap var(--transition-fast);
}
.proj-cta:hover { gap: 12px; }
.proj-cta svg { width: 14px; height: 14px; }

/* All cards are uniform — no size variants needed */
/* Hidden cards must not occupy any grid space */
.proj-card[style*="display: none"],
.proj-card.filtered-out {
  display: none !important;
}

/* ── Process / Workflow Section ─────────────────────────────── */
#process { background: var(--dark); color: var(--white); }
.process-header { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.process-header .section-title { color: var(--white); }
.process-header .section-eyebrow { color: var(--gold); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: 0.3;
}
.process-step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 80px;
  height: 80px;
  background: rgba(245,168,0,0.12);
  border: 2px solid rgba(245,168,0,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.step-num:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.step-num span {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.step-num:hover span { color: var(--dark); }
.process-step h3 {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.process-image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.process-img-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.process-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.process-img-item:hover img { transform: scale(1.08); }
.process-img-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  transition: opacity var(--transition);
}
.process-img-item:hover::after { opacity: 0; }

/* ── CTA Section ────────────────────────────────────────────── */
#cta {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,168,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,168,0,0.10);
  color: var(--gold-dark);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 28px;
  border: 1px solid rgba(245,168,0,0.25);
}
.cta-title {
  font-family: var(--font-main);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 20px;
}
.cta-title span { color: var(--gold); }
.cta-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 40px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-whatsapp:hover {
  background: #1DAA57;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.35);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ── Contact Section ────────────────────────────────────────── */
#contact { background: var(--section-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info-title {
  font-family: var(--font-main);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.contact-info-subtitle {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.contact-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.contact-item-icon.green { background: rgba(37,211,102,0.12); }
.contact-item-icon.gold { background: rgba(245,168,0,0.12); }
.contact-item-icon.blue { background: rgba(59,130,246,0.12); }
.contact-item-text { }
.contact-item-label {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.contact-item-value {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}
.contact-item a {
  transition: color var(--transition-fast);
}
.contact-item a:hover { color: var(--gold-dark); }
.whatsapp-btn-large {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #25D366;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  margin-top: 24px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 8px 30px rgba(37,211,102,0.25);
}
.whatsapp-btn-large:hover {
  background: #1DAA57;
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(37,211,102,0.40);
}
.whatsapp-btn-large svg { width: 28px; height: 28px; }

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--gray-50);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,168,0,0.15);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.form-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: #16a34a;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: clamp(48px, 6vw, 80px) clamp(20px, 6vw, 80px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-logo img { height: 64px; margin-bottom: 16px; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.55);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  color: rgba(255,255,255,0.6);
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item span:first-child { font-size: 16px; margin-top: 1px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.footer-bottom-text {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-text a {
  color: var(--gold);
  font-weight: 600;
  transition: opacity var(--transition-fast);
}
.footer-bottom-text a:hover { opacity: 0.8; }

/* ── WhatsApp Float Button ──────────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: whatsappPulse 2s ease-in-out infinite;
}
#whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(37,211,102,0.6);
}
#whatsapp-float svg { width: 30px; height: 30px; fill: white; }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 48px rgba(37,211,102,0.65), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* ── Lightbox ───────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  padding: clamp(16px, 4vw, 48px);
  overflow-y: auto;
}
#lightbox.open { display: flex; flex-direction: column; }
.lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-shrink: 0;
}
.lightbox-meta { }
.lightbox-category {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.lightbox-title {
  font-family: var(--font-main);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.lightbox-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  max-width: 600px;
  line-height: 1.7;
}
.lightbox-close {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.lightbox-close:hover { background: rgba(255,255,255,0.20); transform: scale(1.1); }
.lightbox-main-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
  max-height: 60vh;
}
.lightbox-main-img img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 1;
}
.lightbox-nav:hover { background: var(--gold); transform: translateY(-50%) scale(1.1); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-counter {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.40);
  margin-bottom: 16px;
}
.lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  flex-shrink: 0;
}
.lightbox-thumbs::-webkit-scrollbar { height: 4px; }
.lightbox-thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 2px; }
.lightbox-thumbs::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.lightbox-thumb {
  min-width: 80px;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}
.lightbox-thumb.active { border-color: var(--gold); }
.lightbox-thumb:hover { transform: scale(1.05); }
.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Global keyframes ───────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { aspect-ratio: 16/9; max-height: 400px; }
  .about-image-badge { right: 16px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-image-strip { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  /* 2 columns on tablet */
  .projects-masonry { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { display: none; }
  .about-values { grid-template-columns: 1fr; gap: 16px; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .filter-tabs { gap: 8px; }
}

@media (max-width: 540px) {
  /* 1 column on mobile */
  .projects-masonry { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons > * { width: 100%; justify-content: center; }
  .process-steps { grid-template-columns: 1fr; }
  .process-image-strip { grid-template-columns: repeat(2, 1fr); }
  #whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
}
