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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  color: #1a1a1a;
  background: #f8f9fa;
  overflow-x: hidden;
}

/* Hero Section con fondo de grafos */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
              url('/images/grafos.webp') center/cover;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 1200px;
  padding: 40px 20px;
}

.logo {
  width: 360px;
  margin-bottom: 40px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.hero h1 {
  font-size: 3.5em;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.hero-tagline {
  font-size: 1.4em;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* Canvas para grafo dinámico */
#graphCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

/* Canvas de fondo para otras secciones */
.background-graph {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Sección de introducción */
.intro-section {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 249, 250, 0.97) 100%),
              url('/images/grafos.webp') center/cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 20px;
}

.intro-image-container {
  margin: 40px auto;
  max-width: 900px;
}

.intro-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
  max-height: 600px;
  object-fit: contain;
}

.intro-section h2 {
  font-size: 2.5em;
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 30px;
}

.intro-section p {
  font-size: 1.1em;
  color: #4a4a4a;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.intro-subtitle {
  font-size: 1.15em;
  color: #4a4a4a;
  margin-bottom: 25px;
}

.intro-highlight {
  font-size: 1.3em;
  font-weight: 500;
  color: #667eea;
  margin: 30px auto;
  line-height: 1.6;
}

.intro-description {
  font-size: 1.1em;
  color: #4a4a4a;
  margin-top: 30px;
}

/* Proceso steps con imágenes */
.process-section {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(230, 235, 240, 0.95) 100%),
              url('/images/grafos.webp') center/cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
}

.section-title {
  font-size: 2.5em;
  font-weight: 300;
  text-align: center;
  margin-bottom: 40px;
  color: #1a1a1a;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 20px;
}

.process-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.process-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.process-card-content {
  padding: 30px;
}

.process-card h3 {
  font-size: 1.5em;
  font-weight: 500;
  color: #667eea;
  margin-bottom: 15px;
}

.process-card p {
  color: #4a4a4a;
  line-height: 1.6;
}

/* Tecnología avanzada */
.tech-section {
  position: relative;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
              url('/images/grafos.webp') center/cover;
  background-attachment: fixed;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 20px;
}

.tech-section h2 {
  font-size: 2.5em;
  font-weight: 300;
  margin-bottom: 20px;
}

.tech-section p {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 20px;
  opacity: 0.95;
}

.tech-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.tech-item {
  background: rgba(255,255,255,0.15);
  padding: 20px 35px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* Fórmulas flotantes desordenadas */
.formulas-scatter {
  position: relative;
  min-height: 400px;
  margin: 40px auto;
  max-width: 1100px;
  width: 100%;
}

.formula-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.15em;
  color: #1a1a1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  max-width: 90%;
}

.formula-float:hover {
  transform: scale(1.08) rotate(1deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Beneficios */
.benefits-section {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 249, 250, 0.97) 100%),
              url('/images/grafos.webp') center/cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
}

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

.benefit-card {
  background: rgba(248, 249, 250, 0.75);
  backdrop-filter: blur(8px);
  padding: 35px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.benefit-card:hover {
  background: rgba(248, 249, 250, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-card h3 {
  font-size: 1.4em;
  font-weight: 500;
  color: #667eea;
  margin-bottom: 20px;
}

.benefit-card ul {
  list-style: none;
  padding: 0;
}

.benefit-card li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #4a4a4a;
}

.benefit-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 1.2em;
}

/* Sectores */
.sectors-section {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.97) 0%, rgba(230, 235, 240, 0.97) 100%),
              url('/images/grafos.webp') center/cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.sector-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid #667eea;
}

.sector-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
}

.sector-card h3 {
  font-size: 1.8em;
  font-weight: 500;
  color: #667eea;
  margin-bottom: 20px;
}

.sector-intro {
  font-size: 1.1em;
  color: #4a4a4a;
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.6;
}

.sector-card ul {
  list-style: none;
  padding: 0;
}

.sector-card li {
  padding: 12px 0;
  padding-left: 35px;
  position: relative;
  color: #4a4a4a;
  line-height: 1.6;
  font-size: 1.05em;
}

.sector-card li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 1.4em;
}

/* CTA Final */
.cta-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
              url('/images/grafos.webp') center/cover;
  background-attachment: fixed;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.cta-section h2 {
  font-size: 2.5em;
  font-weight: 300;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.3em;
  margin-bottom: 15px;
}

.cta-tagline {
  font-size: 1.8em;
  font-weight: 500;
  margin-top: 40px;
  letter-spacing: 1px;
}

footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 40px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-contact {
  margin-bottom: 30px;
}

.footer-contact h3 {
  color: #667eea;
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 20px;
}

.phone-number,
.email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2em;
  color: white;
  margin: 10px 20px;
  font-weight: 500;
}

.phone-number svg,
.email svg {
  color: #667eea;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2em;
  }
  
  .hero-tagline {
    font-size: 1.1em;
  }

  .logo {
    width: 280px;
  }

  .section-title, .intro-section h2, .tech-section h2, .cta-section h2 {
    font-size: 2em;
  }

  .phone-number,
  .email {
    display: flex;
    margin: 15px auto;
    justify-content: center;
  }

  .formulas-scatter {
    min-height: 650px;
  }

  .formula-float {
    font-size: 0.85em;
    padding: 12px 18px;
    position: relative !important;
    display: block;
    margin: 15px auto;
    width: fit-content;
    max-width: 95%;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
}
