:root {
  /* Core Brand Colors */
  --primary: #1e88e5;
  --primary-bright: #2196f3;
  --secondary: #616161;
  --accent: #2196f3;

  /* Legacy/Bootstrap Overrides */
  --bs-primary: #2196f3;
  --bg-primary: #2196f3;
  --text-primary: #2196f3;
  --default-color: #616161;
  --default-color-outlined: #e0e0e0;

  /* Text Colors */
  --text-main: #616161;
  --text-heading: #1a1a1a;
  --text-muted: #616161;
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;

  /* Background Colors */
  --bg-body: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --bg-footer: #111111;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-box: #f0f4f9;

  /* Borders and UI */
  --border-color: #e0e0e0;
  --border-light: rgba(0, 0, 0, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: rgba(0, 0, 0, 0.05);

  /* Specific Components */
  --nav-link: #616161;
  --nav-link-hover: #1e88e5;
  --input-bg: #ffffff;
  --toggler-color: #333333;
}

/* Theme Overrides (Applied at bottom) */

html,
body {
  overflow-x: hidden;
  width: 100%;
}

* {
  font-family: "Roboto", sans-serif !important;
  font-size: 16px;
}

body {
  color: var(--text-main);
  background-color: var(--bg-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
}

p,
span,
li,
label {
  color: var(--text-main);
}

.color-primary {
  color: var(--text-primary) !important;
}

/* ============================================
   PROTOCOLO DE TIPOGRAFÍA ANTIGRAVITY (H1–H4)
   Método "Square Block" + Líneas guía invisibles
   ============================================ */

/* Base: Fuente moderna para títulos */
h1,
h2,
h3,
h4 {
  font-family: "Google Sans", Roboto, Arial, sans-serif !important;
  color: var(--text-heading) !important;
}

/* H1 — El Impacto (Hero Headline)
   Elemento más pesado y compacto. Ancla la mirada. */
h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* H2 — El Guía (Títulos de Sección)
   Autoridad con aire para transición. */
h2,
.lead-h2 {
  font-family: "Google Sans", Roboto, Arial, sans-serif !important;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-heading) !important;
}

.lead-h2 {
  font-size: 1.5rem !important;
  /* Ajuste para que actúe como subheadline */
  font-weight: 400 !important;
  opacity: 0.8;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .lead-h2 {
    font-size: 1.25rem !important;
  }
}

/* H3 — El Conector (Subtítulos/Cards)
   Equilibrio entre legibilidad y estilo. */
h3 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* H4 — El Kicker (Social Proof/Labels)
   Disparador de confianza, texto pequeño sobre H1 o tarjetas. */
h4 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.text-h4-secondary {
  font-size: 2rem;
  color: #18171d4a !important;
  font-weight: 900;
}

.text-h6 {
  font-size: .75rem;
}

.text-h5 {
  font-size: 1rem;
}

.text-h4 {
  font-size: 1.25rem;
}

.text-h3 {
  font-size: 1.5rem;
}

.text-h2 {
  font-size: 2rem;
}

.border-outlined {
  border: 1px solid var(--default-color-outlined);
}

.h-fill {
  height: 100%;
  height: -webkit-fill-available;
}

p {
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.6;
  /* Espaciado entre líneas */
  font-family: "Roboto", Arial, sans-serif;
  color: var(--text-main);
  /* Color oscuro para buena legibilidad */
}

@media (max-width: 768px) {
  p {
    font-size: 1rem;
    /* 16px en pantallas pequeñas */
  }
}

@media (min-width: 1200px) {
  p {
    font-size: 1.25rem;
    /* 20px en pantallas grandes */
  }
}

/* Hero Section (Pantalla completa) */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .container {
  padding-top: 8rem;
  /* min-height: 80vh; */
}

.hero .container {
  padding-top: 8rem;
}

/* .hero { */
/* padding-top: 74px ; */
/* min-height: 560px;
  height: 100vh;
  max-height: 720px; */
/* } */

.text-left {
  text-align: left !important;
}

.display-4 {
  color: var(--secondary) !important;
}

.display-4 .span-secondary {
  color: var(--default-color) !important;
}

.btn-primary {
  background-color: var(--primary-bright) !important;
  border-color: var(--primary-bright) !important;
  color: #ffffff !important;
}

.span-primary {
  color: var(--primary) !important;
  font-size: inherit;
}

section,
.section {
  min-height: 60vh;
  padding: 96px 0;
}

.articulo {
  min-height: 35rem;
}

.mb-100 {
  margin-bottom: 100px;
}

.mw-1000 {
  max-width: 1000px;
}

.fondo {
  background-position: 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-image: url(./img/fondo.svg);
}

.fondo2 {
  background-position: 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-image: url(./img/img1_1920x800.jpg);
}

.blur {
  background-color: #fafafa10;
  backdrop-filter: blur(0.4rem);
  -webkit-backdrop-filter: blur(0.4rem);
}

.display-4,
.display-5,
.display-6 {
  line-height: 1.1 !important;
  /* font-weight: 500 !important; */
}

.display-3 {
  line-height: 1.1;
  font-weight: 600;
}

.comillas {
  position: relative;
  padding: 0.5em 1em;
  font-size: inherit;
}

.comillas::before,
.comillas::after {
  content: "";
  /* position: absolute; */
  top: 0.25em;
  color: var(--bg-primary);
  font-weight: bold;
  /* font: size 1.5em; */
}

.comillas::before {
  margin-left: -1em;
  content: "“";
}

.comillas::after {
  margin-right: -1em;
  content: "”";
}

.footer {
  background: var(--bg-footer);
  /* Un poco más oscuro que el slate 900 */
  color: #f1f5f9 !important;
}

.footer h5 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: #ffffff !important;
}

.footer a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #1e88e5;
  /* Azul de iSAGI */
}

.footer .fa-map-marker-alt,
.footer .fa-envelope {
  margin-right: 8px;
  color: #1e88e5;
}

.footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #4a5d6140;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 4px;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: var(--bg-primary);
}

.footer .social-links a:hover .bx {
  color: #fff !important;
}

/* Centrado visual completo del carrusel */
.marcas {
  padding: 40px 0;
  overflow: hidden;
  background-color: var(--bg-card);
  min-height: auto;
}

.marcas-slider {
  /* max-width: 700px; */
  margin: 0 auto;
  padding: 0 15px;
  overflow: hidden;
}

.marcas .swiper-wrapper {
  display: flex;
  /* necesario */
  align-items: center;
}

.marcas .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  min-width: 120px;
}

.marcas .swiper-slide img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.marcas .swiper-slide img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.text-gradient-flash {
  background: linear-gradient(to right, var(--secondary), var(--primary));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: flashGradient 2.5s ease-in;
}

@keyframes flashGradient {
  to {
    background-position: -200% center;
    /* MUEVE en 2000ms aprox */
  }
}

.lead strong,
strong {
  font-weight: bold;
  font-size: inherit;
}

.fw-xxl {
  font-weight: bold !important;
  line-height: 1 !important;
  display: block !important;
  font-size: clamp(2.5rem, 15vw, 12rem) !important;
  transform-origin: left center;
  margin: 0 !important;
  padding: 0 !important;
  color: currentColor;

  /* Initial state: Large and hidden */
  opacity: 0;
  transform: scale(1.5);

  /* Performance optimization */
  will-change: transform, opacity;
  pointer-events: none;
  user-select: none;
}

/* Custom Scroll Reveal Class (Requested: 30% threshold + Reversible) */
.scroll-reveal-20 {
  opacity: 0.1;
  /* High contrast start */
  transform: translateY(3rem);
  /* Dramatic distance */
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.scroll-reveal-20.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Hover effect for siblings/others */
.fw-xxlx:hover {
  opacity: 1;
  font-size: 3.5rem;
}

.rubro {
  background: #f0f8ff4e;
  padding: 5px 2px 5px 2px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.rubro i {
  color: var(--text-heading);
  margin-right: 0.5rem !important;
  font-size: 1.5rem;
}

.rubro div {
  margin-left: 1rem;
  font-size: 1rem;
  line-height: 1.1rem;
  font-weight: bold;
}

.rubro div:nth-child(1) {
  margin-left: 5px;
  font-size: 1rem;
  font-weight: bold;
  background-color: aliceblue;
  padding: 5px 0 5px 10px;
  border-radius: 5px;
}

.gradient-text {
  /* background: linear-gradient(90deg, #0b57d0, #4285f4); */
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-clip: text;
  /* propiedad estándar */
  -webkit-background-clip: text;
  /* para compatibilidad con WebKit */
  -webkit-text-fill-color: transparent;
}

.box {
  background: var(--bg-box);
  padding: 0;
  border-radius: 20px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.box .box-img-br {
  position: relative;
  padding: 0;
}

.box .box-img-br img {
  display: block;
}

span {
  font-size: inherit;
}

.min-vh-4 {
  min-height: 60vh !important;
}

.min-vh-2 {
  min-height: 30vh !important;
}

.tag {
  display: flex;
}

.tag-text {
  margin: 0 15px;
  min-height: auto;
  margin-bottom: 1.5rem;
}

.tag-text h5 {
  font-size: 1.2em;
  line-height: 1.5;
  margin-bottom: 0;
}

.tag-text p {
  font-size: 0.9em;
  line-height: 1.5;
}

.tag-icon {
  font-size: 1.5rem;
  font-weight: bold;
  background-color: var(--bg-box);
  padding: 10px 0 5px 12px;
  border-radius: 5px;
  width: 3.5rem;
  height: 3.5rem;
}

.tag-icon i {
  color: #616161 !important;
}

.input-group {
  outline: 0;
  box-shadow: none;
}

.input-group:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group .form-control {
  border-right: none;
}

.input-group .form-control:focus {
  border-right: none;
  box-shadow: none;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group-rounded {
  outline: 0;
  box-shadow: none;
  display: flex;
  padding: 5px 5px 5px 24px;
  border-radius: 24px;
  border: 1px solid var(--default-color-outlined);
  transition: all 0.5s ease;
}

.input-group-rounded:hover {
  background-color: #2196f342;
}

.input-group-rounded:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-rounded .form-control {
  border-right: none;
}

.input-group-rounded .form-control:focus {
  border-right: none;
  box-shadow: none;
}

.input-group-rounded input {
  border-radius: 24px 0 0 24px;
  padding: 4px 16px;
  margin-left: -18px;
  border: none;
}

.input-group-rounded .btn {
  border-radius: 24px;
  margin-left: -12px;
  white-space: nowrap;
}

.min-height-none {
  min-height: 0 !important;
}

/* MARCO SIMPLE PARA SCREENSHOTS DE APP MÓVIL */

.mobile-frame {
  position: relative;
  display: inline-block;
  padding: 25px 12px 35px 12px;
  background: linear-gradient(145deg, #2c3e50, #34495e);
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.1);
  max-width: 280px;
  margin: 0 auto;
}

/* Speaker/notch superior */
.mobile-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: #555;
  border-radius: 2px;
}

/* Botón home */
.mobile-frame::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 35px;
  background: radial-gradient(circle, #444 40%, #222 70%);
  border-radius: 50%;
  border: 1px solid #333;
}

.mobile-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Versión blanca/clara */
.mobile-frame-light {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border: 2px solid #dee2e6;
}

.mobile-frame-light::before {
  background: #666;
}

.mobile-frame-light::after {
  background: radial-gradient(circle, #ddd 40%, #bbb 70%);
  border-color: #aaa;
}

/* Para responsive */
@media (max-width: 768px) {
  .mobile-frame {
    max-width: 220px;
  }
}

/* Centrar en la página */
.app-showcase {
  text-align: center;
  margin: 40px 0;
}

/* flotar */
.card-floating {
  animation: 3s linear infinite MoveUpDown;
  box-shadow: -6px 30px 90px rgba(0, 0, 0, 0.16);
  border-radius: 6px;
}

.card-floating-2 {
  animation-delay: 1s;
}

@keyframes MoveUpDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ---------- smooth dropdown + chevron ---------- */
.custom-dropdown .dropdown-menu {
  display: block;
  /* let us animate height */
  overflow: hidden;
  max-height: 0;
  /* closed state */
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  margin-top: 0 !important;
  margin-left: -24px;
  border: 1px solid rgba(231, 231, 233, 0.5);
  border-radius: 8px;
  opacity: 0;
  -webkit-box-shadow: 0px 15px 50px 0px rgba(27, 32, 50, 0.1) !important;
  box-shadow: 0px 15px 50px 0px rgba(27, 32, 50, 0.1) !important;
  padding: 12px;
}

.custom-dropdown .dropdown-menu li>a {
  padding: 4px 18px;
  border-radius: 5px;
  transition: .25s all;
}

.custom-dropdown.show .dropdown-menu {
  max-height: 500px;
  /* large enough for content */
  opacity: 1;
  transition: opacity 0.2s ease-in-out 0.05s, visibility 0.2s ease-in-out 0.05s,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s,
    -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s;
}

.navbar .dropdown-toggle::after {
  display: none !important;
}

.dropdown-chevron {
  transition: transform 0.25s ease;
}

.dropdown-toggle.show .dropdown-chevron {
  transform: rotate(180deg);
}

/* desktop hover (≥992px) */
@media (min-width: 992px) {

  .custom-dropdown:hover .dropdown-menu,
  .custom-dropdown:hover .dropdown-chevron {
    max-height: 500px;
    opacity: 1;
  }
}

/* ================================================
   MOBILE MENU — Full-Screen Drawer
   ================================================ */

/* Overlay: oculto por defecto */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  z-index: 10000;
  /* Debajo del toggler que tiene 10001 */
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

/* Cuando está abierto */
.mobile-menu-overlay.is-open {
  transform: translateX(0);
}

/* Header: logo izquierda + X derecha */
/* Con menú abierto, navbar integrado sin sombras */
body.mobile-menu-open .navbar.bg-glass {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

body.mobile-menu-open .navbar a img {
  filter: none !important;
  opacity: 1 !important;
  /* Opacidad completa para colores brillantes */
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  visibility: hidden;
  /* El logo lo provee el navbar, pero reservamos el espacio */
}

.mobile-menu-header img {
  filter: none !important;
  opacity: 1 !important;
}

.mobile-menu-close {
  display: none !important;
  /* Ocultamos el botón estático para usar el hamburguesa animado */
}

.mobile-menu-close span {
  color: var(--toggler-color);
  font-size: 2rem;
  line-height: 1;
}

/* Nav: lista de tarjetas */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 40px 24px 12px;
  /* Margen superior amplio por el logo */
  gap: 12px;
  margin-top: 10px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 24px !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 24px !important;
  /* Forma de píldora según imagen */
  text-decoration: none;
  color: var(--text-main) !important;
  font-size: 1.1rem !important;
  font-weight: 500;
  background: var(--bg-card);
  box-shadow: 0 4px 12px var(--shadow-sm);
  /* Sombra muy sutil */
  transition: all 0.25s ease;
  text-align: center;
  /* Centrado como en la imagen */
}

.mobile-nav-link:active,
.mobile-nav-link.active,
.mobile-nav-link.active-blue {
  background: #2196f3 !important;
  border-color: #2196f3 !important;
  color: #ffffff !important;
  font-weight: 600;
  transform: scale(0.98);
}

/* Footer del menú: formulario contacto */
.mobile-menu-footer {
  padding: 30px 24px 70px;
  /* Más espacio inferior */
  background: #fdfdfd;
  /* Fondo ligeramente diferente para distinguir */
  margin-top: auto;
  position: relative;
  z-index: 5;
}

.mobile-menu-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  /* Línea divisoria tenue */
}

.mobile-menu-footer .form-control {
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 14px 20px;
  margin-bottom: 12px;
  text-align: center;
}

.mobile-menu-footer .btn-primary {
  border-radius: 24px !important;
  padding: 14px 20px;
  background-color: #2196f3 !important;
  border: none !important;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}

.hero-60vh {
  min-height: 65vh;
}

.hero-500mh {
  min-height: 500px;
}

.outlined {
  border: 1px solid var(--default-color-outlined);
}

.box-card {
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  padding: 18px 48px;
  text-align: center;
  /* height: -webkit-fill-available;
  height: 260px; */
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px color-mix(in srgb, var(--default-color), transparent 88%);
  border: none;
}

.box-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  padding-bottom: 0.5rem;
}

.box-card h2 small {
  font-size: 1.5rem;
  /* font-weight: 500; */
  /* padding-left: 5px; */
}

.box-card p {
  font-size: 1rem;
  line-height: 1.2;
}


/* Box background variants (Legacy) */

/* flotar */
.btn-atention-left {
  animation: 4s linear infinite atention-left;
}

@keyframes atention-left {
  0% {
    transform: translateX(-20px);
  }

  5% {
    transform: translateX(0);
  }

  95% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-20px);
  }
}

.underline-svg {
  background-color: khaki;
  padding: 0px 7px;
  border-radius: 0 20%;
  font-weight: initial;
}

/* 1. Estilos base del ícono */
.animated-icon {
  position: relative;
  /* Esencial para posicionar el círculo */
  display: inline-block;
  animation-name: circle-jump-animation;
  animation-duration: 8s;
  /* Duración total de la animación */
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  /* Repetir indefinidamente */
}

/* 2. El círculo animado (pseudo-elemento) */
.animated-icon::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 2px solid transparent;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  box-sizing: border-box;
}

/* 3. La animación paso a paso */
@keyframes circle-jump-animation {

  /* Inicio: el ícono en su estado normal, el círculo no es visible */
  0% {
    transform: translateY(0);
  }

  /* Primer salto: el ícono salta y el círculo empieza a aparecer */
  10% {
    transform: translateY(-10px);
  }

  /* El ícono regresa a su posición y el círculo se completa */
  20% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(0);
    border-color: transparent;
  }

  /* El círculo se completa alrededor del ícono */
  40% {
    border-top-color: currentColor;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: scale(1);
    opacity: 1;
  }

  50% {
    border-right-color: currentColor;
  }

  60% {
    border-bottom-color: currentColor;
  }

  70% {
    border-left-color: currentColor;
  }

  /* Espera de 4 segundos y el ícono realiza el salto final */
  80% {
    transform: translateY(0);
    border-color: currentColor;
    opacity: 1;
  }

  90% {
    transform: translateY(-10px);
    border-color: transparent;
    opacity: 0;
  }

  /* Fin del ciclo: el ícono vuelve a su posición y el círculo desaparece */
  100% {
    transform: translateY(0);
    border-color: transparent;
    opacity: 0;
  }
}

.plans-section .card.popular-plan {
  border-color: var(--bg-primary);
}

.plans-section .card.popular-plan .badge {
  background-color: var(--bg-primary) !important;
  color: var(--colors--white) !important;
  font-size: 1.1rem;
  padding: 7px 22px;
}

.plans-section .card {
  border: 3px solid var(--bg-card);
  background-color: var(--bg-card);
  background-image: linear-gradient(180deg,
      var(--bg-card),
      var(--bg-alt));
  border-radius: 16px;
  flex-flow: column;
  padding: 16px;
}

.plans-section .card li i {
  padding-right: 5px;
}

.plans-section .card li {
  line-height: 2;
  display: flex;
  gap: 5px;
}

.plans-section .card-title {
  margin-bottom: 0.5rem;
  font-size: 2em;
  font-weight: bolder;
}

.card.card-waitlist .card-title {
  font-size: 1.5rem;
  font-weight: bolder;
  color: var(--colors--white) !important;
}

.card.card-waitlist p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--colors--white) !important;
}

.card.card-waitlist .btn {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--colors--white) !important;
  background: #2196f3b0;
  padding: 5px 10px;
  align-self: center;
  text-shadow: 0 0 black;
  text-wrap: nowrap;
}

.card.card-waitlist {
  display: flex;
  /* background-color: var(--bg-primary); */
  background-image: linear-gradient(88deg, #000000ba, #000000f0);
  color: var(--colors--white) !important;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  text-align: left;
  padding: 2rem 4rem !important;
  gap: 2rem;
}

.card.card-faq {
  padding: 2rem;
  border-radius: 16px;
  background: var(--bg-alt);
  border: none;
  text-align: left;
  /* background-image: linear-gradient(88deg, #000000ba, #000000f0); */
  align-items: stretch;
}

.card.card-faq .accordion-body {
  background: var(--bg-alt);
  padding: 1rem 4rem 1rem 1rem;
  font-size: 1rem;
}

.card.card-faq .accordion-item {
  border: none;
  margin-bottom: 1rem;
}

.card.card-faq .accordion-header {
  transition: all 0.25s;
}

.card.card-faq .accordion-button {
  background-color: var(--bg-card);
  border: 2px solid var(--bg-card) !important;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  transition: all .25s;
}

.card.card-faq .accordion-item:hover .accordion-button {
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.accordion-item:first-of-type .accordion-button {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.accordion-item:last-of-type .accordion-button {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}


/* Eliminando el borde exterior y el fondo del contenedor principal */
.accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-bg: transparent;
}

/* Pricing Plans Section - Light */
.plans-section-light {
  background-color: var(--bg-body);
  color: var(--text-main) !important;
  padding: 80px 0;
}

.bg-section-light-grey {
  background-color: var(--bg-alt) !important;
}

.bg-light {
  background-color: var(--bg-card) !important;
}


.plans-section-light h1,
.plans-section-light h2,
.plans-section-light h3,
.plans-section-light h4,
.plans-section-light h5,
.plans-section-light h1 span,
.plans-section-light h2 span,
.plans-section-light h3 span {
  color: #1a1a1a !important;
}

.plans-section-light p {
  color: var(--text-muted) !important;
}

/* Solo aplica a spans DENTRO de p o de secciones de features, no a los labels del toggle */
.plans-section-light p span,
.plans-section-light .plan-features-light span {
  color: var(--text-muted) !important;
}

.plans-section-light .text-primary {
  color: var(--bs-primary) !important;
}

/* Pricing Selector Buttons Styles */
.pricing-switcher {
  display: flex;
  position: relative;
  background-color: var(--bg-alt);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  width: fit-content;
  margin: 0 auto;
}

.pricing-switcher button {
  padding: 10px 32px;
  border: none;
  background: transparent !important;
  color: var(--text-main) !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  min-width: 140px;
  outline: none !important;
}

.pricing-switcher button.active {
  color: #fff !important;
}

.pricing-switcher .switcher-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background-color: var(--primary-bright);
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
  z-index: 1;
}

.pricing-switcher.annual .switcher-slider {
  transform: translateX(100%);
}

.plan-card-light {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow-sm);
}

.plan-card-light:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--bg-primary);
}

.popular-badge-light {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-bright);
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.plan-card-light.popular {
  border: 2px solid var(--primary-bright);
  background: var(--bg-card);
  padding-top: 50px;
  /* More space at the top for the badge */
}

.plan-name-light {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-heading) !important;
}

.plan-price-container {
  text-align: center;
}

.plan-price-light {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--text-heading) !important;
  line-height: 1;
}

.plan-price-light span {
  font-size: 1.1rem;
  font-weight: 500;
  color: #888 !important;
}

.plan-description-light {
  font-size: 1rem;
  color: #666 !important;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-outline-custom-light {
  background: transparent;
  border: 2px solid #e0e0e0;
  color: #333 !important;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-custom-light:hover {
  background: #f8f9fa;
  border-color: #333;
}

.btn-primary-custom-light {
  background: var(--bg-primary);
  border: none;
  color: #fff !important;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary-custom-light:hover {
  background: #1976d2;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Billing Toggle Styling Placeholder - Consolidated Above */

.custom-toggle-light .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(33, 150, 243, 0.25);
}

.plan-implementation-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 5px;
}

.plan-features-light h6 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1a1a1a !important;
}

.plan-features-light ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features-light ul li {
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #444 !important;
  line-height: 1.2;
}

.plan-features-light ul li i {
  color: #2196f3 !important;
  font-size: 1.2rem;
}

.card-waitlist-light {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 40px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-waitlist-light h4 {
  color: #1a1a1a !important;
}

.card-waitlist-light p {
  color: #666 !important;
}


.tag-light-gray {
  background-color: var(--border-color);
  padding: 8px 12px;
  margin-right: .5rem;
  line-height: 1;
  border-radius: 8px;
  font-size: .8em;
}

.text-blur-reveal-left {
  opacity: 0;
  filter: blur(10px);
  transform: translateX(-20px);
  animation: blur-reveal-left 1s ease-out forwards;
}

@keyframes blur-reveal-left {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-20px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }
}

.text-blur-reveal {
  animation: blurReveal 1s ease-out forwards;
}

@keyframes blurReveal {
  0% {
    filter: blur(10px);
    opacity: 0;
  }

  100% {
    filter: blur(0);
    opacity: 1;
  }
}

.bg-grid-dynamic {
  position: relative;
  overflow: hidden;
  /* Capa 1: Cuadrícula base (Grey suave) */
  background-image:
    linear-gradient(to right, rgba(128, 128, 128, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

@media (max-width: 768px) {

  section,
  .section {
    padding: 80px 0 !important;
    /* Más aire vertical en secciones */
  }

  .mb-100 {
    margin-bottom: 90px !important;
  }

  .display-5 {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.8rem !important;
  }

  .display-6 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }

  .row>[class*="col-"] {
    margin-bottom: 20px;
    /* Reducido para evitar huecos grandes en móviles */
  }

  .ma-4 {
    margin: 1.5rem 0.5rem !important;
  }

  .p-5 {
    padding: 1.75rem !important;
    /* Ajuste para que el texto no se sienta atrapado */
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Capa 2: Efecto de barrido de actividad (Azul nítido) */
.bg-grid-dynamic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
}

@keyframes fallBounce {
  0% {
    transform: translateY(-200%);
    opacity: 0;
    animation-timing-function: ease-in;
  }

  20% {
    transform: translateY(0);
    opacity: 1;
    animation-timing-function: ease-out;
  }

  40% {
    transform: translateY(-30px);
    animation-timing-function: ease-in;
  }

  55% {
    transform: translateY(0);
    animation-timing-function: ease-out;
  }

  70% {
    transform: translateY(-15px);
    animation-timing-function: ease-in;
  }

  80% {
    transform: translateY(0);
    animation-timing-function: ease-out;
  }

  90% {
    transform: translateY(-5px);
    animation-timing-function: ease-in;
  }

  100% {
    transform: translateY(0);
    animation-timing-function: ease-out;
  }
}

.animate-fall-bounce {
  display: inline-block;
  animation: fallBounce 1.5s both;
}

.flujo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flujo ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flujo ul li {
  font-size: .75rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main) !important;
  line-height: 1;
  border-radius: 8px;
  padding: 8px 12px;
  background-color: #EAFFB1;
  box-shadow:
    0 4px 12px var(--shadow-sm),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  transform: translateX(500px);
  opacity: 0;
}

.flujo.active ul li {
  animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(500px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Logo Width Standards */
.navbar a img {
  width: 160px !important;
  height: auto;
}

@media (max-width: 460px) {
  .navbar a img {
    width: 140px !important;
  }
}

@media (max-width: 360px) {
  .navbar a img {
    width: 120px !important;
  }
}

.box-grey {
  background-color: #eceff1;
  padding: 2rem;
  border-radius: 15px;
  position: relative;
}

.box-outlined {
  padding: .5rem 1rem;
  border-radius: 15px;
  border: 1px solid #6c757d38;
  position: relative;
}

.bg-cuadricula {
  background-image:
    linear-gradient(#e0e4e6 1px, transparent 1px),
    linear-gradient(90deg, #e0e4e6 1px, transparent 1px);
  background-size: 40px 40px;
}

.pos-top-right {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.pos-bottom-right {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.animate-spin-pause {
  display: inline-block;
  animation: spin-pause 1.5s infinite ease-in-out;
}

@keyframes spin-pause {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.animate-pulse {
  display: inline-block;
  animation: pulse .5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.tasks-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 2rem;
}

.tasks-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tasks-left ul li {
  font-size: .85rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main) !important;
  line-height: 1;
  border-radius: 8px;
  padding: 10px 14px;
  background-color: #b1c1ff3b;
  box-shadow:
    0 4px 10px var(--shadow-sm),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  transform: translateX(500px);
  opacity: 0;
  border: 1px solid var(--border-light);
}

.tasks-left.active ul li {
  animation: slideInLeft .5s ease-out forwards;

  .check-reveal {
    opacity: 0;
    transform: scale(.5), translateX(-50px);
    animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  70% {
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-500px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal-on-scroll {
  view-timeline-name: --reveal;
  view-timeline-axis: block;
  animation-timeline: --reveal;
  animation-range: entry 0 cover 25%;
  animation-fill-mode: both;
}

.reveal-on-scroll-100 {
  view-timeline-name: --reveal;
  view-timeline-axis: block;
  animation-timeline: view();
  animation-range: entry 25% cover 50% !important;
  animation-fill-mode: both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.box-orbital {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;

  ul {
    list-style: none;
    padding: 0;
    margin: 1rem;

    li {
      font-size: .85rem;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #444 !important;
      line-height: 1;
      border-radius: 8px;
      padding: 8px 12px;
      background-color: #EAFFB1;

      opacity: 0;
    }
  }
}

.box-orbital.active ul li {
  animation: blurReveal 1s ease-out forwards;
}

.box-orbital.active ul li .check-reveal {
  opacity: 0;
  transform: scale(.5), translateX(-50px);
  animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================================================
   UI STANDARDS: NAVBAR, TRANSITIONS & HAMBURGER
   ========================================================================= */

/* Smooth Page Transitions */
body {
  animation: fadeInPage 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  opacity: 0;
  padding-top: 80px;
  /* Espacio para el navbar fijo en desktop y móvil */
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Glassmorphism Full Width Navbar */
#header.navbar.bg-glass {
  z-index: 10005 !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
}

.navbar.bg-glass {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background-color: var(--bg-glass) !important;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 10px 0;
}

/* Scrolled state shadow */
@media (min-width: 992px) {
  .navbar.bg-glass.navbar-scrolled {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 991px) {
  .navbar.bg-glass.navbar-scrolled {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
}

/* Dark mode of the navbar (changed via JS) */
.navbar.bg-glass.navbar-dark-mode {
  background-color: rgba(30, 30, 30, 0.75) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.bg-glass.navbar-dark-mode .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Navbar Link Hover Effect (Light Gray Pill) */
.navbar-nav .nav-link {
  transition: all 0.3s ease;
  border-radius: 20px;
  padding: 6px 16px !important;
  margin: 0 4px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--nav-link) !important;
}

.navbar.bg-glass .navbar-nav .nav-link:hover {
  background-color: #f1f3f5;
  color: var(--default-color) !important;
}

.navbar.bg-glass .navbar-nav .nav-link.active {
  background-color: #f1f3f5;
  color: var(--default-color) !important;
}

.navbar.bg-glass.navbar-dark-mode .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.navbar.bg-glass.navbar-dark-mode .navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

/* Logo transition for smooth color switch */
.navbar .navbar-brand img,
.navbar a img {
  transition: filter 0.4s ease;
}

.navbar.navbar-dark-mode a img {
  filter: brightness(0) invert(1);
}

/* Custom Hamburger Menu */
.custom-toggler {
  border: none !important;
  background: transparent !important;
  padding: 5px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
}

.custom-toggler .line {
  position: absolute;
  width: 26px;
  height: 2px;
  background-color: var(--toggler-color);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.navbar.navbar-dark-mode .custom-toggler .line {
  background-color: #ffffff;
}

/* Specific line widths and positions for mathematical perfect X */
.custom-toggler .line1 {
  transform: translateY(-7px);
  width: 16px;
  margin-right: -10px;
}

.custom-toggler .line2 {
  transform: translateY(0);
  width: 26px;
}

.custom-toggler .line3 {
  transform: translateY(7px);
  width: 18px;
  margin-left: -8px;
}

/* Expanded state (perfect mathematical X cross) */
.custom-toggler[aria-expanded="true"] .line1 {
  width: 26px;
  margin-right: 0;
  transform: translateY(0) rotate(45deg);
}

.custom-toggler[aria-expanded="true"] .line2 {
  opacity: 0;
  transform: translateX(-15px);
}

.custom-toggler[aria-expanded="true"] .line3 {
  width: 26px;
  margin-left: 0;
  transform: translateY(0) rotate(-45deg);
}

/* --- Mobile Menu adjustments --- */
@media (max-width: 991px) {

  /* Full viewport menu overrides */
  .navbar-collapse {
    background-color: var(--bg-card);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh !important;
    /* Ensure full height */
    z-index: 1025;
    padding: 80px 25px 30px 25px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    /* Vertically center options */
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    transform: translateX(0);
    opacity: 1;
  }

  .navbar.navbar-dark-mode .navbar-collapse {
    background-color: #1a1a1a;
  }

  /* Toggler always on top of the fullscreen menu */
  .custom-toggler {
    z-index: 10010;
  }

  .navbar-collapse .navbar-nav {
    align-items: center !important;
    flex-grow: 1;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    /* Two columns */
    gap: 15px;
    width: 100%;
    margin-top: 40px;
  }

  .navbar-nav .nav-link {
    text-align: left !important;
    width: 100%;
    padding: 15px 16px !important;
    margin: 0;
    font-size: 1.1rem;
    border-bottom: none !important;
  }

  /* Push the footer form to the bottom with spacing */
  .navbar-collapse .d-lg-none.mt-auto {
    margin-top: auto !important;
    padding-top: 40px !important;
    /* Spacing before form */
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .container {
    max-width: 95% !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

.mobile-menu-form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ================================================
   MODERN BACK TO TOP COMPONENT
   ================================================ */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 25px;
  bottom: 25px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  /* Esquinas redondeadas modernas */
  background: var(--bs-primary);
  /* Color azul iSAGI */
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  cursor: pointer;
  transform: translateY(20px);
  /* Ligero desplazamiento inicial */
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-bright);
  transform: translateY(-5px);
  /* Pequeño salto al pasar el mouse */
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.back-to-top i {
  color: white !important;
  line-height: 0;
}

/* Share Button Modern */
.btn-share-modern {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 25px;
  bottom: 80px;
  /* Encima del back to top */
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #6c757d;
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  z-index: 9998;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(20px);
}

.btn-share-modern.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.btn-share-modern:hover {
  background: #5a6268;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-share-modern i {
  color: white !important;
  line-height: 0;
}

/* ==========================================================================
   MODO OSCURO (DARK MODE) — OVERRIDES FINALES
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Core Brand Colors */
    --primary: #2196f3;
    --primary-bright: #42a5f5;
    --secondary: #94a3b8;

    /* Legacy/Bootstrap Overrides */
    --bs-primary: #2196f3;
    --bg-primary: #2196f3;
    --text-primary: #60a5fa;
    --default-color: #94a3b8;
    --default-color-outlined: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-main: #94a3b8;
    --text-heading: #f1f5f9;
    --text-muted: #64748b;
    /* --text-on-primary stays white */

    /* Background Colors */
    --bg-body: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --bg-footer: #020617;
    --bg-glass: rgba(15, 23, 42, 0.85);
    --bg-box: #1e293b;

    /* Borders and UI */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-sm: rgba(0, 0, 0, 0.3);

    /* Specific Components */
    --nav-link: #f1f5f9;
    --input-bg: #1e293b;
    --toggler-color: #f1f5f9;
  }

  /* Universal Overrides for Dark Mode */
  body {
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
  }

  .bg-white,
  .bg-light,
  .bg-section-light-grey,
  .bg-grid-dynamic {
    background-color: var(--bg-body) !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  .display-4,
  .display-5,
  .display-6,
  .plan-name-light,
  .plan-price-light {
    color: var(--text-heading) !important;
  }

  p,
  .text-secondary,
  .plan-description-light,
  .text-muted {
    color: var(--text-main) !important;
  }

  .btn-secondary {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
  }

  /* Cards and Sections */
  .card,
  .box-card,
  .plan-card-light,
  .card-waitlist-light,
  .box-grey,
  .box-outlined,
  .mobile-menu-overlay {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
  }

  .card-faq,
  .accordion-body,
  .accordion-button,
  .mobile-nav-link {
    background-color: var(--bg-alt) !important;
    color: var(--text-heading) !important;
  }

  .navbar.bg-glass {
    background-color: var(--bg-glass) !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  /* Brands Interactive Grid Display (Fly-in Animation) */
  .marcas-experience {
    width: 100%;
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    /* Prevent horizontal scroll from incoming logos */
  }

  .brands-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    will-change: transform, opacity;
  }

  .brand-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    width: 100%;
    transition: all 1s ease;
  }

  .brand-unit {
    width: 140px;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .navbar-brand img,
  .navbar a img,
  .footer-logo img,
  .mobile-menu-header img,
  .brand-unit img,
  .brand-unit,
  [src*="logo"],
  [src*="marca"],
  [src*="logostec"] {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease;
  }

  /* Initial Scatter (Coming from edges) */
  .float-left {
    transform: translateX(-100px);
  }

  .float-right {
    transform: translateX(100px);
  }

  .float-top {
    transform: translateY(-50px);
  }

  .float-bottom {
    transform: translateY(50px);
  }

  /* Grid Active State: Concentrated in center */
  .brands-grid.active .brand-unit {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) rotate(0) scale(1);
  }

  /* Secondary Floating Effect (Subtle orbit) */
  .brands-grid.active .brand-unit img {
    animation: rebrandingFloat 15s infinite ease-in-out;
  }

  @keyframes rebrandingFloat {

    0%,
    100% {
      transform: translateY(0) rotate(0);
    }

    25% {
      transform: translateY(-12px) rotate(3deg) scale(1.05);
    }

    75% {
      transform: translateY(8px) rotate(-1deg) scale(0.98);
    }
  }

  /* Mobile Optimization */
  @media (max-width: 768px) {
    .marcas-experience {
      padding: 30px 0;
    }

    .brand-unit {
      width: 70px;
      /* 50% smaller from original ~140px */
    }

    .brand-row {
      gap: 30px;
    }

    .brand-row.row-mid {
      gap: 50px;
    }

    .brands-grid {
      gap: 25px;
    }
  }

  .footer,
  .marcas {
    background-color: transparent !important;
  }

  /* 1. Navbar: Fix high-contrast pill on dark background */
  .navbar.bg-glass .navbar-nav .nav-link.active,
  .navbar.bg-glass .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
  }

  /* 3. Icon Grids (Rubros/Tags): Enhance contrast and square icons */
  .rubro,
  .tag {
    background-color: transparent !important;
    border: none !important;
  }

  .rubro div,
  .tag-text h5,
  .tag-text p,
  .tag-text {
    color: var(--text-main) !important;
  }

  .rubro i,
  .tag-icon i {
    color: var(--primary-bright) !important;
    margin-right: 0 !important;
    /* Remove legacy margin for perfect centering */
    display: block !important;
  }

  .rubro div:nth-child(1),
  .tag-icon {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    width: 3.2rem !important;
    height: 3.2rem !important;
    min-width: 3.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1.2rem !important;
    padding: 0 !important;
  }

  /* 4. Contact Input: Dark theme for the pill input */
  .input-group-rounded {
    background-color: var(--bg-alt) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  }

  .input-group-rounded input {
    background-color: transparent !important;
    color: #ffffff !important;
  }

  .input-group-rounded input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
  }

  /* 5. Special Sections Backgrounds and Grids */
  .box,
  .box-grey {
    background-color: var(--bg-alt) !important;
    border: 1px solid var(--border-color) !important;
  }

  .bg-cuadricula {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
  }

  /* 6. Buttons: Fix btn-light in dark mode */
  .btn-light {
    background-color: var(--bg-alt) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
  }

  .btn-light:hover {
    background-color: var(--border-color) !important;
    color: #f1f5f9 !important;
  }

  /* 7. Global Text Rules for Dark Mode */
  body,
  p,
  span,
  li,
  div,
  label,
  input,
  textarea {
    color: var(--text-main) !important;
  }

  h1,
  h2,
  h3,
  .h1,
  .h2,
  .h3,
  h1 small,
  h2 small,
  h3 small {
    color: #f1f5f9 !important;
  }

  .btn-primary,
  .bg-primary,
  .btn-primary *,
  .bg-primary * {
    color: #ffffff !important;
  }

  .plan-features-light ul li {
    color: #f1f5f9 !important;
  }

  .plan-features-light h6 {
    color: #ffffff !important;
  }

  .plan-description-light {
    color: #cbd5e1 !important;
  }

  .plan-implementation-label {
    color: #94a3b8 !important;
  }

  /* Custom Pricing Switcher Dark Mode */
  .pricing-switcher {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .pricing-switcher button {
    color: #94a3b8 !important;
  }

  .pricing-switcher button.active {
    color: #ffffff !important;
  }

  /* Animations / Task List labels contrast fixes */
  .flujo ul li,
  .box-orbital ul li {
    color: #1a1a1a !important;
    /* Negro sobre fondo amarillo/lima */
  }

  .flujo ul li i,
  .box-orbital ul li i {
    color: #333 !important;
    /* Iconos oscuros sobre amarillo */
    opacity: 0.8;
  }

  .tasks-left ul li {
    color: #ffffff !important;
    /* Blanco sobre fondo oscuro */
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }

  .tasks-left ul li i {
    color: #ffffff !important;
    opacity: 1;
  }
}

/* ==========================================================================
   GLOBAL FAQ ACCORDION REFINEMENTS (Light & Dark)
   ========================================================================== */
.card-faq {
  background-color: transparent !important;
  border: none !important;
}

@media (max-width: 768px) {
  .card.card-faq {
    padding: 0 !important;
  }
}

.accordion-item {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.accordion-item:has(.accordion-button:not(.collapsed)),
.accordion-item.active {
  border-color: transparent !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Header Button Styling */
.accordion-button {
  background-color: transparent !important;
  color: var(--text-heading) !important;
  padding: 1.5rem !important;
  font-weight: 600;
}

/* Explicitly remove ANY border Bootstrap or hover adds */
.accordion-button,
.accordion-button:focus,
.accordion-button:active,
.accordion-button:not(.collapsed),
.accordion-button:hover {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: transparent !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.accordion-button::after {
  background-image: none !important;
  content: "+" !important;
  font-size: 2rem;
  font-weight: 200;
  line-height: .5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
  margin-top: -4px;
  width: auto;
  height: auto;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.accordion-body {
  background-color: transparent !important;
  color: var(--text-main) !important;
  padding-top: 0 !important;
  border: none !important;
}

/* Specific Light Mode Shadow refinement */
:root:not([data-theme='dark']) .accordion-item {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

@media (prefers-color-scheme: dark) {
  .accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2) !important;
  }

  /* Ensure active state in dark mode also has no border */
  .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: transparent !important;
  }
}

/* Fix mobile menu footer background to be dark/transparent */
.mobile-menu-footer {
  background-color: transparent !important;
}