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

/* --- THE MILLION-DOLLAR DESIGN SYSTEM (AESTHETIC UPGRADE) --- */
:root {
  /* Ultra-Premium Color Palette */
  --color-dark-bg: #090d16;
  --color-dark-surface: #111827;
  --color-dark-surface-hover: #1f2937;
  --color-primary: #1e293b;
  --color-primary-light: #475569;
  --color-accent: #415f91; /* Premium corporate brand blue (Medium) */
  --color-accent-glow: rgba(65, 95, 145, 0.35);
  --color-accent-light: #6385be; /* Lighter brand blue for hover highlights */
  --color-accent-dark: #23376e; /* Deep navy brand blue */
  --color-text-light: #f8fafc;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  
  /* Brand-specific variables (with HSL for dynamic alpha transparency) */
  --brand-romano-h: 0;
  --brand-romano-s: 65%;
  --brand-romano-l: 33%;
  --brand-romano: hsl(var(--brand-romano-h), var(--brand-romano-s), var(--brand-romano-l));
  
  --brand-pegamac-h: 224;
  --brand-pegamac-s: 64%;
  --brand-pegamac-l: 36%;
  --brand-pegamac: hsl(var(--brand-pegamac-h), var(--brand-pegamac-s), var(--brand-pegamac-l));
  
  --brand-pegazu-h: 24;
  --brand-pegazu-s: 95%;
  --brand-pegazu-l: 53%;
  --brand-pegazu: hsl(var(--brand-pegazu-h), var(--brand-pegazu-s), var(--brand-pegazu-l));
  
  --brand-morelos-h: 38;
  --brand-morelos-s: 92%;
  --brand-morelos-l: 50%;
  --brand-morelos: hsl(var(--brand-morelos-h), var(--brand-morelos-s), var(--brand-morelos-l));

  /* Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows (with high depth) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(2, 6, 23, 0.08), 0 8px 16px -6px rgba(2, 6, 23, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(2, 6, 23, 0.15), 0 15px 25px -10px rgba(2, 6, 23, 0.08);
  --shadow-xl: 0 35px 60px -15px rgba(2, 6, 23, 0.25);
  --shadow-glow: 0 0 40px -10px var(--color-accent-glow);
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --container-max-width: 1280px;
  --header-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--color-primary-light);
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-dark-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* --- PREMIUM STRUCTURE --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
  position: relative;
  overflow: hidden;
}

/* --- GLASSMORPHIC NAV HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: all var(--transition-normal);
}

header.scrolled {
  height: 70px;
  background-color: rgba(9, 13, 22, 0.9);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1350px !important; /* Allow header to stretch wider on desktop */
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-headings);
  font-size: 1.35rem; /* Sized down slightly to save horizontal space */
  font-weight: 900;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  flex-shrink: 0; /* Never shrink logo */
}

.logo-wrapper img {
  height: 40px; /* Reduced from 46px */
  width: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

header.scrolled .logo-wrapper img {
  height: 35px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem; /* Reduced from 2rem to prevent overflow */
  list-style: none;
  flex-wrap: nowrap; /* Prevent items from wrapping to a second line */
}

.nav-item a {
  font-weight: 600;
  font-size: 0.85rem; /* Reduced from 0.9rem to fit all 9 links */
  color: #94a3b8;
  padding: 0.4rem 0.15rem;
  position: relative;
  white-space: nowrap; /* Prevent link labels from wrapping text */
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transition: all var(--transition-fast);
}

.nav-item a:hover {
  color: var(--color-text-light);
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

.nav-item.active a {
  color: var(--color-text-light);
}

/* Premium CTA Nav Link */
.nav-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-text-light) !important;
  padding: 0.5rem 1.1rem !important; /* Reduced padding to fit nicely */
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(65, 95, 145, 0.3);
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap; /* Prevent button text from wrapping */
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65, 95, 145, 0.45);
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--color-text-light);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

/* --- SPLIT HERO SECTION --- */
.hero-split {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
}

.hero-split-left {
  width: 55%;
  padding: calc(var(--header-height) + 2.5rem) 4rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-bg-white);
  z-index: 5;
}

.hero-split-header {
  margin-bottom: 2rem;
}

.hero-split-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-split-logo {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.hero-split-brand-name {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-text-dark);
  line-height: 1;
}

.hero-split-brand-slogan {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.hero-split-main {
  margin-top: auto;
  margin-bottom: auto;
  padding: 1rem 0;
}

.hero-split-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-text-dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.text-accent-highlight {
  color: var(--color-accent);
}

.hero-split-line {
  width: 80px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 1.5rem 0;
  border-radius: var(--radius-full);
}

.hero-split-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-split-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-split-cta {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.hero-split-cta:hover {
  color: #ea580c;
  transform: translateX(6px);
}

.hero-split-cta-secondary {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.hero-split-cta-secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--color-text-dark);
}

.hero-split-footer {
  margin-top: 2rem;
}

.hero-split-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1.5px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.75rem;
}

.hero-split-info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-split-info-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-split-right {
  width: 45%;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-split-right {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

@media (max-width: 991px) {
  .hero-split {
    flex-direction: column;
    min-height: auto;
  }
  .hero-split-left {
    width: 100%;
    padding: calc(var(--header-height) + 2rem) 2rem 3rem 2rem;
  }
  .hero-split-right {
    width: 100%;
    height: 450px;
    clip-path: none;
  }
  .hero-split-title {
    font-size: 2.75rem;
  }
  .hero-split-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- HERO VIDEO CAROUSEL BACKGROUND --- */
.hero-video-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-video-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  z-index: 1;
}
.hero-video-slide.active {
  opacity: 0.85; /* Massive presence, giving the video full protagonism */
  z-index: 2;
}
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Mesh Gradient Glowing Backgrounds */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(65, 95, 145, 0.15) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(139, 29, 29, 0.2) 0%, transparent 60%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 750px;
  position: relative;
  z-index: 10;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* Floating Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-down-mouse {
  width: 20px;
  height: 35px;
  border: 2px solid #64748b;
  border-radius: var(--radius-full);
  position: relative;
}

.scroll-down-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-accent);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* --- PREMIUM BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-family: var(--font-headings);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-text-light);
  box-shadow: 0 4px 20px rgba(65, 95, 145, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(65, 95, 145, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.btn-outline-dark {
  border: 2px solid var(--color-primary-light);
  color: var(--color-primary);
  background-color: transparent;
  font-weight: 700;
}

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- THE MILLION-DOLLAR PORTFOLIO GRID (3D GLOW CARDS) --- */
.grid {
  display: grid;
  gap: 2.5rem;
}

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

.brand-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  pointer-events: none;
  z-index: 5;
}

/* Glow Effect maps based on brand class */
.brand-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.brand-card.romano:hover {
  box-shadow: 0 20px 40px -10px rgba(139, 29, 29, 0.25);
}
.brand-card.romano:hover::after {
  border-color: rgba(139, 29, 29, 0.4);
}

.brand-card.pegamac:hover {
  box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.25);
}
.brand-card.pegamac:hover::after {
  border-color: rgba(30, 58, 138, 0.4);
}

.brand-card.pegazu:hover {
  box-shadow: 0 20px 40px -10px rgba(234, 88, 12, 0.25);
}
.brand-card.pegazu:hover::after {
  border-color: rgba(234, 88, 12, 0.4);
}

.brand-card.morelos:hover {
  box-shadow: 0 20px 40px -10px rgba(217, 119, 6, 0.25);
}
.brand-card.morelos:hover::after {
  border-color: rgba(217, 119, 6, 0.4);
}

.brand-card-img {
  height: 320px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3rem;
  transition: transform var(--transition-slow);
}

.brand-card:hover .brand-card-img img {
  transform: scale(1.06);
}

.brand-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--color-text-light);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.brand-card-content {
  padding: 2.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.brand-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.brand-card-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.brand-card-link {
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-size: 0.95rem;
}

.brand-card-link::after {
  content: '→';
  transition: transform var(--transition-fast);
  font-size: 1.2rem;
}

.brand-card:hover .brand-card-link::after {
  transform: translateX(6px);
}

/* --- STATS SECTION (TRUST & SCALE) --- */
.stats-section {
  background-color: var(--color-dark-bg);
  background-image: linear-gradient(180deg, var(--color-dark-bg) 0%, #0d131f 100%);
  color: var(--color-text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0;
}

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

.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* --- THE WIDGET: INTERACTIVE DOSIFIER / PRODUCT CALCULATOR --- */
.calculator-card {
  background-color: var(--color-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--color-text-light);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(65, 95, 145, 0.12) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}

.calculator-left h3 {
  font-size: 2.25rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.calculator-left p {
  color: #94a3b8;
  margin-bottom: 2rem;
}

.calc-select-group {
  margin-bottom: 1.5rem;
}

.calc-select-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

/* Custom premium select styling */
.calc-select {
  width: 100%;
  background-color: var(--color-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23415f91' width='18' height='18'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

.calc-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(65, 95, 145, 0.25);
}

.calculator-right {
  background-color: var(--color-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 400px;
  justify-content: center;
}

.calc-result-img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  animation: floatAnim 3s ease-in-out infinite;
}

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

.calc-result-brand {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.calc-result-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.calc-result-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.calc-result-specs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calc-spec-item {
  text-align: center;
}

.calc-spec-lbl {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.calc-spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-light);
}

/* --- SUBPAGES / PORTFOLIO / INFO LAYOUTS --- */
.page-intro {
  background-color: var(--color-dark-bg);
  background-image: radial-gradient(circle at 10% 20%, rgba(17, 24, 39, 0.95) 0%, rgba(9, 13, 22, 0.98) 100%);
  color: var(--color-text-light);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 80%, rgba(65, 95, 145, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.product-showcase {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.product-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

.product-row:nth-child(even) {
  direction: rtl;
}

.product-row:nth-child(even) .product-info {
  direction: ltr;
}

.product-gallery {
  position: relative;
  background-color: var(--color-bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.product-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(65, 95, 145, 0.05) 0%, transparent 70%);
}

.product-gallery img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.12));
  transition: transform var(--transition-slow);
  z-index: 2;
}

.product-gallery:hover img {
  transform: translateY(-8px) scale(1.04);
}

.product-info-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.product-brand-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-sm);
}

.romano-tag { background-color: rgba(139, 29, 29, 0.08); color: var(--brand-romano); border: 1px solid rgba(139, 29, 29, 0.2); }
.pegamac-tag { background-color: rgba(30, 58, 138, 0.08); color: var(--brand-pegamac-light); border: 1px solid rgba(30, 58, 138, 0.2); }
.pegazu-tag { background-color: rgba(234, 88, 12, 0.08); color: var(--brand-pegazu); border: 1px solid rgba(234, 88, 12, 0.2); }
.morelos-tag { background-color: rgba(217, 119, 6, 0.08); color: var(--brand-morelos); border: 1px solid rgba(217, 119, 6, 0.2); }

.product-info-desc {
  font-size: 1.1rem;
  color: var(--color-primary-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-features-box {
  background-color: var(--color-bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.product-features-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.product-features-list li {
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-primary-light);
}

.product-features-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 900;
  font-size: 1.1rem;
}

.product-tech-specs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tech-spec-item {
  background-color: var(--color-bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  flex-grow: 1;
  min-width: 140px;
}

.tech-spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.tech-spec-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-secondary);
}

/* --- TABS SYSTEM --- */
.tabs {
  margin-top: 2rem;
}

.tab-headers {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-secondary);
}

.tab-btn.active {
  color: var(--color-accent);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
}

.tab-pane {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.tab-pane.active {
  display: block;
}

/* --- TABLES & INSTRUCTIONS --- */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tech-table th, .tech-table td {
  padding: 1rem 1.5rem;
  text-align: left;
}

.tech-table th {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-weight: 700;
}

.tech-table td {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table tr:nth-child(even) td {
  background-color: var(--color-bg-light);
}

.instruction-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.instruction-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: var(--color-bg-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.instruction-step:hover {
  transform: translateX(4px);
}

.step-num {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-text-light);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(65, 95, 145, 0.25);
}

.step-text h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-text p {
  font-size: 0.95rem;
  color: var(--color-primary-light);
  margin-bottom: 0;
}

/* --- ABOUT US / NOSOTROS --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.philosophy-card {
  background-color: var(--color-bg-white);
  padding: 3.5rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.philosophy-card.mision::before { background: linear-gradient(180deg, var(--brand-romano) 0%, var(--brand-romano-light) 100%); }
.philosophy-card.vision::before { background: linear-gradient(180deg, var(--brand-pegamac) 0%, var(--brand-pegamac-light) 100%); }

.philosophy-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.distinction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.distinction-item {
  background-color: var(--color-bg-white);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
}

.distinction-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.distinction-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(65, 95, 145, 0.08);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  margin: 0 auto 2rem;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px -5px rgba(65, 95, 145, 0.2);
}

.distinction-item:nth-child(2) .distinction-icon {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--brand-pegamac-light);
  box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.2);
}

.distinction-item:nth-child(3) .distinction-icon {
  background-color: rgba(220, 38, 38, 0.08);
  color: var(--brand-romano-light);
  box-shadow: 0 8px 20px -5px rgba(220, 38, 38, 0.2);
}

.distinction-title {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.distinction-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- CONTACT & FORMS --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact-info-panel {
  background-color: var(--color-dark-bg);
  background-image: radial-gradient(circle at 10% 20%, rgba(17, 24, 39, 0.95) 0%, rgba(9, 13, 22, 0.98) 100%);
  color: var(--color-text-light);
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.contact-info-panel::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(65, 95, 145, 0.18) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.contact-info-title {
  font-size: 2.25rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.contact-info-desc {
  color: #94a3b8;
  margin-bottom: 3.5rem;
  font-size: 1rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-detail-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.contact-detail-text p {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 0;
}

.contact-form-panel {
  padding: 4.5rem;
}

.form-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background-color: var(--color-bg-light);
}

.form-input:focus {
  border-color: var(--color-accent);
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(65, 95, 145, 0.2);
  outline: none;
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* --- THE MILLION-DOLLAR FOOTER --- */
footer {
  margin-top: auto;
  background-color: var(--color-dark-bg);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.3fr;
  gap: 5rem;
}

.footer-brand h3 {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.footer-title {
  color: var(--color-text-light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.6rem;
  font-weight: 800;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.95rem;
  display: inline-block;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-light);
  transform: translateX(6px);
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-contact-info li span {
  color: var(--color-accent);
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* --- ANIMATIONS & INTERACTIVE MOTION --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s var(--transition-normal) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- CALCULATOR RANGE INPUT CUSTOM STYLES --- */
.calc-range-wrapper {
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}
.calc-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.calc-range-val-box {
  background-color: var(--color-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.1rem;
}
.calc-range-input {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}
.calc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
  cursor: pointer;
  transition: transform 0.1s;
}
.calc-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Sacos counter visual */
.calc-counter-display {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.calc-counter-card {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}
.calc-counter-num {
  display: block;
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.calc-counter-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- COMPARISON TABLE SECTION --- */
.comparison-section {
  padding: 7.5rem 0;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
}
.comparison-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.comparison-tab-btn {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-primary-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.comparison-tab-btn:hover {
  background-color: #f1f5f9;
  color: var(--color-text-dark);
}
.comparison-tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 900px;
}
.comparison-table th {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-family: var(--font-headings);
  font-weight: 700;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
}
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary-light);
  transition: background-color var(--transition-fast);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr:hover td {
  background-color: #f8fafc;
}
.comparison-table tr.highlighted td {
  background-color: rgba(65, 95, 145, 0.06);
}
.comparison-table tr.highlighted td:first-child {
  border-left: 4px solid var(--color-accent);
}
.comparison-table .product-name {
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--color-text-dark);
  font-size: 1.1rem;
}
.badge-spec {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-spec-romano { background-color: rgba(139, 29, 29, 0.1); color: var(--brand-romano); }
.badge-spec-pegamac { background-color: rgba(30, 58, 138, 0.1); color: var(--brand-pegamac); }
.badge-spec-pegazu { background-color: rgba(234, 88, 12, 0.1); color: var(--brand-pegazu); }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1150px) {
  .burger-menu {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-dark-bg);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
    gap: 2.5rem;
    transition: left var(--transition-normal);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    z-index: 100;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-item a {
    font-size: 1.1rem;
  }
  
  .burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-row { gap: 3rem; }
  .contact-container { grid-template-columns: 1fr; }
  .calculator-card { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-desc {
    font-size: 1.1rem;
  }
  
  .page-intro-title {
    font-size: 2.5rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .product-row, .product-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }
  
  .product-row:nth-child(even) .product-info {
    direction: ltr;
  }
  
  .product-gallery {
    order: -1;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .distinction-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: var(--radius-full);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: all var(--transition-fast);
  animation: pulse-whatsapp 2s infinite;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  background-color: #20ba56;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* --- CONTACT FORM SUCCESS PANEL --- */
.form-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success-state.active {
  opacity: 1;
  transform: translateY(0);
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  border: 2px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  margin-bottom: 0.5rem;
  animation: scale-up-success 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scale-up-success {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- GRAIN OVERLAY TEXTURE (21st.dev inspired) --- */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.016; /* Extremely subtle so it doesn't look like low quality image noise */
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- DOT MATRIX / RETRO GRID BACKGROUND --- */
.dot-matrix {
  position: relative;
}

.dot-matrix::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  z-index: 0;
}

.dot-matrix > * {
  position: relative;
  z-index: 1;
}

.dot-matrix-light {
  position: relative;
}

.dot-matrix-light::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  z-index: 0;
}

.dot-matrix-light > * {
  position: relative;
  z-index: 1;
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.brand-card.bento-card-double-width {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  height: 100%;
}

.brand-card.bento-card-double-width .brand-card-img {
  width: 45%;
  height: 100%;
}

.brand-card.bento-card-double-width .brand-card-content {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}

@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .brand-card.bento-card-double-width {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .brand-card.bento-card-double-width {
    grid-column: span 1;
    flex-direction: column;
  }
  .brand-card.bento-card-double-width .brand-card-img {
    width: 100%;
    height: 240px;
  }
  .brand-card.bento-card-double-width .brand-card-content {
    width: 100%;
    padding: 1.75rem;
  }
}

/* --- SPOTLIGHT CARD EFFECT --- */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    450px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(65, 95, 145, 0.15),
    transparent 80%
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 3;
}

.brand-card-badge {
  z-index: 10 !important;
}

.brand-card-img img {
  position: relative;
  z-index: 1 !important;
}

/* --- FAQ ACCORDION STYLES (21st.dev inspired) --- */
.faq-item {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(65, 95, 145, 0.08);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  position: relative;
  user-select: none;
}

/* Remove default browser marker */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
}

/* Vertical bar */
.faq-icon::before {
  width: 2px;
  height: 12px;
}

/* Horizontal bar */
.faq-icon::after {
  width: 12px;
  height: 2px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  border-top: 1px solid transparent;
  animation: slide-down-faq 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] .faq-answer {
  border-top-color: var(--color-border);
}

@keyframes slide-down-faq {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- WIZARD SELECTOR / QUIZ STYLES --- */
.quiz-options-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.quiz-option-card {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.quiz-option-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.quiz-option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(65, 95, 145, 0.3);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-bg-light);
}

.quiz-option-card.active {
  background-color: rgba(65, 95, 145, 0.06);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.quiz-option-card.active::before {
  border-color: var(--color-accent);
}

.quiz-option-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-normal);
}

.quiz-option-card:hover .quiz-option-icon,
.quiz-option-card.active .quiz-option-icon {
  color: var(--color-accent);
}

.quiz-option-content h4 {
  color: var(--color-primary);
  margin-bottom: 0.15rem !important;
}

.quiz-option-content p {
  margin: 0 !important;
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
  line-height: 1.4 !important;
}

.wizard-step {
  animation: quiz-step-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes quiz-step-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-navigation button {
  transition: all var(--transition-normal);
}

.wizard-navigation button:hover {
  transform: translateY(-1px);
}
