.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}





.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  
  
}


.hero__content {
  position: relative;
  
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}


.hero__title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  max-width: 620px;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}


/* ── Hero 2-column split ── */
.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 9rem 0 6rem;
}

.hero__copy {
  display: flex;
  flex-direction: column;
}

.hero__copy .hero__subtitle {
  max-width: none;
  margin-bottom: 2rem;
}

.hero__chat-col {
  display: flex;
  flex-direction: column;
}

/* ── CTA Buttons ── */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  background: linear-gradient(135deg, #6CF2C2, #4ee8aa);
  color: #0E0E10;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
  box-shadow: 0 12px 36px rgba(108,242,194,0.30);
  animation: hero-cta-pulse 3.5s ease-in-out infinite;
}
.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(108,242,194,0.50);
}
@keyframes hero-cta-pulse {
  0%, 60%, 100% { box-shadow: 0 12px 36px rgba(108,242,194,0.30); }
  30%            { box-shadow: 0 12px 36px rgba(108,242,194,0.50), 0 0 0 10px rgba(108,242,194,0.06); }
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.78);
  font-size: 0.90rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}
.hero-cta-secondary:hover {
  border-color: rgba(108,242,194,0.35);
  color: #6CF2C2;
  background: rgba(108,242,194,0.05);
  transform: translateY(-2px);
}
.hero-cta-secondary i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.hero-cta-secondary:hover i {
  transform: translateX(4px);
}

.hero__meta {
  margin-top: 2rem;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .hero__split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 7rem 0 4rem;
  }
  .hero__copy {
    order: 1;
  }
  .hero__chat-col {
    order: 2;
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-primary,
  .hero-cta-secondary {
    justify-content: center;
  }
}





/* =============================================
   PROBLEM TECH SECTION
============================================= */

.problem-tech {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}


#pixelCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;
  pointer-events: none;
  opacity: 0.35;  /* M��s sutil */
}

.container--narrow {
  position: relative;
  z-index: 2;
}


/* Grid */
.problem-tech__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.problem-tech__title {
 margin-bottom:50px;    
 letter-spacing: -0.01em;
 max-width: 900px;
 line-height: 1.15;

    
}


/* GLASS MORPHING REAL */
/* GLASS MORPHING · ULTRA PRO */

.problem-card {
  position: relative;
  padding: 2.5rem;
  overflow: hidden;

  background: rgba(15, 20, 32, 0.45);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04);

  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.problem-card:hover {
  background: rgba(15, 20, 32, 0.6);
  border-color: rgba(108,242,194,0.18);
  transform: translateY(-4px);
}

.problem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
}

.problem-card__index {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(108,242,194,0.6);
}

.problem-card h3 {
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.problem-card p {
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
  .problem-tech__grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   PILLAR GRID — fila de 4 (desktop/tablet)
============================================= */

.pillar-rail {
  display: none;
}

.pillar-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* =============================================
   PILLAR — card grande + riel de iconos (móvil)
============================================= */

@media (max-width: 768px) {

  .pillar-grid {
    display: flex;
    align-items: stretch;
    gap: 1rem;
  }

  /* Card activa ocupa la mayor parte */
  .pillar-cards {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }

  .pillar-cards .problem-card {
    display: none;
  }

  .pillar-cards .problem-card.is-active {
    display: block;
  }

  /* Riel vertical con los 4 iconos */
  .pillar-rail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    flex: 0 0 auto;
  }

  .pillar-rail__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15,20,32,0.45);
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  }

  .pillar-rail__btn i {
    width: 20px;
    height: 20px;
  }

  .pillar-rail__btn:hover {
    color: rgba(255,255,255,0.75);
    border-color: rgba(108,242,194,0.25);
  }

  .pillar-rail__btn.is-active {
    color: var(--color-accent);
    border-color: rgba(108,242,194,0.5);
    background: rgba(108,242,194,0.1);
    transform: scale(1.06);
  }

}


/* =============================================
   FOOTER PREMIUM
============================================= */

.footer-premium {
  position: relative;
  padding: 5rem 0 3rem 0;

  background: linear-gradient(
    to bottom,
    rgba(12,14,18,0.95),
    rgba(8,10,14,1)
  );

  border-top: 1px solid rgba(255,255,255,0.05);
}

/* --------------------------------------------- */
/* TOP */
/* --------------------------------------------- */

.footer-premium__top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

/* Marca */

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 340px;
}

.footer-brand__logo {
  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.4),
    0 0 30px rgba(108,242,194,0.08);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.footer-brand__logo img {
  width: 36px;
  height: 36px;
  filter: brightness(1.4);
}

.footer-brand__logo:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.4),
    0 0 40px rgba(108,242,194,0.18);
}

.footer-brand__text strong {
  display: block;
  font-size: 1.1rem;
}

.footer-brand__text span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* --------------------------------------------- */
/* CONTACT */
/* --------------------------------------------- */

.footer-contact {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-col span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.8rem;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #6CF2C2;
}

/* --------------------------------------------- */
/* FOOTER CTA BAND */
/* --------------------------------------------- */

.footer-cta-band {
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem 0;
  background: rgba(108,242,194,0.03);
}

.footer-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta-band__copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-cta-band__copy strong {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.footer-cta-band__copy span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
}

.footer-cta-band__btn {
  flex-shrink: 0;
  /* hereda estilos de .hero-cta-primary */
  animation: none;
}

@media (max-width: 640px) {
  .footer-cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cta-band__btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------- */
/* DIVIDER */
/* --------------------------------------------- */

.footer-premium__divider {
  margin: 3rem 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(108,242,194,0.4),
    transparent
  );
}

/* --------------------------------------------- */
/* BOTTOM */
/* --------------------------------------------- */

.footer-premium__bottom {
  text-align: center;
}

.footer-premium__bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .footer-legal {
    gap: 1rem;
  }
}

/* --------------------------------------------- */
/* RESPONSIVE */
/* --------------------------------------------- */

@media (max-width: 768px) {

  .footer-premium__top {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-contact {
    gap: 2.5rem;
  }

}

/* =============================================
   HEADER SYSTEM · Layered Premium
============================================= */

.main-header {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

/* =========================
   GLASS LOGO CONTAINER
========================= */

.header-glass {
  pointer-events: auto;
}

.header-glass .header-glass__inner {
  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 22px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  background: rgba(14,14,16,0.65);
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 30px 70px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.05);

  padding: 2rem 2rem;
  transition: all 0.35s ease;
  
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* LOGO */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-logo img {
  width: 42px;
  height: 42px;
}

.nav-logo span {
  font-size: 0.95rem;
}

/* =========================
   SECONDARY NAV
========================= */

.nav-secondary {
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  transition: color 0.25s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-weight: inherit;
}
.nav-dropdown__trigger i {
  width: 12px;
  height: 12px;
  color: rgba(255,255,255,0.60);
  transition: transform 0.25s ease, color 0.25s;
}
.nav-dropdown:hover .nav-dropdown__trigger,
.nav-dropdown.open .nav-dropdown__trigger {
  color: var(--color-accent);
}
.nav-dropdown:hover .nav-dropdown__trigger i,
.nav-dropdown.open .nav-dropdown__trigger i {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* Menu card */
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 262px;
  background: rgba(12,13,15,0.98);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 28px 60px rgba(0,0,0,0.70),
    0 0 0 1px rgba(108,242,194,0.07),
    inset 0 1px 0 rgba(255,255,255,0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}
/* Caret */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: rgba(12,13,15,0.98);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}
/* Open: hover (pointer devices) */
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}
/* Open: .open class (touch / click) */
.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Items */
.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}
.nav-dropdown__item:hover,
.nav-dropdown__item:focus-visible {
  background: rgba(108,242,194,0.07);
  outline: none;
}
.nav-dropdown__item--active {
  background: rgba(108,242,194,0.09);
}
.nav-dropdown__item--active .nav-dropdown__name {
  color: var(--color-accent);
}
.nav-dropdown__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}
.nav-dropdown__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.3);
}
.nav-dropdown__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown__name {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: none;
}
.nav-dropdown__sector {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Mobile: panel fijo bajo el nav */
@media (max-width: 768px) {
  .nav-dropdown__menu {
    position: fixed;
    top: 88px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: translateY(-8px);
    left: 16px;
  }
  .nav-dropdown.open .nav-dropdown__menu {
    transform: translateY(0);
  }
  .nav-dropdown__menu::before { display: none; }
}

.nav-secondary__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LINKS */

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* BADGE STYLE (tipo in-house) */

.nav-badge {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-text);
  transition: all 0.25s ease;
}

.nav-badge:hover {
  background: rgba(108,242,194,0.15);
  border-color: rgba(108,242,194,0.4);
}

/* =========================
   SCROLL COLLAPSE
========================= */

.main-header.scrolled .nav-secondary {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.main-header.scrolled .header-glass__inner {
  padding: 2rem 2rem;
}

/* =========================
   NAV ACTIONS WRAPPER
========================= */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =========================
   HAMBURGER BUTTON
========================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-hamburger:hover {
  background: rgba(108,242,194,0.08);
  border-color: rgba(108,242,194,0.30);
}

.nav-hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Estado abierto — X */
.nav-hamburger.is-open .nav-hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open .nav-hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open .nav-hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   MOBILE MENU DRAWER
========================= */

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 13, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 100px 1.5rem 2rem;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.mobile-menu__link span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.mobile-menu__link:hover {
  background: rgba(108,242,194,0.06);
  border-color: rgba(108,242,194,0.15);
  color: var(--color-accent);
}

.mobile-menu__cta {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem;
  text-align: center;
  border-radius: 100px;
  background: linear-gradient(135deg, #6CF2C2, #4ee8aa);
  color: #0E0E10;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mobile-menu__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(108,242,194,0.35);
}

/* =========================
   MOBILE UX · RESPONSIVE
========================= */

@media (max-width: 768px) {

  /* Ocultar nav-links en mobile — el drawer los reemplaza */
  .nav-links {
    display: none;
  }

  /* Mostrar hamburger */
  .nav-hamburger {
    display: flex;
  }

  /* Mostrar el drawer como flex cuando tenga .is-open */
  .mobile-menu {
    display: flex;
  }

  /* Ocultar nav-badge en mobile — el drawer tiene el CTA */
  .nav-badge {
    display: none;
  }

}

