/* ============================================================
   R6 S.A. CONSTRUCTORA — DESIGN SYSTEM
   Tipografia: Helvetica Neue | Cores: Azul Escuro, Preto, Branco, Amarelo
   ============================================================ */

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

:root {
  --blue-dark:    #0D1F3C;
  --blue-mid:     #1A3A6B;
  --blue-light:   #1E4D8C;
  --black:        #0A0A0A;
  --surface:      #111827;
  --surface-2:    #1C2A3F;
  --white:        #FFFFFF;
  --white-90:     rgba(255,255,255,0.9);
  --white-60:     rgba(255,255,255,0.6);
  --white-20:     rgba(255,255,255,0.2);
  --white-08:     rgba(255,255,255,0.08);
  --yellow:       #F5C518;
  --yellow-dark:  #D4A80A;
  --gray-light:   #F4F6F9;
  --gray-mid:     #8A8A8A;
  --gray-border:  #E5E7EB;
  --text-dark:    #1A1A2E;
  --text-mid:     #4A5568;

  --font: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.18);
  --shadow-blue: 0 8px 32px rgba(13,31,60,0.3);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }

/* --- TYPOGRAPHY --- */
.text-900 { font-weight: 900; }
.text-700 { font-weight: 700; }
.text-400 { font-weight: 400; }
.text-300 { font-weight: 300; }

h1,h2,h3,h4,h5 { line-height: 1.15; letter-spacing: -0.02em; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  margin-bottom: 12px;
}

/* --- LAYOUT --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }
.section-blue { background: var(--blue-dark); }
.section-gray { background: var(--gray-light); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(255,255,255,0.12);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,197,24,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: var(--white-08); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-outline-dark:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--white); padding: 14px 0; gap: 10px; }
.btn-ghost:hover { gap: 14px; }
.btn-ghost .arrow { transition: transform var(--transition); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 100px;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  height: 80px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 80px; width: auto; transition: height var(--transition); }
.navbar.scrolled .nav-logo img { height: 60px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-90);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

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

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--white-08);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid var(--white-20);
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-60);
  background: transparent;
  transition: var(--transition);
}
.lang-btn.active { background: var(--white); color: var(--blue-dark); }

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--yellow); }
.mobile-menu .mobile-lang { display: flex; gap: 12px; margin-top: 16px; }
.mobile-menu .mobile-lang button {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white-60);
  background: none;
  padding: 8px 16px;
  border: 1px solid var(--white-20);
  border-radius: 20px;
  transition: var(--transition);
}
.mobile-menu .mobile-lang button.active { color: var(--white); border-color: var(--white); }

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.88) 0%,
    rgba(13,31,60,0.75) 50%,
    rgba(13,31,60,0.35) 100%
  );
}
.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--black), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--yellow);
}

.hero-subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--white-60);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero stats bar at bottom */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 2;
  background: rgba(13,31,60,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  width: 100%;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 48px 28px 0;
  margin-right: 48px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.hero-stat:last-child { border-right: none; margin-right: 0; }
.hero-stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-number span { color: var(--yellow); }
.hero-stat-label {
  font-size: 10px;
  font-weight: 400;
  color: var(--white-60);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white-60);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce-scroll 2.5s infinite;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--white-60), transparent);
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- STATS BAND --- */
.stats-band {
  background: 
    linear-gradient(rgba(13, 31, 60, 0.92), rgba(13, 31, 60, 0.92)),
    url('../assets/patternr6.svg') repeat center center;
  background-size: auto, 400px;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.stat-card {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--white-08); }
.stat-number {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  white-space: nowrap;
}
.stat-number .plus { color: var(--yellow); }
.stat-unit { color: var(--yellow); font-weight: 900; }
.stat-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}
.stat-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  opacity: 0.85;
}

/* --- SECTION HEADERS --- */
.section-header {
  margin-bottom: 64px;
}
.section-header.center { text-align: center; }
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-title.white { color: var(--white); }
.section-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-mid);
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.7;
}
.section-subtitle.white { color: var(--white-60); }
.section-header.center .section-subtitle { margin: 16px auto 0; }

/* Divider */
.divider {
  width: 48px;
  height: 3px;
  background: var(--yellow);
  margin: 20px 0;
  border-radius: 2px;
}
.section-header.center .divider { margin: 20px auto; }

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gray-border);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border);
  box-sizing: border-box;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); z-index: 1; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--yellow); }

.service-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
}
.service-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.service-tag.highlight { background: var(--yellow); color: var(--black); }

/* --- WHY R6 / DIFERENTIALS --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
}
.why-image {
  position: relative;
  overflow: hidden;
}
.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.why-image:hover img { transform: scale(1.04); }
.why-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,0.7), transparent);
}

.why-content {
  background: var(--blue-dark);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.differential-list { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.differential-item { display: flex; gap: 20px; align-items: flex-start; }
.diff-number {
  font-size: 11px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.1em;
  min-width: 24px;
  padding-top: 4px;
}
.diff-title { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.diff-desc { font-size: 14px; font-weight: 300; color: var(--white-60); line-height: 1.6; }

/* --- PROCESS STEPS --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--yellow), var(--blue-light));
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 3px solid var(--yellow);
  transition: var(--transition);
}
.step:hover .step-num { background: var(--yellow); color: var(--black); transform: scale(1.1); }
.step-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.step-desc { font-size: 13px; font-weight: 300; color: var(--text-mid); line-height: 1.6; }

/* --- PORTFOLIO PREVIEW --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 3px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item:first-child {
  grid-column: span 2;
  grid-row: span 1;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.92) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.portfolio-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* --- TESTIMONIALS --- */
.testimonials-wrap {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.testimonial-slide { min-width: 100%; padding: 0 20px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.testimonial-quote {
  font-size: 72px;
  line-height: 0.5;
  font-weight: 900;
  color: var(--yellow);
  margin-bottom: 20px;
  display: block;
}
.testimonial-text {
  font-size: 19px;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 32px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.testimonial-company { font-size: 13px; color: var(--text-mid); }
.testimonial-stars { color: var(--yellow); font-size: 14px; margin-bottom: 4px; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--white-20);
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active { background: var(--yellow); width: 24px; }

/* --- CTA BANNER --- */
.cta-banner {
  background: #020C21; /* Azul extremamente escuro e intenso */
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../assets/PATTERN_R6.svg') repeat center center;
  background-size: 300px;
  opacity: 0.04; /* Marca d'água sutíl no fundo */
  pointer-events: none;
  z-index: 0;
}
.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.cta-text .cta-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta-text .cta-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--white-60);
}
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* Botão WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

/* --- FOOTER --- */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-main { padding: 72px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 64px;
}
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px;
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  color: var(--white-60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-60);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: var(--white-60);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.contact-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; color: var(--white-90); }
.contact-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-60); display: block; }
.contact-value { font-size: 14px; color: var(--white); font-weight: 300; }
.contact-value a { color: var(--yellow); }
.contact-value a:hover { text-decoration: underline; }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--white-60);
  font-weight: 300;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.whatsapp-float.visible { opacity: 1; transform: translateY(0); }

.whatsapp-tooltip {
  background: var(--white);
  color: var(--text-dark);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-wa 3s infinite;
}
.whatsapp-btn:hover { transform: scale(1.12); animation: none; box-shadow: 0 12px 32px rgba(37,211,102,0.5); }
.whatsapp-btn svg { width: 30px; height: 30px; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.12); }
}

/* --- PAGE HERO (interno) --- */
.page-hero {
  height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(13,31,60,0.65) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
  display: block;
}
.page-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.breadcrumb {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white-60);
}
.breadcrumb a { color: var(--yellow); }
.breadcrumb span { color: var(--white-60); }

/* --- NOSOTROS TIMELINE --- */
.timeline { position: relative; padding-left: 48px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), var(--blue-light));
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-dot {
  position: absolute;
  left: -54px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--yellow);
}
.timeline-year {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-title { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.timeline-desc { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.7; }

/* --- VALUES --- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--blue-dark);
  transition: width var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-card:hover::after { width: 100%; opacity: 0.03; }
.value-icon { font-size: 32px; margin-bottom: 16px; }
.value-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.value-desc { font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.7; }

/* --- SERVICES PAGE --- */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3px;
}
.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }
.service-detail-img { overflow: hidden; min-height: 360px; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.service-detail-card:hover .service-detail-img img { transform: scale(1.04); }
.service-detail-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-detail-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 20px;
}
.service-detail-tag.primary { background: var(--yellow); color: var(--black); }
.service-detail-title { font-size: 28px; font-weight: 900; color: var(--text-dark); margin-bottom: 16px; line-height: 1.2; }
.service-detail-desc { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.75; margin-bottom: 28px; }
.service-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}
.feature-check { color: var(--yellow); font-size: 16px; flex-shrink: 0; font-weight: 700; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--blue-dark); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  background: none;
  transition: color var(--transition);
}
.faq-item.open .faq-question { color: var(--blue-dark); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--text-mid);
}
.faq-item.open .faq-icon { background: var(--yellow); color: var(--black); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 24px; }
.faq-answer p { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.75; }

/* --- PREFAB vs CONVENCIONAL --- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.compare-col {
  padding: 48px 40px;
}
.compare-col.prefab { background: var(--blue-dark); }
.compare-col.conv { background: var(--gray-light); }
.compare-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid;
}
.compare-col.prefab .compare-title { color: var(--white); border-color: var(--yellow); }
.compare-col.conv .compare-title { color: var(--text-dark); border-color: var(--gray-border); }
.compare-list { display: flex; flex-direction: column; gap: 14px; }
.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.compare-col.prefab .compare-item { color: var(--white-90); }
.compare-col.conv .compare-item { color: var(--text-mid); }
.cmp-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* --- NOT DOING --- */
.not-doing {
  background: var(--gray-light);
  border: 2px solid var(--gray-border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.not-doing-icon { font-size: 24px; flex-shrink: 0; }
.not-doing-text { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.not-doing-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }

/* --- PORTFOLIO FILTER --- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--white);
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.masonry-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.masonry-item.tall { grid-row: span 2; aspect-ratio: unset; min-height: 500px; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.masonry-item:hover img { transform: scale(1.06); }
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--white); color: var(--black); }
.lightbox-caption {
  position: absolute;
  bottom: 32px;
  text-align: center;
  color: var(--white-60);
  font-size: 13px;
  font-weight: 300;
}

/* --- CONTACT PAGE --- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }

.contact-form-wrap { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  padding: 14px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(13,31,60,0.1);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { appearance: none; 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 d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-submit:hover { background: var(--yellow); color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow-blue); }

.contact-info-wrap { }
.contact-card {
  background: var(--blue-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 24px;
}
.contact-card .contact-item { margin-bottom: 28px; display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px;
  background: var(--white-08);
  border: 1px solid var(--white-20);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--white-90);
}
.ci-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-60); display: block; margin-bottom: 4px; }
.ci-value { font-size: 15px; color: var(--white); font-weight: 400; }
.ci-value a { color: var(--yellow); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; height: 280px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible { opacity: 1; }

/* Stagger delays */
.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; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* --- AWARD BADGE --- */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--yellow);
  padding: 16px 24px;
  border-radius: var(--radius-md);
}
.award-icon { font-size: 32px; }
.award-text strong { font-size: 14px; font-weight: 900; color: var(--black); display: block; }
.award-text span { font-size: 12px; color: rgba(0,0,0,0.6); font-weight: 300; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .container { padding: 0 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-stats-inner { padding: 0 28px; }
  .hero-stats { right: 40px; gap: 24px; }
  .hero-stat { padding-right: 24px; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .portfolio-item:first-child { grid-column: span 1; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { min-height: 300px; }
  .why-content { padding: 56px 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-card { grid-template-columns: 1fr; }
  .service-detail-card.reverse { direction: ltr; }
  .compare-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-content { flex-direction: column; text-align: center; }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: 80px; padding-bottom: 60px; }
  .hero-stats { display: none; }
  .hero-title { font-size: clamp(32px, 8vw, 54px); }

  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 36px 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .masonry-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonial-card { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .whatsapp-float { bottom: 20px; right: 20px; }
}

/* ─── CLIENTS LOGOS SECTION ─────────────────────────────── */
.clients-section {
  padding: 64px 0;
  background: var(--gray-light);
  overflow: hidden;
}
.clients-section .section-label { display: block; text-align: center; margin-bottom: 40px; }

.clients-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 64px;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 100px;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.35s ease;
}
.client-logo:hover { filter: grayscale(0) opacity(1); }
.client-logo img {
  height: 80px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

/* ─── SERVICE ICON (SVG version — no emoji) ─────────────── */
.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
  transition: color var(--transition);
}
.service-card:hover .service-icon svg { color: var(--black); }


/* FAQ title single line fix */
@media (min-width: 992px) {
  .faq-title-single {
    white-space: nowrap;
    font-size: 38px !important;
  }
}

/* --- ARCHITECTURAL BACKGROUND --- */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(var(--gray-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Add a subtle fade out at the edges for premium feel */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-light) 100%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* Subtle placeholder */
.form-input::placeholder, .form-textarea::placeholder {
  color: #C5CBD3;
  opacity: 1;
}
