/* MixLab Home — Premium 2026 */

:root {
  --ml-primary: #0F6FFF;
  --ml-primary-hover: #0b5ce0;
  --ml-secondary: #4DA8FF;
  --ml-bg: #F8FAFC;
  --ml-card: #FFFFFF;
  --ml-text: #111827;
  --ml-text-muted: #6B7280;
  --ml-success: #22C55E;
  --ml-radius: 10px;
  --ml-radius-sm: 8px;
  --ml-radius-btn: 8px;
  --ml-shadow: 0 4px 24px rgba(15, 111, 255, 0.08);
  --ml-shadow-hover: 0 16px 48px rgba(15, 111, 255, 0.14);
  --ml-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.home-page {
  background: var(--ml-bg);
  color: var(--ml-text);
  overflow-x: hidden;
}

/* ── Hero poster ── */
.ml-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 45%, #f8fafc 100%);
  overflow: hidden;
}

.ml-hero-poster {
  padding: 0 0 2.25rem;
  background: #fff;
  overflow: hidden;
  line-height: 0;
}

.ml-hero-poster-frame {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  border: none;
  box-shadow: none;
  line-height: 0;
}

.ml-hero-poster-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: top;
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 767.98px) {
  .ml-hero-poster {
    padding: 0;
    background: #fff;
  }

  .ml-hero-poster-frame.ml-fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Legacy modern hero (kept unused) */
.ml-hero-modern {
  min-height: clamp(620px, 88vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 0 4.5rem;
  margin-top: 0;
  background: #0f172a;
  overflow: hidden;
}

.ml-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.ml-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 30, 0.55) 0%, rgba(8, 15, 30, 0.72) 45%, rgba(8, 15, 30, 0.88) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(15, 111, 255, 0.18) 0%, transparent 55%);
}

.ml-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
}

.ml-hero-content {
  margin: 0 auto;
}

.ml-hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ml-hero-modern .ml-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: none;
}

.ml-hero-modern .ml-hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.ml-hero-cta-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.ml-hero-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 1rem 0.35rem 1.15rem;
  min-width: 0;
}

.ml-hero-search i {
  color: #94a3b8;
  font-size: 1rem;
  flex-shrink: 0;
}

.ml-hero-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: #111827;
}

.ml-hero-search input::placeholder {
  color: #94a3b8;
}

.ml-hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: #0F6FFF;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(15, 111, 255, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.ml-hero-cta-btn:hover {
  background: #0b5ce0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 111, 255, 0.42);
}

.ml-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ml-hero-trust span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  body.home-page .navbar-premium--modern {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  .ml-hero-modern {
    min-height: auto;
    padding: 6.5rem 0 3.5rem;
  }

  .ml-hero-cta-bar {
    border-radius: 20px;
    flex-direction: column;
    padding: 0.75rem;
  }

  .ml-hero-search {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .ml-hero-cta-btn {
    width: 100%;
  }

  .ml-hero-trust {
    gap: 0.75rem 1.25rem;
    margin-top: 2.5rem;
  }

  .ml-hero-trust span {
    font-size: 0.72rem;
  }
}

.ml-hero-modern::before,
.ml-hero-modern::after {
  display: none;
}

.ml-hero::before,
.ml-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ml-hero::before {
  width: 480px;
  height: 480px;
  background: rgba(77, 168, 255, 0.22);
  top: -120px;
  right: -80px;
}

.ml-hero::after {
  width: 360px;
  height: 360px;
  background: rgba(15, 111, 255, 0.1);
  bottom: -80px;
  left: -60px;
}

.ml-hero .container {
  position: relative;
  z-index: 1;
}

.ml-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ml-text);
  margin-bottom: 1.25rem;
}

.ml-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.375rem);
  line-height: 1.55;
  color: var(--ml-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.ml-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.25rem;
}

.ml-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--ml-primary);
  border: none;
  border-radius: var(--ml-radius-btn);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 111, 255, 0.22);
  transition: transform var(--ml-transition), box-shadow var(--ml-transition), background var(--ml-transition);
}

.ml-btn-primary:hover {
  background: var(--ml-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 111, 255, 0.35);
}

.ml-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ml-text);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 111, 255, 0.15);
  border-radius: var(--ml-radius-btn);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all var(--ml-transition);
}

.ml-btn-secondary:hover {
  color: var(--ml-primary);
  border-color: var(--ml-secondary);
  transform: translateY(-2px);
  box-shadow: var(--ml-shadow);
}

/* Hero visual composition */
.ml-hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: ml-float 8s ease-in-out infinite;
}

.ml-hero-blob-1 {
  width: 200px;
  height: 200px;
  background: rgba(77, 168, 255, 0.35);
  top: 10%;
  left: 5%;
}

.ml-hero-blob-2 {
  width: 160px;
  height: 160px;
  background: rgba(15, 111, 255, 0.2);
  bottom: 15%;
  right: 10%;
  animation-delay: -3s;
}

.ml-hero-stage {
  position: relative;
  width: min(100%, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-hero-stage-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  animation: ml-float 6s ease-in-out infinite;
}

.ml-hero-stage-surface {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 14%;
  background: radial-gradient(ellipse, rgba(15, 111, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}

.ml-hero-stage-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 45%, #e8f4ff 100%);
  border: 1px solid rgba(15, 111, 255, 0.12);
  box-shadow:
    0 24px 48px rgba(15, 111, 255, 0.14),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.ml-hero-stage-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
}

.ml-hero-chip {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ml-text);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ml-hero-chip i { color: var(--ml-primary); }

.ml-hero-chip-1 { top: 10%; left: -6%; }
.ml-hero-chip-2 { top: 6%; right: -4%; }
.ml-hero-chip-3 { bottom: 14%; left: -6%; }
.ml-hero-chip-4 { bottom: 18%; right: -4%; }

@media (max-width: 575.98px) {
  .ml-hero-chip {
    font-size: 0.65rem;
    padding: 0.35rem 0.55rem;
  }
  .ml-hero-chip-1 { top: 6%; left: 0; }
  .ml-hero-chip-2 { top: 4%; right: 0; }
  .ml-hero-chip-3 { bottom: 10%; left: 0; }
  .ml-hero-chip-4 { bottom: 12%; right: 0; }
}

@keyframes ml-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ml-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: ml-fade-up 0.7s ease forwards;
}

.ml-fade-up-d1 { animation-delay: 0.1s; }
.ml-fade-up-d2 { animation-delay: 0.2s; }
.ml-fade-up-d3 { animation-delay: 0.35s; }

@keyframes ml-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Promo band (below hero) ── */
.ml-promo-band {
  background: linear-gradient(135deg, #0F6FFF 0%, #4DA8FF 100%);
  border-radius: var(--ml-radius);
  padding: 1.5rem 2rem;
  margin: 0.25rem auto 2rem;
  max-width: calc(100% - 2rem);
  position: relative;
  z-index: 5;
  box-shadow: 0 16px 48px rgba(15, 111, 255, 0.25);
  color: #fff;
  transition: opacity var(--ml-transition), transform var(--ml-transition);
}

.ml-promo-band.is-hidden {
  display: none;
}

.ml-promo-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.ml-promo-band-text h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}

.ml-promo-band-text p {
  margin: 0;
  opacity: 0.92;
  font-size: 1rem;
}

.ml-promo-band-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ml-promo-band-icons span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.ml-promo-band-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ml-transition);
}

.ml-promo-band-close:hover { background: rgba(255, 255, 255, 0.35); }

.ml-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  background: #fff;
  color: var(--ml-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--ml-radius-btn);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--ml-transition), box-shadow var(--ml-transition);
}

.ml-btn-white:hover {
  color: var(--ml-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ── Sections ── */
.ml-section {
  padding: 5rem 0;
}

.ml-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.ml-section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--ml-text);
}

.ml-section-header p {
  font-size: 1.125rem;
  color: var(--ml-text-muted);
  margin: 0;
}

/* Benefits bar — minimalista antes del footer */
.ml-benefits-bar {
  background: #141414;
  color: #fff;
  padding: 2.25rem 0;
  margin-top: 3rem;
}

body.home-page .footer {
  margin-top: 0 !important;
}

.ml-benefits-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ml-benefits-bar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.ml-benefits-bar-item:first-child {
  padding-left: 0;
}

.ml-benefits-bar-item:last-child {
  border-right: none;
  padding-right: 0;
}

.ml-benefits-bar-icon {
  flex-shrink: 0;
  font-size: 1.65rem;
  line-height: 1;
  color: #fff;
  opacity: 0.92;
  margin-top: 0.1rem;
}

.ml-benefits-bar-text h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: #fff;
  line-height: 1.3;
}

.ml-benefits-bar-text p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .ml-benefits-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 0;
  }

  .ml-benefits-bar-item {
    border-right: none;
    padding: 0 1rem;
  }

  .ml-benefits-bar-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 0;
  }

  .ml-benefits-bar-item:nth-child(even) {
    padding-right: 0;
  }

  .ml-benefits-bar-item:nth-child(n+3) {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .ml-benefits-bar-item:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  .ml-benefits-bar {
    padding: 1.75rem 0;
    margin-top: 2rem;
  }

  .ml-benefits-bar-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ml-benefits-bar-item,
  .ml-benefits-bar-item:nth-child(odd),
  .ml-benefits-bar-item:nth-child(even),
  .ml-benefits-bar-item:nth-child(3) {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1.25rem 0;
  }

  .ml-benefits-bar-item:first-child {
    border-top: none;
    padding-top: 0;
  }

  .ml-benefits-bar-item:last-child {
    padding-bottom: 0;
  }
}

/* Category showcase (explora por categoría) */
.ml-cat-showcase-section {
  padding-bottom: 2rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.06) 1px, transparent 0),
    linear-gradient(180deg, #f3efe6 0%, #ebe4d6 100%);
  background-size: 14px 14px, auto;
  padding-top: 1.75rem;
  margin-top: 0.5rem;
}

.ml-cat-showcase-section .container {
  max-width: 100%;
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

.ml-cat-showcase-section .ml-section-header {
  margin-bottom: 1.5rem;
}

.ml-cat-stage-shell {
  position: relative;
  border-radius: var(--ml-radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(10, 22, 40, 0.94) 0%, rgba(15, 60, 120, 0.9) 48%, rgba(30, 90, 160, 0.88) 100%);
  min-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  transition: background 0.45s ease, box-shadow 0.45s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ml-cat-stage-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.035) 11px,
      rgba(255, 255, 255, 0.035) 12px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(0, 0, 0, 0.05) 11px,
      rgba(0, 0, 0, 0.05) 12px
    ),
    radial-gradient(circle at 20% 20%, rgba(255, 220, 160, 0.08), transparent 45%);
  mix-blend-mode: soft-light;
}

.ml-cat-stage-shell.has-product-accent {
  background:
    radial-gradient(ellipse at 72% 40%, color-mix(in srgb, var(--ml-product-accent) 38%, transparent) 0%, transparent 55%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--ml-product-accent) 22%, #0a1628) 0%,
      color-mix(in srgb, var(--ml-product-accent) 70%, #163a66) 52%,
      color-mix(in srgb, var(--ml-product-accent) 45%, #0f172a) 100%
    );
  box-shadow: 0 20px 48px color-mix(in srgb, var(--ml-product-accent) 18%, transparent);
}

.ml-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  justify-content: center;
  padding: 1.35rem 1.5rem 0.65rem;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.ml-cat-tab {
  padding: 0.35rem 0.15rem;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--ml-transition), border-color var(--ml-transition), opacity var(--ml-transition);
  backdrop-filter: none;
  box-shadow: none;
}

.ml-cat-tab:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

.ml-cat-tab.active {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  box-shadow: none;
  font-weight: 700;
}

.ml-cat-panels {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  z-index: 2;
}

.ml-cat-frame {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  padding: 0 1.25rem 1.25rem;
  z-index: 2;
}

.ml-cat-frame.active {
  display: flex;
  animation: ml-cat-fade 0.4s ease;
}

@keyframes ml-cat-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ml-cat-stage-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 16vw, 9rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.ml-cat-stage-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.25rem 0 0.75rem;
  gap: 1rem;
}

@media (min-width: 992px) {
  .ml-cat-stage-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 1.25rem;
    padding: 0.5rem 1.5rem 1rem;
  }
}

.ml-cat-stage-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 340px;
  max-height: 340px;
  overflow: visible;
  order: 1;
  background: transparent;
}

@media (min-width: 992px) {
  .ml-cat-stage-visual {
    flex: 1 1 auto;
    width: auto;
    max-width: min(58vw, 640px);
    height: 520px;
    max-height: 520px;
    order: 2;
    background: transparent;
  }
}

.ml-cat-stage-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  position: relative;
  overflow: visible;
  background: transparent !important;
}

.ml-cat-stock-badge {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.ml-cat-stage-content.is-out-of-stock .ml-cat-stage-img,
.ml-cat-stage-content.is-out-of-stock .ml-cat-stage-img-placeholder {
  filter: grayscale(1) brightness(0.85) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.28));
  opacity: 0.72;
}

.ml-cat-stage-content.is-out-of-stock .ml-cat-stage-info,
.ml-cat-stage-content.is-out-of-stock .ml-cat-stage-attrs {
  opacity: 0.72;
}

.ml-cat-stage-cta.is-out-of-stock {
  background: rgba(255, 255, 255, 0.35) !important;
  color: rgba(17, 17, 17, 0.7) !important;
  box-shadow: none;
  filter: none;
}

.ml-cat-thumb.is-out-of-stock {
  opacity: 0.4;
  filter: grayscale(1);
}

.ml-cat-thumb.is-out-of-stock.active {
  opacity: 0.75;
}

.ml-cat-stage-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: transparent !important;
  background-image: none !important;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.ml-cat-stage-img.is-switching {
  opacity: 0;
  transform: scale(0.96);
}

.ml-cat-stage-img-placeholder {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  border-radius: 20px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.45);
}

.ml-cat-stage-info {
  color: #fff;
  text-align: center;
  flex: 0 0 auto;
  order: 2;
  max-width: 360px;
}

@media (min-width: 992px) {
  .ml-cat-stage-info {
    flex: 0 0 240px;
    text-align: left;
    order: 1;
    max-width: 260px;
  }
}

.ml-cat-stage-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.ml-cat-stage-name {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: #fff;
}

.ml-cat-stage-attrs {
  order: 3;
  flex: 0 0 auto;
  width: 100%;
  max-width: 280px;
  margin: 0;
}

.ml-cat-stage-attrs:empty,
.ml-cat-stage-attrs.is-empty {
  display: none;
}

@media (min-width: 992px) {
  .ml-cat-stage-attrs {
    flex: 0 0 auto;
    width: auto;
    max-width: 200px;
    margin-left: 0.15rem;
    align-self: center;
  }
}

.ml-cat-attrs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ml-cat-attrs-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0;
  background: none;
  border: none;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  padding-left: 0.75rem;
}

.ml-cat-attr-key {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.ml-cat-attr-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
  line-height: 1.25;
}

@media (max-width: 991.98px) {
  .ml-cat-stage-attrs {
    display: none !important;
  }
}

.ml-cat-stage-price {
  margin-bottom: 1.25rem;
}

.ml-cat-unit-price {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.ml-cat-low-stock {
  margin: -0.55rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fde68a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ml-cat-low-stock[hidden] {
  display: none !important;
}

.ml-cat-rental-prices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.ml-cat-rental-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ml-cat-rental-period {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.ml-cat-rental-amount {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #fff;
  text-align: right;
  line-height: 1.2;
}

.ml-cat-rental-amount small {
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0.8;
  margin-left: 0.1rem;
}

@media (min-width: 992px) {
  .ml-cat-stage-info .ml-cat-rental-prices {
    max-width: 320px;
    margin: 0;
  }
}

.ml-cat-price-current {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
}

.ml-cat-price-old {
  font-size: 1rem;
  text-decoration: line-through;
  opacity: 0.65;
  margin-right: 0.5rem;
}

.ml-cat-stage-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--ml-radius-btn);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  background: var(--ml-product-accent, rgba(255, 255, 255, 0.92));
  color: #111 !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  transition: transform var(--ml-transition), box-shadow var(--ml-transition), filter var(--ml-transition);
}

.ml-cat-stage-cta:hover {
  color: #111 !important;
  transform: translateY(-2px);
  filter: brightness(0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.ml-cat-stage-bottom {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.ml-cat-thumbs-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  max-width: min(100%, 520px);
  padding: 0.15rem;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
}

.ml-cat-thumb-nav {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--ml-transition), opacity var(--ml-transition);
  font-size: 0.85rem;
}

.ml-cat-thumb-nav:hover {
  background: transparent;
  color: #fff;
}

.ml-cat-thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.15rem 0;
  flex: 0 1 auto;
  scrollbar-width: none;
  justify-content: center;
}

.ml-cat-thumbs::-webkit-scrollbar { display: none; }

.ml-cat-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--ml-transition), opacity var(--ml-transition), transform var(--ml-transition);
  opacity: 0.72;
}

.ml-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.ml-cat-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
}

.ml-cat-thumb:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.9;
}

.ml-cat-thumb.active {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: none;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .ml-cat-stage-shell {
    min-height: auto;
    overflow: visible;
  }

  .ml-cat-panels {
    position: static;
    flex: none;
    display: block;
  }

  .ml-cat-frame {
    position: static;
    inset: auto;
    min-height: 0;
    padding: 0 0.75rem 0.75rem;
  }

  .ml-cat-tabs {
    padding: 0.75rem 0.65rem 0.35rem;
    gap: 0.35rem;
  }

  .ml-cat-stage-content {
    flex: none;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.15rem 0 0.35rem;
  }

  .ml-cat-stage-visual {
    flex: none;
    width: 100%;
    height: 300px;
    max-height: 300px;
    background: transparent;
  }

  .ml-cat-stage-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: transparent !important;
  }

  .ml-cat-stage-info {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .ml-cat-rental-prices {
    max-width: 340px;
    margin: 0 auto;
  }

  .ml-cat-stage-label {
    margin-bottom: 0.2rem;
  }

  .ml-cat-stage-name {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    margin-bottom: 0.35rem;
    line-height: 1.25;
  }

  .ml-cat-stage-price {
    margin-bottom: 0.55rem;
  }

  .ml-cat-price-current {
    font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  }

  .ml-cat-stage-cta {
    width: auto;
    min-width: min(100%, 260px);
    justify-content: center;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
  }

  .ml-cat-stage-bottom {
    flex-shrink: 0;
    gap: 0.25rem;
    padding-top: 0.15rem;
    padding-bottom: 0.5rem;
  }

  .ml-cat-thumbs-wrap {
    padding: 0;
  }
}

@media (max-width: 575.98px) {
  .ml-cat-showcase-section {
    padding-bottom: 0.5rem;
  }

  .ml-cat-stage-shell {
    border-radius: 16px;
  }

  .ml-cat-frame {
    padding: 0 0.65rem 0.55rem;
  }

  .ml-cat-tabs {
    padding: 0.55rem 0.5rem 0.35rem;
    gap: 0.55rem 0.85rem;
  }

  .ml-cat-tab {
    padding: 0.3rem 0.1rem;
    font-size: 0.68rem;
  }

  .ml-cat-stage-content {
    gap: 0.4rem;
    padding: 0 0 0.25rem;
  }

  .ml-cat-stage-label {
    margin-bottom: 0.15rem;
    font-size: 0.68rem;
  }

  .ml-cat-stage-name {
    margin-bottom: 0.25rem;
  }

  .ml-cat-stage-price {
    margin-bottom: 0.45rem;
  }

  .ml-cat-stage-visual {
    height: 280px;
    max-height: 280px;
    background: transparent;
  }

  .ml-cat-stage-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: transparent !important;
  }

  .ml-cat-stage-img-placeholder {
    width: min(160px, 42vw);
    height: min(160px, 42vw);
  }

  .ml-cat-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .ml-cat-thumb-nav {
    width: 24px;
    height: 24px;
  }

  .ml-cat-stage-bottom {
    gap: 0.15rem;
    padding-bottom: 0.35rem;
  }

  .ml-cat-stage-watermark {
    font-size: clamp(1.75rem, 12vw, 3.25rem);
  }
}

/* Product cards */
.ml-product-card {
  background: var(--ml-card);
  border-radius: var(--ml-radius);
  border: 1px solid rgba(15, 111, 255, 0.06);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ml-shadow);
  transition: transform var(--ml-transition), box-shadow var(--ml-transition);
}

.ml-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ml-shadow-hover);
}

.ml-product-img-wrap {
  position: relative;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  height: 200px;
  max-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .ml-product-img-wrap {
    height: 220px;
    max-height: 220px;
  }
}

.ml-product-img-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform var(--ml-transition);
}

.ml-product-card:hover .ml-product-img-wrap img {
  transform: scale(1.05);
}

.ml-product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new { background: var(--ml-primary); color: #fff; }
.badge-offer { background: #ef4444; color: #fff; }
.badge-bestseller { background: #111827; color: #fff; }

.ml-product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ml-product-stars {
  color: #fbbf24;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.ml-product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ml-text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ml-product-title:hover { color: var(--ml-primary); }

.ml-product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ml-text);
  margin-bottom: 0.25rem;
}

.ml-product-price-old {
  font-size: 0.875rem;
  color: var(--ml-text-muted);
  text-decoration: line-through;
  margin-right: 0.35rem;
}

.ml-product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.ml-product-actions .ml-btn-primary,
.ml-product-actions .ml-btn-secondary {
  flex: 1;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 12px;
}

.ml-product-actions .ml-btn-secondary {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
}

/* CTA section */
.ml-cta-wrap {
  padding: 0 clamp(0.75rem, 2vw, 1.5rem) 3.5rem;
}

.ml-cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #0a1020 0%, #0f1f3d 48%, #122a4f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(8, 16, 40, 0.28);
}

.ml-cta-mosaic {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180%;
  height: 180%;
  transform: translate(-50%, -50%) rotate(-10deg);
  transform-origin: center;
  background-image: var(--ml-cta-logo);
  background-size: 76px 76px;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
}

.ml-cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.ml-cta-glow-1 {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -80px;
  background: rgba(15, 111, 255, 0.22);
}

.ml-cta-glow-2 {
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -60px;
  background: rgba(77, 168, 255, 0.14);
}

.ml-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  color: #fff;
}

.ml-cta-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.ml-cta-section h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: #fff;
}

.ml-cta-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.98rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.ml-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.ml-cta-primary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

.ml-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--ml-radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform var(--ml-transition), box-shadow var(--ml-transition), background var(--ml-transition), border-color var(--ml-transition);
  white-space: nowrap;
}

.ml-cta-btn-main {
  background: #fff;
  color: #0f1f3d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ml-cta-btn-main:hover {
  color: #0a1628;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.ml-cta-btn-wa {
  background: rgba(37, 211, 102, 0.14);
  color: #fff;
  border: 1px solid rgba(37, 211, 102, 0.45);
}

.ml-cta-btn-wa:hover {
  color: #fff;
  background: rgba(37, 211, 102, 0.28);
  border-color: rgba(37, 211, 102, 0.7);
  transform: translateY(-2px);
}

.ml-cta-secondary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.ml-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ml-transition);
}

.ml-cta-link:hover {
  color: #fff;
}

.ml-cta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .ml-cta-wrap {
    padding-bottom: 2.5rem;
  }

  .ml-cta-section {
    border-radius: 18px;
  }

  .ml-cta-inner {
    padding: 2.5rem 1.25rem;
  }

  .ml-cta-primary-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ml-cta-btn {
    width: 100%;
    white-space: normal;
  }

  .ml-cta-secondary-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ml-cta-sep {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .ml-hero { padding: 3rem 0 2.5rem; }
  .ml-hero-visual { min-height: 300px; margin-top: 2rem; }
  .ml-promo-band { margin-top: 0.75rem; }
  .ml-section { padding: 3.5rem 0; }
}

@media (max-width: 575.98px) {
  .ml-hero-actions { flex-direction: column; }
  .ml-hero-actions a { width: 100%; }
  .ml-promo-band { padding: 1.25rem 1rem 1.25rem 1rem; }
  .ml-promo-band-inner { flex-direction: column; text-align: center; }
}
