/* ============================================================
   STYLOPTIC SAS — Design System
   main.css v1.0 | Antigravity / Integrapro Standards
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* Brand Colors */
  --green-900: #071A2E;
  --green-800: #091B30;
  --green-700: #0F2540;
  --green-600: #1A5A3A;
  --green-500: #316950;
  --green-400: #316950;
  --green-300: #99d3b5;
  --green-100: #e5eeff;

  --gold-800:  #0A2140;
  --gold-700:  #0F2540;
  --gold-600:  #316950;
  --gold-500:  #3A8B5A;
  --gold-400:  #4CAF6A;
  --gold-100:  #b4f0d0;

  --teal-700:  #0F2540;
  --teal-500:  #1A3A5C;
  --teal-300:  #99d3b5;

  /* Neutrals */
  --dark-950:  #040D0A;
  --dark-900:  #0A1628;
  --dark-800:  #0F2027;
  --dark-700:  #1A2F3A;
  --dark-600:  #243447;
  --gray-500:  #6B7280;
  --gray-400:  #9CA3AF;
  --gray-300:  #D1D5DB;
  --gray-200:  #E5E7EB;
  --gray-100:  #F3F4F6;
  --white:     #FFFFFF;
  --off-white: #F8FFFE;

  /* Semantic */
  --primary:       var(--green-700);
  --primary-dark:  var(--green-800);
  --primary-light: var(--green-500);
  --accent:        var(--gold-500);
  --accent-dark:   var(--gold-700);
  --surface:       var(--white);
  --surface-alt:   var(--gray-100);
  --text-primary:  var(--dark-800);
  --text-secondary: var(--gray-500);
  --text-muted:    var(--gray-400);
  --border:        var(--gray-200);

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.15), 0 8px 10px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);
  --shadow-green: 0 8px 32px rgba(15,37,64,0.25);
  --shadow-gold:  0 8px 32px rgba(255,193,7,0.30);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base:   250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   400ms cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 500ms cubic-bezier(0.175,0.885,0.32,1.275);

  /* Z-index */
  --z-base:    1;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-overlay: 300;
  --z-modal:   400;
  --z-toast:   500;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::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-primary);
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--green-500); border-radius: 3px; }

/* ── Selection ─────────────────────────────────────────── */
::selection { background: var(--green-300); color: var(--green-900); }

/* ── Utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 800px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid        { display: grid; }

/* ── Typography ────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}
.h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-md { font-size: 1rem; line-height: 1.6; }
.body-sm { font-size: 0.875rem; line-height: 1.5; }
.caption { font-size: 0.75rem; line-height: 1.4; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255,255,255,0.15);
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15,37,64,0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--dark-900);
  box-shadow: var(--shadow-gold);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,193,7,0.4);
}

.btn-outline {
  border: 2px solid var(--green-700);
  color: var(--green-700);
  background: transparent;
}
.btn-outline:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* ── Badge ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-green {
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid var(--green-300);
}
.badge-gold {
  background: var(--gold-100);
  color: var(--gold-800);
  border: 1px solid var(--gold-400);
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
}

/* ── Section Headers ───────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green-500);
  border-radius: 1px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--dark-800);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Gradient Text ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--green-700), var(--teal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navigation ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 1.25rem 0;
  transition: all var(--transition-base);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), var(--shadow-md);
  padding: 0.875rem 0;
}
.navbar.scrolled .nav-logo-text { color: var(--green-800); }
.navbar.scrolled .nav-link { color: var(--dark-800); }
.navbar.scrolled .nav-link:hover { color: var(--green-700); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
  line-height: 1.1;
  transition: color var(--transition-base);
}
.nav-logo-text span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.navbar.scrolled .nav-hamburger span { background: var(--dark-800); }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sticky) - 1);
  background: var(--white);
  padding: 6rem var(--space-6) var(--space-8);
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.nav-mobile.open {
  display: flex;
  transform: translateX(0);
}
.nav-mobile .nav-link {
  color: var(--dark-800);
  font-size: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
}
.nav-mobile .nav-link:hover {
  color: var(--green-700);
  background: var(--green-100);
}

/* ── Hero Section ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--green-900) 0%, var(--dark-800) 40%, var(--dark-900) 100%);
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--green-600), transparent);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold-600), transparent);
  bottom: -50px; left: -80px;
  opacity: 0.25;
  animation-delay: 3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--teal-500), transparent);
  top: 40%; left: 50%;
  opacity: 0.2;
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-20px, 30px) scale(1.05); }
  66%       { transform: translate(15px, -20px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--space-24) + 4rem) 0 var(--space-24);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text { max-width: 580px; }
.hero-badge { margin-bottom: var(--space-6); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.hero-stat { }
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-number span { color: var(--gold-500); }
.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Hero - Certificate Lookup Card */
.hero-card {
  position: relative;
}
.certificate-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
.certificate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--gold-500), var(--teal-500));
}
.certificate-card-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: 1.75rem;
  box-shadow: var(--shadow-green);
}
.certificate-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.certificate-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.search-input-wrap {
  position: relative;
}
.search-input-wrap .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.125rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition-base);
}
.search-input::placeholder { color: rgba(255,255,255,0.45); }
.search-input:focus {
  outline: none;
  border-color: var(--green-400);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(49,105,80,0.2);
}

.search-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-green);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,37,64,0.4);
}
.search-btn:active { transform: translateY(0); }

.certificate-card-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.certificate-card-footer .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Services Section ──────────────────────────────────── */
.services {
  padding: var(--space-24) 0;
  background: var(--white);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-300), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.service-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-5);
  transition: transform var(--transition-spring);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

.service-icon-green { background: linear-gradient(135deg, #e5eeff, #b4f0d0); }
.service-icon-blue  { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.service-icon-teal  { background: linear-gradient(135deg, #E0F2F1, #B2DFDB); }
.service-icon-gold  { background: linear-gradient(135deg, #FFF9C4, #FFF176); }
.service-icon-indigo{ background: linear-gradient(135deg, #E8EAF6, #C5CAE9); }
.service-icon-red   { background: linear-gradient(135deg, #FFEBEE, #FFCDD2); }
.service-icon-purple{ background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.service-icon-orange{ background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark-800);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Stats Section ─────────────────────────────────────── */
.stats-section {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}
.stat-item {
  text-align: center;
  padding: var(--space-6);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-number .suffix { color: var(--gold-400); }
.stat-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  margin: auto;
}

/* ── About Section ─────────────────────────────────────── */
.about {
  padding: var(--space-24) 0;
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-badge-float {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 200px;
}
.about-badge-float .icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.about-badge-float-text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-800);
}
.about-badge-float-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.about-content .section-eyebrow { justify-content: flex-start; }
.about-content .section-eyebrow::before { display: none; }
.about-content .section-title { text-align: left; }

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: var(--space-6) 0 var(--space-8);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.about-feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feature-text strong {
  display: block;
  font-weight: 600;
  color: var(--dark-800);
  margin-bottom: 2px;
}
.about-feature-text span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Process Section ───────────────────────────────────── */
.process {
  padding: var(--space-24) 0;
  background: var(--white);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-300), var(--green-200));
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-green);
  position: relative;
}
.process-step-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green-300);
}
.process-step h4 {
  font-weight: 700;
  color: var(--dark-800);
  margin-bottom: var(--space-2);
  font-size: 1rem;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Contact Section ───────────────────────────────────── */
.contact {
  padding: var(--space-24) 0;
  background: linear-gradient(160deg, var(--gray-100) 0%, var(--white) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  align-items: start;
}
.contact-info { }
.contact-info .section-eyebrow { justify-content: flex-start; }
.contact-info .section-eyebrow::before { display: none; }
.contact-info .section-title { text-align: left; margin-bottom: var(--space-6); }
.contact-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.contact-item-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--green-700);
}
.contact-item-text strong {
  display: block;
  font-weight: 600;
  color: var(--dark-800);
  font-size: 0.9375rem;
}
.contact-item-text span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark-800);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-group {
  margin-bottom: var(--space-4);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-800);
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 14px;
  font-size: 16px; /* Previene auto-zoom molesto en Safari / iOS */
  color: var(--dark-800);
  background: #FAFAFA;
  transition: all var(--transition-fast);
  resize: none;
}
.form-control:focus {
  outline: none;
  background: var(--white);
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(15,37,64,0.18);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%206B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--dark-900);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.footer-logo img {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
}
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
  line-height: 1.1;
}
.footer-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.6;
  letter-spacing: 0.05em;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-5);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--green-400); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8125rem; }
.footer-bottom a:hover { color: var(--green-400); }

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up   { animation: fadeInUp 0.7s ease forwards; }
.animate-fade-in   { animation: fadeIn 0.7s ease forwards; }
.animate-slide-right { animation: slideInRight 0.7s ease forwards; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Toast ─────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--green-500);
  font-size: 0.9rem;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: slideInRight 0.3s ease;
}
.toast-error { border-left-color: #EF5350; }

/* ── Loader ─────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.loader-logo span { color: var(--gold-400); }
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--gold-500));
  border-radius: 2px;
  animation: loadBar 1.5s ease forwards;
}
@keyframes loadBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Navigation Tablet Fix */
  .nav-links, 
  .nav-actions .btn { 
    display: none; 
  }
  .nav-hamburger { 
    display: flex; 
  }

  /* Hero Section Tablet Layout */
  .hero-content { 
    grid-template-columns: 1fr; 
    gap: var(--space-10); 
    padding-top: calc(var(--space-16) + 3.5rem); 
    padding-bottom: var(--space-12);
  }
  .hero-text { 
    max-width: 100%; 
    text-align: center; 
  }
  .hero-badge {
    display: flex;
    justify-content: center;
  }
  .hero-title { 
    font-size: clamp(2.25rem, 5vw, 3.5rem); 
    margin-left: auto;
    margin-right: auto;
  }
  .hero-subtitle { 
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta { 
    justify-content: center; 
  }
  .hero-stats { 
    justify-content: center; 
    gap: var(--space-8);
  }
  .hero-card {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  /* Services Tablet Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* About Section Image Restoration for Tablets */
  .about-grid { 
    grid-template-columns: 1fr; 
    gap: var(--space-10);
  }
  .about-image-wrap { 
    display: block;
    max-width: 600px;
    margin: var(--space-4) auto 0;
    width: 100%;
  }
  .about-content .section-eyebrow { justify-content: center; }
  .about-content .section-title { text-align: center; }
  .about-text { text-align: center; }

  /* Stats Section Dividers & Grid */
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: var(--space-6);
  }
  .stat-divider { 
    display: none; 
  }

  /* Process Steps Tablet Grid */
  .process-steps { 
    grid-template-columns: repeat(2, 1fr); 
    gap: var(--space-8);
  }
  .process-steps::before { 
    display: none; 
  }

  /* Contact & Footer Grid */
  .contact-grid { 
    grid-template-columns: 1fr; 
    gap: var(--space-10);
  }
  .contact-info {
    text-align: center;
  }
  .contact-info .section-eyebrow { justify-content: center; }
  .contact-info .section-title { text-align: center; }
  .contact-info p { max-width: 600px; margin-left: auto; margin-right: auto; }
  .contact-items { align-items: center; }

  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: var(--space-8); 
  }
}

@media (max-width: 768px) {
  .hero-content { padding-top: calc(var(--space-16) + 4.5rem); }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: var(--space-6); }
  .hero-stat-number { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .stat-number { font-size: 2.25rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .stats-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}

