/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
:root {
  --color-deep-blue: #001F3F;
  --color-steel-blue: #4682B4;
  --color-industrial-light: #87CEEB;
  --color-accent-red: #E63946;
  --color-graphite: #2F3032;
  --color-black: #0A0A0A;
  --color-white: #FFFFFF;
  --color-text-muted: #A0AAB2;
  
  --font-primary: 'Space Grotesk', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis takes over */
}

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-accent-red);
  color: var(--color-white);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-industrial-light), var(--color-steel-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-steel-blue);
  margin-bottom: 1rem;
}

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.jpg'); /* Actualizar con imagen real */
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,1) 100%);
  z-index: 2;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--color-steel-blue) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-accent-red);
  color: var(--color-white);
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-primary:hover::before {
  top: 0;
}

.btn-primary span {
  position: relative;
  z-index: 2;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-steel-blue);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background-color: rgba(70, 130, 180, 0.1);
}

/* ==========================================================================
   SERVICES (MAGNETIC CARDS)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.service-card {
  background-color: rgba(47, 48, 50, 0.3);
  border: 1px solid rgba(70, 130, 180, 0.2);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  border-color: rgba(70, 130, 180, 0.5);
}

/* Glow effect handled by JS */
.service-card .glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(70, 130, 180, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.service-card:hover .glow {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  border: 1px solid rgba(70, 130, 180, 0.3);
  color: var(--color-industrial-light);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  color: var(--color-accent-red);
  border-color: rgba(230, 57, 70, 0.5);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--color-industrial-light);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--color-accent-red);
  transition: var(--transition-smooth);
}

.service-card:hover::after {
  width: 100%;
}