:root {
  --primary: #FF6B00;
  --primary-dark: #E55A00;
  --primary-light: #FFF0E6;
  --text-main: #333333;
  --text-light: #666666;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.text-primary {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 20px 0;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  font-size: 1rem;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.lang-toggle {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, rgba(255, 240, 230, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Tech Background Animation */
.tech-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#tech-canvas {
  width: 100%;
  height: 100%;
}

.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tech-orbit-1 {
  width: 400px;
  height: 400px;
  border-style: dashed;
  animation: spinRight 60s linear infinite;
}

.tech-orbit-2 {
  width: 600px;
  height: 600px;
  border-color: rgba(255, 107, 0, 0.05);
}

.tech-orbit-3 {
  width: 800px;
  height: 800px;
  border-style: dotted;
  animation: spinLeft 80s linear infinite;
}

.tech-node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--primary);
}

@keyframes spinRight {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spinLeft {
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Services */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 0, 0.2);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Clients */
.clients-section {
  padding: 60px 0;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}

.clients-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #888;
  font-weight: 500;
}

/* CSS para Swiper en Clientes */
.clients-swiper {
  width: 100%;
  padding-bottom: 40px;
  /* Espacio para la paginación */
}

.swiper-wrapper.align-items-center {
  align-items: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-item {
  max-width: 300px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.5s ease;
  filter: grayscale(100%);
  opacity: 0.4;
  transform: scale(0.9);
}

.swiper-slide-active .client-item,
.swiper-slide-duplicate-active .client-item {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.client-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.client-item:hover {
  color: var(--primary);
  filter: grayscale(0%);
  opacity: 1;
}

/* About & Stats */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.value-item i {
  color: var(--primary);
}

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

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Team */
.founder-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 350px 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.founder-image {
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-info {
  padding: 40px;
}

.founder-header {
  margin-bottom: 20px;
}

.founder-name {
  font-size: 1.75rem;
  margin-bottom: 5px;
}

.founder-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.founder-bio {
  color: var(--text-light);
  margin-bottom: 24px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.skill-tag {
  background-color: #f0f0f0;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--primary-light);
  font-size: 3rem;
}

.testimonial-text {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Process */
/* Process Interactive */
.process-interactive {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.process-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-nav-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.process-nav-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-sm);
}

.process-nav-item.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}

.process-nav-item.active h4 {
  color: var(--white);
}

.nav-number {
  font-size: 1.5rem;
  font-weight: 800;
  opacity: 0.3;
}

.process-nav-item.active .nav-number {
  opacity: 1;
}

.nav-info h4 {
  font-size: 1.1rem;
  margin: 0;
  transition: var(--transition);
}

.process-display {
  flex: 1.5;
  position: relative;
  min-height: 400px;
}

.process-content-card {
  background: var(--white);
  padding: 60px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-content-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

.process-icon-lg {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.process-content-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.process-content-card p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.step-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background: #f0f0f0;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .process-interactive {
    flex-direction: column;
  }

  .process-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .process-nav-item {
    min-width: 200px;
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .process-display {
    width: 100%;
    min-height: auto;
  }

  .process-content-card {
    position: relative;
    height: auto;
    opacity: 1;
    visibility: visible;
    display: none;
    /* Use display logic for mobile simplicity if needed, but transition is better */
    transform: none;
  }

  .process-content-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form-container {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  display: inline-block;
}

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

.footer-text {
  color: #aaa;
  max-width: 300px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #aaa;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-image {
    height: 300px;
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-line {
    display: none;
  }

  .process-step {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .step-circle {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 40px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}