/* =========================================================================
   INNOVATIVE PTY GRAPHICS — COMPLETE RESPONSIVE DESIGN SYSTEM (V16)
   Desktop (1200px+) • Tablet (768px-1199px) • Mobile (320px-767px)
   ========================================================================= */

:root {
  --blue: #118cff;
  --blue-hover: #0077e6;
  --cyan: #00d4ff;
  --purple: #a336ff;
  --yellow: #ffe100;
  --dark-bg: #020407;
  --panel-bg: #07101a;
  --border-color: #1e3040;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-main);
  font-family: "League Spartan", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  min-height: 100dvh;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  touch-action: manipulation;
}

/* =========================================================================
   HEADER / TOPBAR
   ========================================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 4, 7, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 140, 255, 0.14);
  z-index: 100;
  transition: background 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-drawer-logo-img {
  height: 28px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.2vw;
}

.desktop-nav a {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Selector de Idioma (Desktop Header) */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(17, 140, 255, 0.08);
  border: 1px solid rgba(17, 140, 255, 0.3);
  border-radius: 999px;
  padding: 3px 6px;
  margin-right: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  user-select: none;
}

.quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 140, 255, 0.12);
  border: 1px solid var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease-out-expo);
  box-shadow: 0 0 20px rgba(17, 140, 255, 0.18);
  white-space: nowrap;
  min-height: 44px;
}

.quote:hover {
  background: var(--blue);
  box-shadow: 0 0 28px rgba(17, 140, 255, 0.45);
  transform: translateY(-1px);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(17, 140, 255, 0.1);
  border: 1px solid rgba(17, 140, 255, 0.35);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  background: rgba(17, 140, 255, 0.25);
  border-color: var(--blue);
}

/* =========================================================================
/* Desktop: drawer completamente invisible */
@media (min-width: 901px) {
  .mobile-drawer-backdrop,
  .mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: rgba(4, 8, 14, 0.98);
  border-left: 1px solid rgba(17, 140, 255, 0.3);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(20px, var(--safe-top)) 20px max(24px, var(--safe-bottom));
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out-expo);
  overflow-y: auto;
}

.mobile-drawer-backdrop.active .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-brand {
  font-size: 1.25rem;
  font-weight: 900;
  font-style: italic;
  color: #fff;
}

.mobile-drawer-brand span {
  color: var(--blue);
}

.mobile-drawer-close {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #dce5ed;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  min-height: 48px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(17, 140, 255, 0.12);
  border-color: rgba(17, 140, 255, 0.4);
  color: #fff;
}

.mobile-drawer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(17, 140, 255, 0.08);
  border: 1px solid rgba(17, 140, 255, 0.25);
  border-radius: 8px;
  margin: 10px 0;
}

.mobile-drawer-lang .lang-btn-mob {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.mobile-drawer-lang .lang-btn-mob.active {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  color: #00d4ff;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 48px;
  text-align: center;
}

.mobile-drawer-cta.primary {
  background: linear-gradient(135deg, var(--blue), #0060ba);
  color: #fff;
  box-shadow: 0 4px 18px rgba(17, 140, 255, 0.35);
}

.mobile-drawer-cta.whatsapp {
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid #25D366;
  color: #25D366;
}

/* =========================================================================
   SIDE RAIL NAVIGATION (Desktop 1200px+)
   ========================================================================= */
.rail {
  position: fixed;
  right: 2.5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
  padding: 4px 0;
}

.rail a b {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s ease;
}

.rail a span {
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s var(--ease-out-expo);
  pointer-events: none;
}

.rail a:hover span,
.rail a.active span {
  opacity: 1;
  transform: translateX(0);
}

.rail a.active {
  color: #fff;
}

.rail a.active b {
  color: var(--blue);
  text-shadow: 0 0 10px var(--blue);
}

/* =========================================================================
   CINEMATIC HERO & VIDEO TRACKS (DESKTOP APPROVED)
   ========================================================================= */
main {
  position: relative;
  width: 100%;
}

.scrub {
  position: relative;
  height: 165vh;
  width: 100%;
  background: #000;
}

.sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
}

.sticky video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 1;
  filter: contrast(1.05) saturate(1.1);
  background: #000;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 70% 50%, transparent 20%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.85) 100%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 35%, rgba(0, 0, 0, 0.75) 75%, #000 100%);
  pointer-events: none;
}

.copy {
  position: absolute;
  z-index: 10;
  left: 5vw;
  top: 50%;
  transform: translateY(-46%);
  width: min(580px, 44vw);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.eyebrow {
  color: var(--accent, var(--blue));
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 16px rgba(17, 140, 255, 0.4);
}

.purple .eyebrow { text-shadow: 0 0 16px rgba(163, 54, 255, 0.4); }
.yellow .eyebrow { text-shadow: 0 0 16px rgba(255, 225, 0, 0.4); }

.copy h1, .copy h2 {
  font-size: clamp(3rem, 5.4vw, 5.8rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0.5rem 0 1rem;
  text-transform: uppercase;
}

.copy h1 span, .copy h2 span {
  color: var(--accent, var(--blue));
}

.copy p {
  font-size: 0.98rem;
  line-height: 1.45;
  color: #d6e0ea;
  max-width: 520px;
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.25s var(--ease-out-expo);
  text-align: center;
}

.primary {
  background: var(--accent, var(--blue));
  border: 1px solid var(--accent, var(--blue));
  color: #fff;
  box-shadow: 0 8px 24px rgba(17, 140, 255, 0.3), inset 0 1px rgba(255, 255, 255, 0.2);
}

.yellow .primary {
  color: #000;
  box-shadow: 0 8px 24px rgba(255, 225, 0, 0.3);
}

.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 12px 30px rgba(17, 140, 255, 0.5);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.secondary:hover {
  border-color: var(--accent, var(--blue));
  background: rgba(17, 140, 255, 0.15);
  transform: translateY(-2px);
}

.purple { --accent: var(--purple); }
.yellow { --accent: var(--yellow); }
.blue { --accent: var(--blue); }

.scrollhint {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: max(24px, var(--safe-bottom));
  transform: translateX(-50%);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  animation: floatHint 2s ease-in-out infinite alternate;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

@keyframes floatHint {
  0% { transform: translate(-50%, 0); opacity: 0.6; }
  100% { transform: translate(-50%, 6px); opacity: 1; }
}

/* =========================================================================
   CONTENT SECTIONS (Services, Gallery, About, Contact)
   ========================================================================= */
.content {
  position: relative;
  z-index: 20;
  padding: 12vh 6vw;
  background: radial-gradient(circle at 80% 15%, rgba(17, 140, 255, 0.06), transparent 30%),
              linear-gradient(180deg, #000000 0%, #04080e 50%, #000000 100%);
}

.content h2 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0.5rem 0 1.5rem;
  text-transform: uppercase;
}

.content h2 span {
  color: var(--blue);
}

/* Grid Articles (Services) */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #192735;
  margin-top: 2.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #192735;
}

.grid article {
  background: #060a0f;
  padding: 2.2rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s var(--ease-out-expo);
}

.grid article:hover {
  background: #09111b;
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.grid b {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.grid h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.grid p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #1b2d3c;
  filter: saturate(1.1) contrast(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.35s var(--ease-out-expo);
}

.gallery img:hover {
  transform: scale(1.02);
  border-color: var(--blue);
  box-shadow: 0 16px 45px rgba(17, 140, 255, 0.25);
}

/* Gallery Category Filter Pills */
.gallery-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.gallery-cat-pill-btn {
  background: rgba(17, 140, 255, 0.08);
  border: 1px solid rgba(17, 140, 255, 0.25);
  color: #c2dcf0;
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.gallery-cat-pill-btn:hover {
  background: rgba(17, 140, 255, 0.2);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-cat-pill-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 15px rgba(17, 140, 255, 0.4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #1b2d3c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.35s var(--ease-out-expo);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow: none;
  filter: saturate(1.1) contrast(1.05);
  transition: transform 0.4s var(--ease-out-expo);
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--blue);
  box-shadow: 0 16px 45px rgba(17, 140, 255, 0.25);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-cat {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* About Section */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}

.two p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Form Styles */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 900px;
  margin-top: 1rem;
}

input, select, textarea {
  width: 100%;
  background: #05090f;
  color: #fff;
  border: 1px solid #1b2e3e;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.90rem;
  min-height: 48px;
  transition: all 0.25s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(17, 140, 255, 0.18);
  background: #08101a;
}

textarea {
  grid-column: 1 / -1;
  min-height: 140px;
  resize: vertical;
}

/* =========================================================================
   FLOATING WIDGETS (WhatsApp, Instagram, AI Assistant)
   ========================================================================= */
.social-float-container {
  position: fixed;
  right: 22px;
  bottom: max(22px, var(--safe-bottom, 22px));
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  contain: layout paint;
}

.social-float {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(3, 7, 13, 0.92);
  border: 1px solid rgba(17, 140, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(17, 140, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo, ease);
  min-height: 44px;
}

.social-float:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: rgba(17, 140, 255, 0.2);
  box-shadow: 0 10px 30px rgba(17, 140, 255, 0.35);
}

.whatsapp-float,
.whatsapp-home {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  border-radius: 50% !important;
  background: #25D366 !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(37, 211, 102, 0.35) !important;
  cursor: pointer !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  pointer-events: auto !important;
}

.whatsapp-float svg,
.whatsapp-home svg {
  width: 34px !important;
  height: 34px !important;
  fill: #ffffff !important;
  display: block !important;
  pointer-events: none !important;
  transition: transform 0.22s ease !important;
}

.whatsapp-float:hover,
.whatsapp-home:hover {
  background: #20bd5a !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 24px rgba(37, 211, 102, 0.55) !important;
}

.whatsapp-float:hover svg,
.whatsapp-home:hover svg {
  transform: scale(1.06) !important;
}

.whatsapp-float:active,
.whatsapp-home:active {
  transform: translateY(-1px) scale(0.98) !important;
}

@media (max-width: 768px) {
  .social-float-container {
    right: 14px !important;
    bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    gap: 14px !important;
  }
  .whatsapp-float,
  .whatsapp-home {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
  .whatsapp-float svg,
  .whatsapp-home svg {
    width: 29px !important;
    height: 29px !important;
  }
  .ai-home {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
  }
  .ai-home .ai-label {
    display: none !important;
  }
  .ai-home .ai-sparkle {
    margin: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.home-ai-box {
  position: fixed;
  right: 18px;
  bottom: max(76px, calc(var(--safe-bottom) + 60px));
  width: min(340px, calc(100vw - 36px));
  z-index: 98;
  background: rgba(4, 9, 15, 0.98);
  border: 1px solid var(--blue);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(17, 140, 255, 0.2);
}

.home-ai-box[hidden] {
  display: none;
}

.home-ai-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 8px;
}

.home-ai-title button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

.home-ai-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.home-ai-box a {
  display: block;
  border: 1px solid #1c3850;
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(17, 140, 255, 0.08);
  transition: all 0.2s ease;
}

.home-ai-box a:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* =========================================================================
   TABLET PORTRAIT RESPONSIVE RULES (768px – 1199px)
   ========================================================================= */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .rail { display: none; }

  .scrub { height: 140dvh; }
  .sticky { height: 100dvh; }

  /* Controlled Framing on Tablet Portrait - Full coverage without artificial scaling */
  .sticky video {
    object-fit: cover;
    object-position: 50% 36%;
    transform: none !important;
  }

  .copy {
    width: min(520px, 60vw);
    left: 4vw;
    top: auto;
    bottom: max(32px, var(--safe-bottom));
    transform: none !important;
  }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   MOBILE PORTRAIT RESPONSIVE RULES (<= 900px Portrait / <= 767px)
   VISUAL CORRECTION: COMPACT HEADER, CINEMATIC FRAMING & ZERO OVERLAP
   ========================================================================= */
@media (max-width: 900px) and (orientation: portrait), (max-width: 767px) {
  .topbar {
    height: 60px;
    height: calc(60px + var(--safe-top));
    padding: var(--safe-top) max(12px, var(--safe-right, 12px)) 0 max(12px, var(--safe-left, 12px));
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }

  .brand-logo-img {
    height: 20px;
    max-height: 20px;
    width: auto;
    max-width: 125px;
    object-fit: contain;
  }

  .desktop-nav {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .quote {
    padding: 6px 11px;
    font-size: 0.68rem;
    min-height: 34px;
    border-radius: 6px;
    letter-spacing: 0.04em;
  }

  .mobile-menu-btn {
    display: flex;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 6px;
    gap: 4px;
    padding: 0;
  }

  .mobile-menu-btn span {
    width: 18px;
    height: 2px;
  }

  /* Hide Section Numbers / Category Indicators on Mobile to prevent cluttering visual frame */
  .rail,
  .scrub .copy .eyebrow,
  .scrollhint {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
    visibility: hidden !important;
  }

  .scrub {
    height: 130vh;
    background: #000;
  }

  .sticky {
    height: 100vh;
    height: 100svh;
    background: #000;
    overflow: hidden;
  }

  /* Base Video Framing in Mobile Portrait:
     Full coverage with zero letterboxing or accidental black bars.
     Vehicle focal center placed in upper-mid area (36%-42%) to showcase protagonist vehicles clearly. */
  .sticky video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: none !important;
  }

  /* 01 UTV (Can-Am Maverick X3 - Upper-Mid Vehicle Framing) */
  #utv .sticky video {
    object-position: 50% 36%;
  }

  /* 02 MOTOCROSS (Dirt Bike - Dynamic Jump Focal Zone) */
  #motocross .sticky video {
    object-position: 46% 38%;
  }

  /* 03 ATV (Yamaha Quad - Wide Stance Upper-Mid) */
  #atv .sticky video {
    object-position: 50% 38%;
  }

  /* 04 STREET BIKES (Supersport Silhouette Focal Zone) */
  #street .sticky video {
    object-position: 50% 40%;
  }

  /* 05 BOATS (Speedboat Hull Center-Water) */
  #boats .sticky video {
    object-position: 50% 42%;
  }

  /* 06 COMMERCIAL WRAPS (Side Van Livery Legibility) */
  #commercial .sticky video {
    object-position: 50% 42%;
  }

  /* Clean seamless gradient vignette: Dark top header + clear center visual + deep bottom for text */
  .vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, 
      rgba(0, 0, 0, 0.45) 0%, 
      transparent 14%, 
      transparent 45%, 
      rgba(0, 0, 0, 0.88) 68%, 
      #000000 95%
    );
    pointer-events: none;
  }

  /* Copy positioned cleanly on the left, stopping at right: 76px so floating buttons NEVER collide */
  .copy {
    left: 14px;
    right: 76px;
    max-width: calc(100% - 90px);
    top: auto;
    bottom: max(16px, var(--safe-bottom, 16px));
    transform: none !important;
    width: auto;
    z-index: 10;
    filter: none !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 18px rgba(0, 0, 0, 0.9);
  }

  .copy h1, .copy h2 {
    font-size: clamp(1.75rem, 7.2vw, 2.7rem);
    line-height: 0.94;
    margin: 0.15rem 0 0.35rem;
    word-break: break-word;
  }

  .copy p {
    font-size: 0.85rem;
    line-height: 1.35;
    color: #d6e0ea;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.45rem;
  }

  .actions {
    margin-top: 0.35rem;
    gap: 7px;
    flex-direction: column;
    width: 100%;
  }

  .primary, .secondary {
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 8px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .scrollhint {
    display: none;
  }

  .content {
    padding: 10vh 16px;
  }

  .two {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .grid article {
    padding: 1.5rem;
    min-height: auto;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  form {
    grid-template-columns: 1fr;
  }

  form .primary, form .secondary {
    width: 100%;
  }
}

/* =========================================================================
   LANDSCAPE MOBILE RULES (e.g. 844x390, 915x412, 932x430)
   ========================================================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { height: 56px; padding: 0 16px; }
  .scrub { height: 150vh; }
  .sticky video {
    object-fit: cover;
    object-position: center center;
    transform: none;
  }
  .copy {
    left: 4vw;
    width: min(460px, 50vw);
    top: 52%;
    transform: translateY(-50%) !important;
    bottom: auto;
  }
  .copy h1, .copy h2 { font-size: 2.2rem; }
  .actions { flex-direction: row; }
}

/* TOUCH OPTIMIZATIONS */
@media (hover: none) and (pointer: coarse) {
  .primary:hover, .secondary:hover, .grid article:hover, .gallery img:hover {
    transform: none !important;
  }
}

/* ACCESSIBILITY: PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .copy {
    opacity: 1 !important;
    transform: translateY(-46%) !important;
  }
  .sticky video {
    filter: none;
  }
}
