/* Reset y Variables */
:root {
  --neon-red: #ff0040;
  --neon-red-hover: #ff1a5c;
  --neon-red-glow: rgba(255, 0, 64, 0.5);
  --anthracite: #1a1a1a;
  --anthracite-light: #2a2a2a;
  --anthracite-lighter: #3a3a3a;
  --white: #ffffff;
  --white-alpha: rgba(255, 255, 255, 0.9);
  --gray-light: #666666;
  --gray-lighter: #999999;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(255, 0, 64, 0.3);

  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  --border-radius: 8px;
  --border-radius-large: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--anthracite);
  color: var(--white-alpha);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  font-size: 1.1rem;
  color: var(--gray-lighter);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

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

.logo-image {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--neon-red-glow));
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red-glow);
}

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

.nav-link {
  color: var(--white-alpha);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

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

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: var(--neon-red);
  color: var(--white);
  box-shadow: 0 4px 15px var(--neon-red-glow);
}

.cta-button.secondary {
  background: transparent;
  color: var(--white-alpha);
  border: 1px solid var(--glass-border);
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button.primary:hover {
  background: var(--neon-red-hover);
  box-shadow: 0 8px 25px var(--neon-red-glow);
}

.cta-button.secondary:hover {
  background: var(--glass-bg);
  border-color: var(--neon-red);
  color: var(--neon-red);
}

.glow-effect {
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { box-shadow: 0 4px 15px var(--neon-red-glow); }
  to { box-shadow: 0 4px 20px rgba(255, 0, 64, 0.8); }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white-alpha);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-highlight {
  color: var(--neon-red);
  text-shadow: 0 0 20px var(--neon-red-glow);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-lighter);
}

.social-proof {
  display: block;
  margin-top: 1rem;
  color: var(--neon-red);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-hero-container {
  position: relative;
}

.hero-logo {
  height: 300px;
  width: auto;
  filter: drop-shadow(0 0 30px var(--neon-red-glow));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.circuit-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
  opacity: 0.6;
  animation: circuit-flow 3s linear infinite;
}

.circuit-line.line-1 {
  top: 20%;
  left: -100%;
  width: 100%;
  height: 1px;
  animation-delay: 0s;
}

.circuit-line.line-2 {
  top: 50%;
  left: -100%;
  width: 100%;
  height: 1px;
  animation-delay: 1s;
}

.circuit-line.line-3 {
  top: 80%;
  left: -100%;
  width: 100%;
  height: 1px;
  animation-delay: 2s;
}

@keyframes circuit-flow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 0, 64, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 0, 64, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 64, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: grid-move 20s linear infinite;
  pointer-events: none;
}

@keyframes grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

/* Sections */
section {
  padding: 80px 0;
}

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

.section-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-lighter);
  max-width: 600px;
  margin: 0 auto;
}

/* Valor Section */
.valor {
  background: var(--anthracite-light);
}

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

.valor-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.valor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 64, 0.1), transparent);
  transition: var(--transition-slow);
}

.valor-card:hover::before {
  left: 100%;
}

.valor-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-red);
  box-shadow: var(--shadow-glow);
}

.valor-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 0, 64, 0.1);
  border: 1px solid rgba(255, 0, 64, 0.3);
}

.valor-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

/* Casos Section */
.casos {
  background: var(--anthracite);
}

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

.caso-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  transition: var(--transition);
}

.caso-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-red);
  box-shadow: var(--shadow-glow);
}

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

.logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  background: var(--anthracite-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.caso-meta h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.caso-industry {
  color: var(--neon-red);
  font-size: 0.9rem;
  font-weight: 500;
}

.caso-description {
  color: var(--gray-lighter);
  margin-bottom: 1.5rem;
}

.caso-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-red);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--gray-lighter);
}

/* Proceso Section */
.proceso {
  background: var(--anthracite-light);
}

.proceso-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.proceso-step {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  text-align: center;
  position: relative;
  min-width: 200px;
  max-width: 250px;
  flex: 1;
  transition: var(--transition);
}

.proceso-step:hover {
  transform: translateY(-5px);
  border-color: var(--neon-red);
  box-shadow: var(--shadow-glow);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--neon-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px var(--neon-red-glow);
}

.proceso-step h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.step-duration {
  color: var(--neon-red);
  font-weight: 600;
  margin-top: 1rem;
}

.proceso-connector {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.connector-line {
  width: 50px;
  height: 2px;
  background: var(--glass-border);
  position: relative;
  overflow: hidden;
}

.connector-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
  animation: connector-flow 2s linear infinite;
}

@keyframes connector-flow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.connector-arrow {
  color: var(--neon-red);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Tech Stack Section */
.tech-stack {
  background: var(--anthracite);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}

.tech-category h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tech-chip {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-lighter);
  transition: var(--transition);
}

.tech-chip:hover {
  background: var(--neon-red);
  color: var(--white);
  border-color: var(--neon-red);
  transform: scale(1.05);
}

/* Equipo Section */
.equipo {
  background: var(--anthracite-light);
}

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

.equipo-member {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.equipo-member:hover {
  transform: translateY(-5px);
  border-color: var(--neon-red);
  box-shadow: var(--shadow-glow);
}

.member-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--neon-red);
  box-shadow: 0 0 20px var(--neon-red-glow);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--anthracite-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.equipo-member h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--neon-red);
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-desc {
  color: var(--gray-lighter);
  font-size: 0.95rem;
}

.certificaciones {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.certificacion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-lighter);
  transition: var(--transition);
}

.certificacion:hover {
  background: var(--neon-red);
  color: var(--white);
  border-color: var(--neon-red);
}

/* Testimonios Section */
.testimonios {
  background: var(--anthracite);
}

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

.testimonio-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  transition: var(--transition);
}

.testimonio-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-red);
  box-shadow: var(--shadow-glow);
}

.testimonio-quote {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--neon-red);
}

.avatar-placeholder-small {
  width: 100%;
  height: 100%;
  background: var(--anthracite-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.9rem;
  color: var(--gray-lighter);
}

/* FAQ Section */
.faq {
  background: var(--anthracite-light);
}

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

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-5px);
  border-color: var(--neon-red);
  box-shadow: var(--shadow-glow);
}

.faq-item h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

/* CTA Final Section */
.cta-final {
  background: var(--anthracite);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 64, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--gray-lighter);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-button.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.cta-benefits {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-lighter);
}

.benefit-icon {
  color: var(--neon-red);
  font-weight: bold;
}

/* Footer */
.footer {
  background: var(--anthracite-lighter);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--neon-red-glow));
}

.footer-tagline {
  color: var(--gray-lighter);
  font-style: italic;
}


.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .valor-grid,
  .tech-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-logo {
    height: 200px;
  }

  .proceso-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .proceso-step {
    min-width: 200px;
    flex: 1;
  }

  .proceso-connector {
    display: none;
  }

  .connector-line {
    width: 2px;
    height: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }


  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .certificaciones {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-content {
    padding: 0 15px;
  }

  .hero-content {
    padding: 100px 15px 60px;
  }

  .valor-grid,
  .casos-grid,
  .testimonios-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .tech-categories {
    grid-template-columns: 1fr;
  }

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


  .caso-metrics {
    grid-template-columns: 1fr;
  }

  .cta-benefits {
    flex-direction: column;
    align-items: center;
  }
}

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

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--anthracite-light);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-red), var(--neon-red-hover));
  border-radius: 6px;
  border: 2px solid var(--anthracite-light);
  box-shadow: inset 0 0 5px rgba(255, 0, 64, 0.3);
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-red-hover), var(--neon-red));
  box-shadow: inset 0 0 8px rgba(255, 0, 64, 0.5);
}

::-webkit-scrollbar-corner {
  background: var(--anthracite-light);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--neon-red) var(--anthracite-light);
}
