/* ═══════════════════════════════════════
   PillNav + New Components — Xplouse
   ═══════════════════════════════════════ */

/* ── PillNav ── */
.pill-nav-container {
  position: fixed;
  top: 1em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: max-content;
}

@media (max-width: 768px) {
  .pill-nav-container {
    width: calc(100% - 2rem);
    left: 1rem;
    transform: none;
  }
}

.pill-nav {
  --nav-h: 44px;
  --pill-pad-x: 18px;
  --pill-gap: 3px;
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Montserrat", sans-serif;
}

@media (max-width: 768px) {
  .pill-nav {
    width: 100%;
    justify-content: space-between;
  }
}

.pill-logo {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: #000;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}

.pill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* CSS-only logo swap: dark shown by default, light hidden */
.pill-logo .logo-light-mode {
  display: none;
}

[data-theme="light"] .pill-logo .logo-dark-mode {
  display: none;
}

[data-theme="light"] .pill-logo .logo-light-mode {
  display: block;
}

.pill-nav-items {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  background: #000;
  border-radius: 9999px;
}

.pill-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: var(--pill-gap);
  margin: 0;
  padding: 3px;
  height: 100%;
}

.pill-list>li {
  display: flex;
  height: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--pill-pad-x);
  background: #111114;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: none;
}

.pill .hover-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: #000;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.pill .label-stack {
  position: relative;
  display: inline-block;
  line-height: 1;
  z-index: 2;
}

.pill .pill-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1;
  will-change: transform;
}

.pill .pill-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  color: #00f0ff;
  z-index: 3;
  display: inline-block;
  will-change: transform, opacity;
}

.pill.is-active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #00f0ff;
  border-radius: 50px;
  z-index: 4;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }
}

.mobile-menu-button {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: #000;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex !important;
  }
}

.hamburger-line {
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transform-origin: center;
}

.mobile-menu-popover {
  position: fixed;
  top: 4em;
  left: 1rem;
  right: 1rem;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mobile-menu-link {
  display: block;
  padding: 14px 18px;
  color: #fff;
  background: #111114;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 16px;
  transition: background 0.2s;
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
}

/* ── Language Toggle ── */
.lang-toggle {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: #000;
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: #111;
}

/* ── Theme Toggle ── */
.theme-toggle {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: #000;
  border: none;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
  position: relative;
}

.theme-toggle:hover {
  background: #111;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ── Light-mode Pill-Nav ── */
[data-theme="light"] .pill-logo {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  padding: 0;
}

[data-theme="light"] .pill-logo img {
  width: 130%;
  height: 130%;
  object-fit: cover;
}

[data-theme="light"] .pill-nav-items {
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pill {
  background: #f0f1f4;
  color: #111118;
}

[data-theme="light"] .pill .hover-circle {
  background: #e4e5e9;
}

[data-theme="light"] .pill .pill-label-hover {
  color: #0077cc;
}

[data-theme="light"] .pill.is-active::after {
  background: #0077cc;
}

[data-theme="light"] .lang-toggle,
[data-theme="light"] .theme-toggle {
  background: #fff;
  color: #111118;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .lang-toggle:hover,
[data-theme="light"] .theme-toggle:hover {
  background: #f0f1f4;
}

[data-theme="light"] .mobile-menu-button {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hamburger-line {
  background: #111118;
}

[data-theme="light"] .mobile-menu-popover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-link {
  color: #111118;
  background: #f0f1f4;
}

[data-theme="light"] .mobile-menu-link:hover,
[data-theme="light"] .mobile-menu-link.is-active {
  background: rgba(0, 119, 204, 0.1);
  color: #0077cc;
}

/* ── Iridescence Container ── */
.hero__iridescence {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__iridescence canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── MacBook Frame ── */
.macbook {
  width: min(80%, 680px);
  margin: 3rem auto 0;
  position: relative;
  z-index: 2;
}

.macbook__screen {
  background: #0a0a0a;
  border-radius: 14px 14px 0 0;
  border: 2px solid #333;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.05);
}

.macbook__screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
}

.macbook__screen-inner {
  position: absolute;
  inset: 24px 12px 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 0.8rem;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.macbook__base {
  height: 14px;
  background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
  border-radius: 0 0 8px 8px;
  position: relative;
  border: 1px solid #333;
  border-top: none;
}

.macbook__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 4px;
  background: #222;
  border-radius: 0 0 4px 4px;
}

.macbook__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 24px;
  background: #0a0a0a;
  border-radius: 0 0 10px 10px;
  border: 2px solid #333;
  border-top: none;
  z-index: 1;
}

/* ── Logo Marquee ── */
.logo-marquee-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bg-opaque-white {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
}

.logo-marquee__label {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #18181b;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg,
      transparent,
      #000 10%,
      #000 90%,
      transparent);
  -webkit-mask-image: linear-gradient(90deg,
      transparent,
      #000 10%,
      #000 90%,
      transparent);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.logo-marquee__track:hover {
  animation-play-state: paused;
}

.logo-marquee__list {
  display: flex;
  gap: 6rem;
  padding: 0 3rem;
}

.logo-marquee__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.logo-marquee__item img {
  height: 38px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: all 0.3s ease;
}

.logo-marquee__item .logo-scale-lg {
  height: 52px;
  transform: none;
}

.logo-marquee__item .logo-scale-md {
  height: 44px;
  transform: none;
}

.logo-marquee__item:hover img {
  filter: grayscale(0) opacity(1) brightness(1);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── Hero Image Container (Replacement for MacBook) ── */
.hero__image-container {
  max-width: 900px;
  width: 90%;
  margin: 3rem auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.3);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero__image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Eco Layers Background ── */
.eco-layers-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff !important;
}

.eco-layers-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.eco-layers-bg .container {
  position: relative;
  z-index: 2;
}

.eco-layers-bg .text-body,
.eco-layers-bg .text-h1,
.eco-layers-bg .layer-card__desc,
.eco-layers-bg .layer-card__number,
.eco-layers-bg .layer-card__title {
  color: #ffffff !important;
}

.eco-layers-bg .layer-card__number,
.eco-layers-bg .layer-card__desc {
  opacity: 0.8;
}

/* ── Section Cover Image ── */
.section-cover {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 2rem 0;
  max-height: 340px;
}

.section-cover img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* ── Problem Cards with Images ── */
.problem__column-image {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.problem__column-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}

/* ── SVG Icon containers ── */
.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.1);
  flex-shrink: 0;
}

.icon-box svg {
  width: 20px;
  height: 20px;
  stroke: #00f0ff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box--violet {
  background: rgba(138, 43, 226, 0.06);
  border-color: rgba(138, 43, 226, 0.1);
}

.icon-box--violet svg {
  stroke: #8a2be2;
}

.icon-box--white {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.icon-box--white svg {
  stroke: #a1a1aa;
}

/* ── Value Prop Section ── */
.value-prop {
  padding: 6rem 0;
}

.value-prop__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .value-prop__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.value-prop__text .badge {
  margin-bottom: 1rem;
}

.value-prop__image {
  border-radius: 20px;
  overflow: hidden;
}

.value-prop__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* ── Orb Container ── */
.orb-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.orb-hero canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── Layer Deep Dive ── */
.layer-deep {
  padding: 4rem 0;
}

.layer-deep__card {
  background: rgba(17, 17, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.layer-deep__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.layer-deep__card--cyan::before {
  background: linear-gradient(90deg, #00f0ff, transparent);
}

.layer-deep__card--violet::before {
  background: linear-gradient(90deg, #8a2be2, transparent);
}

.layer-deep__card--dark::before {
  background: linear-gradient(90deg, #a1a1aa, transparent);
}

.layer-deep__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.layer-deep__number {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #71717a;
  font-weight: 600;
}

.layer-deep__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.layer-deep__desc {
  color: #a1a1aa;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.layer-deep__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.layer-deep__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.layer-deep__feature-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.layer-deep__feature-desc {
  font-size: 0.75rem;
  color: #71717a;
  line-height: 1.5;
}

/* ── Hide old navbar when PillNav is active ── */
body.has-pillnav .navbar {
  display: none !important;
}

/* ── Light-mode: Logo Marquee — clean display, no filters ── */
[data-theme="light"] .logo-marquee__item img {
  mix-blend-mode: normal;
  filter: none;
  opacity: 1;
}

/* ── Light-mode: bk-hero (Nosotros hero) ── */
[data-theme="light"] .bk-hero__overlay {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 119, 204, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, rgba(248, 249, 251, 0.15) 0%, rgba(248, 249, 251, 0.3) 60%, rgba(248, 249, 251, 0.85) 100%);
}

[data-theme="light"] .bk-hero__title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .bk-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .bk-eyebrow {
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}