:root {
  --primary-color: #1a237e;
  --secondary-color: #ffd700;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --dark-gray: #4a4a4a;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.main-header {
  background: linear-gradient(rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.9)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a237e"/></svg>');
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(26, 35, 126, 0.95);
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.cta-button, .primary-cta {
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
}

.primary-cta {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 5px;
  font-weight: 600;
}

.cta-button:hover, .primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:active, .primary-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section {
  text-align: center;
  padding: 200px 5% 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
  background: var(--light-gray);
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
}

.services-section {
  padding: 4rem 5%;
}

.services-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.service-card {
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-chart {
  height: 200px;
  margin-top: 1rem;
}

.cases-section {
  padding: 4rem 5%;
  background: var(--light-gray);
}

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

.case-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.case-chart {
  height: 250px;
  margin-bottom: 1rem;
}

.contact-section {
  padding: 4rem 5%;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.submit-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-footer {
  background: var(--primary-color);
  color: white;
  padding: 4rem 5% 2rem;
}

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

.footer-section a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-button i {
  font-size: 2rem;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  color: var(--text-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.whatsapp-button:hover .whatsapp-tooltip {
  opacity: 1;
}

.process-optimization {
  margin: 6rem auto;
  padding: 4rem;
  background: linear-gradient(to bottom, var(--light-gray) 0%, white 100%);
  border-radius: 15px;
  max-width: 1400px;
}

.process-intro {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 4rem;
  color: var(--dark-gray);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.process-flow {
  margin: 5rem 0;
  position: relative;
}

.flow-diagram {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.flow-path {
  stroke: var(--primary-color);
  stroke-width: 3;
  stroke-dasharray: 8;
  animation: flowAnimation 30s linear infinite;
}

@keyframes flowAnimation {
  to {
    stroke-dashoffset: -100;
  }
}

.step-circle {
  fill: white;
  stroke: var(--primary-color);
  stroke-width: 3;
  transition: all 0.3s ease;
}

.process-step:hover .step-circle {
  fill: var(--primary-color);
}

.process-step:hover .step-text {
  fill: white;
}

.step-text {
  text-anchor: middle;
  font-size: 16px;
  fill: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.optimization-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.area-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.area-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: var(--light-gray);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.area-card p {
  color: var(--dark-gray);
  line-height: 1.7;
}

.methodology {
  text-align: center;
  margin: 5rem 0 2rem;
  padding: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.methodology h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

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

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4rem;
  box-shadow: 0 5px 15px rgba(26, 35, 126, 0.2);
}

.step p {
  color: var(--dark-gray);
  line-height: 1.6;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .whatsapp-button i {
    font-size: 1.7rem;
  }
  
  .process-optimization {
    padding: 2rem;
    margin: 3rem auto;
  }
  
  .area-card {
    padding: 2rem;
  }
  
  .methodology {
    padding: 2rem;
  }
  
  .methodology-steps {
    gap: 2rem;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
}