/* Variables CSS */
:root {
  --color-background: hsl(220, 14%, 16%);
  --color-foreground: hsl(0, 0%, 98%);
  --color-muted: hsl(220, 14%, 20%);
  --color-muted-foreground: hsl(220, 5%, 64%);
  --color-card: hsl(220, 16%, 22%);
  --color-border: hsl(220, 13%, 26%);
  --color-teal: hsl(174, 64%, 27%);
  --color-teal-light: hsl(174, 100%, 35%);
  --color-purple: hsl(258, 70%, 50%);
  --color-purple-light: hsl(258, 90%, 66%);
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fondo animado */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.animated-background::before,
.animated-background::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
  opacity: 0.6;
  animation: float1 8s ease-in-out infinite;
}

.animated-background::before {
  top: 20%;
  left: 10%;
  width: 4px;
  height: 4px;
  background: var(--color-purple);
  animation: float2 12s ease-in-out infinite;
}

.animated-background::after {
  top: 60%;
  right: 15%;
  width: 12px;
  height: 12px;
  animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-30px) translateX(20px); }
  66% { transform: translateY(20px) translateX(-15px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-50px) translateX(30px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(25px) translateX(-20px); }
  75% { transform: translateY(-25px) translateX(25px); }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-icon {
  /* Sin animación para el logo del menú */
}

.logo-square {
  background: linear-gradient(135deg, hsl(174,100%,35%), hsl(258,90%,66%));
  border-radius: 0.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-icon {
  animation: spinSlow 30s linear infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
}

.logo-background-small {
  position: absolute;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, hsl(174,100%,35%) 0%, hsl(258,90%,66%) 100%);
  border-radius: 0.5rem;
}

.gear-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.brain-icon-large {
  position: relative;
  z-index: 10;
  color: white;
}

/* Navegación */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.375rem 1.5rem;
  background: transparent;
  backdrop-filter: none;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(45, 55, 72, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-purple-light));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon.small {
  width: 2rem;
  height: 2rem;
}

.brain-icon {
  width: calc(100% - 0.25rem);
  height: calc(100% - 0.25rem);
  color: white;
  padding: 0.125rem;
}

.brain-icon-large {
  width: 3rem;
  height: 3rem;
  color: white;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-slogan {
  font-size: 0.75rem;
  color: var(--color-teal-light);
  font-weight: 600;
}

.language-selector select {
  background: var(--color-card);
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  padding: 0.5rem;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 10;
  padding: 5.5rem 1.5rem 5rem;
  text-align: center;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-text {
  overflow: visible;
  min-height: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-icon {
  width: 6rem;
  height: 6rem;
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-purple-light));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  padding: 0.5rem 0;
  overflow: visible;
}

.hero-slogan {
  font-size: 1.25rem;
  color: var(--color-teal-light);
  font-weight: 600;
  margin-top: 2.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Botones */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--color-teal-light);
  color: white;
}

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

.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border: 2px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-purple-light));
  padding: 2px;
  border-radius: 0.5rem;
  z-index: -1;
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--color-background);
  border-radius: calc(0.5rem - 2px);
  z-index: -1;
}

.btn-full {
  width: 100%;
}

/* Container general */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Secciones */
section {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-content {
  flex: 1;
}

.service-card.teal .service-icon {
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-purple-light));
}

.service-card.purple .service-icon {
  background: linear-gradient(135deg, var(--color-purple-light), var(--color-teal-light));
}

.service-icon svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.service-card.teal h3 {
  color: var(--color-teal-light);
}

.service-card.purple h3 {
  color: var(--color-purple-light);
}

.service-card p {
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  color: var(--color-muted-foreground);
}

.service-card li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.service-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 0.75rem;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-purple-light));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.purple {
  background: linear-gradient(135deg, var(--color-purple-light), var(--color-teal-light));
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.contact-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--color-muted-foreground);
}

/* Formulario */
.contact-form {
  background: var(--color-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  color: var(--color-foreground);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal-light);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo h4 {
  font-size: 1rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--color-muted-foreground);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-teal-light);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-slogan {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Particles adicionales con CSS puro */
.animated-background {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--color-teal), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--color-purple), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--color-teal-light), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--color-purple-light), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--color-teal), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

