:root {
  --bg-dark: #1e1e1e;
  --panel-dark: #252526;
  --border-dark: #3c3c3c;
  --primary: #004070;
  --primary-light: #005a9e;
  --accent: #c586c0;
  --accent-dark: #a0529d;
  --text-light: #d4d4d4;
  --text-muted: #858585;
  --white: #ffffff;
  --light-gray: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

/* ========== BANNER ========== */
.banner {
  position: relative; /* Necesario para el contexto de apilamiento */
  width: 100%;
  min-height: 100vh;
  background-image: url("img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  z-index: 1; /* Establece el contexto de apilamiento */
  overflow: hidden; /* Previene que nada se salga del contenedor */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1; /* Debajo del contenido pero encima del banner background */
}

.banner-content {
  position: relative; /* Aseguramos que esté posicionado */
  z-index: 2; /* Encima del overlay */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}

.banner-text {
  max-width: 800px;
  margin: 0 auto;
}

.typing-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: bold;
  margin: 0 auto 1.5rem;
  color: var(--white);
  min-height: 2.5em;
  line-height: 1.3;
}

.know-more-btn {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  background-color: var(--primary-light);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-weight: 600;
}

.know-more-btn:hover {
  background-color: var(--text-light);
  color: black;
  transform: translateY(-2px);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.8rem;
  animation: bounce 2s infinite;
  z-index: 2; /* Aseguramos que esté encima del overlay */
  text-decoration: none;
}


/* ========== SECTIONS ========== */
section {
  padding: 5rem 1.5rem;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--primary);
  line-height: 1.3;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  max-width: 700px;
  margin: 0 auto;
}

/* FEATURES SECTION */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 80, 112, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--primary-light);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* DIAGONAL SECTION */
.diagonal-section {
  position: relative;
  width: 100%;
  background-color: var(--light-gray);
  padding: 6rem 1.5rem;
  margin: 4rem 0;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.integration-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-align: center;
}

.integration-logo img {
 
  margin-bottom: 1rem;
  width: 200px;
}

.integration-logo span {
  font-weight: 600;
  font-size: 1rem;
}

/* HOW IT WORKS SECTION */
.steps-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 4px;
  background-color: var(--primary-light);
}

.step {
  position: relative;
  margin-bottom: 2.5rem;
}

.step-number {
  position: absolute;
  left: -40px;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-content {
  padding: 0.5rem 0 0 1.5rem;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.step-content p {
  color: var(--text-muted);
}

/* CTA SECTION */
.cta-section {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.cta-section p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-button {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background-color: var(--white);
  color: var(--primary);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.cta-button:hover {
  background-color: var(--light-gray);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* FOOTER */
footer {
  background-color: var(--panel-dark);
  color: var(--text-light);
  padding: 4rem 1.5rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.link-group h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.link-group a {
  display: block;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.link-group a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-social a {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.legal-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: var(--accent);
}

/* FLOATING BUTTON */
.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 80, 112, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
}

.floating-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 80, 112, 0.6);
}



/* ANIMATIONS */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -15px);
  }
  60% {
    transform: translate(-50%, -7px);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .banner {
    min-height: 90vh;
    padding: 1.5rem 1rem;
     background: url("img/m_background.png");
    background-size: cover;
    background-position: center;
  }
  .integration-logo img{

 width: 120px;

  }

  .logo {
    max-width: 220px;
    margin-bottom: 1.5rem;
  }

  .typing-text {
    min-height: 3.5em;
  }

  section {
    padding: 4rem 1.25rem;
  }

  .diagonal-section {
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    padding: 4rem 1.25rem;
    margin: 3rem 0;
  }

  .steps-container {
    padding-left: 30px;
  }

  .steps-container::before {
    left: 15px;
  }

  .step-number {
    left: -30px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .banner {
    min-height: 85vh;
  }

  .logo {
    max-width: 180px;
  }

  .typing-text {
    font-size: 1.5rem;
    min-height: 4em;
  }

  .know-more-btn {
    padding: 0.7rem 1.5rem;
  }

  .scroll-down {
    font-size: 1.5rem;
    bottom: 1.5rem;
  }

  section {
    padding: 3.5rem 1rem;
  }

  .diagonal-section {
    clip-path: none;
    padding: 3.5rem 1rem;
    margin: 2rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step-content {
    padding-left: 1rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .floating-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}