/* === RESET Y CONFIGURACIÓN GENERAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #6C2BD9;
  --color-bg: #0F0F14;
  --color-text: #FFFFFF;
  --font-main: 'Inter', sans-serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* === UTILIDADES === */
.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 0.75rem auto;
  border-radius: 2px;
}

.text {
  text-align: center;
  max-width: 700px;
  margin: 1.5rem auto;
  font-size: 1.1rem;
  color: #ccc;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(108, 43, 217, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--color-primary);
}

/* === HERO === */
.hero {
  padding-top: 120px;
  padding-bottom: 6rem;
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeInDown 1s forwards 0.2s;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeInDown 1s forwards 0.4s;
}

/* === BOTONES === */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--color-primary);
}

.btn:hover {
  background: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(108, 43, 217, 0.4);
}

.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
}

.btn-social {
  background: #3b5998;
  border-color: #3b5998;
}

.btn-email {
  background: #ea4335;
  border-color: #ea4335;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* === SERVICIOS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(30, 30, 40, 0.6);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card span {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* === PORTAFOLIO === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: rgba(30, 30, 40, 0.6);
  padding: 1.8rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.tech {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.8rem;
}

/* === PROCESO DE TRABAJO === */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.step {
  background: var(--color-primary);
  color: white;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(108, 43, 217, 0.3);
}

/* === FOOTER === */
.footer {
  background: rgba(5, 5, 10, 0.9);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(108, 43, 217, 0.2);
}

/* === ANIMACIONES === */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .nav-list {
    display: none; /* En Neocities sin JS, se omite menú móvil por simplicidad */
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 90%;
    text-align: center;
  }
}