/* ===================================================
   AMULEK.CSS — Dark-Mode Editorial Design System
   Arnulck Construcciones · Charcoal & Golden Copper
   =================================================== */

/* --- Design Tokens Override --- */
:root {
  /* Avant-Garde Corporate Palette */
  --primary: #1A7FDB;
  /* Corporate Blue – brighter for legibility */
  --primary-dark: #005BB5;
  --primary-light: #4DA3FF;
  --accent: #1A7FDB;
  --accent-light: #4DA3FF;
  --accent-glow: rgba(0, 91, 181, 0.4);

  --bg-dark: #0B131F;
  /* Deep Navy */
  --bg-dark-surface: #0f1c2b;
  --bg-light: #0B131F;
  --bg-light-alt: #0f1c2b;
  --bg-alt: #0f1c2b;
  --bg-footer: #050a12;

  --text: #FFFFFF;
  /* Pure white */
  --text-muted: #D1D5DB;
  /* Light gray */
  --text-on-dark: #FFFFFF;
  --white: #FFFFFF;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-arch: 4px;
  /* Squarer, more geometric aesthetic for avant-garde */
  --radius-arch-alt: 4px;
  --radius-pill-shape: 4px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text);
}

/* ===================================================
   NAVBAR — Transparent on dark, glass on scroll
   =================================================== */
.navbar {
  background: transparent;
  color: var(--text-on-dark);
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(11, 19, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
  color: var(--text-on-dark);
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: 8px 4px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-links a {
  color: rgba(245, 240, 235, 0.7);
}

.nav-links a:hover {
  color: var(--text-on-dark);
}

.nav-links a::after {
  background: var(--accent);
}

.nav-hamburger span {
  background: var(--text-on-dark);
}

.group-pills-desktop {
  background: rgba(255, 255, 255, 0.06);
}

.group-pills-desktop .group-pill {
  color: rgba(245, 240, 235, 0.5);
}

.group-pills-desktop .group-pill:hover {
  color: var(--text-on-dark);
}

.group-pills-desktop .group-pill.active {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Drawer dark */
.nav-drawer {
  background: var(--bg-dark) !important;
  color: var(--text-on-dark);
}

.nav-drawer-links a {
  color: rgba(245, 240, 235, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-drawer .group-pills {
  background: rgba(255, 255, 255, 0.04);
}

.nav-drawer .group-pill {
  color: rgba(245, 240, 235, 0.5);
}

.nav-drawer .group-pill.active {
  background: var(--accent);
  color: var(--bg-dark);
}

/* ===================================================
   HERO — Immersive full-bleed with organic curve
   =================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(11, 19, 31, 0.92) 0%,
      rgba(11, 19, 31, 0.7) 40%,
      rgba(11, 19, 31, 0.5) 100%);
}

.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.hero-curve svg {
  width: 100%;
  height: 120px;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 1.5rem;
  padding-bottom: 10rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  max-width: 600px;
  flex-shrink: 0;
}

/* ===================================================
   HERO — Avant-Garde Full Screen
   =================================================== */
.hero--avant-garde {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  display: block;
  transform-origin: center;

  /* ---> ACÁ AJUSTÁS EL BLUR (Desenfocado) <--- */
  /* Lo dejamos en 0px (sin desenfoque) para que la imagen se vea súper nítida y premium */
  filter: blur(0px);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* ---> EFECTO CINEMÁTICO (Vignette) <--- */
  /* Overlay oscuro súper pesado en toda la imagen */
  background: rgba(11, 19, 31, 0.85);
}

.hero-content--centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;

  /* Legibility enhancements: Frosted Glass Pill */
  background: rgba(11, 19, 31, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;

  /* Strong shadow for legibility over bright clouds */
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.6);
}

.hero-title-accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
  /* Fallback for browsers that don't support text-stroke */
  color: rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
  /* Outline shadow */
}

/* Accent CTA button */
.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill-shape);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px var(--accent-glow);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-accent.btn-glow {
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px var(--accent-glow);
  background: var(--primary-light);
}

.btn-accent:active {
  transform: scale(0.98);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   STATS SECTION — Floating Cards
   =================================================== */
.stats-section {
  position: relative;
  margin-top: -100px;
  /* Offset to overlap hero */
  z-index: 10;
  padding-bottom: 4rem;
}

.stats-bg-graphic {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stats-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 500px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(11, 19, 31, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 91, 181, 0.15);
  border-radius: 16px;
  padding: 1.5rem 0.75rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
  border-color: rgba(0, 91, 181, 0.4);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  line-height: 1.2;
}

/* ===================================================
   SERVICES — Avant-Garde Interactive Cards
   =================================================== */
.services-section {
  background: var(--bg-light);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.services-grid::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.service-card {
  flex: 0 0 85vw;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-arch);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
  transform: scale(1.15) translateY(-5px);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* (Carousel removed — replaced by .services-image-wrapper) */

/* ===================================================
   FLAGSHIP PROJECTS — Premium Showcases
   =================================================== */
.flagship-section {
  background: var(--bg-light);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.flagship-primary {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.flagship-header {
  margin-bottom: 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .flagship-header { text-align: left; }
}

.flagship-video-stage {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  background: var(--bg-dark-surface);
}

.flagship-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.7s ease, opacity 0.5s ease;
}

.flagship-video-stage:hover .flagship-video-poster {
  transform: scale(1.03);
  opacity: 0.95;
}

.flagship-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.flagship-video-stage:hover .flagship-video-overlay {
  background: rgba(0,0,0,0.1);
}

.flagship-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.flagship-play-btn svg {
  width: 40px;
  height: 40px;
  margin-left: 4px;
  color: var(--primary-dark);
  transition: color 0.3s ease;
}

.flagship-video-stage:hover .flagship-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--primary-dark);
}

.flagship-video-stage:hover .flagship-play-btn svg {
  color: var(--white);
  filter: drop-shadow(0 0 10px rgba(0, 91, 181, 0.5));
}

.flagship-gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.flagship-gallery-margin {
  margin-top: 1.5rem;
}

/* Pre-Venta Badge Pill */
.preventa-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 91, 181, 0.4);
  pointer-events: none;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 19, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-light);
}

.gallery-nav-btn svg {
  width: 20px;
  height: 20px;
}

.gallery-nav-btn.prev-btn {
  left: -15px;
}

.gallery-nav-btn.next-btn {
  right: -15px;
}

@media (max-width: 768px) {
  .gallery-nav-btn.prev-btn { left: 5px; }
  .gallery-nav-btn.next-btn { right: 5px; }
}

.flagship-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1.5rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.flagship-gallery::-webkit-scrollbar {
  display: none;
}

.flagship-thumb {
  width: 160px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

@media (min-width: 768px) {
  .flagship-thumb { width: 192px; height: 80px; }
}

.flagship-thumb.active {
  opacity: 1;
  border-color: var(--primary-dark);
}

.flagship-thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}

.flagship-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flagship-info-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .flagship-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.flagship-description--premium {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.description-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.description-item span {
  flex: 1;
}

.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.description-features-title {
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.15rem;
}

.flagship-specs-col {
  display: flex;
  flex-direction: column;
}

.flagship-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.flagship-specs .spec-card:nth-child(n+3) {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.75rem;
}

.spec-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.spec-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: rgba(0, 91, 181, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

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

.spec-text {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.spec-value {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Secondary Flagship - Zig Zag */
.flagship-split {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .flagship-split {
    flex-direction: row-reverse;
    gap: 4rem;
  }
  .flagship-split-img, .flagship-split-content {
    flex: 1;
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .flagship-split { gap: 6rem; }
}

.flagship-split-img {
  width: 100%;
  min-height: 380px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.flagship-split-img img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.flagship-split-img:hover img {
  transform: scale(1.05);
}

/* ===================================================
   BRITAN TABBED GALLERY
   =================================================== */
.britan-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-dark-surface);
}

@media (min-width: 768px) {
  .britan-gallery {
    flex: 1;
    width: 50%;
  }
}

.britan-tabs {
  display: flex;
  gap: 0;
  padding: 0.75rem;
  background: var(--bg-dark-surface);
}

.britan-tab {
  flex: 1;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.britan-tab + .britan-tab {
  margin-left: 6px;
}

.britan-tab.active {
  background: var(--primary);
  color: var(--bg-dark);
}

.britan-tab-content {
  display: none;
}

.britan-tab-content.active {
  display: block;
}

/* Photo Grid */
.britan-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 0.75rem 0.75rem;
  flex: 1; /* allow grid to expand */
  min-height: 0; 
}

.britan-photo-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%; /* Stretch to fill row height */
  min-height: 120px;
}

.britan-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.britan-photo-cell:hover img {
  transform: scale(1.05);
}

.britan-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 31, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  pointer-events: none;
}

/* Video Stage */
.britan-video-stage {
  position: relative;
  width: 100%;
  height: 100%; /* Fill containing block */
  min-height: 244px;
  margin: 0 auto;
  padding: 0 0.75rem 0.75rem;
}

.britan-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.britan-video-element {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
}

.britan-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.britan-play-btn svg {
  width: 56px;
  height: 56px;
}

.britan-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

/* ===================================================
   BRITAN LIGHTBOX
   =================================================== */
.britan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 10, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.britan-lightbox.active {
  visibility: visible;
  opacity: 1;
}

.britan-lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.britan-lightbox.active .britan-lb-img {
  opacity: 1;
}

.britan-lb-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  transition: color 0.2s ease;
}

.britan-lb-close:hover {
  color: var(--primary);
}

.britan-lb-counter {
  position: absolute;
  top: 1.8rem;
  right: 5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-family: var(--font-body);
  z-index: 10001;
}

.britan-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s ease;
}

.britan-lb-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}

.britan-lb-arrow svg {
  width: 24px;
  height: 24px;
}

.britan-lb-prev { left: 1.5rem; }
.britan-lb-next { right: 1.5rem; }

.flagship-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,19,31,0.8) 0%, transparent 50%);
}

.flagship-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.location-bold {
  font-weight: 700;
  color: var(--white);
}

.accent-text {
  color: var(--primary-light);
  font-weight: 700;
}

.flagship-desc--premium {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.flagship-desc--sm {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Britan Metrics Row - Horizontal with vertical dividers */
.flagship-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.flagship-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 91, 181, 0.5);
  background: transparent;
  color: var(--white);
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill-shape);
  text-decoration: none;
  transition: all 0.3s ease;
}

.flagship-btn:hover {
  background: rgba(0, 91, 181, 0.15);
  border-color: var(--primary-dark);
}

/* ===================================================
   PROJECTS — Organic gallery with arch masks
   =================================================== */
.projects-section {
  background: var(--bg-dark);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

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

.eyebrow--light {
  color: var(--accent);
}

.section-title--light {
  color: var(--text-on-dark);
}

/* Projects Slider / Masonry Grid */
.projects-masonry {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.projects-masonry::-webkit-scrollbar {
  display: none;
}

.masonry-item {
  position: relative;
  flex: 0 0 85vw;
  height: 220px;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-dark-surface);
}

.masonry-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.masonry-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover .masonry-image-wrapper img {
  transform: scale(1.05);
}

.masonry-overlay-new {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 19, 31, 0.7) 0%, rgba(11, 19, 31, 0.15) 40%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  pointer-events: none;
  transition: background 0.25s ease;
}

.masonry-item:hover .masonry-overlay-new {
  background: rgba(11, 19, 31, 0.85);
}

.masonry-title-new {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover .masonry-title-new {
  transform: translateY(-4px);
}

.masonry-typology {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* Mobile Masonry Indicators */
.masonry-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .masonry-indicators {
    display: none;
  }
}

.masonry-dot {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
  border-radius: 2px;
}

.masonry-dot.active {
  background: var(--primary);
}

/* Specific Sizes */
.item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.item-large .masonry-content h3 {
  font-size: 2rem;
}

.item-vertical {
  grid-row: span 2;
}

.item-wide {
  grid-column: span 2;
}

/* ===================================================
   PROCESS — Minimalist timeline
   =================================================== */
.process-section {
  background: var(--bg-dark-surface);
  overflow: hidden;
}

.process-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  padding-top: 3rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(212, 129, 59, 0.0),
      rgba(212, 129, 59, 0.4),
      rgba(212, 129, 59, 0.4),
      rgba(212, 129, 59, 0.0));
}

.timeline-item {
  position: relative;
  padding-top: 1.5rem;
}

/* ===================================================
   PROCESS — Horizontal Timeline
   =================================================== */
.process-section {
  background: var(--bg-dark-surface);
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.process-header {
  text-align: center;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.timeline-horizontal {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 4rem;
  justify-content: center;
}

.timeline-line-bg {
  display: none;
}

.timeline-step {
  flex: 1;
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  text-align: center;
}

.timeline-step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 80px;
  bottom: -4rem;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  z-index: -1;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: var(--bg-dark);
  border: 1px solid rgba(0, 91, 181, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:hover .timeline-icon {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateX(-50%) scale(1.1);
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.timeline-step:hover .timeline-number {
  color: rgba(0, 91, 181, 0.2);
}

.timeline-step h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.timeline-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 250px;
  margin: 0 auto;
}

/* ===================================================
   CONTACT — Minimalist Avant-Garde
   =================================================== */
.contact-section {
  background: var(--bg-dark);
  color: var(--white);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.contact-layout--avant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-text .eyebrow--light {
  color: var(--accent);
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 3rem;
  max-width: 45ch;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-icon--line {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-arch);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon--line {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--accent-glow);
}

.contact-info-item h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--white);
}

/* Minimalist Form */
.contact-form--clean {
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem;
  border-radius: var(--radius-arch);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-input--minimal,
.form-textarea--large {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding: 1rem 0;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input--minimal:focus,
.form-textarea--large:focus {
  border-bottom-color: var(--accent);
  outline: none;
}

.form-input--minimal::placeholder,
.form-textarea--large::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-textarea--large {
  min-height: 120px;
  resize: vertical;
}

.btn-animated-submit {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
}

.submit-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--bg-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================================
   FOOTER — Dark minimal
   =================================================== */
.footer {
  background: var(--bg-footer);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-social--col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social--col a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
}

.footer-social--col a:hover {
  opacity: 1;
  background: transparent;
  color: var(--accent);
}

.footer-social--col svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-grupo {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-grupo p {
  font-weight: 600;
  margin-bottom: 0.25rem;
  opacity: 1;
}

.footer-grupo a {
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-grupo a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-grupo a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ===================================================
   RESPONSIVE — MOBILE SUPREME (max-width: 767px)
   =================================================== */
@media (max-width: 767px) {
  /* General Spacing & Typography */
  .section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .section-title {
    font-size: clamp(24px, 7vw, 28px);
  }
  
  .eyebrow {
    letter-spacing: 0.1em;
  }
  
  .btn {
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }
  
  /* Los Olmos */
  .flagship-video-stage {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
  }
  
  .flagship-video-stage img,
  .flagship-video-element,
  .flagship-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .preventa-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
    z-index: 10;
  }
  
  .flagship-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 0 20px 20px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .flagship-gallery::-webkit-scrollbar {
    display: none;
  }
  
  .flagship-thumb {
    flex: 0 0 80px;
    height: 60px;
    scroll-snap-align: start;
  }
  
  .flagship-info-grid {
    width: 100%;
    padding: 20px 0;
  }
  
  .description-features-title {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .flagship-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .spec-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
  }
  
  .spec-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .flagship-secondary .flagship-subtitle {
    margin-bottom: 2rem;
  }
  
  /* Britan Layout */
  .flagship-secondary .flagship-split {
    display: flex;
    flex-direction: column; /* Gallery above content */
  }
  
  .flagship-secondary .flagship-split-content {
    padding: 20px 0;
  }
  
  .britan-gallery {
    width: 100%;
  }
  
  .britan-tab {
    height: 40px;
  }
  
  .britan-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }
  
  .britan-photo-cell {
    height: 90px;
    min-height: 90px;
  }
  
  .britan-video-stage {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
  }
  
  /* Ergonomic Mobile Lightbox */
  .britan-lightbox {
    width: 100vw;
    height: 100vh;
  }
  
  .britan-lb-arrow {
    top: auto;
    bottom: 40px;
    transform: none;
  }
  
  .britan-lb-prev {
    left: 50%;
    transform: translateX(-120%);
  }
  
  .britan-lb-next {
    right: 50%;
    transform: translateX(120%);
  }
  
  /* Obras Magistrales Carousel */
  .projects-masonry {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  
  .projects-masonry::-webkit-scrollbar {
    display: none;
  }
  
  .masonry-item, 
  .masonry-item--wide {
    flex: 0 0 78vw;
    height: 200px;
    scroll-snap-align: start;
    border-radius: 12px;
  }
  
  .masonry-item:first-child {
    margin-left: 20px;
  }
  
  .masonry-item:last-child {
    margin-right: 20px; /* Forces end padding so the last item can be scrolled to end */
  }
  
  /* Hide desktop gallery nav arrows on mobile */
  .gallery-nav-btn {
    display: none !important;
  }
}

/* ===================================================
   RESPONSIVE — TABLET (768px+)
   =================================================== */
@media (min-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }

  .service-card {
    flex: auto;
  }

  .projects-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    grid-auto-rows: 220px;
    gap: 8px;
  }

  .masonry-item {
    flex: auto;
    height: 220px;
    border-radius: var(--radius-arch);
  }

  .masonry-item--wide {
    grid-column: span 1;
  }

  .timeline-horizontal {
    flex-direction: row;
    align-items: flex-start;
  }

  .timeline-line-bg {
    display: block;
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
  }

  .timeline-step {
    padding-top: 6rem;
    margin-bottom: 0;
  }

  .timeline-step:not(:last-child):after {
    display: none;
  }

  .contact-layout--avant {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ===================================================
   RESPONSIVE — DESKTOP (1024px+)
   =================================================== */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .britan-gallery {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
  }
  
  .britan-tab-content.active {
    display: flex;
    flex: 1;
    min-height: 0;
  }
  
  .britan-photo-grid {
    grid-template-rows: 1fr 1fr;
    height: 100%;
  }

  .masonry-item--wide {
    grid-column: span 1;
  }

  .item-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .item-vertical {
    grid-row: span 2;
  }

  .item-wide {
    grid-column: span 2;
  }
}

/* ===================================================
   APP-LIKE FLOATING ELEMENTS & NEW COMPONENTS
   =================================================== */
.btn-floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 91, 181, 0.4);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

.btn-floating-whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 91, 181, 0.6);
}

/* Services Duo Images (Desktop layout) */
.services-images-duo {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.services-img-vertical {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.services-img-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-img-vertical:hover img {
  transform: scale(1.03);
}

.services-img-horizontal {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  background: var(--bg-dark-surface);
}

.services-img-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-img-horizontal:hover img {
  transform: scale(1.03);
}

/* ===================================================
   SWIPE HINT — Animated arrow for horizontal scrollers
   =================================================== */
@keyframes swipeHint {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.7;
  }

  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

.swipe-hint {
  display: none;
}

@media (max-width: 767px) {
  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
  }

  .swipe-hint svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    animation: swipeHint 1.5s ease-in-out infinite;
  }
}

/* ===================================================
   RESPONSIVE — MOBILE (< 768px)
   =================================================== */
@media (max-width: 767px) {

  /* ---- Hero Background Image Position (Mobile) ---- */
  .hero-bg img {
    /* ---> ACÁ AJUSTÁS LA POSICIÓN EN MÓVILES <--- */
    /* "center top" lleva la imagen hacia arriba. Podés usar "center 10%" o "center 0" */
    object-position: center top;
  }

  /* ---- Hero: full-screen immersive with flex centering ---- */
  .hero--avant-garde {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 6rem;
    /* Safety bumper to clear browser UI + WhatsApp FAB */
  }

  .hero-content--centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* No flex:1 — let it center naturally instead of stretching */
  }

  .hero-actions {
    margin-bottom: 0;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  .hero-title-accent {
    -webkit-text-stroke-width: 1px;
  }

  .btn-accent {
    padding: 0.85rem 1.8rem;
    font-size: 0.85rem;
  }

  /* ---- Stats: visible inside hero viewport ---- */
  .stats-section {
    margin-top: -160px;
    /* Pull cards up into the hero viewport */
    padding: 0 1rem 1.5rem;
    position: relative;
    z-index: 5;
  }

  .stat-card {
    padding: 1rem 0.5rem;
    border-radius: 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 0.02em;
  }

  /* ---- Services: 85vw horizontal swiper ---- */
  .services-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .services-header {
    margin-bottom: 2rem;
  }

  .service-card {
    flex: 0 0 85vw;
    padding: 2rem 1.5rem;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* Duo images stack vertically on mobile */
  .services-images-duo {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .services-img-vertical img {
    max-height: 300px;
  }

  .services-img-horizontal img {
    max-height: 180px;
  }

  /* ---- Projects: 85vw swipeable cards ---- */
  .projects-section {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .masonry-item {
    flex: 0 0 80vw;
    height: 200px;
    border-radius: 12px 12px 0 0;
  }

  .britan-photo-cell {
    height: 80px;
  }

  .masonry-content h3 {
    font-size: 1.1rem;
  }

  .masonry-content p {
    font-size: 0.8rem;
  }

  /* ---- Process: vertical left-line timeline ---- */
  .process-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .timeline-horizontal {
    flex-direction: column;
    gap: 0;
    padding-left: 3.5rem;
    overflow: visible;
  }

  .timeline-line-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 3.5rem;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
  }

  .timeline-step {
    text-align: left;
    padding: 0 0 2.5rem 2rem;
    position: relative;
    margin-bottom: 0;
    padding-top: 0;
    overflow: visible;
  }

  .timeline-step:not(:last-child):after {
    display: none;
  }

  .timeline-icon {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 40px;
    height: 40px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--bg-dark-surface);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

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

  .timeline-number {
    display: none;
  }

  .timeline-step h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .timeline-step p {
    font-size: 0.8rem;
    max-width: 100%;
    margin: 0;
  }

  /* ---- Contact: full-width glass card ---- */
  .contact-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-layout--avant {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form--clean {
    padding: 2rem 1.5rem;
  }

  .form-input--minimal,
  .form-textarea--large {
    font-size: 0.9rem;
  }

  .btn-animated-submit {
    height: 50px;
    font-size: 0.85rem;
  }

  /* ---- Floating WhatsApp ---- */
  .btn-floating-whatsapp {
    width: 44px;
    height: 44px;
    bottom: 1rem;
    right: 1rem;
  }

  .btn-floating-whatsapp svg {
    width: 22px;
    height: 22px;
  }

  /* ---- Footer ---- */
  .footer .container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

/* ===================================================
   LIGHTBOX 
   =================================================== */
.lightbox {
  display: flex;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--accent);
}