/* ==========================================================================
   Arenas y Gravas JM - Sistema de Diseño "Creative Industrial"
   Ubicación: Nobsa, Boyacá | Responsable: David Suárez
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #d97706; /* Ámbar Cuarzoso */
  --primary-light: #f59e0b;
  --primary-dark: #b45309;
  --primary-glow: rgba(217, 119, 6, 0.2);
  
  --secondary: #0284c7; /* Azul Filtración Purificada */
  --secondary-glow: rgba(2, 132, 199, 0.2);
  
  --dark: #faf8f5; /* Fondo Claro General Cuarzo */
  --dark-surface: #ffffff;
  --dark-card: #ffffff;
  --dark-border: #e2dacd;

  --light-bg: #ffffff;
  --light-card: #ffffff;
  --light-border: #e2dacd;
  
  --text-main: #1a202c; /* Carbón Oscuro para Legibilidad */
  --text-muted: #4a5568;
  --text-dark: #0f172a;
  --text-dark-muted: #64748b;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

/* ==========================================================================
   Preloader Professional & Pulsing Logo (WHITE BACKGROUND & HUGE LOGO)
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  max-width: 480px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo-wrapper {
  position: relative;
  margin-bottom: 24px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.preloader-logo {
  height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.12));
  animation: logoPulse 1.8s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 20px rgba(217, 119, 6, 0.3));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  }
}

.preloader-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.preloader-brand-sub {
  font-size: 0.9rem;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 28px;
}

.preloader-bar-bg {
  width: 100%;
  height: 10px;
  background: #e2dacd;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b45309 0%, #d97706 50%, #0284c7 100%);
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
  transition: width 0.05s linear;
}

.preloader-stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.88rem;
  color: #4a5568;
  font-weight: 600;
}

.preloader-counter {
  color: #b45309;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   PIN Security Lock & Numeric Keypad
   ========================================================================== */
#pinLockOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999995;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#pinLockOverlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pin-card {
  background: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 24px;
  padding: 36px 28px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.1), 0 0 25px rgba(217, 119, 6, 0.15);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 22px 0 26px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  transition: all 0.2s ease;
}

.pin-dot.filled {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  transform: scale(1.15);
}

.pin-dot.error {
  border-color: #ef4444;
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
}

.pin-dot.success {
  border-color: #10b981;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 270px;
  margin: 0 auto;
}

.keypad-btn {
  height: 64px;
  width: 64px;
  margin: 0 auto;
  background: #f3efe6;
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  color: #1a202c;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
}

.keypad-btn:hover {
  background: #fffbeb;
  border-color: var(--primary);
  transform: scale(1.06);
}

.keypad-btn:active {
  transform: scale(0.92);
  background: var(--primary);
  color: #fff;
}

.keypad-btn.btn-action {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Maintenance Mode Screen
   ========================================================================== */
/* ==========================================================================
   Full Screen Mobile-Focused Video Maintenance View
   ========================================================================== */
/* Hide all main page content when maintenance mode is active so nothing bleeds through on iPhone Safari */
body.body-in-maintenance > *:not(#maintenanceOverlay):not(#preloader) {
  display: none !important;
}

#maintenanceOverlay,
.maintenance-fullscreen-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: env(safe-area-inset-top, 24px) 20px env(safe-area-inset-bottom, 24px) 20px !important;
  background-color: #0b1120 !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* Background video styling */
.maint-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: brightness(0.85) contrast(1.05);
}

/* Soft ambient overlay mask */
.maint-overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.45) 0%, rgba(7, 11, 20, 0.7) 85%),
              linear-gradient(180deg, rgba(7, 11, 20, 0.5) 0%, rgba(15, 23, 42, 0.6) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2;
}

/* Fullscreen container - No side boxes or narrow frame */
.maint-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
  box-sizing: border-box;
}

.maint-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.maint-logo {
  height: 95px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
  margin-bottom: 16px;
  animation: floatMaintLogo 4s ease-in-out infinite alternate;
}

@keyframes floatMaintLogo {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.maint-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 6px 16px;
  border-radius: 30px;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.maint-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseMaintDot 1.5s infinite;
}

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

.maint-body {
  margin-bottom: 24px;
}

.maint-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.5px;
}

.maint-description {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.maint-description strong {
  color: #fbbf24;
}

/* Glass info card for direct contact */
.maint-card-info {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.maint-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.maint-info-icon {
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(217, 119, 6, 0.25);
  border: 1px solid rgba(217, 119, 6, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.maint-info-row small {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.maint-info-row strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

/* Actions layout */
.maint-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.maint-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-sizing: border-box;
}

.maint-btn-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.38);
}

.maint-btn-wa:hover, .maint-btn-wa:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.maint-btn-sub {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.92;
  margin-top: 2px;
}

.maint-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.maint-btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px;
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
}

.maint-btn-secondary:hover, .maint-btn-secondary:active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fbbf24;
}

.maint-admin-link {
  display: inline-block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.maint-admin-link:hover {
  color: #fbbf24;
}

@media (max-width: 480px) {
  .maint-title { font-size: 1.75rem; }
  .maint-logo { height: 80px; }
  .maint-description { font-size: 0.9rem; }
  .maint-actions-grid { grid-template-columns: 1fr; }
}


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

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.title-gradient {
  background: linear-gradient(135deg, #1a202c 0%, #b45309 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--primary);
}

.text-blue {
  color: var(--secondary);
}

/* Top Notification Bar */
.top-bar {
  background: linear-gradient(90deg, #b45309 0%, #d97706 50%, #0284c7 100%);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
  font-weight: 600;
  text-align: center;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 244, 238, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 16px;
  max-width: 1380px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover {
  transform: scale(1.03);
}

.logo-img {
  height: 105px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.brand-info {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 700;
  color: #1a202c;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #b45309;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-only-actions {
  display: none;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 38px;
  background: rgba(26, 32, 44, 0.06);
  border: 1px solid rgba(26, 32, 44, 0.18);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  cursor: pointer;
  z-index: 1002;
  transition: var(--transition);
}

.hamburger-btn:hover {
  background: rgba(217, 119, 6, 0.15);
  border-color: var(--primary);
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a202c;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: #b45309;
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: #b45309;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background: #0f172a;
  color: #fbbf24;
  border-color: #d97706;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.navbar .btn-secondary {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #1e293b;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}

.navbar .btn-secondary:hover {
  background: #1e293b;
  color: #fbbf24;
  border-color: #d97706;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: #1a1a2e;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 32, 44, 0.55) 0%, rgba(26, 26, 46, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* When hero has video, make text white for contrast */
.hero .hero-title {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.hero .hero-description {
  color: rgba(255, 255, 255, 0.9);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(217, 119, 6, 0.25);
  border: 1px solid rgba(217, 119, 6, 0.5);
  border-radius: 30px;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item h3 {
  font-size: 2rem;
  color: #fbbf24;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--dark-border);
}

.hero-card-stack img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-overlay-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 119, 6, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.hero-overlay-badge strong {
  color: #fbbf24 !important;
  font-size: 1.05rem;
  display: block;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 2px;
}

.hero-overlay-badge small {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.82rem;
}

.hero-overlay-badge .btn-whatsapp {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Hero Social Media Bar */
.hero-social-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fbbf24;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-btn.social-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.social-btn.social-phone:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.social-btn.social-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.social-btn.social-ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #ffffff;
}

.social-btn.social-mail:hover {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

/* Feature Sections */
.section {
  padding: 90px 0;
  background: var(--dark);
}

.section-dark {
  background: #f3efe6;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 16px;
  color: #1a202c;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

/* Watermark logo overlay on top of images */
.product-img-wrapper::before,
.hero-card-stack::after,
.img-watermarked::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 52px;
  height: 52px;
  background: url('../images/logo gravas y arenas jm.png') no-repeat center center / contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  z-index: 5;
  pointer-events: none;
  opacity: 0.92;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #1a202c;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.mesh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.mesh-tag {
  background: #f3efe6;
  border: 1px solid var(--dark-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 600;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--dark-border);
}

/* Calculator Card */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #1a202c;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.calc-result-box {
  background: #fffbeb;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin: 12px 0 6px;
}

/* Testimonial Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.quote-icon {
  color: var(--primary);
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.4;
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  font-size: 0.98rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  color: #1a202c;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
}

/* Cotizador Step Form */
.quote-wrapper {
  background: #ffffff;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.quote-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f3efe6;
  border-bottom: 1px solid var(--dark-border);
}

.quote-step-item {
  padding: 16px;
  text-align: center;
  border-right: 1px solid var(--dark-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quote-step-item.active {
  background: #ffffff;
  color: var(--primary-dark);
  border-bottom: 3px solid var(--primary);
}

.quote-body {
  padding: 40px;
}

.quote-step-content {
  display: none;
}

.quote-step-content.active {
  display: block;
}

/* Printable PDF Styling */
.printable-quote {
  background: #ffffff;
  color: #0f172a;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  margin-top: 30px;
  font-family: Arial, sans-serif;
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #d97706;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.pdf-header img {
  height: 60px;
}

.pdf-meta {
  text-align: right;
  font-size: 0.85rem;
  color: #475569;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.pdf-table th, .pdf-table td {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.9rem;
}

.pdf-table th {
  background: #f1f5f9;
  font-weight: 700;
}

.pdf-total-box {
  float: right;
  width: 280px;
  margin-top: 10px;
}

.pdf-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.92rem;
}

.pdf-total-row.grand-total {
  font-weight: 800;
  font-size: 1.15rem;
  border-top: 2px solid #0f172a;
  color: #b45309;
}

/* Dashboard / Admin Layout */
/* Dashboard / Admin Layout */
.admin-body {
  background-color: #0b1120 !important;
  color: #f8fafc !important;
  min-height: 100vh;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  background: #0b1120;
}

.admin-sidebar {
  background: #0f172a;
  border-right: 1px solid #1e293b;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid #1e293b;
}

.sidebar-menu {
  margin-top: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border-left: 4px solid transparent;
  user-select: none;
}

.sidebar-item:hover {
  background: rgba(217, 119, 6, 0.08);
  color: #fff;
}

.sidebar-item.active {
  background: rgba(217, 119, 6, 0.14);
  color: var(--primary-light);
  border-left: 4px solid var(--primary);
}

.sidebar-badge {
  background: #334155;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-badge.badge-warning {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-mobile-menu {
  display: none;
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99990;
}

.admin-main {
  background: #0b1120;
  padding: 28px 32px;
  overflow-y: auto;
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
  gap: 14px;
}

.topbar-status-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.kpi-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.12);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.kpi-data h4 {
  font-size: 0.76rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}

.kpi-data h2 {
  font-size: 1.55rem;
  color: #ffffff;
  margin: 0;
}

.admin-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.quick-actions-bar {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-toolbar {
  padding: 14px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 450px;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  color: #fff;
  padding: 9px 12px 9px 36px;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary);
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: #334155;
  color: #fff;
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.inventory-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 14px 20px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.inventory-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inventory-chip .chip-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.inventory-chip .chip-val {
  font-size: 1.15rem;
  color: #fff;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.kanban-col {
  background: #1e293b;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
  padding: 14px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kanban-col.drag-over {
  border-color: var(--primary);
  background-color: rgba(217, 119, 6, 0.06);
}

.kanban-header {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #334155;
}

.kanban-header .stage-title {
  color: #fff;
}

.kanban-header .stage-stats {
  font-size: 0.72rem;
  color: var(--primary-light);
}

.kanban-cards-container {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kanban-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: scale(0.96);
}

.kanban-client {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
}

.kanban-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 6px 0;
}

.data-table-container {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.table-header-tools {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  background: #1e293b;
  flex-wrap: wrap;
  gap: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #0f172a;
  padding: 12px 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  border-bottom: 1px solid #334155;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #283548;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.status-new { background: rgba(2, 132, 199, 0.2); color: #38bdf8; border: 1px solid rgba(2, 132, 199, 0.3); }
.status-quoted { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-closed { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  color: #fff;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.2);
}

.btn-whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1ea952 !important;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark-card);
  border: 1px solid var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideInRight 0.3s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: #070b14;
  border-top: 1px solid var(--dark-border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .navbar-inner {
    padding: 14px 0;
  }

  .logo-img {
    height: 115px;
  }

  .logo-wrapper {
    padding: 0;
  }

  .hamburger-btn {
    display: flex;
    width: 48px;
    height: 44px;
    padding: 11px 9px;
  }

  .nav-links {
    position: fixed;
    top: 140px;
    left: 0;
    right: 0;
    background: rgba(247, 244, 238, 0.99);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(26, 32, 44, 0.04);
    border: 1px solid rgba(26, 32, 44, 0.1);
    color: #1a202c;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-link.active {
    background: rgba(212, 155, 75, 0.2);
    border-color: var(--primary);
    color: #b45309;
  }

  .nav-actions {
    display: none;
  }

  .mobile-only-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--dark-border);
  }

  .hero-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .quote-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .btn-mobile-menu { display: inline-flex; }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100vh;
    z-index: 100000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 15px 0 40px rgba(0,0,0,0.6);
    background: #0f172a;
    display: flex !important;
  }
  .admin-sidebar.mobile-open {
    left: 0;
  }
  .admin-sidebar-overlay.active {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: 1fr; text-align: center; }
  .quote-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: 1fr; }
  .admin-main { padding: 18px 14px; }
}

/* Media Print Rules */
@media print {
  body * {
    visibility: hidden;
  }
  #printableQuoteArea, #printableQuoteArea * {
    visibility: visible;
  }
  #printableQuoteArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Instant PDF Quote Modal & Advanced Loader
   ========================================================================== */
#instantQuoteModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#instantQuoteModal.active {
  opacity: 1;
  visibility: visible;
}

.iq-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.iq-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf8f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.iq-modal-header h3 {
  font-size: 1.25rem;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iq-close-btn {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.iq-close-btn:hover {
  background: #ef4444;
  color: #fff;
}

.iq-loader-screen {
  padding: 50px 30px;
  text-align: center;
}

.iq-loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e2dacd;
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}

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

.iq-loader-progress-bar {
  height: 8px;
  background: #e2dacd;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  margin: 20px 0 10px;
}

.iq-loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d97706, #0284c7);
  transition: width 0.3s ease;
}

.iq-form-body {
  padding: 24px 28px;
}

.iq-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .iq-grid-2 { grid-template-columns: 1fr; }
  .iq-form-body { padding: 20px 16px; }
}

.iq-live-summary {
  background: #fffbeb;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Pro Motion & Section Transitions (Creative Industrial System)
   ========================================================================== */

/* Scroll Reveal Base Classes */
.reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-48px, 0, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translate3d(48px, 0, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translate3d(0, 20px, 0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Stagger Grid Animation Containers */
.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Stagger delay loops */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.44s; }

.revealed,
.reveal-stagger.revealed > * {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Sticky Navbar Dynamic Elevation on Scroll */
.navbar {
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.navbar.navbar-scrolled {
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--primary);
}

.navbar.navbar-scrolled .logo-img {
  height: 80px;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ambient Hero Glowing Mesh */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.18) 0%, rgba(2, 132, 199, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: heroGlowPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGlowPulse {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-30px, 40px) scale(1.15); opacity: 0.9; }
  100% { transform: translate(20px, -20px) scale(0.95); opacity: 0.6; }
}

/* Card Interactive Hover Sheen & Depth */
.product-card, .calc-card, .testimonial-card, .kpi-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.product-card::before, .testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 2;
}

.product-card:hover::before, .testimonial-card:hover::before {
  left: 150%;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 24px rgba(217, 119, 6, 0.15);
  border-color: var(--primary);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.stat-item {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
  transform: translateY(-4px);
}

/* Floating Back To Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7) translateY(20px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

#backToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

#backToTopBtn:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.6);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* Interactive Button Ripple */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Accessibility reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero::before {
    animation: none !important;
  }
}

