/* ==========================================================================
   CONTRATOEC — APPLE.COM SCROLLYTELLING HOME SHOWCASE
   Degradado circular Tomate → Azul, Scroll libre y Mini-Demos Interactivas
   ========================================================================== */

:root {
  --in-oklab: ;
}

@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
  }
}

/* ─── SCROLL FLUIDO EN TODA LA PÁGINA (ANULA LOCK DE 100vh) ─── */
html:has(body.home-viewport-body) {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body.home-viewport-body,
body.apple-home-body {
  height: auto;
  max-height: none;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: visible;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--bg-base, #0f172a);
  color: var(--text-1, #f5f5f7);
}

/* ─── NAVBAR STICKY CON MENÚ HORIZONTAL SCROLLABLE (SIN "INICIO") ─── */
.home-viewport-body .nav.apple-sticky-nav {
  position: sticky;
  top: 0;
  flex-shrink: 0;
  height: 52px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 120;
}

/* ═══════════════════════════════════════════════════════════════
   1. HERO CON DEGRADADO INTERNO IVM (var(--bg-base)) + CARRUSEL EN VIVO
   ═══════════════════════════════════════════════════════════════ */
.apple-hero-stage {
  position: relative;
  min-height: calc(100dvh - 52px);
  padding: clamp(44px, 7vh, 84px) 20px clamp(36px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-base, #0f172a);
}

.ivm-hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ivm-hero-backdrop::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, #0f172a 100%);
  pointer-events: none;
  z-index: 2;
}

.ivm-hero-backdrop .fondo {
  background: var(--bg-base, #0f172a);
  position: absolute;
  inset: 0;
}

.ivm-hero-backdrop .ambiente {
  will-change: opacity, transform;
  position: absolute;
  inset: 0;
}

.ivm-hero-backdrop .frio {
  background: radial-gradient(closest-side, #2c34788c, #0000);
  border-radius: 50%;
  width: 620px;
  height: 620px;
  animation: 1.4s ease-out .2s backwards ivm-aparece;
  position: absolute;
  top: -260px;
  right: -220px;
}

.ivm-hero-backdrop .luz {
  will-change: transform, opacity;
  width: 0;
  height: 0;
  animation: 1.6s cubic-bezier(.16, 1, .3, 1) 50ms backwards ivm-luz-sube;
  position: absolute;
  bottom: 0;
  left: 50%;
}

@keyframes ivm-luz-sube {
  0% { opacity: 0; transform: translateY(260px); }
}

.ivm-hero-backdrop .ancha,
.ivm-hero-backdrop .nucleo {
  will-change: transform;
  border-radius: 50%;
  position: absolute;
}

.ivm-hero-backdrop .ancha {
  background: radial-gradient(closest-side, #f0b90b9e, #d66e0c61 38%, #6e220a2e 68%, #0000);
  width: max(1160px, 100vw);
  height: 820px;
  animation: 4.5s ease-in-out 1.6s infinite alternate ivm-respira;
  top: -520px;
  left: calc(max(1160px, 100vw) / -2);
}

@keyframes ivm-respira {
  to { transform: scale(1.06); }
}

.ivm-hero-backdrop .nucleo {
  background: radial-gradient(closest-side, #ffd6788c, #f0b90b38 50%, #0000);
  width: 520px;
  height: 330px;
  animation: 5s ease-in-out .6s infinite alternate both ivm-deriva;
  top: -250px;
  left: -260px;
}

@keyframes ivm-deriva {
  0% { transform: translate(-30px); }
  to { transform: translate(30px); }
}

@keyframes ivm-aparece {
  0% { opacity: 0; }
}

.ivm-hero-backdrop .grano {
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ivm-hero-backdrop .frio,
  .ivm-hero-backdrop .luz,
  .ivm-hero-backdrop .ancha,
  .ivm-hero-backdrop .nucleo {
    animation: none !important;
  }
}

.apple-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-carousel-container {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  margin: clamp(24px, 4vh, 42px) auto 0;
}

.apple-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  flex-shrink: 0;
}

.apple-hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: var(--text-landing-title);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.032em;
  color: #f5f5f7;
  text-wrap: balance;
  text-shadow: 0 4px 32px rgba(15, 23, 42, 0.72);
}

.title-tomato {
  background: linear-gradient(90deg var(--in-oklab), #f8fafc 0%, #fed7aa 48%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apple-hero-title-gradient {
  display: block;
  margin-top: 6px;
  background: linear-gradient(90deg var(--in-oklab), #ffffff 0%, #f5f5f7 52%, #fed7aa 80%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(15, 23, 42, 0.78));
}

.apple-hero-sub {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.82);
  text-wrap: pretty;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.65);
}

/* ═══════════════════════════════════════════════════════════════
   2. SHOWCASE DE FUNCIONES AL HACER SCROLL (MINIMALISTA)
   ═══════════════════════════════════════════════════════════════ */
.apple-showcase-main {
  position: relative;
  background: var(--bg-base, #0f172a);
  padding: 24px 20px 24px;
}

.apple-feature-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(52px, 6.5vw, 84px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.apple-feature-section:first-child {
  border-top: none;
}

.apple-section-shell {
  width: 100%;
}

.apple-intro-centered {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.apple-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px 48px;
  align-items: center;
}

.apple-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fb923c;
  margin-bottom: 10px;
}

.apple-section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--text-section-title);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.14;
  color: #f5f5f7;
  text-wrap: balance;
}

.apple-section-lead {
  margin: 0 0 18px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #98989f;
  text-wrap: pretty;
}

.apple-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.apple-btn-inline:hover {
  color: #fb923c;
  transform: translateX(3px);
}

/* Scroll-Driven Reveal Animations con fallback IntersectionObserver */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes appleSectionEnter {
      from {
        opacity: 0;
        transform: translateY(32px) scale(0.985);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .reveal-on-scroll {
      animation: appleSectionEnter auto linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }

  @supports not ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal-on-scroll {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-on-scroll.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ─── VENTANA DE MINI-DEMO ESTILO APPLE HARDWARE FRAME ─── */
.apple-demo-window {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -16px rgba(2, 6, 23, 0.65);
  overflow: hidden;
  min-width: 0;
}

.apple-demo-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chrome-dots {
  display: inline-flex;
  gap: 6px;
}

.chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.chrome-dots span:nth-child(1) { background: rgba(248, 113, 113, 0.7); }
.chrome-dots span:nth-child(2) { background: rgba(251, 191, 36, 0.7); }
.chrome-dots span:nth-child(3) { background: rgba(52, 211, 153, 0.7); }

.chrome-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: #fb923c;
  text-decoration: none;
  white-space: nowrap;
}

.chrome-link:hover {
  text-decoration: underline;
}

.chrome-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #7dd3fc;
  white-space: nowrap;
}

.apple-demo-body {
  padding: 20px;
}

/* ─── BUSCADOR EN VIVO ─── */
#demo-buscador {
  position: relative;
  z-index: 30;
}

.home-main-search-box {
  position: relative;
  z-index: 35;
  max-width: 780px;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px 18px;
  text-align: left;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -16px rgba(2, 6, 23, 0.65);
}

.home-main-search-box .search-row-main {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.home-main-search-box .search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.home-main-search-box .search-icon-inner {
  position: absolute;
  left: 13px;
  color: #fb923c;
  pointer-events: none;
}

.home-main-search-box .search-input {
  width: 100%;
  padding: 11px 15px 11px 40px;
  font-size: 0.92rem;
  background: var(--bg-input, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f5f5f7;
  outline: none;
}

.home-main-search-box .search-input:focus,
.home-main-search-box .filter-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.home-main-search-box .btn-search {
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  background: #f97316;
  color: #ffffff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease;
}

.home-main-search-box .btn-search:hover {
  background: #ea580c;
}

.home-main-search-box .search-row-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.home-main-search-box .search-row-filters .autocomplete-wrapper {
  flex: 1 1 240px;
  min-width: 0;
  position: relative;
}

.home-main-search-box .filter-input,
.home-main-search-box .filter-select,
.home-main-search-box .smart-select {
  flex: 1 1 160px;
  min-width: 0;
  width: 100%;
  padding: 9px 12px;
  font-size: 0.82rem;
  background: var(--bg-input, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f5f5f7;
  outline: none;
  height: 36px;
  box-sizing: border-box;
}

.home-main-search-box .btn-tools-toggle {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  color: #ffffff;
}

.home-main-search-box .btn-tools-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.home-main-search-box .btn-tools-toggle.is-open {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.home-main-search-box .search-tools-panel.is-open {
  border-top-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.home-main-search-box .gtool-trigger {
  background: var(--bg-input, #0f172a);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 9px;
}

.home-main-search-box .gtool-trigger:hover,
.home-main-search-box .gtool-dropdown.is-menu-open .gtool-trigger {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}

.home-main-search-box .gtool-menu {
  background: var(--bg-input, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.75);
}

.home-main-search-box .gtool-option {
  color: #ffffff;
}

.home-main-search-box .gtool-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.home-main-search-box .gtool-option.is-selected {
  background: rgba(249, 115, 22, 0.18);
  color: #ffffff;
}

.home-main-search-box .filter-select option,
.home-main-search-box .smart-select option {
  background: var(--bg-input, #0f172a);
  color: #f5f5f7;
}

.home-main-search-box .filter-select:focus,
.home-main-search-box .smart-select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.home-main-search-box .smart-switch-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.home-main-search-box .smart-switch-btn:hover {
  border-color: #4b5563;
  color: #f5f5f7;
}

.home-main-search-box .smart-switch-btn.is-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #f5f5f7;
}

.home-main-search-box .quick-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.home-main-search-box .qtag-label {
  font-size: 0.74rem;
  color: #fb923c;
  font-weight: 700;
}

.home-main-search-box .qtag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-main-search-box .qtag:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: #f97316;
  color: #fb923c;
}

.demo-chip {
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-chip:hover {
  border-color: rgba(249, 115, 22, 0.5);
  color: #ffffff;
}

.demo-chip.is-active {
  background: rgba(249, 115, 22, 0.2);
  border-color: #f97316;
  color: #fdba74;
}

/* Carrusel en vivo dentro del Hero */
.home-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hch-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f5f5f7;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 2px 4px;
}

.carousel-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.infinite-carousel-viewport {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  padding: 8px 0 4px;
  cursor: grab;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
}

.infinite-carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .infinite-carousel-track.is-animated {
    animation: infiniteScroll 42s linear infinite;
  }
}

.infinite-carousel-viewport:hover .infinite-carousel-track.is-animated,
.infinite-carousel-track.is-paused {
  animation-play-state: paused !important;
}

@keyframes infiniteScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.slider-card {
  width: 310px;
  min-width: 310px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.slider-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.45);
}

.slider-card-entity {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider-card-entity .entity-icon {
  color: #f97316;
  flex-shrink: 0;
}

.slider-card-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
}

.slider-card-presupuesto {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.slider-card-presupuesto-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.slider-card-presupuesto-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: #34d399;
}

/* ─── DEMO 02: PLIEGOS USHAY ─── */
.demo-pliego-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.demo-pliego-tab {
  position: relative;
  padding: 9px 2px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.demo-pliego-tab.is-active {
  color: #ffffff;
}

.demo-pliego-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #f97316;
}

.demo-pliego-panel {
  display: none;
}

.demo-pliego-panel.is-active {
  display: block;
}

.demo-pt-cargo {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f8fafc;
  border-left: 3px solid #f97316;
  padding-left: 9px;
}

.demo-pt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 4px;
  font-size: 0.76rem;
  color: #94a3b8;
}

.demo-pt-meta span + span::before {
  content: "·";
  margin: 0 7px;
  color: rgba(255, 255, 255, 0.25);
}

.demo-pt-titulo {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.58;
  color: #cbd5e1;
}

.demo-ver-mas {
  margin-top: 10px;
}

.demo-ver-mas .apple-ver-mas-trigger {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  cursor: pointer;
  user-select: none;
}

.demo-ver-mas .apple-ver-mas-trigger::-webkit-details-marker {
  display: none;
}

.demo-ver-mas .vm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fb923c;
}

.demo-ver-mas .vm-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: rotate(-90deg);
}

.demo-ver-mas[open] .vm-toggle::before {
  transform: rotate(0deg);
}

.demo-ver-mas .vm-less { display: none; }
.demo-ver-mas[open] .vm-more { display: none; }
.demo-ver-mas[open] .vm-less { display: inline; }
.demo-ver-mas[open] .vm-hint { display: none; }
.demo-ver-mas .vm-hint { font-size: 0.74rem; color: #64748b; }

.demo-ver-mas .apple-ver-mas-body {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(249, 115, 22, 0.4);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #94a3b8;
}

.demo-ver-mas .apple-ver-mas-body p {
  margin: 0 0 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .demo-ver-mas::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    transition: block-size 0.24s ease-in-out, content-visibility 0.24s allow-discrete;
  }
  .demo-ver-mas:not([open])::details-content {
    block-size: 0;
  }
}

.demo-calif-list {
  display: flex;
  flex-direction: column;
}

.demo-calif-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 56px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-calif-row:last-child { border-bottom: none; }
.demo-calif-name { font-size: 0.82rem; font-weight: 600; color: #f1f5f9; }
.demo-calif-sub { font-size: 0.72rem; color: #64748b; }
.demo-calif-bar { height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.demo-calif-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f97316, #fb923c); }
.demo-calif-score { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; font-weight: 700; color: #fb923c; }

.demo-crono-list { display: flex; flex-direction: column; }
.demo-crono-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}
.demo-crono-row.is-next {
  background: rgba(249, 115, 22, 0.08);
  box-shadow: inset 2px 0 0 #f97316;
  border-radius: 6px;
}
.dc-num { font-family: 'JetBrains Mono', monospace; color: #64748b; }
.demo-crono-row.is-past .dc-num { color: #34d399; }
.demo-crono-row.is-next .dc-num { color: #fb923c; }
.dc-name { color: #e2e8f0; font-weight: 500; }
.dc-status { font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.dc-status.done { color: #34d399; }
.dc-status.next { color: #fb923c; }
.dc-status.pending { color: #94a3b8; }

/* ─── DEMO 03: COTIZADOR & PROFORMA EN VIVO ─── */
.demo-pf-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-iva-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
}

.demo-iva-switch input {
  accent-color: #f97316;
}

.demo-pf-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.demo-pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.demo-pf-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-pf-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.demo-pf-input {
  width: 68px;
  padding: 4px 6px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: #f5f5f7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

.demo-pf-input:focus {
  outline: none;
  border-color: #f97316;
}

.demo-pf-table td.demo-pf-sub-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #fdba74;
  white-space: nowrap;
}

.demo-pf-sheet {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 16px;
}

.demo-pf-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.demo-pf-sheet-head strong { display: block; font-size: 0.8rem; color: #f8fafc; }
.demo-pf-sheet-head span { font-size: 0.72rem; color: #94a3b8; }

.demo-pf-doc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem !important;
  color: #fb923c !important;
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.demo-pf-totals {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
}

.demo-pf-totals > div {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
}

.demo-pf-totals > div strong {
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
}

.demo-pf-totals > .demo-pf-grand {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-weight: 700;
}

.demo-pf-totals > .demo-pf-grand strong {
  color: #fb923c;
  font-size: 0.96rem;
}

/* ─── DEMO 04: PRESUPUESTO & APU INTERACTIVO ─── */
.demo-apu-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.demo-ind-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.demo-ind-btn {
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  cursor: pointer;
}

.demo-ind-btn.is-active {
  background: rgba(249, 115, 22, 0.18);
  border-color: #f97316;
  color: #fdba74;
  font-weight: 700;
}

.demo-window-muted .demo-chip.is-active {
  background: rgba(249, 115, 22, 0.18);
  border-color: #f97316;
  color: #fdba74;
}

.demo-apu-stacked {
  display: flex;
  height: 10px;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
  gap: 2px;
}

.demo-apu-stacked span { transition: width 0.3s ease; }
.seg-eq { background: #52525b; }
.seg-mo { background: #71717a; }
.seg-mat { background: #f97316; }
.seg-ind { background: #3f3f46; }

.demo-apu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.demo-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.apu-stat {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #98989f;
}

.apu-stat strong {
  color: #e4e4e7;
  font-family: 'JetBrains Mono', monospace;
}

.demo-apu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.apu-foot-lbl {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717a;
}

.apu-foot-total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.96rem;
  color: #f5f5f7;
}

.apu-vae-box { text-align: right; }
.apu-vae-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #fb923c;
}

#apu-pct-lbl {
  color: #fb923c;
}

/* ─── DEMO 05: MI EMPRESA ─── */
.demo-empresa-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-empresa-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.demo-emp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.demo-empresa-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-emp-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-emp-k {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 3px;
}

.demo-emp-v {
  font-size: 0.84rem;
  color: #f8fafc;
}

.demo-emp-v.mono {
  font-family: 'JetBrains Mono', monospace;
  color: #fdba74;
}

.demo-emp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.demo-emp-tags span {
  font-size: 0.72rem;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 9999px;
  padding: 2px 9px;
}

/* ═══════════════════════════════════════════════════════════════
   3. FOOTER UNIFICADO CON EL HOME (var(--bg-base))
   ═══════════════════════════════════════════════════════════════ */
.home-footer.home-footer-unified {
  background: var(--bg-base, #0f172a);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  padding: 52px 24px 32px;
  flex-shrink: 0;
}

.home-footer-inner {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-logo-box {
  margin: 0 0 12px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.footer-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: #f8fafc;
}

.home-footer-unified .footer-brand-desc {
  display: block !important;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.76rem;
  font-weight: 750;
  color: #fb923c;
  margin: 0 0 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #fb923c !important;
}

.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fb923c !important;
  font-weight: 500;
}

.footer-country {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
}

.footer-back-top {
  color: #fb923c !important;
  font-weight: 600;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 20px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: #64748b;
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-bottom-badges {
  display: flex;
  gap: 8px;
}

.footer-bottom-badges span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(249, 115, 22, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #fdba74;
}

/* Modal informativo */
.home-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.home-modal-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}

.home-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .apple-split-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .apple-split-reverse .apple-feature-intro {
    order: -1;
  }
  .home-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .demo-apu-grid,
  .demo-emp-row,
  .home-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .slider-card {
    width: 280px;
    min-width: 280px;
  }
}

@media (max-width: 640px) {
  .home-main-search-box .search-row-filters .autocomplete-wrapper,
  .home-main-search-box .search-row-filters .btn-tools-toggle {
    flex: 1 1 auto;
    width: 100%;
  }
}
