section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

:root {
  --primary: #040b29; /* IngeniaCore Deep Navy */
  --secondary: #00e5ff; /* IngeniaCore Cyan */
  --bg-dark: #020514;
  --text-light: #f8fafc;
  --text-dim: #94a3b8;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
/* Navbar */
nav {
  padding: 20px 0;
  display: flex;
  flex-wrap: nowrap; /* keep it single row */
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(2, 5, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 80px;
  box-sizing: border-box;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--secondary);
}
.nav-links a.btn-primary {
  color: var(--primary) !important;
}
.nav-links a.btn-primary:hover {
  color: var(--primary) !important;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}
.logo img {
  max-width: 100%;
  height: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.logo:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}
.logo:active img {
  transform: scale(0.95);
  filter: drop-shadow(0 0 8px rgba(0, 237, 230, 0.8)) drop-shadow(0 0 15px rgba(0, 237, 230, 0.5));
}
.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover {
  background-color: #33ebff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

/* Hero */
.hero {
  scroll-margin-top: 40px;
  padding: 120px 0 100px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, #b3e5fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 750px;
  margin: 0 auto 40px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 60px 0 100px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 16px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--secondary);
}
.feature-card h3 {
  color: var(--secondary);
  margin-top: 0;
  font-size: 1.3rem;
}

/* Professional Value Section */
.productos-section,
.professional-value {
  scroll-margin-top: 40px;
}
.professional-value {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.03) 100%);
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-light);
  line-height: 1.2;
}
.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Overriding inline bottom margin from index.html */
.productos-section > p {
  margin-bottom: 30px !important;
}
/* Base Product Card */
.product-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}
.product-card:hover::before {
  opacity: 1;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.value-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}
.value-card:hover::before {
  opacity: 1;
}
.value-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.value-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 229, 255, 0.3));
  transition: transform 0.3s ease;
}
.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}
.value-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 16px 0;
  text-align: center;
}
.value-description {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: center;
}
.value-description strong {
  color: var(--text-light);
  font-weight: 600;
}
.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.value-list li {
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease;
}
.value-list li:hover {
  transform: translateX(4px);
}

/* Footer */
footer {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.9rem;
}
.powered-by {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.8;
}
.powered-by img {
  height: 24px;
}

/* Modern Full-Width Slider */
.modern-slider-wrap {
  position: relative;
  width: 100%;
  padding: 0 0 20px 0;
}
.modern-slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.modern-slider-track-wrap {
  overflow: hidden;
  width: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(2, 5, 20, 0) 0%, rgba(0, 229, 255, 0.02) 100%);
}
.modern-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}
.modern-slide {
  min-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 40px 60px;
  box-sizing: border-box;
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.modern-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Circular Design Container */
.circle-card-wrapper {
  position: relative;
  flex-shrink: 0;
}
.circle-card {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(4, 11, 41, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.1),
    inset 0 0 20px rgba(0, 229, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.circle-card:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow:
    0 0 60px rgba(0, 229, 255, 0.2),
    inset 0 0 30px rgba(0, 229, 255, 0.1);
}
.circle-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
}
.circle-card:hover .circle-icon {
  transform: scale(1.1) rotate(5deg);
}
.circle-title {
  color: var(--secondary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}
.circle-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Inner Benefits Layout */
.slide-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
}
.benefit-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.benefit-card:hover {
  transform: translateX(10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(0, 229, 255, 0.3);
}
.benefit-title {
  color: var(--text-light);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.benefit-title i {
  color: var(--secondary);
}
.benefit-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Arrow Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 5, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--secondary);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.slider-arrow:hover {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow.left {
  left: 0;
}
.slider-arrow.right {
  right: 0;
}

/* Dot Indicators */
.modern-slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  z-index: 10;
}
.modern-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.modern-dot:hover {
  background: rgba(0, 229, 255, 0.5);
}
.modern-dot.active {
  background: var(--secondary);
  width: 24px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Responsive Slider */
@media (max-width: 1024px) {
  .modern-slide {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 30px 40px;
  }
  .circle-card {
    width: 380px;
    height: 380px;
    padding: 40px;
  }
  .benefit-card:hover {
    transform: translateY(-5px);
  }
}
@media (max-width: 768px) {
  .circle-card {
    width: 320px;
    height: 320px;
    padding: 35px;
  }
  .circle-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  .circle-desc {
    font-size: 0.9rem;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
  .circle-icon {
    font-size: 2.5rem;
  }
  .slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .slider-arrow.left {
    left: 0;
  }
  .slider-arrow.right {
    right: 0;
  }
  .modern-slide {
    padding: 20px 30px;
  }
}

/* Mobile Menu Button Base */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1000;
  margin-left: 10px;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -290px;
    width: 250px;
    height: 100vh;
    background: rgba(4, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 80px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: stretch;
    box-sizing: border-box;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    margin: 15px 0;
    font-size: 1.2rem;
  }
}

/* Mobile App Button Visibility */
.mobile-only {
  display: none !important;
}
@media (max-width: 900px) {
  #enterAppBtn {
    display: none;
  }
  .mobile-only {
    display: block !important;
  }
  nav {
    padding: 10px 0 !important;
  }
  .hero {
    padding-top: 20px !important;
  }
}

@media (max-width: 768px) {
  .hero,
  .productos-section,
  .professional-value {
    scroll-margin-top: 20px;
  }
  .container {
    padding: 0 15px; /* slightly smaller container padding to maximize screen real estate */
  }
  nav {
    padding: 10px 0 !important;
    min-height: 60px;
    gap: 10px; /* add gap to prevent overlap */
    background: #020514 !important; /* solid bg to prevent containing block filter on mobile */
    backdrop-filter: none !important; /* MUST be none to allow fixed child to attach to viewport */
  }
  .logo img {
    max-width: 140px; /* shrink width more aggressively on mobile to leave room for buttons */
    height: auto;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero {
    padding-top: 20px !important;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .value-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .value-card {
    padding: 30px 20px;
  }
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: inline-block;
}
.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  min-height: 38px;
  box-sizing: border-box;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #040b29;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  min-width: 150px;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.lang-dropdown.open {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.lang-option:hover {
  background: rgba(0, 229, 255, 0.1);
}
.lang-option.active {
  color: var(--secondary);
  font-weight: 600;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
  overflow-y: auto;
  box-sizing: border-box;
}
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #333;
  margin: auto;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .modal-content {
    padding: 24px 20px;
    max-width: 100%; /* Occupy full width minus overlay padding */
  }
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}
.form-group {
  margin-bottom: 5px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  background-color: #fff;
  color: #333;
  box-sizing: border-box; /* Fix padding issue */
}
.form-group input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}
/* Custom Alert System - Lightweight replacement for SweetAlert2 */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeIn 0.2s forwards;
}
.custom-alert {
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  animation: scaleIn 0.3s forwards;
}
.custom-alert-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
}
.custom-alert-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}
.custom-alert-text {
  color: #666;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}
.custom-alert-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.custom-alert-btn.success {
  background: var(--secondary);
  color: var(--primary);
}
.custom-alert-btn.success:hover {
  background: #33ebff;
  transform: translateY(-2px);
}
.custom-alert-btn.warning {
  background: #040b29;
  color: white;
}
.custom-alert-btn.error {
  background: #d32f2f;
  color: white;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  to {
    transform: scale(1);
  }
}

.pricing-section {
  min-height: 800px;
}
