:root {
  --primary-color: #3b82f6;
  --secondary-color: #60a5fa;
  --accent-color: #10b981;
  --background: #0f172a;
  --dark-bg: #0f172a;
  --text-color: rgba(255, 255, 255, 0.9);
  --light-text: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --spacing-unit: 1rem;
  --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 8px -1px rgb(0 0 0 / 0.5);
  --section-bg: rgba(255, 255, 255, 0.02);
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-text {
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: bold;
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  letter-spacing: -0.5px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
  }
  to {
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
  }
}

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

.nav-link {
  text-decoration: none;
  color: var(--light-text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.lang-switch {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  color: white;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content */
main {
  margin-top: 4rem;
}

section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section:nth-child(even):not(.contact) {
  background-color: var(--dark-bg);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  margin-top: 0;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 50%
  );
  z-index: 0;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 1rem;
  text-align: center;
}

.static-text {
  color: white;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: inherit;
  white-space: nowrap;
}

.dynamic-text {
  color: var(--accent-color);
  font-weight: 700;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 6s ease infinite;
  background-size: 200% auto;
  font-size: inherit;
  z-index: 2;
  white-space: nowrap;
  text-align: center;
  position: relative;
  padding-right: 4px;
  min-width: 300px;
}

.dynamic-text::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 2px;
  background-color: var(--primary-color);
  animation: blink 1s step-end infinite;
}

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

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  position: relative;
  z-index: 2;
  background: var(--dark-bg);
  padding: 1rem;
  border-radius: 1rem;
}

.hero-actions {
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.tech-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  padding: 0 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.tech-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.tech-icon:hover {
  transform: translateY(-5px);
  opacity: 1;
}

.tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Ajuste específico para el logo de AWS */
.tech-icon img[title="Amazon Web Services"] {
  width: 140%;
  height: auto;
  margin-left: -20%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: #10b981;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  z-index: 1;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}

.cta-button:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cta-button:hover::before {
  left: 100%;
}

.arrow-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

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

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-top: 1rem;
}

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

.service-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary-color);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tech-tags span {
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

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

/* Process Section */
.process {
  background: var(--dark-bg);
  color: white;
  margin: 6rem 0;
  padding: 6rem 2rem;
}

.process .section-header {
  color: white;
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.process .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.ai-first-banner {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(59, 130, 246, 0.1) 100%
  );
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 4rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.ai-first-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: rgba(16, 185, 129, 0.5);
}

.ai-icon {
  width: 4rem;
  height: 4rem;
  color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2) 0%,
    rgba(59, 130, 246, 0.2) 100%
  );
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  padding: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
  }
  100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  }
}

.ai-content {
  flex: 1;
}

.ai-content h3 {
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.ai-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.ai-content .tech-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ai-content .tech-tags span {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15) 0%,
    rgba(59, 130, 246, 0.15) 100%
  );
  color: var(--accent-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ai-content .tech-tags span:hover {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.25) 0%,
    rgba(59, 130, 246, 0.25) 100%
  );
  transform: translateY(-1px);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  width: 100%;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 4rem;
  bottom: -4rem;
  width: 2px;
  background: var(--primary-color);
  opacity: 0.3;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  padding: 0.75rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.step-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Contact Form */
.contact {
  background: var(--dark-bg);
  color: white;
  padding: 6rem 2rem;
}

.contact .section-header {
  color: white;
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.info-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.info-content p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
}

.submit-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.button-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.submit-button:hover .button-icon {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Typography */
h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  section {
    padding: 4rem 1rem;
  }

  .hero {
    padding: 6rem 1rem;
  }

  .hero-content {
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .tech-stack {
    gap: 2rem;
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .nav-links a:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero-title {
    flex-direction: column;
    gap: 1rem;
  }

  .static-text,
  .dynamic-text {
    width: 100%;
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .dynamic-text {
    min-width: unset;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .tech-stack {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .tech-icon {
    width: 32px;
    height: 32px;
  }

  .services-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .ai-first-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .ai-icon {
    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
  }

  .ai-content .tech-tags {
    justify-content: center;
  }
}
