:root {
  --white: #FFFFFF;
  --black: #000000;
  --green: #00FF88;
  --gray: #6B6B6B;
  --border: #E5E5E5;
  --bg-light: #F8F8F8;
}

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

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  opacity: 0.5;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 60px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--black);
  text-decoration: none;
}

.logo span {
  color: var(--green);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--green);
}

.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--green);
  color: var(--black);
}

/* Hero */
#inicio {
  padding: 160px 60px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.9) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  z-index: -1;
}

.hero-tag {
  position: absolute;
  top: 60px;
  left: 60px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}

.hero-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 32px;
}

.hero-headline .accent {
  color: var(--green);
}

.outline-text-wrapper {
  position: relative;
  display: inline-block;
}

.hero-headline .outline {
  position: absolute;
  top: 0;
  left: 0;
  -webkit-text-stroke: 2px var(--black);
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  z-index: 1;
}

.hero-headline .inner-text {
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  z-index: 2;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 48px;
  max-width: 500px;
  font-family: 'Inter', sans-serif;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 80px;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  background: var(--green);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  padding: 16px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--black);
  transition: all 0.3s ease;
  display: inline-block;
  font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-badge {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  animation: rotate 20s linear infinite;
}

.hero-badge-side {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 100;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-badge-dot {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* Section labels */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
  font-family: 'Inter', sans-serif;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
}

/* Section titles */
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

/* Que hacemos */
#que-hacemos {
  padding: 120px 60px;
  text-align: center;
  background: var(--black);
  color: var(--white);
}

/* Stats */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 80px 60px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-number span {
  color: var(--green);
  font-size: 32px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
  max-width: 200px;
  font-family: 'Inter', sans-serif;
}

/* Services */
#servicios {
  padding: 120px 60px;
  background: var(--white);
}

.service-category {
  margin-bottom: 80px;
}

.service-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.service-category:last-child .services-grid {
  grid-template-columns: 1fr;
  max-width: 400px;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--gray);
  margin-bottom: 16px;
  opacity: 0.3;
}

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.service-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

.service-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  font-weight: 400;
}

/* About */
#sobre-mi {
  padding: 120px 60px;
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

.about-highlight {
  color: var(--green);
  font-weight: 600;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
}

.about-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--white);
}

.skill-row {
  margin-bottom: 24px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.skill-bar {
  background: rgba(255,255,255,0.1);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  background: var(--green);
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

/* Lo que logramos */
#lo-que-logramos {
  padding: 120px 60px;
  background: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.case-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.case-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.case-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

.case-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

.case-metrics {
  display: flex;
  gap: 32px;
}

.case-metric {
  text-align: center;
}

.case-metric-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

.case-metric-value span {
  color: var(--green);
}

.case-metric-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* Contact */
#contacto {
  padding: 120px 60px;
  text-align: center;
  position: relative;
  background: var(--black);
  color: var(--white);
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,136,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--white);
}

.contact-title span {
  color: var(--green);
}

.contact-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Inter', sans-serif;
}

.contact-email-box {
  display: inline-block;
  padding: 20px 40px;
  background: var(--green);
  border-radius: 12px;
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

.contact-email-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,255,136,0.3);
}

.contact-email {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--black);
  text-decoration: underline;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.contact-social a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.contact-social a:hover {
  color: var(--green);
}

/* Timeline */
#como-trabajamos {
  padding: 120px 60px;
  background: var(--bg-light);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 3px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,255,136,0.2);
}

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.timeline-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
}

.timeline-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}

/* Footer */
footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--black);
}

.footer-logo span {
  color: var(--green);
}

footer p {
  font-size: 12px;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav ul { display: none; }
  #inicio { padding: 120px 24px 60px; }
  .stats-bar { flex-direction: column; padding: 0 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 0; }
  #servicios, #que-hacemos, #casos, #contacto, #como-trabajamos, #lo-que-logramos { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card:first-child { grid-column: span 1; grid-template-columns: 1fr; }
  #sobre-mi { grid-template-columns: 1fr; padding: 80px 24px; }
  footer { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; }
  .hero-headline { font-size: 48px; }
  .section-title { font-size: 40px; }
  .contact-title { font-size: 40px; }
  
  /* Timeline responsive */
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 60px;
  }
  
  .timeline-icon {
    left: 30px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .timeline-content {
    width: 100%;
    padding: 24px;
  }
  
  .timeline-title {
    font-size: 20px;
  }
  
  .timeline-desc {
    font-size: 14px;
  }
  
  /* Hero responsive adjustments */
  .hero-headline .outline,
  .hero-headline .inner-text {
    font-size: 48px;
  }
  
  .hero-tag {
    top: 40px;
    left: 24px;
  }
  
  .hero-badge-side {
    display: none;
  }
  
  /* Contact responsive */
  .contact-email-box {
    padding: 16px 24px;
  }
  
  .contact-email {
    font-size: 18px;
  }
}