


#selector {
  padding-bottom: 4rem; /* suficiente para no tapar el footer */
  min-height: auto; /* ← deja que crezca solo lo necesario */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  color: #2c3e50;
  background-color: #ffffff;
  background-image: var(--hex-pattern-white);
  background-repeat: repeat;
  background-size: 260px 300px;
  background-position: top left; /* 👈 origen fijo */
  background-attachment: fixed;  /* 👈 evita que se reinicie por sección */
}


  
  /* HEADER */
  .sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #14213d;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
  }

 
#mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%); /* empieza oculto arriba */
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

#mainHeader.fixed-header {
  transform: translateY(0); /* baja suave al hacer scroll */
  background-color: #14213d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
  
  @keyframes slideDown {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  
  .left-nav, .right-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .left-nav a, .right-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
  }
  
  .left-nav a:hover, .right-nav a:hover {
    color: #ffffff;
  }
  
  .logo-container img {
    height: 95px;
  }
  
  /* HERO SECTION */
  .hero {
    position: relative;
    /* Usa la altura del viewport real en móviles para que el video no se corte */
    min-height: 100svh;
    padding: 0 1rem; /* sin padding vertical para que todo quepa dentro del video */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: white;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
    width: 100%;
  }
  
  .hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;         /* llena todo el hero sin dejar bandas */
    object-position: center;   /* centra el encuadre para evitar “cortes” arriba */
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,42,0.8) 40%, rgba(20,33,61,0.6) 100%);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    padding-block: 8svh 14svh; /* espacio arriba y abajo; deja sitio para CTA y flecha */
    transform: translateY(-30px);
      margin: -30px auto 0 auto; /* súbelo */

  }

  .hero-subtitle {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .hero-cta {
    background: #ffffff;
    color: #fff;
    padding: 1rem 2.2rem;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    margin-top: 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
  }

  .hero-cta:hover {
    background: #e6e6e6;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }

  .hero-trust {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
  }
  
  /* Ajustes para pantallas con poca altura */
  @media (max-height: 720px) {
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1.05rem; }
    .hero-content { padding-block: 6svh 12svh; }
    .hero-list { gap: .75rem; }
    .hero-cta { padding: .8rem 1.4rem; }
  }
  @media (min-width: 900px) {
  .hero-content {
    transform: translateY(-30px);
  }
}

  .hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
  }
  
  .hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
  }
  
  /*
  .hero button {
    background-color: #ffffff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 2;
  }
  
  .hero button:hover {
    transform: scale(1.05);
    background: #e6e6e6;
  }
  */
  
  .hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .hero-highlight {
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-block;
    color: #fff;
  }
  .hero-highlight strong {
    color: #ffffff;
    font-weight: 700;
  }
  
  .hero-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero-list .feature-box {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  
  gap: 0.5rem;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

.hero-list .feature-box:hover {
  transform: translateY(-3px);
}
  /* SECTION GENERAL */
  section {
    padding: 4rem 1rem;
    width: 100%;
  }
  .section-inner {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 800;
  }
  
  .fullwidth-gray {
    background-color: #f2f3f4;
  }
  
/* FEATURES */
.features { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap: 22px; 
}
.feature {
  background: linear-gradient(135deg, #14213d, rgba(0, 102, 255, 0.3));
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  border-top: 4px solid var(--accent, #14213d); /* acento por feature */
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  color: #fff;
}
.feature:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  /* keep transparency, do not revert background */
}
.feature i { 
  font-size: 28px; 
  color: #ffffff; /* iconos ahora blancos */
  margin-bottom: 10px; 
}
.feature h3 {
  margin: 6px 0 8px;
  font-weight: 700;
  color: #fff;
}
.feature p {
  color: #fff;
  line-height: 1.45;
}

.badge {
  position: absolute; top: 14px; right: 14px; 
  font-size: 11px; font-weight: 800; letter-spacing: .4px;
  padding: 5px 9px; border-radius: 999px; color: #fff;
}
.badge.new { background: #10b981; }   /* verde */
.badge.pro { background: #3b82f6; }   /* azul */
.badge.ia  { background: #a855f7; }   /* morado */

/* Paleta por feature usando CSS vars */
.f-gps        { --accent:#3b82f6; } /* azul */
.f-fuel       { --accent:#10b981; } /* verde */
.f-camera     { --accent:#ef4444; } /* rojo */
.f-ai         { --accent:#a855f7; } /* morado */
.f-cutoff     { --accent:#f59e0b; } /* ámbar */
.f-panic      { --accent:#e11d48; } /* rojo oscuro */
.f-doors      { --accent:#14b8a6; } /* turquesa */
.f-alerts     { --accent:#0ea5e9; } /* celeste */
.f-hours      { --accent:#6366f1; } /* índigo */
.f-assign     { --accent:#22c55e; } /* verde claro */
.f-maint      { --accent:#8b5cf6; } /* morado claro */
.f-dash       { --accent:#f97316; } /* naranja */
.f-integrations{--accent:#111827;} /* gris oscuro */
/* SCREENSHOTS */
.screenshots {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;       /* antes solo era scroll horizontal */
  padding-bottom: 1rem;
}

.screenshot {
  flex: 1 1 310px;       /* más grandes, mínimo 350px */
  max-width: 440px;      /* que no se estiren infinito */
  text-align: center;
  background: transparent !important;
}

.screenshot img {
  width: 100%;
  min-height: 280px;     /* asegura que no se vean chaparras */
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover img {
  transform: translateY(-6px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}
  
  /* MOBILE SECTION */
  .mobile-showcase {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 1rem;
  }
  
  .mockup-container, .mobile-text {
    flex: 1 1 100%;
    max-width: 500px;
  }
  
  .mockup-container img {
    width: 100%;
    border-radius: 24px;
  }
  
  .mobile-text ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-text li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
  }

  .mobile-text {
    padding: 1.5rem 0;
    line-height: 1.8;
}

.mobile-text h2 {
    margin-bottom: 1rem;
}

.mobile-text p {
    margin-bottom: 1.5rem;
}

.mobile-text li {
    line-height: 1.6;
    padding-bottom: 0.8rem;
}

  
  /* CTA SECTION */
  .cta {
    color: #14213d;
    padding: 3rem 2rem;
    text-align: center;
  }
  
  /* CHATBOT & WHATSAPP */
  .chatbot-icon, .whatsapp-btn {
    position: fixed;
    right: clamp(10px, 4vw, 20px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: white;
    z-index: 9999;
    cursor: pointer;
  }
  
  .chatbot-icon {
    bottom: 15px;
    background-color: #14213d;
  }
  
  .whatsapp-btn {
    bottom: 85px;
    background-color: #25D366;
    text-decoration: none;
  }
  
  .chatbot-modal {
    display: none;
    position: fixed;
    bottom: 85px;
    right: clamp(10px, 4vw, 20px);
    background: white;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    padding: 1rem;
    width: 280px;
    z-index: 9999;
  }
  
  .chatbot-modal.active {
    display: block;
  }
  
  /* FOOTER */
  footer {
  background-color: #14213d;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  min-height: 120px;
  position: relative;
}
  
  /* Oculta los controles predeterminados de video en móviles (iOS y Android) */
video::-webkit-media-controls {
    display: none !important;
  }
  
  video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
  }
  /* cositas nuevas*/

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.card.large-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  color: #14213d;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card.large-card:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card.large-card i {
  margin-bottom: 1rem;
  color: #14213d;
}
.card.large-card p {
  margin: 0;
  font-size: 1.1rem;
  color: #14213d;
}
.resumen {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#resumenFinal {
  min-height: 300px;
  margin-bottom: 4rem;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  color: #14213d; /* 🔹 Azul institucional */
}




.descripcion-card {
  font-size: 0.85rem;
  color: #444;
  margin-top: 0.8rem;
  text-align: left;
  white-space: pre-line; /* permite los saltos de línea */
}

  /* cositas nuevas*/

.btn-reiniciar {
  margin-top: 1rem;
  background: #0d1b2a;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-reiniciar:hover {
  background: #1e2f45;
}

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .header-inner {
      flex-direction: column;
      gap: 0.5rem;
      padding: 0.6rem;
    }
  
    .features,
    .mobile-showcase,
    .screenshots {
      flex-direction: column;
      align-items: center;
    }
  
    .screenshot {
      width: 90%;
    }
  
    .hero-logo {
      width: 240px;
      margin-bottom: 2rem;
      filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
      z-index: 2;
      margin: 0 auto;
      display: block;
    }
  
    .hero {
      padding: 0 1rem;     /* sin padding vertical para que no empuje el CTA fuera */
      text-align: center;
      flex-direction: column;
      min-height: 100svh;  /* respeta altura visible en móviles */
    }
  
    .hero-content {
      max-width: 90%;
      align-items: center;
      text-align: center;
      padding-block: 10svh 16svh; /* más espacio superior/inferior dentro del hero */
    }
  
    .hero-list {
      text-align: center;
    }
  
    .mockup-container, .mobile-text {
      flex: 1 1 100%;
    }
  
    .left-nav a, .right-nav a {
      font-size: 0.9rem;
    }
  
    .logo-container img {
        height: 95px;
      }
  }

  /* DIAGONAL SECTIONS */
.diagonal {
  position: relative;
  padding: 5rem 1rem;
  /* cortes diagonales uniformes */
  clip-path: polygon(0 80px, 100% 0, 100% calc(100% - 80px), 0 100%);
  margin: 0;
  z-index: 1;
}

/* Ensure full-width for visual sections */
.hero,
.diagonal,
.screenshots,
.mobile-showcase,
.cta,
footer {
  max-width: none;
  width: 100%;
}



/* Pattern overlay for blue diagonal sections */


.diagonal .section-title {
  color: #fff;
  position: relative;
}

.diagonal .section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #ffffff;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}


/* SCROLL DOWN ICON */
.scroll-down {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #fff;
  animation: bounce 1.5s infinite;
  z-index: 3; /* por encima del overlay y del video */
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}



.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #14213d, rgba(0, 102, 255, 0.3));
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.tab-btn:hover {
  filter: brightness(1.07);
}

.tab-btn.active {
  background: linear-gradient(135deg, #10124e, rgba(0, 80, 200, 0.45));
  color: #fff;
  border: 2px solid #ffffff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}


/* Azul con rombos blancos */
.diagonal.blue {
  background-color: rgba(20,33,61,0.95);
  background-image: var(--hex-pattern-blue);
  background-repeat: repeat;
  background-size: 260px 300px;
  background-position: top left; /* 👈 mismo origen */
  background-attachment: fixed;  /* 👈 mismo truco */
  color: #fff;
  position: relative;
}

/* 🔧 Estructura general en desktop */
@media (min-width: 1024px) {
  section {
    padding: 6rem 2rem;
    width: 100%;
  }
  .section-inner {
    max-width: 1400px;
    margin: 0 auto;
  }
  /* HERO DESKTOP GRID LAYOUT */
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.2rem 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
    text-align: left;
    padding-block: 8svh 14svh;
    transform: translateY(0);
  }
  /* Logo at top-left */
  .hero-logo {
    grid-column: 1;
    grid-row: 1;
    width: 180px;
    margin-bottom: 0.5rem;
    align-self: start;
    justify-self: start;
    display: block;
  }
  /* Slogan below logo */
  .hero-slogan {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    opacity: 0.92;
    text-align: left;
    width: 100%;
    display: block;
  }
  /* Headline spans left column, third row */
  .hero h1 {
    grid-column: 1;
    grid-row: 3;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: left;
    position: relative;
    z-index: 2;
  }
  /* Right column: control label + features */
.hero-right {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  margin-left: 3rem;   /* empuja un poco hacia la derecha dentro del grid */
  margin-top: 4rem;    /* baja más el bloque */
  justify-self: end;   /* lo manda a la derecha del contenedor */
}
  .hero-right .control-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
  }
  .hero-list.staggered-features {
    margin: 0;
    gap: 0.8rem;
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }
  /* CTA button under features, right column */
  .cta-btn {
    grid-column: 2;
    grid-row: 3;
    margin-top: 1.5rem;
    align-self: flex-start;
    justify-self: start;
    margin-left: 3rem; /* alineado con features a la derecha */
  }
  /* Trust text centered across bottom */
  .hero-trust {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
  }
  /* Other desktop section layouts */
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .mobile-showcase {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4rem;
    align-items: center;
    justify-content: center;
  }
  .mockup-container, .mobile-text {
    flex: 1 1 50%;
    max-width: 50%;
  }
  .mockup-container {
    order: 1;
  }
  .mobile-text {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
    line-height: 1.8;
    padding-left: 2rem;
  }
  .screenshots {
    justify-content: space-between;
  }
  .screenshot {
    flex: 1 1 30%;
    max-width: 30%;
  }
}


.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.hero-right .control-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
}









      @media (min-width: 900px) {
        .hero-content {
          text-align: left;
          margin-left: 7vw;
          margin-right: 0;
        }
      }
      .hero-slogan {
        font-weight: 600;
        color: #fff;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        opacity: 0.92;
      }
      .cta-btn {
        background: linear-gradient(135deg, #14213d, rgba(0, 102, 255, 0.3));
        color: #fff;
        border: none;
        border-radius: 32px;
        padding: 1rem 2.5rem;
        font-weight: bold;
        font-size: 1.15rem;
        margin-top: 1.3rem;
        cursor: pointer;
        transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
        outline: none;
        display: inline-flex;
        align-items: center;
      }
      .cta-btn:hover,
      .cta-btn:focus {
        background: linear-gradient(135deg, #10124e, rgba(0, 80, 200, 0.45));
        transform: translateY(-2px) scale(1.03);
      }
      /* Feature list staggered/offset layout */
      .hero-list.staggered-features {
        list-style: none;
        padding: 0;
        margin: 1.2rem 0 1.6rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
        width: 100%;
        max-width: 380px;
      }
      .feature-box {
        background: rgba(255,255,255,0.10);
        color: #fff;
        border-radius: 14px;
        padding: 0.75rem 1.4rem;
        font-weight: 600;
        font-size: 1rem;
        box-shadow: 0 2px 10px rgba(20,33,61,0.06);
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 320px;
        transition: box-shadow 0.18s, background 0.18s;
      }
      .feature-box i {
        color: #ffffff;
        margin-right: 10px;
        font-size: 1.2em;
      }

      
      /* Staggered/offset effect for features */
      .staggered-1 { margin-left: 0; }
      .staggered-2 { margin-left: 32px; }
      .staggered-3 { margin-left: 64px; }
      @media (max-width: 600px) {
        .hero-list.staggered-features {
          align-items: center;
          max-width: 100%;
        }
        .feature-box {
          max-width: 100%;
        }
        .staggered-1, .staggered-2, .staggered-3 { margin-left: 0; }
      }
      @media (min-width: 900px) {
        .hero-list.staggered-features {
          align-items: flex-start;
        }
      }



/* === CONSOLIDATED HERO STYLES === */

/* Base hero content (mobile first) */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  max-width: 600px;
  margin: -30px auto 0 auto;
  padding-block: 8svh 14svh;
  z-index: 2;
  grid-template-columns: 1fr 1.2fr;  /* derecha más ancha */
}

/* Desktop layout */
@media (min-width: 1024px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-right {
    position: relative;
    top: -200px;   /* súbelo aún más, ajusta este valor */
    margin-top: 0 !important; /* quita márgenes que empujaban hacia abajo */
    align-self: flex-start;
  }


  .hero-trust {
    grid-column: 1 / -1; /* ocupa las dos columnas abajo */
    text-align: center;
    margin-top: 2rem;
  }
}

/* Screenshots */
.img-content { display: none; }
.img-content.active { display: flex; }


/* CTA button unified */
/* === CTA button unified (mobile first) === */
/* Mobile first (centrado) */
.cta-btn,
.hero-cta {
  background: linear-gradient(135deg, #14213d, rgba(0, 102, 255, 0.3));
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 1rem 2.5rem;
  font-weight: bold;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  margin: 1.3rem auto 0 auto;  /* centrado */
  justify-content: center;     /* centrado */
}

.cta-btn:hover,
.hero-cta:hover {
  background: linear-gradient(135deg, #10124e, rgba(0, 80, 200, 0.45));
  transform: translateY(-2px) scale(1.03);
}

/* Feature list unified */
.hero-list.staggered-features {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
  width: 100%;
  max-width: 380px;
}
.hero-list.staggered-features .feature-box {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-radius: 14px;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
  transition: box-shadow 0.18s, background 0.18s;
}
.hero-list.staggered-features .feature-box i {
  color: #ffffff;
  margin-right: 10px;
  font-size: 1.2em;
}

/* Staggered offsets */
.staggered-1 { margin-left: 0; }
.staggered-2 { margin-left: 32px; }
.staggered-3 { margin-left: 64px; }

@media (max-width: 600px) {
  .hero-list.staggered-features {
    align-items: center;
    max-width: 100%;
  }
  .hero-list.staggered-features .feature-box {
    max-width: 100%;
  }
  .staggered-1, .staggered-2, .staggered-3 { margin-left: 0; }
}


@media (max-width: 768px) {
  .hero-right {
    display: flex;
    flex-direction: column;
    align-items: center !important;   /* 🔧 centra horizontal */
    justify-content: center !important;
    width: 100%;
    text-align: center;
  }

  .cta-btn {
    margin: 1.5rem auto 0 auto !important; /* 🔧 fuerza centrado */
    justify-content: center !important;
    display: inline-flex;
  }
}



/* Tabs */
.func-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.func-btn {
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}


/* Estado activo */
.func-btn.active {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Contenidos */
.func-content {
  display: none;
  margin-top: 2rem;      /* 🔧 separación al abrir */
  gap: 1.5rem;           /* 🔧 espacio entre cards internas */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.func-content.active {
  display: grid;
}

.func-btn {
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

/* Flecha por defecto ▼ */
.func-btn::after {
  content: "▼";
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

/* Flecha hacia arriba cuando está activo */
.func-btn.active::after {
  transform: rotate(180deg);
}


/* Colores por categoría con transparencia */
.func-btn[data-target="pro"] {
  background: rgba(59, 130, 246, 0.85); /* azul con 85% opacidad */
  color: #fff;
}
.func-btn[data-target="ia"] {
  background: rgba(168, 85, 247, 0.85); /* morado con 85% opacidad */
  color: #fff;
}
.func-btn[data-target="standard"] {
  background: rgba(16, 185, 129, 0.85); /* verde con 85% opacidad */
  color: #fff;
}

/* Hover más sólido para sensación animada */
.func-btn:hover {
  opacity: 1;
  filter: brightness(1.1);
}


.estadistica-card {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 2rem;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, #14213d, rgba(0, 102, 255, 0.3));  /* azul degradado como las otras cards */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  color: #fff; /* texto blanco sobre azul */
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.estadistica-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.estadistica-card h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #fff;
}

.estadistica-card img {
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.estadistica-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

.estadistica-card li {
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}




/* Overlay gris */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: flex-end; /* se pega abajo */
  z-index: 9999;
}

/* Sheet */

.demo-sheet {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 2rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  height: auto;
  max-height: 95dvh; /* 🔥 importante en iOS */
  overflow-y: auto;
}

.overlay.active { display: flex; }
.overlay.active .demo-sheet { transform: translateY(0); }



/* Animaciones */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes slideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Botón cerrar */
.close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Inputs */
.demo-sheet form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.demo-sheet input {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Botón enviar */
.demo-btn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: white;
  padding: 1rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}
.demo-btn:hover {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}


@media (max-width: 768px) {
  .demo-sheet {
    max-width: 95%;
    border-radius: 12px;
    transform: translateY(0);
    animation: fadeIn 0.3s ease forwards;
    align-self: center; /* centra en overlay */
  }
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99998;
  display: none;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100dvh;   /* 🔥 en vez de 100vh */
  max-height: 95dvh; /* deja un poquito de margen */
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto; /* si hay formulario largo */
    -webkit-overflow-scrolling: touch; /* suaviza scroll en iOS */

}
.sheet.active {
  transform: translateY(0);
}


:root {
  /* Rombos blancos sobre azul */
  --hex-pattern-blue: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'>\
  <defs>\
    <pattern id='hexblue' width='52' height='60' patternUnits='userSpaceOnUse'>\
      <path d='M26,1 L51,15 L51,45 L26,59 L1,45 L1,15 Z' \
            fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.5'/>\
    </pattern>\
  </defs>\
  <rect width='100%' height='100%' fill='url(%23hexblue)'/>\
</svg>");

  /* Rombos azul institucional sobre blanco */
  --hex-pattern-white: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'>\
  <defs>\
    <pattern id='hexwhite' width='52' height='60' patternUnits='userSpaceOnUse'>\
      <path d='M26,1 L51,15 L51,45 L26,59 L1,45 L1,15 Z' \
            fill='none' stroke='%2314213d' stroke-opacity='0.08' stroke-width='1.5'/>\
    </pattern>\
  </defs>\
  <rect width='100%' height='100%' fill='url(%23hexwhite)'/>\
</svg>");
}
  /* Desktop Hero Layout: Left/Right Grid Columns */
  /* .hero-content: grid; .hero-left: logo, slogan, h1, etc; .hero-right: CTA */
@media (min-width: 1024px) {
  .cta-btn,
  .hero-cta {
    margin: 1.3rem 0 0 0;
    justify-content: flex-start;
  }
}