/* ===================================================
   SYM TECHNOLOGY - Corporate Website Styles
   Ingeniería, Automatización y Soluciones Industriales
   =================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #266586;
  --primary-dark: #1a4a63;
  --primary-light: #3a8ab5;
  --primary-rgb: 38, 101, 134;
  --accent: #00d4ff;
  --accent-rgb: 0, 212, 255;
  --white: #ffffff;
  --bg-light: #F5F7FA;
  --bg-dark: #0a1628;
  --text-dark: #2D3748;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
  --transition-slow: .6s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(var(--primary-rgb), .08);
  border-radius: 30px;
}

.section-label svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), .5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px);
}

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

.btn-dark {
  background: var(--text-dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), .4);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(.9);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 32px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 30px rgba(0,0,0,.08);
  padding: 18px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  transition: all var(--transition);
  z-index: 1001;
}

@media (min-width: 992px) {
  .navbar .nav-logo {
    margin-left: 80px;
  }
}

.navbar.scrolled .nav-logo {
  color: var(--text-dark);
}

.nav-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}

.nav-logo .logo-img {
  width: auto;
  height: 120px;
  object-fit: contain;
  transition: height var(--transition);
}

.navbar.scrolled .nav-logo .logo-img {
  height: 80px;
}

.footer-brand .nav-logo .logo-img {
  height: 130px;
}

@media (min-width: 992px) and (max-width: 1300px) {
  .navbar .nav-logo {
    margin-left: 20px;
  }
  .nav-logo .logo-img {
    height: 80px;
  }
  .navbar.scrolled .nav-logo .logo-img {
    height: 60px;
  }
  .nav-links {
    gap: 20px;
  }
}

.nav-logo .logo-text span {
  color: var(--primary-light);
}

.navbar.scrolled .nav-logo .logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  position: relative;
  padding: 4px 0;
}

.navbar.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}

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

.nav-links a:hover {
  color: var(--white);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 13px 30px !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 1.02rem !important;
}

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

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), .4);
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text-dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, .92) 0%,
    rgba(var(--primary-rgb), .7) 50%,
    rgba(10, 22, 40, .85) 100%
  );
}

/* Animated grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(var(--accent-rgb), .4);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: 30px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: fadeInUp .8s ease forwards;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); }
  50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  max-width: 780px;
  margin-bottom: 24px;
  animation: fadeInUp .8s ease .2s forwards;
  opacity: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp .8s ease .4s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease .6s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  animation: fadeInUp .8s ease .8s forwards;
  opacity: 0;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp .8s ease 1s forwards;
  opacity: 0;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 14px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 3px;
  animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), .4);
  border: 5px solid var(--white);
}

.about-experience-badge .number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge .text {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.3;
  margin-top: 4px;
}

.about-content .section-label {
  display: inline-flex;
}

.about-content .section-title {
  text-align: left;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.about-feature:hover {
  background: rgba(var(--primary-rgb), .08);
  transform: translateX(4px);
}

.about-feature .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.about-feature .icon svg {
  width: 18px;
  height: 18px;
}

.about-feature span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), .1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--primary-rgb), .08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scale(1.1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  transition: color var(--transition);
}

.service-card:hover .service-icon svg {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.service-card:hover .learn-more {
  opacity: 1;
  transform: translateY(0);
}

.learn-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-card:hover .learn-more svg {
  transform: translateX(4px);
}

/* ---------- WHY CHOOSE US ---------- */
.why-us {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), .15), transparent 70%);
  border-radius: 50%;
}

.why-us::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .08), transparent 70%);
  border-radius: 50%;
}

.why-us .section-title {
  color: var(--white);
}

.why-us .section-desc {
  color: rgba(255,255,255,.6);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(var(--accent-rgb), .3);
  transform: translateY(-6px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(var(--accent-rgb), .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .accent {
  color: var(--accent);
}

.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* ---------- SECTORS ---------- */
.sectors {
  background: var(--white);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sector-card {
  position: relative;
  padding: 36px 24px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: all var(--transition);
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.sector-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(var(--primary-rgb), .1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.sector-card:hover .sector-icon {
  background: rgba(255,255,255,.2);
}

.sector-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  transition: color var(--transition);
}

.sector-card:hover .sector-icon svg {
  color: var(--white);
}

.sector-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
  transition: color var(--transition);
}

.sector-card:hover h3 {
  color: var(--white);
}

/* ---------- PROJECTS ---------- */
.projects {
  background: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: all var(--transition);
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(var(--primary-rgb), .95) 0%, rgba(var(--primary-rgb), .3) 100%);
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(var(--accent-rgb), .2);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 10px;
  width: fit-content;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.project-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.project-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- PROCESS ---------- */
.process {
  background: var(--white);
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 20px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), .3);
  transition: all var(--transition);
}

.process-step:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), .5);
}

.process-step h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.process-step p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), .2);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--primary);
  opacity: .2;
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: #f59e0b;
  fill: #f59e0b;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-info span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  background: var(--bg-light);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: .95rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  margin-top: 24px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
}

.contact-info {
  padding-top: 16px;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-item:hover {
  background: rgba(var(--primary-rgb), .06);
  transform: translateX(6px);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: .9rem;
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--primary);
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 550px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  font-size: .95rem;
  line-height: 1.8;
  margin-top: 20px;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,.6);
}

.footer-social a:hover svg {
  color: var(--white);
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul a {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
}

.footer-column ul a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-size: .85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sectors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 85px;
  }
  
  .section-padding {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }
  
  /* Navbar mobile */
  .navbar {
    padding: 18px 0;
  }
  .navbar.scrolled {
    padding: 12px 0;
  }
  .nav-logo .logo-img,
  .nav-logo .logo-icon {
    width: 46px;
    height: 46px;
  }
  .nav-logo {
    font-size: 1.4rem;
  }
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--text-dark) !important;
    font-size: 1.1rem;
  }
  
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
  }
  
  .nav-overlay.active {
    display: block;
  }
  
  /* Hero mobile */
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .hero-stat {
    flex: 1 1 40%;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  /* About mobile */
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-experience-badge {
    bottom: -15px;
    right: auto;
    left: 20px;
    width: 110px;
    height: 110px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Stats mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Sectors mobile */
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Projects mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card img {
    height: 220px;
  }
  
  /* Process mobile */
  .process-timeline {
    flex-direction: column;
    gap: 32px;
  }
  
  .process-timeline::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 3px;
    height: auto;
  }
  
  .process-step {
    text-align: left;
    padding-left: 72px;
  }
  
  .step-number {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
  
  /* Testimonials mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 28px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  transform: scale(.9);
  transition: transform var(--transition);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,.2);
  transform: rotate(90deg);
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

/* ===================================================
   SYM TECHNOLOGY - Multi-page Conversion Styles
   =================================================== */

/* ---------- SUBPAGE HERO ---------- */
.hero-subpage {
  min-height: 40vh;
  height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-subpage .hero-content {
  padding-top: 120px;
  text-align: center;
  width: 100%;
}

.hero-subpage .hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 12px;
  margin-inline: auto;
  color: var(--white);
}

.hero-subpage .breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-subpage .breadcrumbs a {
  color: var(--accent);
  transition: color var(--transition);
}

.hero-subpage .breadcrumbs a:hover {
  color: var(--white);
}

.hero-subpage .breadcrumbs span {
  color: rgba(255, 255, 255, 0.3);
}

.hero-subpage .breadcrumbs .current {
  color: var(--white);
}

/* ---------- TEAM SECTION (EMPRESA) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.15);
}

.team-img {
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.team-img.placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

.team-info {
  padding: 24px 20px 28px;
}

.team-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.team-card .role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SERVICES EXPANDED DETAIL (SERVICIOS) ---------- */
.service-detail-section {
  background: var(--white);
}

.service-detail-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-detail-block:nth-child(even) {
  direction: rtl;
}

.service-detail-block:nth-child(even) .service-detail-content {
  direction: ltr; /* Reset text direction */
}

.service-detail-visual {
  position: relative;
}

.service-detail-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.service-detail-image-wrapper img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-detail-image-wrapper:hover img {
  transform: scale(1.04);
}

.service-detail-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.service-detail-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-detail-list-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.service-detail-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.service-detail-feature svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  min-width: 16px;
}

@media (max-width: 991px) {
  .service-detail-block {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }
  
  .service-detail-block:nth-child(even) {
    direction: ltr;
  }
  
  .service-detail-image-wrapper img {
    height: 260px;
  }
  
  .service-detail-features {
    grid-template-columns: 1fr;
  }
}

/* ---------- PORTFOLIO FILTERS (PROYECTOS) ---------- */
.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
  transform: translateY(-1px);
}

.project-card.hide {
  display: none !important;
}

/* ---------- MAP CONTAINER (CONTACTO) ---------- */
.map-container {
  margin-top: 36px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 380px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- INVERTED PYRAMID GRID ---------- */
@media (min-width: 992px) {
  .grid-pyramid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 28px !important;
  }
  
  .grid-pyramid > .service-card {
    flex: 0 0 calc(25% - 21px) !important;
    max-width: calc(25% - 21px) !important;
  }
  
  .grid-pyramid.sectors-grid {
    gap: 24px !important;
    margin-top: 48px !important;
  }
  
  .grid-pyramid > .sector-card {
    flex: 0 0 calc(25% - 18px) !important;
    max-width: calc(25% - 18px) !important;
  }
}

