/* ==========================================================================
   Layout & Reset
   ========================================================================== */

/* Haz que body sea un flex-column y ocupe toda la altura */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at top, #0a0a0a 0%, #000000 100%);
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

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

/* Main crece para empujar el footer al final */
.site-main {
  flex: 1;
}
/* ========================================================================== 
   Animated Background (Solana Style) 
   ========================================================================== */
   body::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
      radial-gradient(circle at center, rgba(0,255,163,0.08), transparent 70%),
      radial-gradient(circle at 80% 20%, rgba(23,249,255,0.08), transparent 60%);
    animation: moveBackground 20s linear infinite;
    z-index: -1;   /* 👈 bajar detrás de TODO */
  }
  
  /* Ya no hace falta forzar z-index de todos los hijos; así que puedes
     eliminar o comentar este bloque:
  
  body > * {
    position: relative;
    z-index: 1;
  }
  */
  

/* ==========================================================================
   Navbar & Header
   ========================================================================== */
   .navbar {
    background: #111;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;           /* Para que no recorte los submenus absolutos */
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    overflow: visible;           /* Asegura visibilidad completa de los submenus */
  }
  
  .nav-links li {
    position: relative;
  }
  
  .nav-links li a,
  .nav-links li button {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
  }
  
  .nav-links li a:hover,
  .nav-links li button:hover {
    color: #00ffa3;
  }
  
/* ==========================================================================
   Submenu
   ========================================================================== */
/* El contenedor del submenu debe ser relative */
.nav-links li.has-submenu {
  position: relative;
}

/* Oculto por defecto (fuera del flujo) */
.has-submenu .submenu {
  position: absolute;      /* fuera del flujo y sobrepuesto */
  top: 100%;               /* justo debajo del botón */
  left: 0;
  background-color: #222;  /* tu fondo oscuro */
  padding: 10px 0;         /* espacio interior arriba/abajo */
  min-width: 180px;        /* ancho mínimo para que no se colapse */
  list-style: none;        /* sin viñetas */

  /* animación de aparición */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  /* no interfiere con el layout mientras está cerrado */
  pointer-events: none;
  z-index: 1500;           /* por encima de la navbar */
}

/* Desplegar SOLO cuando el <li> tenga la clase .open */
.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu li a {
  padding: 10px 20px;
  color: #fff;
  display: block;
}

.submenu li a:hover {
  background-color: #333;
}

/* ==========================================================================
   Section Base Styles (inspirado en solana.com)
   ========================================================================== */

/* Clase general para todas las secciones */
.section {
  /* Aumentamos el padding vertical para más “aire” */
  padding: 100px 20px;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  /* Por defecto transparente: usa variantes para fondo */
  background: transparent;
  color: #fff;
}

/* Título unificado de sección */
.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  /* Gradiente de texto */
  background: linear-gradient(90deg, #9945FF, #19FB9B);
  -webkit-background-clip: text;
  background-clip: text;           /* <— propiedad estándar */
  -webkit-text-fill-color: transparent;
  
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #9945FF, #19FB9B);
  border-radius: 2px;
}

/* Texto por defecto dentro de section */
.section p {
  color: #ccc;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* Variantes de fondo (oscuro o más oscuro) */
.section--dark {
  background-color: transparent;
}

.section--darker {
  background-color: #000;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  max-width: 800px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero button {
  background: linear-gradient(90deg, #00ffa3, #17f9ff);
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero button:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0 auto;
  padding: 40px 20px;
}

.service-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

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

.service-card {
  background: rgba(10, 10, 10, 1);
  border: 1px solid #1c1c1c;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card i {
  width: 40px;
  height: 40px;
  color: #00ffa3;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(0, 255, 163, 0.3);
}

.service-card:hover i {
  transform: scale(1.2) rotate(4deg);
}

/* --------------------------------------------------------------------------
   Solo gradiente en los <h3> de las service-card, sin tocar tipografía
   -------------------------------------------------------------------------- */
   .service-card h3 {
    /* Gradiente como “color” */
    background: linear-gradient(90deg, #9945FF, #19FB9B);
    -webkit-background-clip: text;
    background-clip: text;       /* versión estándar */
    -webkit-text-fill-color: transparent;
  }
  


/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners {
  text-align: center;
  padding: 40px 0;
  background-color: transparent;
}

.partners-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #ccc;
}

.partners-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partners-logos img {
  width: 120px;
  transition: transform 0.3s ease;
}

.partners-logos img:hover {
  transform: scale(1.1);
}

.partners-gradient {
  background: linear-gradient(90deg, #9945FF, #19FB9B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ==========================================================================
   Enhanced CTA Section
   ========================================================================== */
.enhanced-cta {
  padding: 100px 20px;
  background: transparent;
  text-align: center;
}

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

.enhanced-cta p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #ccc;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cta-button-email,
.cta-button-secondary {
  background: linear-gradient(90deg, #00ffa3, #17f9ff);
  color: #000;
  padding: 14px 30px;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button-email:hover,
.cta-button-secondary:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ==========================================================================
   AOS Animations
   ========================================================================== */
[data-aos] {
  transition-property: transform, opacity;
  transition-duration: 0.8s;
  transition-timing-function: ease;
}

/* ==========================================================================
   Particles Container
   ========================================================================== */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #111;
  color: #fff;
  padding: 60px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.footer-block--left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-managed {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 10px;
}

.footer-powered {
  margin-bottom: 5px;
}

.footer-powered img {
  display: block;
  max-height: 200px;
  width: auto;
}

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

.footer-social {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-social a {
  color: #fff;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #00ffa3;
}

.footer-copyright {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero button {
    padding: 12px 25px;
  }

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

  .service-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 20px;
  }

  .partners-logos {
    gap: 20px;
  }

  .enhanced-cta h2 {
    font-size: 2rem;
  }

  .enhanced-cta p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-button-email,
  .cta-button-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   About Contact Section (Sobre mí)
   ========================================================================== */
   .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: transparent; /* Fondo transparente */
  }
  
  .about-text {
    flex: 1 1 400px;
  }
  
  .about-photo {
    flex: 0 0 250px;
    text-align: center;
  }
  
  .about-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.1);
  }


  /* ==========================================================================
     Contact Form Section
     ========================================================================== */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .contact-form .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #00ffa3;
  }
  
  .submit-btn {
    align-self: center;
    background: linear-gradient(90deg, #00ffa3, #17f9ff);
    color: #000;
    padding: 14px 30px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .submit-btn:hover {
    transform: scale(1.05);
  }
  
  /* Si usas la clase genérica .section--transparent */
.section--transparent {
  background-color: transparent;
}

/* O, si prefieres targeting por ID */
#contact-form-section {
  background-color: transparent;
}

  /* ==========================================================================
     Responsive tweaks for Contact page
     ========================================================================== */
  @media (max-width: 768px) {
    .about-content {
      flex-direction: column;
      gap: 20px;
    }
    .about-photo {
      order: -1;
    }
    .contact-form {
      width: 100%;
      padding: 0 10px;
    }
  }

    /* ==========================================================================
      Clases nuevas para automatizacion page
     ========================================================================== */
 
  /* Estadísticas */
.stats-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  min-width: 180px;
}
.stat-card h3 {
  font-size: 2.5rem;
  color: #00ffa3;
  margin-bottom: 8px;
}

/* Lista de características */
.feature-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}
.feature-list li {
  margin-bottom: 12px;
  padding-left: 1.5em;
  position: relative;
}
.feature-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00ffa3;
}

/* Grid de herramientas */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 30px;
  margin-top: 20px;
}
.tool-card {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}
.tool-card i {
  width: 40px;
  height: 40px;
  color: #00ffa3;
  margin-bottom: 15px;
}

/* Conecta tu negocio */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 30px;
  margin-top: 20px;
}
.connect-card {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

/* -----------------------------------------------------------------------------
   Transparencia y blur para que header/footer se vean sobre el fondo de partículas
   ----------------------------------------------------------------------------- */
   .navbar,
   .footer {
     background: rgba(0, 0, 0, 0.3);      /* translucidez suave */
     backdrop-filter: blur(10px);         /* desenfoque del fondo */
     -webkit-backdrop-filter: blur(10px); /* para WebKit */
   }
   

/* ==========================================================================
   Two-Column Alternating Sections
   ========================================================================== */
   .two-col {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .two-col.reverse {
    flex-direction: row-reverse;
  }
  
  .two-col .col {
    flex: 1 1 50%;
    position: relative;
  }
  
  .two-col .col.image {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    /* altura mínima para visibilidad */
    min-height: 350px;
  }
  
  .two-col .col.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .two-col .col.text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #fff;
  }
  
  .two-col .col.text p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
  }
  
  @media (max-width: 768px) {
    .two-col {
      flex-direction: column !important;
      flex-wrap: wrap;
    }
  }
  