/* =============== VARIABLES CSS =============== */
:root {
  --header-height: 3.5rem;
  /* ========== Colors ========== */
  --first-color: hsl(192, 100%, 50%);
  --first-color-lighten: hsl(192, 100%, 96%);
  --title-color: hsl(210, 30%, 15%);
  --text-color: hsl(210, 15%, 35%);
  --body-color: hsl(0, 0%, 100%);
  --shadow-color: hsla(210, 30%, 15%, 0.1);
  --accent-color: hsl(270, 70%, 60%);
  --gradient-bg: linear-gradient(135deg, hsl(192, 100%, 50%) 0%, hsl(270, 70%, 60%) 100%);
  
  /* ========== Font and typography ========== */
  --title-font: "Audiowide", sans-serif;
  --body-font: "Nova Square", sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  
  /* ========== Font weight ========== */
  --font-medium: 500;
  --font-semi-bold: 600;
  
  /* ========== z index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: radial-gradient(ellipse at bottom, hsl(210, 30%, 10%), hsl(210, 30%, 5%));
  color: var(--body-color);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 140, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 140, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  pointer-events: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* =============== REUSABLE CSS CLASSES =============== */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
}

/* =============== BACK BUTTON =============== */
.back-button-container {
  text-align: center;
  margin: 0;
  padding-bottom: 1rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 140, 255, 0.3);
  color: var(--body-color);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-bg);
  transition: left 0.4s ease;
  z-index: -1;
}

.back-button:hover::before {
  left: 0;
}

.back-button:hover {
  border-color: var(--first-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 140, 255, 0.3);
  color: white;
}

.back-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-3px);
}

/* Asegurar que el texto y contenido sean clickeables */
.back-button * {
  pointer-events: none; /* Los elementos internos no interfieren */
}

/* Estado activo para mejor feedback */
.back-button:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}
/* =============== HERO SECTION =============== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 6rem;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0rem;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-bg);
  border-radius: 50px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: 
    0 8px 25px rgba(0, 140, 255, 0.3),
    0 0 20px rgba(0, 140, 255, 0.2);
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  padding-top: 1rem;
  font-family: var(--title-font);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--body-color);
  text-shadow: 0 0 30px rgba(0, 140, 255, 0.3);
}

.gradient-text {
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 140, 255, 0.5));
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 3rem;
  font-weight: var(--font-medium);
  text-shadow: 0 0 20px rgba(0, 140, 255, 0.4);
}
/* =============== HERO SECTION =============== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 6rem;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0rem;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-bg);
  border-radius: 50px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: 
    0 8px 25px rgba(0, 140, 255, 0.3),
    0 0 20px rgba(0, 140, 255, 0.2);
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  padding-top: 1rem;
  font-family: var(--title-font);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--body-color);
  text-shadow: 0 0 30px rgba(0, 140, 255, 0.3);
}

.gradient-text {
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 140, 255, 0.5));
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 3rem;
  font-weight: var(--font-medium);
  text-shadow: 0 0 20px rgba(0, 140, 255, 0.4);
}

/* =============== HERO IMAGE =============== */
.hero-image-container {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 
    0 20px 50px rgba(0, 140, 255, 0.3),
    0 0 40px rgba(0, 140, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(0, 140, 255, 0.3);
  transition: all 0.4s ease;
  backdrop-filter: blur(15px);
  position: relative;
}

/* Efecto hover para la imagen */
.hero-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 30px 70px rgba(0, 140, 255, 0.4),
    0 0 60px rgba(0, 140, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: var(--first-color);
}

/* Efecto de brillo animado */
.hero-image::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: all 0.6s ease;
  border-radius: 20px;
}

.hero-image:hover::before {
  left: 100%;
}

/* =============== RESPONSIVE PARA HERO IMAGE =============== */
@media screen and (max-width: 768px) {
  .hero-image-container {
    margin: 1.5rem 0;
  }
  
  .hero-image {
    max-width: 350px;
    border-radius: 15px;
  }
  
  .hero-image:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

@media screen and (max-width: 480px) {
  .hero-image-container {
    margin: 1rem 0;
    padding: 0 1rem;
  }
  
  .hero-image {
    max-width: 280px;
    border-radius: 12px;
  }
}
/* =============== NEURAL NETWORK ANIMATION =============== */
.neural-network {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  z-index: 1;
  opacity: 0.3;
}

.node {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--first-color);
  border-radius: 50%;
  box-shadow: 
    0 0 20px var(--first-color),
    0 0 40px rgba(0, 140, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.node-1 { top: 20%; left: 10%; animation-delay: 0s; }
.node-2 { top: 10%; left: 50%; animation-delay: 0.5s; }
.node-3 { top: 30%; right: 10%; animation-delay: 1s; }
.node-4 { bottom: 30%; left: 20%; animation-delay: 1.5s; }
.node-5 { bottom: 20%; right: 30%; animation-delay: 2s; }

.connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--first-color), var(--accent-color));
  opacity: 0.6;
  animation: flow 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 140, 255, 0.5);
}

.connection-1 {
  top: 22%;
  left: 12%;
  width: 200px;
  transform: rotate(15deg);
}

.connection-2 {
  top: 12%;
  left: 52%;
  width: 150px;
  transform: rotate(-20deg);
}

.connection-3 {
  bottom: 32%;
  left: 22%;
  width: 180px;
  transform: rotate(10deg);
}

.connection-4 {
  bottom: 22%;
  right: 32%;
  width: 120px;
  transform: rotate(-15deg);
}

/* =============== ML SECTION =============== */
.ml-section {
  padding: 6rem 0;
  position: relative;
}

.ml-content {
  text-align: center;
}

.ml-header {
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--title-font);
  font-size: 2.5rem;
  color: var(--body-color);
  margin-top: -5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: 0 0 20px rgba(0, 140, 255, 0.3);
}

.ml-tagline {
  font-size: 1.5rem;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  text-shadow: 0 0 15px rgba(0, 140, 255, 0.4);
}

.ml-description {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.quote-container {
  position: relative;
  margin-top: 4rem;
}

.ai-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--first-color);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding: 2rem;
  background: rgba(0, 140, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(0, 140, 255, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 140, 255, 0.2),
    0 0 30px rgba(0, 140, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-quote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -1rem;
  left: 1rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px var(--accent-color);
}

/* =============== SERVICES GRID =============== */
.services-grid-section {
  padding: 6rem 0;
}

.services-title {
  font-family: var(--title-font);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--body-color);
  text-shadow: 0 0 20px rgba(0, 140, 255, 0.3);
}

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

.service-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 140, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(0, 140, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-15px);
  border-color: var(--first-color);
  box-shadow: 
    0 25px 50px rgba(0, 140, 255, 0.3),
    0 0 40px rgba(0, 140, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(0, 140, 255, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 
    0 10px 30px rgba(0, 140, 255, 0.4),
    0 0 20px rgba(0, 140, 255, 0.3);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 
    0 15px 40px rgba(0, 140, 255, 0.5),
    0 0 30px rgba(0, 140, 255, 0.4);
}

.service-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--body-color);
  font-weight: var(--font-semi-bold);
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* =============== BENEFITS SECTION =============== */
.benefits-section {
  padding: 6rem 0;
}

.benefits-title {
  font-family: var(--title-font);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--body-color);
  text-shadow: 0 0 20px rgba(0, 140, 255, 0.3);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 140, 255, 0.3);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.4s ease;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 140, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.benefit-item:hover {
  border-color: var(--accent-color);
  transform: translateX(15px);
  box-shadow: 
    0 20px 40px rgba(0, 140, 255, 0.3),
    0 0 30px rgba(0, 140, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(0, 140, 255, 0.08);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 
    0 8px 25px rgba(0, 140, 255, 0.3),
    0 0 15px rgba(0, 140, 255, 0.2);
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1);
  box-shadow: 
    0 12px 35px rgba(0, 140, 255, 0.4),
    0 0 25px rgba(0, 140, 255, 0.3);
}

.benefit-content h4 {
  font-size: 1.2rem;
  color: var(--body-color);
  margin-bottom: 0.5rem;
  font-weight: var(--font-semi-bold);
}

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

/* =============== TIMELINE SECTION =============== */
.timeline-section {
  padding: 6rem 0;
}

.timeline-title {
  font-family: var(--title-font);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--body-color);
  text-shadow: 0 0 20px rgba(0, 140, 255, 0.3);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-bg);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-end;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--first-color);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 
    0 0 20px var(--first-color),
    0 0 40px rgba(0, 140, 255, 0.3);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 140, 255, 0.3);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(0, 140, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 
    0 20px 45px rgba(0, 140, 255, 0.3),
    0 0 35px rgba(0, 140, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: var(--first-color);
}

.timeline-content h4 {
  font-size: 1.3rem;
  color: var(--body-color);
  margin-bottom: 0.5rem;
  font-weight: var(--font-semi-bold);
}

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

/* =============== CTA SECTION =============== */
.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--title-font);
  font-size: 2.5rem;
  color: var(--body-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 25px rgba(0, 140, 255, 0.3);
}

.cta-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 140, 255, 0.3);
  color: var(--body-color);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-bg);
  transition: left 0.4s ease;
  z-index: -1;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover {
  border-color: var(--first-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 140, 255, 0.3);
  color: white;
}

.cta-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(-3px);
}
/* =============== ANIMATIONS =============== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 20px var(--first-color), 0 0 40px rgba(0, 140, 255, 0.3);
  }
  50% { 
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--first-color), 0 0 60px rgba(0, 140, 255, 0.5);
  }
}

@keyframes flow {
  0%, 100% { 
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.3);
  }
  50% { 
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(0, 140, 255, 0.6);
  }
}

.fade-in-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.6s ease;
}

/* =============== RESPONSIVE =============== */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .neural-network {
    width: 300px;
    height: 200px;
  }
  
  .section-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item {
    justify-content: flex-start !important;
    padding-left: 3rem;
  }
  
  .timeline-content {
    width: calc(100% - 3rem);
  }
  
  .timeline-dot {
    left: 1rem;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
  }
  
  .benefit-item:hover {
    transform: translateY(-10px);
  }
  
  /* Ajuste para el botón de regresar en móvil */
  .back-button-container:first-child {
    position: relative;
    top: 1rem;
    left: 0;
    padding: 0 1.5rem;
  }
  
  .hero-content .back-button-container {
    margin-top: 1.5rem;
  }
}