:root {
  --primary-color: #4a90e2;
  --secondary-color: #f39c12;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --bg-color: #f4f7fa;
  --white: #ffffff;
  --gray: #6c757d;
  --dark-bg: #1a1a1a;
  --dark-text: #f4f4f4;
  --dark-card: #2c2c2c;
}

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

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.dark-mode {
  --text-color: var(--dark-text);
  --bg-color: var(--dark-bg);
  --white: var(--dark-card);
}

footer.dark-mode {
  --text-color: var(--dark-text);
  --bg-color: var(--dark-bg);
  --white: var(--dark-card);
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  display: flex;
  justify-content: center;
}

.header.hidden {
  transform: translateY(-100%);
}

.header .container {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  position: relative;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 80px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Estilos del botón de menú móvil */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--primary-color);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1rem;
}

.main-nav li {
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.separator {
  color: var(--gray);
  margin: 0 15px;
}

.phone-number {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.phone-number::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(74, 144, 226, 0.2);
  transition: left 0.3s ease;
}

.phone-number:hover::before {
  left: 0;
}

.phone-number i {
  margin-right: 8px;
  position: relative;
  z-index: 1;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-large {
  font-size: 1.1rem;
  padding: 12px 24px;
}

.btn-trial {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-trial:hover {
  background-color: #ff8c8c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, rgba(33, 147, 176, 0.9), rgba(109, 213, 237, 0.9)),
    url("img/grafico_funciones-removebg-preview.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  margin-top: 20px;
  background: linear-gradient(to right, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s ease forwards;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s ease forwards 0.2s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s ease forwards 0.4s;
}

.hero .btn-large {
  font-size: 1.2rem;
  padding: 15px 35px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.hero .btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border: none;
  color: white;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.hero .btn-large::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.hero .btn-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-large:hover::before {
  width: 300px;
  height: 300px;
}

/* Features Section */
.consultar {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}


.features {
  padding: 80px 0;
  background-color: var(--white);
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
}

.features h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--text-color);
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.feature-row.centered {
  justify-content: center;
}

.feature-card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover i {
  transform: scale(1.2);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-color);
}

/* Product Showcase */
.product-showcase {
  padding: 80px 0;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
}

.product-grid {
  display: flex;
  gap: 50px;
  align-items: center;
}

.product-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-description h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.product-description ul {
  list-style-type: none;
  margin-bottom: 30px;
}

.product-description li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: var(--text-color);
}

.product-description li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Solutions Section */
.solutions {
  padding: 80px 0;
  background-color: var(--white);
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
}

.solutions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.solution-card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.solution-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.solution-card:hover i {
  transform: scale(1.2);
}

.solution-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--text-color);
}

.solution-card p {
  color: var(--text-color);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--text-color);
}

.steps {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  text-align: center;
  flex: 1;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.step h3 {
  color: var(--text-color);
}

.step p {
  color: var(--text-color);
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.pricing-card {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.pricing-card:hover .price {
  transform: scale(1.1);
}

.pricing-card:hover .consultar {
  transform: scale(1.1);
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: normal;
}

.pricing-card ul {
  list-style-type: none;
  margin-bottom: 30px;
}

.pricing-card li {
  margin-bottom: 10px;
}

.pricing-card .btn {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--white);
}

.pricing-card .btn:hover {
  background-color: transparent;
  color: var(--white);
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: var(--white);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: var(--white);
  padding: 60px 0 20px;
  display: flex;
  justify-content: center;
  transition: background-color 0.3s ease;
}

body.dark-mode .footer {
  background-color: var(--footer-dark-bg);
  color: var(--footer-dark-text);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.footer-logo {
  width: 120px;
  margin-bottom: 15px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

body.dark-mode .footer-col ul li a {
  color: var(--footer-dark-text);
}

body.dark-mode .footer-col ul li a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

body.dark-mode .social-icons a {
  color: var(--footer-dark-text);
}

body.dark-mode .social-icons a:hover {
  color: yellow;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.step,
.solution-card,
.pricing-card {
  animation: fadeIn 0.5s ease-out;
}

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

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

.feature-card i,
.solution-card i {
  animation: float 3s ease-in-out infinite;
}

/* Scroll 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);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    width: 80%;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: auto;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
    flex-direction: column;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .separator {
    display: none;
    color: transparent;

  }

  .phone-number,
  .btn {
    width: 100%;
    text-align: center;
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .btn-large {
    width: 100%;
    max-width: 300px;
  }

  .steps {
    flex-direction: column;
  }

  .step {
    margin-bottom: 30px;
  }

  .product-grid,
  .solutions-grid,
  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }

  .feature-row {
    flex-direction: column;
    align-items: center;
  }

  .feature-card,
  .solution-card,
  .pricing-card {
    width: 100%;
    max-width: none;
  }

  .btn-trial {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--white);
  margin: 15% auto;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 500px;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  text-align: center;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.modal button {
  margin: 10px;
  padding: 15px 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.modal button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal button:active {
  transform: translateY(0) scale(0.95);
}

/* Dark Mode Toggle */
#darkModeToggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

#darkModeToggle:hover {
  color: var(--primary-color);
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for better keyboard navigation */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .cta,
  #darkModeToggle,
  .chatbot,
  .open-chatbot {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a::after {
    content: " (" attr(href) ")";
  }
}

