/* ===========================================
   MAQUINADOS Y RECTIFICADOS PROGRESO SA DE CV
   Stylesheet – styles.css
   =========================================== */

/* ---------- VARIABLES ---------- */
:root {
  --color-primary: #E8A020;
  --color-primary-d: #C47C0A;
  --color-primary-l: #F5C050;
  --color-dark: #FFFFFF;
  --color-dark2: #F8F9FA;
  --color-dark3: #FFFFFF;
  --color-mid: #E9ECEF;
  --color-steel: #DEE2E6;
  --color-text: #212529;
  --color-muted: #6C757D;
  --color-white: #0F172A;
  --color-whatsapp: #25D366;
  --color-whatsapp-d: #1ebe5d;

  --font-display: 'Oswald', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 30px rgba(232, 160, 32, 0.25);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --navbar-h: 72px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-dark);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.loader-icon-fallback {
  font-size: 60px;
  color: var(--color-primary);
}

.loader-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 400;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.3;
}

.loader-title span {
  color: var(--color-primary);
  font-weight: 700;
}

.loader-sub {
  font-family: var(--font-condensed);
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: var(--color-steel);
  border-radius: 3px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 3px;
  animation: loaderBar 2s ease-in-out forwards;
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.8;
  }
}

@keyframes loaderBar {
  0% {
    width: 0%;
  }

  60% {
    width: 75%;
  }

  100% {
    width: 100%;
  }
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 48px;
  object-fit: contain;
}

.nav-brand-name {
  display: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li a {
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: color var(--transition), background var(--transition);
}

.nav-links li a:hover {
  color: var(--color-primary);
}

.nav-links li a.nav-cta {
  background: var(--color-primary);
  color: #1A1A1A;
  font-weight: 700;
  padding: 9px 20px;
}

.nav-links li a.nav-cta:hover {
  background: var(--color-primary-l);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  width: 38px;
  height: 38px;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-dark2);
}

#heroBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--navbar-h) + 40px) 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 160, 32, 0.15);
  border: 1px solid rgba(232, 160, 32, 0.4);
  color: var(--color-primary);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.3s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 700;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.5s both;
}

.hero-accent {
  color: var(--color-primary);
}

.hero-blue {
  color: #fffdfd;
}

.hero-desc {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.8s 0.7s both;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 50px;
  animation: fadeUp 0.8s 0.9s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.8s 1.1s both;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  width: fit-content;
}

.stat {
  text-align: center;
  padding: 0 24px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-condensed);
  font-size: 12px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  font-size: 20px;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(8px)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--color-primary);
  padding: 16px 0;
  overflow: hidden;
}

.trust-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trust-item i {
  font-size: 16px;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section {
  padding: 100px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--color-white);
}

.section-title span {
  color: var(--color-primary);
}

.section-sub {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #1A1A1A;
}

.btn-primary:hover {
  background: var(--color-primary-l);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-d);
  transform: translateY(-2px);
}

.btn-whatsapp-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  background: var(--color-whatsapp);
  color: #fff;
  transition: var(--transition);
}

.btn-whatsapp-lg:hover {
  background: var(--color-whatsapp-d);
  transform: translateY(-2px);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-text);
  color: var(--color-text);
  transition: var(--transition);
}

.btn-outline-dark:hover {
  background: var(--color-text);
  color: #fff;
}

.mt-20 {
  margin-top: 20px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  background: var(--color-dark2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--color-dark3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 30px 30px;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 160, 32, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.service-card:hover::before {
  background: var(--color-primary);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--color-dark3) 0%, rgba(232, 160, 32, 0.08) 100%);
  border-color: rgba(232, 160, 32, 0.3);
}

.service-card.featured::before {
  background: var(--color-primary);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-primary);
  color: #1A1A1A;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 100px;
}

.service-icon {
  width: 58px;
  height: 58px;
  background: rgba(232, 160, 32, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--color-primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(232, 160, 32, 0.25);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-list {
  margin-bottom: 24px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
  padding: 4px 0;
}

.service-list li i {
  color: var(--color-primary);
  font-size: 12px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  transition: gap var(--transition), color var(--transition);
}

.service-btn:hover {
  gap: 10px;
  color: var(--color-primary-l);
}

/* ============================================================
   ABOUT / VIDEO
   ============================================================ */
.about-section {
  background: var(--color-dark);
}

.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 48px;
}

.about-text .section-header {
  text-align: center;
  margin-bottom: 24px;
}

.about-text .section-title {
  font-size: clamp(28px, 3.5vw, 44px);
}

.about-text p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-text p strong {
  color: var(--color-text);
}

.about-specialties {
  margin: 20px auto 8px;
  background: var(--color-dark3);
  border: 1px solid rgba(232, 160, 32, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.about-spec-title {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-spec-list li i {
  color: var(--color-primary);
  font-size: 14px;
  flex-shrink: 0;
}

.about-features {
  margin: 28px auto 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: max-content;
  text-align: left;
}

.af-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-dark3);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.af-item>i {
  font-size: 20px;
  color: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.af-item>div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.af-item strong {
  color: var(--color-white);
  font-size: 15px;
}

.af-item span {
  color: var(--color-muted);
  font-size: 13px;
}

/* Video Player */
.about-video-wrap {
  position: relative;
}

.video-player-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #F1F3F5;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  aspect-ratio: 16/9;
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background var(--transition);
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #1A1A1A;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 0 rgba(232, 160, 32, 0.5);
  animation: playPulse 2s infinite;
}

.play-btn:hover {
  transform: scale(1.1);
}

@keyframes playPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 160, 32, 0.5);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(232, 160, 32, 0);
  }
}

.video-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 20px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition);
}

.video-player-container:hover .video-controls-bar {
  opacity: 1;
}

.video-controls-bar button {
  color: #fff;
  font-size: 16px;
  padding: 4px;
}

.video-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  cursor: pointer;
}

.video-progress {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.2s linear;
}

.video-time {
  font-family: var(--font-condensed);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.video-badge {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.video-badge i {
  color: var(--color-primary);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: var(--color-dark2);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.15) 0%, transparent 60%);
}

.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8A020' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cta-content p {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  background: var(--color-dark3);
}

.gallery-grid {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: var(--color-mid);
  border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.gallery-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-dark3);
  color: var(--color-primary);
  border: 1px solid rgba(232, 160, 32, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.gallery-arrow:hover {
  background: var(--color-primary);
  color: #1A1A1A;
  transform: scale(1.05);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-steel);
  aspect-ratio: 16/9;
  flex: 0 0 calc(85% - 16px);
  max-width: 400px;
  scroll-snap-align: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-steel);
  color: var(--color-muted);
  font-family: var(--font-condensed);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-placeholder i {
  font-size: 36px;
  color: var(--color-primary);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption span {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   CLIENTS CAROUSEL
   ============================================================ */
.clients-section {
  background: var(--color-dark2);
}

.carousel-wrap {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 calc(50% - 10px);
  min-width: calc(50% - 10px);
  margin-right: 20px;
  cursor: pointer;
}

.client-card {
  background: var(--color-dark3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.client-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-steel);
}

.client-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.client-card:hover .client-img-wrap img {
  transform: scale(1.04);
}

.client-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-steel);
  font-size: 48px;
  color: var(--color-primary);
}

.client-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity var(--transition);
}

.client-card:hover .client-expand {
  opacity: 1;
}

.client-info {
  padding: 20px 24px;
}

.stars {
  color: var(--color-primary);
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  gap: 3px;
}

.client-quote {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 12px;
}

.client-info strong {
  font-family: var(--font-condensed);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-text);
  letter-spacing: 1px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #1A1A1A;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--color-primary-l);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
  left: -22px;
}

.carousel-btn.next {
  right: -22px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-steel);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--color-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-card {
  background: var(--color-dark3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
  border-bottom: none;
}

.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(232, 160, 32, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.ci-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ci-text strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  font-family: var(--font-condensed);
}

.ci-text a,
.ci-text span {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

.ci-text a:hover {
  color: var(--color-primary);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: 0;
  /* filter removed for light mode */
  border-radius: var(--radius-lg);
}

.map-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
}

.map-overlay-info i {
  color: var(--color-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark2);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-top {
  padding: 70px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-brand .footer-logo {
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 200px;
  max-width: 100%;
  object-fit: contain;
}

.footer-logo-fallback {
  width: 60px;
  height: 60px;
  background: rgba(232, 160, 32, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-primary);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.footer-brand h3 span {
  color: var(--color-primary);
}

.footer-brand p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 15px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #1A1A1A;
}

.footer-links-col h4 {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-links-col ul li {
  margin-bottom: 8px;
}

.footer-links-col ul li a {
  font-size: 14px;
  color: var(--color-muted);
  transition: color var(--transition);
}

.footer-links-col ul li a:hover {
  color: var(--color-primary);
}

.footer-contact-col h4 {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item i {
  color: var(--color-primary);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item span,
.footer-contact-item a {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

.footer-contact-item a:hover {
  color: var(--color-primary);
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-whatsapp);
  color: #fff;
  transition: var(--transition);
}

.footer-cta-btn:hover {
  background: var(--color-whatsapp-d);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-muted);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateX(10px) translateY(-50%);
  background: var(--color-dark);
  color: var(--color-text);
  font-size: 13px;
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-whatsapp);
  opacity: 0.4;
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: var(--color-primary);
  color: #1A1A1A;
}

/* ============================================================
   ANIMATIONS (scroll-based via JS class)
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos][data-aos-delay="100"] {
  transition-delay: 0.1s;
}

[data-aos][data-aos-delay="200"] {
  transition-delay: 0.2s;
}

[data-aos][data-aos-delay="300"] {
  transition-delay: 0.3s;
}

[data-aos][data-aos-delay="400"] {
  transition-delay: 0.4s;
}

[data-aos][data-aos-delay="500"] {
  transition-delay: 0.5s;
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 300px;
  }

  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .carousel-btn.prev {
    left: -16px;
  }

  .carousel-btn.next {
    right: -16px;
  }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  :root {
    --navbar-h: 60px;
  }

  .section {
    padding: 70px 0;
  }

  /* Navbar – absolute para que no siga al usuario al hacer scroll */
  #navbar {
    position: absolute;
    background: transparent;
    box-shadow: none;
    transition: background 0.35s ease, box-shadow 0.35s ease;
  }

  #navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
  }

  .hero-content {
    padding-top: 50px;
  }

  #navbar.menu-open {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  }

  /* Hamburguesa blanca sobre hero, oscura al hacer scroll */
  #navbar:not(.scrolled):not(.menu-open) .nav-toggle span {
    background: #fff;
  }

  .nav-brand-name {
    display: block;
  }

  .nav-logo img {
    height: 50px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 30px;
    gap: 4px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 12px 6px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links li:last-child a {
    margin-top: 8px;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
  }

  /* Hero */
  .hero-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
  }

  .stat {
    padding: 0 12px;
  }

  .stat-divider {
    display: none;
  }

  /* Trust */
  .trust-container {
    justify-content: center;
    gap: 16px;
  }

  .trust-item {
    font-size: 12px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    gap: 12px;
  }

  .gallery-item {
    flex: 0 0 calc(90% - 12px);
    max-width: none;
  }

  /* Carousel */
  .carousel-btn {
    display: none;
  }

  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    margin-right: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  /* WA */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 26px;
  }

  /* CTA btns */
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    justify-content: center;
  }
}

/* --- Small Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .hero-stats {
    display: none;
  }

  .section-title {
    font-size: 28px;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 26px 20px 22px;
  }
}