:root {
  /* Colors based on 2JN Logo */
  --primary-color: #0b395b; /* Deep Blue from the 2 */
  --primary-light: #16588a;
  --secondary-color: #ff7800; /* Orange from the plug/lightning */
  --secondary-hover: #e06900;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #666666;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --accent-grey: #6b7280; /* Grey from the N */
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout & Spacing */
  --max-width: 1200px;
  --header-height: 100px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

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

/* Typography Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}
.section-bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.section-bg-dark .section-title {
  color: var(--text-light);
}
.section-bg-dark .section-subtitle {
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: 50px;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  box-shadow: 0 4px 14px 0 rgba(255, 120, 0, 0.39);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 120, 0, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  gap: 0.5rem;
}
.logo img {
  height: 80px;
  mix-blend-mode: multiply;
}
.footer-logo {
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--secondary-color);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-normal);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,120,0,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11,57,91,0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.hero-content h1 span {
  color: var(--secondary-color);
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
}
.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition-normal);
}
.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Features (Propuesta de Valor) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border-top: 4px solid transparent;
}
.feature-card:hover {
  transform: translateY(-10px);
  border-top-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 120, 0, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}
.feature-card:hover .feature-icon {
  background: var(--secondary-color);
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Clients Banner */
.clients-banner {
  background: var(--bg-white);
  padding: 3rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.clients-banner p {
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
}
.clients-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: var(--transition-normal);
}
.clients-grid:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.client-logo {
  height: 60px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: var(--transition-fast);
}
.client-logo:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: #0A395C;
  color: var(--text-light);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
  display: block;
  transition: var(--transition-fast);
}
.footer-col a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 1;
  }
  .hero-image {
    order: 2;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition-normal);
  }
  .nav-links.active {
    left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .clients-grid {
    gap: 2rem;
  }
}

/* Services Page Specific */
.services-hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  background: var(--bg-dark);
  color: white;
  text-align: center;
}
.services-hero .section-subtitle {
  color: var(--secondary-color);
}
.services-hero h1 {
  color: white;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}
.service-item {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}
.service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.service-header {
  background: var(--primary-color);
  color: white;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.service-header i {
  font-size: 2.5rem;
  color: var(--secondary-color);
}
.service-body {
  padding: 2rem;
}
.service-body ul {
  margin-top: 1rem;
}
.service-body ul li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-body ul li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
}

/* Projects Page Specific */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,57,91,0.9), rgba(11,57,91,0.2));
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.project-card:hover img {
  transform: scale(1.1);
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: var(--transition-normal);
}
.project-overlay p {
  color: rgba(255,255,255,0.8);
  transform: translateY(20px);
  transition: var(--transition-normal);
  transition-delay: 0.1s;
}
.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay p {
  transform: translateY(0);
}

/* Contact Page Specific */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-info {
  background: var(--primary-color);
  color: white;
  padding: 4rem;
}
.contact-info h2 {
  color: white;
  margin-bottom: 2rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 50%;
}
.contact-form-container {
  padding: 4rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11,57,91,0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
