/* ============================================================
   CONSTRUCCIONES ROTELLA S.A. — Main Stylesheet
   Design System: Rojo corporativo #D30815 + Negro
   Typography: Poppins (headings) + Open Sans (body)
   ============================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  /* Colors — brand: rojo #D30815 + negro */
  --color-primary: #1A1A1A;
  --color-primary-dark: #0D0D0D;
  --color-primary-light: #2D2D2D;
  --color-accent: #D30815;
  --color-accent-hover: #B5060F;
  --color-accent-light: #FDEAEA;
  --color-secondary: #64748B;
  --color-secondary-light: #94A3B8;
  --color-background: #F8F8F8;
  --color-surface: #FFFFFF;
  --color-foreground: #111111;
  --color-foreground-muted: #555555;
  --color-border: #E5E5E5;
  --color-muted: #F2F2F2;
  --color-success: #16A34A;
  --color-error: #DC2626;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing (8pt grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  --nav-height: 80px;
}

/* ── Reset ── */
*, *::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);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Focus Accessibility ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

p { color: var(--color-foreground-muted); line-height: 1.75; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-foreground-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(211, 8, 21, 0.3);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(211, 8, 21, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-foreground-muted);
  padding-inline: var(--space-4);
}
.btn-ghost:hover { color: var(--color-primary); }

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
  min-height: 40px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-lg);
  min-height: 56px;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-accent { background: var(--color-accent-light); color: var(--color-accent); }
.badge-primary { background: rgba(26, 26, 26, 0.08); color: var(--color-primary); }
.badge-success { background: rgba(22, 163, 74, 0.1); color: var(--color-success); }

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

/* ── Section Layout ── */
.section {
  padding-block: var(--space-24);
}
.section-sm { padding-block: var(--space-16); }
.section-lg { padding-block: var(--space-32); }

.section-header {
  margin-bottom: var(--space-16);
}
.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Grid Utilities ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-8); }

/* ── Divider ── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.divider.centered { margin-inline: auto; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header.dark {
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-8);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Logo image */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 26px; height: 26px; fill: #fff; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.logo-text .tagline-logo {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header.dark .logo-text .name { color: #fff; }
.site-header.dark .logo-text .tagline-logo { color: var(--color-accent); }
.site-header.dark .logo-img { filter: brightness(0) invert(1); }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-foreground-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}
.nav-link:hover { color: var(--color-primary); background: var(--color-muted); }
.nav-link.active { color: var(--color-primary); font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.site-header.dark .nav-link { color: rgba(255,255,255,0.75); }
.site-header.dark .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-header.dark .nav-link.active { color: #fff; }

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}
.header-phone:hover { color: var(--color-accent); }
.header-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.site-header.dark .header-phone { color: rgba(255,255,255,0.9); }
.site-header.dark .header-phone:hover { color: var(--color-accent); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.menu-toggle:hover { background: var(--color-muted); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-foreground);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header.dark .menu-toggle span { background: rgba(255,255,255,0.9); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-foreground);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav-link:hover { background: var(--color-muted); color: var(--color-primary); }
.mobile-nav-link.active { color: var(--color-primary); font-weight: 600; }

.mobile-menu-footer {
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary);
}

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

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 13, 13, 0.95) 0%,
    rgba(13, 13, 13, 0.75) 50%,
    rgba(13, 13, 13, 0.60) 100%
  );
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 60%, rgba(211, 8, 21, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(211, 8, 21, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

/* When spotlight JS is active, the pattern reds yield to the spotlight layer */
.hero--spotlight .hero-bg-pattern {
  background-image:
    radial-gradient(circle at 50% 100%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at var(--sx, 15%) var(--sy, 60%),
    rgba(211, 8, 21, 0.24) 0%,
    rgba(211, 8, 21, 0.13) 22%,
    rgba(211, 8, 21, 0.04) 45%,
    transparent 62%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero--spotlight .hero-spotlight {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  min-height: calc(100dvh - var(--nav-height));
  padding-block: 0 var(--space-20);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(211, 8, 21, 0.15);
  border: 1px solid rgba(211, 8, 21, 0.3);
  color: #FF8080;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  width: fit-content;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(40px, 5.5vw, 80px);
  color: #fff;
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-title .accent {
  color: #D30815;
  font-style: normal;
}

.year-decor {
  position: absolute;
  right: -40px;
  bottom: -20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(360px, 32vw, 520px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
  white-space: nowrap;
}

.year-decor::after {
  content: '1954';
  position: absolute;
  top: 0;
  left: 0;
  color: #D30815;
  -webkit-text-stroke: 0px solid transparent;
  clip-path: polygon(0 68%, 100% 68%, 100% 100%, 0 100%);
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 640px;
}

.hero-subtitle--right {
  font-size: clamp(var(--text-lg), 2.2vw, var(--text-2xl));
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: none;
  border-left: 3px solid rgba(255,255,255,0.18);
  padding-left: var(--space-6);
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-2);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}

.hero-trust-separator {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.hero-trust-location {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-trust-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-trust-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Certification Cards */
.hero-cert-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cert-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: background var(--transition-base), transform var(--transition-base);
}
.cert-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.cert-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; }

.cert-info { flex: 1; }
.cert-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.cert-desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.cert-check {
  width: 20px;
  height: 20px;
  background: var(--color-success);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-check svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.5; }

.hero-location-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero-location-card svg { width: 18px; height: 18px; stroke: var(--color-accent); fill: none; flex-shrink: 0; }
.hero-location-card span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* Hero Stat Cards (right column) */
.hero-stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: background var(--transition-base), transform var(--transition-base);
}
.hero-stat-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.hero-stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(211, 8, 21, 0.2);
  border: 1px solid rgba(211, 8, 21, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-stat-icon svg { width: 22px; height: 22px; stroke: #FF8080; fill: none; }

.hero-stat-info { flex: 1; }
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.4);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
  z-index: 1;
}
.hero-scroll svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--color-primary);
  padding-block: var(--space-12);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-6);
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-number .stat-suffix {
  color: var(--color-accent);
  font-size: 0.7em;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 120px;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background: var(--color-background);
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--color-primary);
}

.service-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-img-icon {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}
.service-img-icon svg { width: 80px; height: 80px; stroke: #fff; fill: none; }

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-image img {
  transform: scale(1.04);
}

.service-card-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(-1 * var(--space-8));
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}
.service-icon-wrap svg { width: 28px; height: 28px; stroke: var(--color-accent); fill: none; }

.service-card-title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 700;
}

.service-card-desc {
  font-size: var(--text-base);
  color: var(--color-foreground-muted);
  line-height: 1.7;
  flex: 1;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.service-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-secondary);
  background: var(--color-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
  padding-top: var(--space-2);
}
.service-card-link:hover { gap: var(--space-3); }
.service-card-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; transition: transform var(--transition-fast); }
.service-card-link:hover svg { transform: translateX(2px); }

/* Service bg colors */
.service-card:nth-child(1) .service-card-image { background: linear-gradient(135deg, #1A1A1A, #333333); }
.service-card:nth-child(2) .service-card-image { background: linear-gradient(135deg, #374151, #4B5563); }
.service-card:nth-child(3) .service-card-image { background: linear-gradient(135deg, #1A1A1A, #D3081560); }

/* ============================================================
   ABOUT / HISTORY SECTION
   ============================================================ */
.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-primary);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%) brightness(0.75);
}

.about-image-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.2;
  stroke: #fff;
  fill: none;
}

.about-year-badge {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-year-badge .year {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
  display: block;
}
.about-year-badge .year-label {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-list-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.about-list-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-list-icon svg { width: 20px; height: 20px; stroke: var(--color-accent); fill: none; }

.about-list-text { flex: 1; }
.about-list-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.about-list-desc {
  font-size: var(--text-sm);
  color: var(--color-foreground-muted);
  line-height: 1.6;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certifications {
  background: var(--color-muted);
}

.certs-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 2px solid transparent;
}
.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.cert-badge-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-badge-icon svg { width: 36px; height: 36px; stroke: #fff; fill: none; }

.cert-badge-icon--logo {
  width: 90px;
  height: 90px;
  background: transparent;
  border-radius: 0;
}
.cert-badge-icon--logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.cert-badge-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}
.cert-badge-desc {
  font-size: var(--text-xs);
  color: var(--color-foreground-muted);
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(211, 8, 21, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.cta-text { flex: 1; }
.cta-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  color: #fff;
  margin-bottom: var(--space-4);
  font-weight: 800;
}
.cta-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.cta-phone-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  transition: background var(--transition-base);
  text-align: center;
}
.cta-phone-link:hover { background: rgba(255,255,255,0.14); }
.cta-phone-link .phone-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cta-phone-link .phone-number {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
}

/* ============================================================
   NEWS / LATEST
   ============================================================ */
.news-section { background: var(--color-background); }

.news-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.news-card-header {
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-header svg { width: 48px; height: 48px; opacity: 0.3; stroke: #fff; fill: none; }

.news-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.news-card-date {
  font-size: var(--text-xs);
  color: var(--color-foreground-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  flex: 1;
}

.news-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-fast);
  margin-top: auto;
}
.news-card-link:hover { gap: var(--space-2); }
.news-card-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* ============================================================
   CONTACT SECTION (homepage teaser)
   ============================================================ */
.contact-teaser {
  background: var(--color-surface);
}

.contact-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--color-accent); fill: none; }

.contact-info-content { flex: 1; min-width: 0; }
.contact-info-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-foreground-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.contact-info-value {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact-info-value a { display: block; overflow-wrap: break-word; word-break: break-word; }
.contact-info-value a:hover { color: var(--color-accent); }

/* ── Contact Form ── */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-foreground);
}
.form-label .required { color: var(--color-accent); margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-foreground);
  background: var(--color-background);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  min-height: 48px;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-secondary-light); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
  display: none;
}
.form-group.has-error .form-input,
.form-group.has-error .form-textarea { border-color: var(--color-error); }
.form-group.has-error .form-error { display: block; }

.form-privacy {
  font-size: var(--text-sm);
  color: var(--color-foreground-muted);
  line-height: 1.5;
}
.form-privacy a { color: var(--color-accent); text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
  gap: var(--space-4);
  flex-direction: column;
  align-items: center;
}
.form-success.visible { display: flex; }
.form-success svg { width: 48px; height: 48px; stroke: var(--color-success); fill: none; }
.form-success p { color: var(--color-foreground); font-size: var(--text-base); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
}

.footer-main {
  padding-block: var(--space-20);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-brand { display: flex; flex-direction: column; gap: var(--space-5); }

.footer-logo .logo-text .name { color: #fff; }
.footer-logo .logo-text .tagline-logo { color: rgba(255,255,255,0.5); }
.footer-logo .logo-icon { background: rgba(255,255,255,0.1); }
.footer-logo .logo-img { filter: brightness(0) invert(1); }

.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 280px;
}

.footer-certs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-cert {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-link:hover { color: #fff; padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--color-accent); fill: none; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span, .footer-contact-item a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  transition: color var(--transition-fast);
}
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
}
.footer-legal-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}
.footer-legal-link:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--color-primary);
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 100%, rgba(211, 8, 21, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }

.page-hero-title {
  color: #fff;
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
  font-weight: 800;
}
.page-hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail {
  background: var(--color-background);
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: var(--space-20);
  border-bottom: 1px solid var(--color-border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-block-visual {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-block-visual svg { width: 100px; height: 100px; opacity: 0.2; stroke: #fff; fill: none; }
.service-block-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-block-content { display: flex; flex-direction: column; gap: var(--space-6); }

.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-feature {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.service-feature-check {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.service-feature-check svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 3; }
.service-feature-text {
  font-size: var(--text-base);
  color: var(--color-foreground-muted);
  line-height: 1.6;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-section { background: var(--color-background); }

.projects-filter {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  color: var(--color-foreground-muted);
  background: var(--color-surface);
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 40px;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.project-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-card-image svg { width: 60px; height: 60px; opacity: 0.2; stroke: #fff; fill: none; }
.project-card-image .project-category-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card-body { padding: var(--space-5); }
.project-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.project-card-location {
  font-size: var(--text-sm);
  color: var(--color-foreground-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.project-card-location svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { background: var(--color-background); }

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-detail-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-dept {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.contact-dept:last-child { border-bottom: none; padding-bottom: 0; }

.contact-dept-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.contact-dept-person {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
  min-width: 0;
}
.contact-dept-person svg { width: 16px; height: 16px; stroke: var(--color-foreground-muted); fill: none; flex-shrink: 0; }
.contact-dept-person span {
  font-size: var(--text-sm);
  color: var(--color-foreground-muted);
}
.contact-dept-person a {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: var(--text-sm);
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/9;
  background: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-container svg { width: 48px; height: 48px; opacity: 0.3; stroke: var(--color-foreground-muted); fill: none; }

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-foreground-muted);
  text-align: center;
}
.map-placeholder span { font-size: var(--text-sm); }

/* ============================================================
   NOSOTROS (About) PAGE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--space-12);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-10);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-12) + 12px);
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 3px rgba(211, 8, 21, 0.2);
}

.timeline-year {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.timeline-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.timeline-desc {
  font-size: var(--text-base);
  color: var(--color-foreground-muted);
  line-height: 1.7;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.value-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 32px; height: 32px; stroke: #fff; fill: none; }

.value-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}
.value-desc {
  font-size: var(--text-sm);
  color: var(--color-foreground-muted);
  line-height: 1.6;
  text-align: center;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--color-muted);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-border);
}
.team-avatar svg { width: 40px; height: 40px; stroke: var(--color-secondary); fill: none; }

.team-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
}
.team-role {
  font-size: var(--text-sm);
  color: var(--color-foreground-muted);
}
.team-email {
  font-size: var(--text-sm);
  color: var(--color-accent);
  word-break: break-all;
}
.team-email:hover { text-decoration: underline; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-white { color: #fff; }
.mt-auto { margin-top: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Animate on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
}

/* Counter animation */
.count-up { display: inline-block; }

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-foreground);
  color: #fff;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-error); }
.toast svg { width: 18px; height: 18px; stroke: #fff; fill: none; flex-shrink: 0; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
  z-index: 500;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); }
.back-to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
