/* =========================================================
   GECO PUBLICIDAD S.A.C. — Design System
   Industrial Premium Dark
   ========================================================= */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== ROOT — DESIGN TOKENS ===== */
:root {
  --bg-primary:    #0D0D0D;
  --bg-secondary:  #111111;
  --bg-card:       #161616;
  --bg-card-hover: #1C1C1C;
  --accent-orange: #FF6B1A;
  --accent-gold:   #F5A623;
  --accent-glow:   rgba(255, 107, 26, 0.35);
  --text-primary:  #F5F5F5;
  --text-muted:    #888888;
  --text-dim:      #555555;
  --border:        rgba(255, 107, 26, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* WA widget */
  --wa-green:      #25D366;
  --wa-dark:       #075E54;
  --wa-light-bg:   #ECE5DD;

  /* FB */
  --fb-blue:       #0084FF;

  /* spacing */
  --section-pad-y: 100px;
  --container:     1200px;
  --gap:           2rem;

  /* transitions */
  --t-fast:  150ms ease;
  --t-med:   250ms ease;
  --t-slow:  400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* z-index scale */
  --z-base:    1;
  --z-drop:    10;
  --z-sticky:  20;
  --z-overlay: 30;
  --z-modal:   50;
  --z-widget:  100;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.15ms !important;
  }
}

/* ===== CUSTOM CURSOR ===== */
@media (pointer: fine) {
  * { cursor: none !important; }
}
.cursor-dot {
  position: fixed;
  top: -5px; left: -5px;
  width: 8px; height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background 0.2s;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: -18px; left: -18px;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,107,26,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  top: -28px; left: -28px;
  border-color: var(--accent-orange);
  background: rgba(255,107,26,0.06);
}

/* ===== HERO PARTICLES CANVAS ===== */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== BUTTON SHIMMER & RIPPLE ===== */
.btn { position: relative; overflow: hidden; }

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: none;
}
.btn:hover::after {
  animation: btnShimmer 0.6s ease forwards;
}
@keyframes btnShimmer {
  to { left: 160%; }
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  from { opacity: 1; transform: scale(0); }
  to   { opacity: 0; transform: scale(2.5); }
}

/* ===== CTA BUTTON PULSE ===== */
.btn-primary {
  animation: ctaPulse 3s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,26,0); }
  50%      { box-shadow: 0 0 20px 6px rgba(255,107,26,0.25); }
}

/* ===== HERO LOGO FLOAT ===== */
.hero-logo {
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ===== SERVICE CARD GLOW ON HOVER ===== */
.service-card {
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.service-card:hover {
  box-shadow: 0 20px 60px rgba(255,107,26,0.2), 0 0 0 1px rgba(255,107,26,0.3);
}

/* ===== GALLERY ITEM ZOOM ===== */
.gallery-item img, .work-item img {
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover img, .work-item:hover img {
  transform: scale(1.08);
}

/* ===== STAT NUMBER GLOW ===== */
.stat-number {
  animation: statGlow 2s ease-in-out infinite alternate;
}
@keyframes statGlow {
  from { text-shadow: 0 0 0 transparent; }
  to   { text-shadow: 0 0 30px rgba(255,107,26,0.4); }
}

/* ===== SECTION LABEL PULSE ===== */
.section-label {
  animation: labelPulse 4s ease-in-out infinite;
}
@keyframes labelPulse {
  0%,100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ===== GRADIENT BORDER ON CARDS ===== */
.why-card, .mv-card, .contact-card {
  position: relative;
}
.why-card::before, .mv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,107,26,0), rgba(255,107,26,0.4), rgba(245,166,35,0), rgba(255,107,26,0));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 4s linear infinite;
  pointer-events: none;
}
@keyframes borderSpin {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ===== ORANGE ACCENT LINE ANIMATION ===== */
.section-title span {
  position: relative;
}
.section-title span::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-orange);
  animation: lineGrow 1.5s ease forwards;
  animation-play-state: paused;
}
.visible .section-title span::after,
.section-title span::after {
  animation-play-state: running;
}
@keyframes lineGrow {
  to { width: 100%; }
}

/* ===== UTILITY — CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== UTILITY — SECTION ===== */
.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-orange);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.section-title span {
  color: var(--accent-orange);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-top: 1rem;
}

/* ===== DIAGONAL DIVIDERS ===== */
.clip-diagonal-down {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.clip-diagonal-up {
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(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; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--t-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity var(--t-med);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 26, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 26, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 1.2rem 0;
  transition: background var(--t-slow), padding var(--t-slow), box-shadow var(--t-slow);
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .brand {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.nav-logo-text .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: color var(--t-med), background var(--t-med);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--accent-orange);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--t-med);
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-cta {
  background: var(--accent-orange) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 4px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(255, 107, 26, 0.4);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--t-med);
  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); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 1.5rem 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}

.hero-wave-svg {
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,26,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245,166,35,0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-logo {
  width: 240px;
  height: auto;
  margin: 0 auto 2.5rem;
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 14px 24px;
  filter: drop-shadow(0 0 40px rgba(255,107,26,0.25));
  animation: heroLogoFloat 6s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-orange);
  border: 1px solid rgba(255,107,26,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,26,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(255,107,26,0); }
}

.hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  animation: fadeUp 0.8s ease 0.35s both;
}

.hero-title .orange { color: var(--accent-orange); }
.hero-title .gold { color: var(--accent-gold); }

.hero-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto 0;
  line-height: 1.25;
  letter-spacing: 0.03em;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: fadeUp 0.8s ease 0.65s both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1s ease 1s both;
}

.scroll-arrow {
  width: 20px;
  height: 28px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.scroll-arrow::after {
  content: '';
  width: 3px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0; }
}

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

/* ===== ABOUT SECTION ===== */
#acerca {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-sub {
  max-width: 100%;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,107,26,0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-orange);
}

.about-feature-icon svg {
  width: 18px;
  height: 18px;
}

.about-feature-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.about-feature-text span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CSS Geometric Shape — right column */
.about-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-cluster {
  position: relative;
  width: 300px;
  height: 300px;
}

.hex {
  position: absolute;
  width: 80px;
  height: 92px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 3s ease-in-out;
}

.hex-1 { top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255,107,26,0.25); animation: hexFloat1 4s ease-in-out infinite; }
.hex-2 { top: 10%; left: 30%; background: rgba(255,107,26,0.15); animation: hexFloat2 5s ease-in-out infinite; }
.hex-3 { top: 10%; left: 57%; background: rgba(245,166,35,0.12); animation: hexFloat3 6s ease-in-out infinite; }
.hex-4 { top: 37%; left: 70%; background: rgba(255,107,26,0.18); animation: hexFloat1 4.5s ease-in-out infinite reverse; }
.hex-5 { top: 62%; left: 60%; background: rgba(245,166,35,0.1); animation: hexFloat2 5.5s ease-in-out infinite reverse; }
.hex-6 { top: 65%; left: 25%; background: rgba(255,107,26,0.12); animation: hexFloat3 4.2s ease-in-out infinite; }
.hex-7 { top: 35%; left: 12%; background: rgba(245,166,35,0.08); animation: hexFloat1 6s ease-in-out infinite reverse; }
.hex-large { width: 130px; height: 150px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255,107,26,0.06); border: 1px solid rgba(255,107,26,0.2); animation: hexFloat3 7s ease-in-out infinite; }

@keyframes hexFloat1 {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
  50% { transform: translate(-50%, -50%) translateY(-12px) rotate(3deg); }
}
@keyframes hexFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}
@keyframes hexFloat3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(5deg); }
}

.about-visual-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,107,26,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== SERVICES ===== */
#servicios {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--t-slow);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  box-shadow: 0 0 30px rgba(255,107,26,0.12), 0 8px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #1A1008 0%, var(--bg-card) 100%);
  border-color: rgba(255,107,26,0.2);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,107,26,0.1);
  border: 1px solid rgba(255,107,26,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-orange);
  transition: all var(--t-slow);
}

.service-card:hover .service-icon {
  background: rgba(255,107,26,0.18);
  box-shadow: 0 0 20px rgba(255,107,26,0.2);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-orange);
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: block;
}

.service-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card.featured .service-name {
  font-size: 2rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.service-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
}

/* ===== STATS ===== */
#stats {
  background: var(--bg-secondary);
  padding: 80px 0;
  position: relative;
}

#stats::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-secondary);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

#stats::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-secondary);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stat-item {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--accent-orange);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
  letter-spacing: 0.03em;
}

/* ===== WORKS PREVIEW (masonry-like grid) ===== */
#trabajos {
  background: var(--bg-primary);
}

.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 1rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--bg-card);
}

.work-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.work-item:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.work-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.work-item:nth-child(4) { grid-column: 1; grid-row: 2; }
.work-item:nth-child(5) { grid-column: 3; grid-row: 2; }
.work-item:nth-child(6) { display: none; }

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, rgba(255,107,26,0.4) 100%);
  opacity: 0;
  transition: opacity var(--t-slow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-item:hover img { transform: scale(1.08); }
.work-item:hover .work-item-overlay { opacity: 1; }

.work-zoom-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transform: scale(0.8);
  transition: transform var(--t-slow);
  color: #fff;
}

.work-item:hover .work-zoom-icon {
  transform: scale(1);
}

.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.work-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.3;
}

/* ===== CLIENTS MARQUEE ===== */
#clientes {
  background: var(--bg-secondary);
  padding: 60px 0;
  overflow: hidden;
}

.clients-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  will-change: transform;
}

.client-logo {
  width: 160px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.06);
  filter: grayscale(0.2) brightness(0.85);
  transition: filter var(--t-slow);
  flex-shrink: 0;
}

.client-logo:hover {
  filter: grayscale(0) brightness(1);
}

.client-logo-placeholder {
  width: 140px;
  height: 70px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
  flex-shrink: 0;
  background: var(--bg-card);
}

/* ===== CTA BANNER ===== */
#cta-banner {
  background: linear-gradient(135deg, #1A0800 0%, #2A1000 50%, #1A0800 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,107,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-banner-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ===== FOOTER ===== */
#footer {
  background: #080808;
  padding: 70px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
}

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

.footer-col h4 {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t-med);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.footer-col ul li a::before {
  content: '›';
  color: var(--accent-orange);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--t-med);
}

.footer-col ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item span, .footer-contact-item a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--t-med);
}

.footer-contact-item a:hover {
  color: var(--accent-orange);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-slow);
}

.footer-social a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(255,107,26,0.2);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--accent-orange);
  transition: color var(--t-med);
}
.footer-bottom a:hover { color: var(--accent-gold); }

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(255,107,26,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-dim);
  transition: color var(--t-med);
}
.breadcrumb a:hover { color: var(--accent-orange); }
.breadcrumb span { color: var(--accent-orange); }

.page-hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

/* ===== TIMELINE (Nosotros) ===== */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), var(--accent-orange), var(--border), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  gap: 0 1.5rem;
  margin-bottom: 3.5rem;
}

.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-dot { grid-column: 2; }
.timeline-item:nth-child(odd) .timeline-empty { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-dot { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-empty { grid-column: 1; }

.timeline-dot {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 2px solid var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(255,107,26,0.2);
}

.timeline-dot svg {
  width: 18px;
  height: 18px;
  color: var(--accent-orange);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color var(--t-med), box-shadow var(--t-med);
}

.timeline-content:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(255,107,26,0.08);
}

.timeline-year {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  color: var(--accent-orange);
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline-empty { height: 1px; }

/* ===== MISSION VISION CARDS ===== */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.mv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all var(--t-slow);
}

.mv-card:hover {
  border-color: var(--border);
  box-shadow: 0 0 30px rgba(255,107,26,0.08);
  transform: translateY(-3px);
}

.mv-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,107,26,0.1);
  border: 1px solid rgba(255,107,26,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-orange);
}

.mv-icon svg { width: 28px; height: 28px; }

.mv-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.mv-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== WHY US GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.75rem;
  transition: all var(--t-slow);
}

.why-card:hover {
  border-color: var(--border);
  box-shadow: 0 0 24px rgba(255,107,26,0.08);
}

.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,107,26,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-orange);
}

.why-icon svg { width: 24px; height: 24px; }

.why-text h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.why-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== GALLERY FILTERS ===== */
#galeria {
  background: var(--bg-primary);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: all var(--t-med);
}

.filter-btn:hover {
  border-color: var(--border);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

/* CSS Masonry */
.gallery-masonry {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.85) 0%, rgba(255,107,26,0.3) 100%);
  opacity: 0;
  transition: opacity var(--t-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.gallery-item.hidden {
  display: none;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

.gallery-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.25;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all var(--t-med);
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255,107,26,0.3); border-color: var(--accent-orange); }
.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all var(--t-med);
  z-index: 1;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,107,26,0.25);
  border-color: var(--accent-orange);
}
.lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }

/* ===== CONTACT PAGE ===== */
#contact-section {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3.5rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: all var(--t-slow);
}

.contact-card:hover {
  border-color: var(--border);
  box-shadow: 0 0 20px rgba(255,107,26,0.08);
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,107,26,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-orange);
}

.contact-card-icon svg { width: 20px; height: 20px; }

.contact-card-info label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-card-info a,
.contact-card-info span {
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: color var(--t-med);
}

.contact-card-info a:hover { color: var(--accent-orange); }

/* ===== QUOTE FORM ===== */
.quote-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.5rem;
}

.quote-form-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.quote-form-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--t-med), box-shadow var(--t-med);
  outline: none;
  -webkit-appearance: none;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

/* ===== MAP ===== */
.map-wrapper {
  margin-top: 4rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 300px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(1) invert(0.9) contrast(0.85);
  transition: filter var(--t-slow);
}

.map-wrapper:hover iframe {
  filter: grayscale(0.3) invert(0) contrast(1);
}

/* ===== FLOATING WIDGETS ===== */

/* --- WhatsApp Widget --- */
#wa-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-widget);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  animation: slideUpWidget 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.6s both;
}

/* --- Facebook Widget --- */
#fb-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: var(--z-widget);
  animation: slideUpWidget 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}

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

.widget-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform var(--t-slow);
  flex-shrink: 0;
}

.widget-btn:hover {
  transform: scale(1.1);
}

.widget-btn svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: widgetPulse 2.5s ease-out infinite;
}

@keyframes widgetPulse {
  0% { box-shadow: 0 0 0 0 currentColor; opacity: 0.6; }
  70% { box-shadow: 0 0 0 16px currentColor; opacity: 0; }
  100% { box-shadow: 0 0 0 0 currentColor; opacity: 0; }
}

.widget-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,20,20,0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  white-space: nowrap;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-med);
  backdrop-filter: blur(8px);
}

.widget-btn:hover .widget-tooltip {
  opacity: 1;
}

/* WA specific */
#wa-btn {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
#wa-btn .pulse-ring { color: rgba(37,211,102,0.3); }

/* FB specific */
#fb-btn {
  background: var(--fb-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,132,255,0.4);
}
#fb-btn .pulse-ring { color: rgba(0,132,255,0.3); }

.fb-tooltip {
  left: calc(100% + 0.75rem);
  right: auto;
}

/* WhatsApp Chat Panel */
#wa-chat {
  width: 320px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  transform-origin: bottom right;
  animation: chatOpen 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

#wa-chat.open {
  display: flex;
}

@keyframes chatOpen {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.wa-chat-header {
  background: var(--wa-dark);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.wa-chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-chat-avatar svg { width: 22px; height: 22px; }

.wa-chat-info {
  flex: 1;
  line-height: 1.3;
}

.wa-chat-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.wa-chat-status {
  font-size: 0.72rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.wa-status-dot {
  width: 6px;
  height: 6px;
  background: var(--wa-green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.wa-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color var(--t-med);
  display: flex;
}
.wa-close-btn:hover { color: #fff; }
.wa-close-btn svg { width: 18px; height: 18px; }

.wa-chat-body {
  background: var(--wa-light-bg);
  padding: 1.25rem 1rem;
  min-height: 120px;
  background-image:
    url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ccc' fill-opacity='0.15'/%3E%3C/svg%3E");
}

.wa-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 0.75rem 1rem;
  max-width: 85%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-bubble-text {
  font-size: 0.875rem;
  color: #222;
  line-height: 1.55;
}

.wa-bubble-time {
  font-size: 0.65rem;
  color: #999;
  text-align: right;
  margin-top: 0.3rem;
}

.wa-chat-footer {
  background: #f0f0f0;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid #ddd;
}

#wa-input {
  flex: 1;
  background: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.55rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  color: #222;
}

.wa-send-btn {
  width: 38px;
  height: 38px;
  background: var(--wa-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: background var(--t-med);
}
.wa-send-btn:hover { background: var(--wa-green); }
.wa-send-btn svg { width: 18px; height: 18px; }

/* ===== MOBILE NAV OVERLAY ===== */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sticky) - 1);
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(16px);
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

#mobile-nav.open {
  display: flex;
}

#mobile-nav a {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--t-med);
  padding: 0.3rem 0;
}

#mobile-nav a:hover,
#mobile-nav a.active {
  color: var(--accent-orange);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-row: auto; grid-column: 1 / -1; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 40px 1fr; }
  .timeline-item:nth-child(odd) .timeline-content { grid-column: 2; text-align: left; }
  .timeline-item:nth-child(odd) .timeline-dot { grid-column: 1; }
  .timeline-item:nth-child(odd) .timeline-empty { display: none; }
  .timeline-item:nth-child(even) .timeline-content { grid-column: 2; }
  .timeline-item:nth-child(even) .timeline-dot { grid-column: 1; }
  .timeline-item:nth-child(even) .timeline-empty { display: none; }
  .timeline-dot { justify-self: start; }
}

@media (max-width: 768px) {
  :root { --section-pad-y: 70px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 250px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .works-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .work-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .work-item:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
  .work-item:nth-child(3) { grid-column: 1; grid-row: 2; }
  .work-item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .work-item:nth-child(5) { grid-column: 2; grid-row: 3; }

  .mv-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .gallery-masonry { columns: 2; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  #wa-chat { width: 90vw; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .gallery-masonry { columns: 1; }
  .works-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }
  .work-item:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }
}
