/* =========================================================
   Web pública — diseño claro (blanco + color primario)
   Animaciones con GSAP + ScrollTrigger + Lenis (CDN)
   ========================================================= */
:root {
  --w-max: 1200px;
  --w-ease: cubic-bezier(.22, 1, .36, 1);
  --w-header: 64px;
  /* Paleta fija clara (solo el color primario viene del tema) */
  --w-bg: #ffffff;
  --w-soft: #f7f9fc;
  --w-text: #0f172a;
  --w-muted: #64748b;
  --w-line: #e8edf3;
  --w-pri: rgb(var(--c-primary));
  --w-pri-fg: rgb(var(--c-primary-fg));
  --w-pri-soft: rgb(var(--c-primary) / .08);
  --w-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -12px rgb(15 23 42 / .12);
  --w-shadow-lg: 0 30px 60px -30px rgb(15 23 42 / .28);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body.web { margin: 0; font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.6; color: var(--w-text); background: var(--w-bg); -webkit-font-smoothing: antialiased; }
:where(.web) img { max-width: 100%; display: block; }
:where(.web) a { color: inherit; text-decoration: none; }
:where(.web) :where(h1, h2, h3, h4) { margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--w-text); }
:where(.web) p { margin: 0; }
:where(.web) ::selection { background: rgb(var(--c-primary) / .18); }
main.w-page { overflow-x: clip; }
.w-container { width: 100%; max-width: var(--w-max); margin: 0 auto; padding: 0 1.25rem; }
.w-section { position: relative; padding: 5rem 0; }
.w-soft { background: var(--w-soft); border-block: 1px solid var(--w-line); }
@media (max-width: 640px) { .w-section { padding: 3.25rem 0; } }

/* Barra de progreso */
.w-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--p-300), var(--w-pri)); }

/* ---------- Header ---------- */
.w-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--w-header); color: var(--w-text); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, box-shadow .35s, transform .45s var(--w-ease); }
.w-header.is-solid { background: rgb(255 255 255 / .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-color: var(--w-line); box-shadow: 0 8px 24px -18px rgb(15 23 42 / .25); }
.w-header.is-hidden { transform: translateY(-100%); }
.w-header .w-container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.w-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; color: var(--w-text); }
.w-logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--p-400), var(--p-700)); box-shadow: 0 6px 14px -6px rgb(var(--c-primary) / .7); }
.w-logo-mark img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.w-nav { display: flex; align-items: center; gap: .15rem; margin-left: .75rem; }
.w-nav a { position: relative; padding: .4rem .7rem; font-size: .83rem; font-weight: 600; color: var(--w-muted); border-radius: 8px; transition: color .2s, background .2s; }
.w-nav a:hover { color: var(--w-text); background: var(--w-soft); }
.w-nav a.is-active { color: var(--w-pri); background: var(--w-pri-soft); }
.w-header-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.w-search { position: relative; }
.w-search input { width: 200px; height: 36px; padding: 0 .8rem 0 2.1rem; border-radius: 9px; font: inherit; font-size: .8rem; color: var(--w-text); background: var(--w-soft); border: 1px solid var(--w-line); outline: none; transition: width .35s var(--w-ease), border-color .2s, box-shadow .2s; }
.w-search input:focus { width: 250px; background: #fff; border-color: var(--w-pri); box-shadow: 0 0 0 3px rgb(var(--c-primary) / .12); }
.w-search > i, .w-search > svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: .72rem; color: var(--w-muted); }
.w-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--w-line); background: #fff; color: var(--w-text); cursor: pointer; transition: all .2s; }
.w-icon-btn:hover { border-color: var(--w-pri); color: var(--w-pri); }
.w-burger { display: none; }
@media (max-width: 960px) { .w-nav, .w-search { display: none; } .w-burger { display: grid; } }

.w-mobile { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; padding: 1rem 1.25rem 2rem; background: #fff; color: var(--w-text); clip-path: circle(0 at calc(100% - 2.5rem) 2rem); visibility: hidden; transition: clip-path .6s var(--w-ease), visibility .6s; }
.w-mobile.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2rem); visibility: visible; }
.w-mobile-top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.w-mobile form { margin-top: 1.25rem; }
.w-mobile form input { width: 100%; height: 42px; padding: 0 .9rem; border-radius: 10px; font: inherit; font-size: .9rem; border: 1px solid var(--w-line); background: var(--w-soft); outline: none; }
.w-mobile nav { display: flex; flex-direction: column; margin-top: 1rem; }
.w-mobile nav a { padding: .85rem 0; font-size: 1.05rem; font-weight: 700; border-bottom: 1px solid var(--w-line); }

/* ---------- Botones ---------- */
.w-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 40px; padding: 0 1.05rem; border-radius: 10px; font: inherit; font-size: .84rem; font-weight: 700; white-space: nowrap; cursor: pointer; border: 1px solid transparent; overflow: hidden; isolation: isolate; transition: box-shadow .25s, background .25s, color .25s, border-color .25s; }
.w-btn-sm { height: 34px; padding: 0 .8rem; font-size: .78rem; border-radius: 8px; }
.w-btn-block { width: 100%; }
.w-btn-primary, a.w-btn-primary { color: var(--w-pri-fg); background: var(--w-pri); box-shadow: 0 8px 20px -10px rgb(var(--c-primary) / .9); }
.w-btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 25%, rgb(255 255 255 / .35) 50%, transparent 75%); transform: translateX(-120%); transition: transform .7s var(--w-ease); }
.w-btn-primary:hover::before { transform: translateX(120%); }
.w-btn-primary:hover { background: var(--p-700); }
.w-btn-ghost { color: var(--w-text); background: #fff; border-color: var(--w-line); box-shadow: var(--w-shadow); }
.w-btn-ghost:hover { border-color: rgb(var(--c-primary) / .5); color: var(--w-pri); }
.w-btn-soft { color: var(--w-pri); background: var(--w-pri-soft); }
.w-btn-soft:hover { background: rgb(var(--c-primary) / .14); }
.w-btn-light { color: var(--p-700); background: #fff; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .35); }
.w-btn-yt { color: #fff; background: #e11d48; box-shadow: 0 8px 20px -10px #e11d48; }
.w-btn-yt:hover { background: #be123c; }
.w-btn-free { color: #fff; background: #10b981; box-shadow: 0 8px 20px -10px #10b981; }
.w-btn-free:hover { background: #059669; }

/* ---------- Hero ---------- */
.w-hero { position: relative; padding: calc(var(--w-header) + 4.5rem) 0 2rem; overflow: hidden; isolation: isolate; text-align: center; }
.w-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.w-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.w-blob-1 { width: 520px; height: 520px; left: -140px; top: -120px; background: rgb(var(--c-primary) / .35); }
.w-blob-2 { width: 460px; height: 460px; right: -120px; top: 60px; background: rgb(var(--c-primary) / .22); }
.w-blob-3 { width: 380px; height: 380px; left: 40%; top: 420px; background: rgb(var(--c-primary) / .15); }
.w-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .28rem .7rem .28rem .3rem; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--w-text); background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); }
.w-eyebrow b { padding: .08rem .5rem; border-radius: 999px; font-size: .66rem; color: var(--w-pri-fg); background: var(--w-pri); }
.w-hero h1 { max-width: 820px; margin: 1.1rem auto 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.w-hl { color: var(--w-pri); }
.w-hero .w-h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.w-rotate-wrap { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.w-rotate { display: inline-block; color: var(--w-pri); background: linear-gradient(90deg, var(--p-500), var(--p-800)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.w-hero-lead { max-width: 580px; margin: 1rem auto 0; font-size: .98rem; color: var(--w-muted); }
.w-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.w-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2rem; }
.w-hero-stats div { font-size: .74rem; color: var(--w-muted); }
.w-hero-stats b { display: block; font-size: 1.4rem; font-weight: 800; color: var(--w-text); letter-spacing: -.02em; }

/* Mockup principal (se endereza con el scroll) */
.w-showcase { position: relative; max-width: 1000px; margin: 3.5rem auto 0; perspective: 1400px; }
.w-browser { position: relative; border-radius: 16px; background: #fff; border: 1px solid var(--w-line); box-shadow: 0 50px 100px -40px rgb(var(--c-primary) / .45), 0 30px 60px -30px rgb(15 23 42 / .3); overflow: hidden; transform-origin: 50% 0; transform: rotateX(16deg) scale(.94); will-change: transform; }
.w-browser-bar { display: flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .9rem; background: var(--w-soft); border-bottom: 1px solid var(--w-line); }
.w-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.w-browser-bar i:nth-child(1) { background: #fca5a5; } .w-browser-bar i:nth-child(2) { background: #fcd34d; } .w-browser-bar i:nth-child(3) { background: #86efac; }
.w-browser-bar span { flex: 1; max-width: 360px; margin: 0 auto; height: 22px; display: grid; place-items: center; border-radius: 6px; font-size: .68rem; color: var(--w-muted); background: #fff; border: 1px solid var(--w-line); }
.w-browser-body { position: relative; aspect-ratio: 16 / 9; background: var(--w-soft); }
.w-browser-body img { width: 100%; height: 100%; object-fit: cover; }
.w-browser-body .w-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--w-muted); font-size: 2.5rem; background: linear-gradient(135deg, var(--p-50), #fff); }
.w-floater { position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 12px; background: rgb(255 255 255 / .9); border: 1px solid var(--w-line); box-shadow: var(--w-shadow-lg); backdrop-filter: blur(10px); text-align: left; }
.w-floater b { display: block; font-size: .8rem; }
.w-floater small { font-size: .7rem; color: var(--w-muted); }
.w-floater-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; color: #fff; font-size: .8rem; }
.w-floater-1 { left: -40px; top: 22%; } .w-floater-2 { right: -36px; top: 46%; } .w-floater-3 { left: 8%; bottom: -24px; }
@media (max-width: 1080px) { .w-floater-1 { left: 8px; } .w-floater-2 { right: 8px; } }
@media (max-width: 640px) { .w-floater { display: none; } .w-showcase { margin-top: 2.5rem; } }

/* ---------- Cinta de tecnologías ---------- */
.w-marquee { position: relative; overflow: hidden; padding: 1rem 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.w-marquee-label { text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--w-muted); margin-bottom: .6rem; }
.w-marquee-track { display: flex; gap: .6rem; width: max-content; animation: w-marquee 40s linear infinite; }
.w-marquee:hover .w-marquee-track { animation-play-state: paused; }
.w-marquee span { padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--w-text); background: #fff; border: 1px solid var(--w-line); white-space: nowrap; }
@keyframes w-marquee { to { transform: translateX(-50%); } }

/* ---------- Encabezados de sección ---------- */
.w-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.w-head-center { flex-direction: column; align-items: center; text-align: center; }
.w-kicker { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--w-pri); background: var(--w-pri-soft); }
.w-head h2 { margin-top: .6rem; font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; }
.w-head p { margin-top: .4rem; max-width: 540px; font-size: .9rem; color: var(--w-muted); }
.w-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 700; color: var(--w-pri); }
.w-link i, .w-link svg { transition: transform .3s var(--w-ease); }
.w-link:hover i, .w-link:hover svg { transform: translateX(4px); }

/* ---------- Tarjeta de sistema ---------- */
.w-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.w-card { position: relative; display: flex; flex-direction: column; border-radius: 14px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); overflow: hidden; transition: box-shadow .45s var(--w-ease), border-color .3s, translate .45s var(--w-ease); }
.w-card:hover { translate: 0 -4px; border-color: rgb(var(--c-primary) / .35); box-shadow: 0 24px 44px -24px rgb(var(--c-primary) / .5); }
.w-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--c-primary) / .08), transparent 45%); }
.w-card:hover::after { opacity: 1; }
.w-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--w-soft); }
.w-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--w-ease); }
.w-card:hover .w-card-media img { transform: scale(1.06); }
.w-card-media .w-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 1.8rem; color: rgb(var(--c-primary) / .5); background: linear-gradient(135deg, var(--p-50), #fff); }
.w-card-badges { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; justify-content: space-between; gap: .4rem; }
.w-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 7px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.w-badge-free { color: #047857; background: #d1fae5; }
.w-badge-paid { color: var(--w-pri-fg); background: var(--w-pri); }
.w-badge-member { color: #be123c; background: #ffe4e6; }
.w-badge-dark { color: var(--w-text); background: rgb(255 255 255 / .9); }
.w-badge-off { color: #fff; background: #f97316; }
.w-card-body { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: .95rem 1rem 1rem; }
.w-card-cat { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--w-pri); }
.w-card h3 { font-size: .96rem; font-weight: 700; }
.w-card-desc { font-size: .8rem; color: var(--w-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.w-chip { padding: .12rem .45rem; border-radius: 6px; font-size: .66rem; font-weight: 600; color: var(--w-muted); background: var(--w-soft); border: 1px solid var(--w-line); }
.w-card-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--w-line); }
.w-price { font-weight: 800; font-size: .98rem; color: var(--w-text); }
.w-price s { margin-right: .3rem; font-size: .76rem; font-weight: 500; color: var(--w-muted); }
.w-price-free { color: #059669; }
.w-price-member { color: #e11d48; font-size: .82rem; }
.w-dl { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; color: var(--w-muted); }
.w-card-cta { position: absolute; inset: 0; z-index: 1; }

/* ---------- Sección horizontal fija (destacados) ---------- */
.w-hscroll { position: relative; overflow: hidden; }
.w-hscroll-track { display: flex; gap: 1.25rem; width: max-content; padding: .5rem 1.25rem 1.5rem; }
.w-hscroll-track .w-card { width: 330px; flex: none; }
@media (max-width: 1023px) {
  .w-hscroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .w-hscroll::-webkit-scrollbar { display: none; }
  .w-hscroll-track .w-card { width: 280px; scroll-snap-align: start; }
}
.w-hscroll-progress { height: 3px; max-width: 240px; margin: .5rem auto 0; border-radius: 3px; background: var(--w-line); overflow: hidden; }
.w-hscroll-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--w-pri); }

/* ---------- Pasos ---------- */
.w-steps { position: relative; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .w-steps { grid-template-columns: 1fr; } }
.w-steps-line { position: absolute; left: 8%; right: 8%; top: 46px; height: 2px; background: var(--w-line); }
.w-steps-line i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #10b981, var(--w-pri), #e11d48); }
@media (max-width: 860px) { .w-steps-line { display: none; } }
.w-step { position: relative; padding: 1.4rem; border-radius: 16px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); }
.w-step-icon { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-size: 1rem; background: var(--g); box-shadow: 0 12px 24px -12px var(--g); }
.w-step h3 { margin-top: 1rem; font-size: 1rem; font-weight: 800; }
.w-step p { margin-top: .4rem; font-size: .84rem; color: var(--w-muted); }
.w-step .w-link { margin-top: .9rem; }
.w-step-num { position: absolute; right: 1.1rem; top: 1rem; font-size: .72rem; font-weight: 800; color: var(--w-muted); }
.g-free { --g: #10b981; } .g-paid { --g: rgb(var(--c-primary)); } .g-member { --g: #e11d48; }

/* ---------- Categorías ---------- */
.w-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.w-cat { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .9rem .5rem .5rem; border-radius: 999px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); font-size: .84rem; font-weight: 600; transition: border-color .25s, color .25s, translate .35s var(--w-ease); }
.w-cat:hover { translate: 0 -2px; border-color: var(--w-pri); color: var(--w-pri); }
.w-cat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--w-pri); background: var(--w-pri-soft); font-size: .75rem; }
.w-cat small { font-size: .72rem; color: var(--w-muted); font-weight: 600; }

/* ---------- Banner de membresía ---------- */
.w-cta { position: relative; overflow: hidden; border-radius: 20px; padding: 2.5rem; color: #fff; background: linear-gradient(120deg, var(--p-500), var(--p-800)); isolation: isolate; }
.w-cta::after { content: ''; position: absolute; right: -80px; top: -80px; z-index: -1; width: 280px; height: 280px; border-radius: 50%; background: rgb(255 255 255 / .12); }
.w-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.w-cta h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; }
.w-cta p { margin-top: .4rem; max-width: 560px; font-size: .9rem; opacity: .9; }
.w-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.w-cta .w-btn-ghost { color: #fff; background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); box-shadow: none; }
@media (max-width: 640px) { .w-cta { padding: 1.6rem; } }

/* ---------- Reseñas ---------- */
.w-reviews { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.w-review { padding: 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); }
.w-stars { color: #f59e0b; font-size: .72rem; letter-spacing: 1px; }
.w-stars .off { color: #e2e8f0; }
.w-review p { margin-top: .5rem; font-size: .84rem; color: #334155; }
.w-review-by { display: flex; align-items: center; gap: .55rem; margin-top: .9rem; }
.w-avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 800; color: var(--w-pri); background: var(--w-pri-soft); }
.w-review-by b { display: block; font-size: .8rem; }
.w-review-by small { font-size: .7rem; color: var(--w-muted); }

/* ---------- Cabecera de páginas internas ---------- */
.w-page-head { position: relative; padding: calc(var(--w-header) + 2.5rem) 0 2.5rem; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--p-50), #fff); border-bottom: 1px solid var(--w-line); }
.w-page-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.w-page-head p { margin-top: .4rem; font-size: .9rem; color: var(--w-muted); }
.w-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .7rem; font-size: .74rem; color: var(--w-muted); }
.w-crumbs a:hover { color: var(--w-pri); }

/* ---------- Catálogo ---------- */
.w-filters { position: sticky; top: calc(var(--w-header) + .5rem); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .55rem; margin: 1.5rem 0 1.5rem; border-radius: 14px; background: rgb(255 255 255 / .9); backdrop-filter: blur(14px); border: 1px solid var(--w-line); box-shadow: var(--w-shadow); }
.w-seg { display: flex; gap: .2rem; padding: .2rem; border-radius: 10px; background: var(--w-soft); overflow-x: auto; }
.w-seg a { padding: .35rem .75rem; border-radius: 8px; font-size: .78rem; font-weight: 600; color: var(--w-muted); white-space: nowrap; transition: all .2s; }
.w-seg a:hover { color: var(--w-text); }
.w-seg a.is-active { color: var(--w-pri); background: #fff; box-shadow: 0 2px 6px -2px rgb(15 23 42 / .15); }
.w-filters select, .w-filters input { height: 36px; padding: 0 .75rem; border-radius: 9px; font: inherit; font-size: .8rem; color: var(--w-text); background: #fff; border: 1px solid var(--w-line); outline: none; }
.w-filters input { flex: 1; min-width: 160px; }
.w-filters input:focus, .w-filters select:focus { border-color: var(--w-pri); box-shadow: 0 0 0 3px rgb(var(--c-primary) / .12); }
.w-results { margin-bottom: 1rem; font-size: .8rem; color: var(--w-muted); }
.w-empty { padding: 4rem 1rem; text-align: center; color: var(--w-muted); }
.w-empty i { display: block; margin-bottom: .8rem; font-size: 2rem; opacity: .5; }
.w-pager { margin-top: 2.5rem; display: flex; justify-content: center; }
.w-pager ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.w-pager a, .w-pager span { min-width: 36px; height: 36px; padding: 0 .6rem; display: grid; place-items: center; border-radius: 9px; font-size: .8rem; font-weight: 600; border: 1px solid var(--w-line); background: #fff; }
.w-pager .active a, .w-pager .active span { color: var(--w-pri-fg); background: var(--w-pri); border-color: var(--w-pri); }

/* ---------- Detalle ---------- */
.w-detail { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .w-detail { grid-template-columns: minmax(0, 1fr); } }
.w-detail > * { min-width: 0; }
.w-gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--w-soft); border: 1px solid var(--w-line); box-shadow: var(--w-shadow-lg); cursor: zoom-in; }
.w-gallery-main img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s, transform .7s var(--w-ease); }
.w-gallery-main:hover img { transform: scale(1.015); }
.w-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.w-thumbs button { width: 84px; flex: none; aspect-ratio: 16 / 10; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--w-soft); cursor: pointer; opacity: .6; transition: all .25s; }
.w-thumbs button.is-active, .w-thumbs button:hover { opacity: 1; border-color: var(--w-pri); }
.w-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.w-panel { position: sticky; top: calc(var(--w-header) + 1rem); padding: 1.3rem; border-radius: 16px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow-lg); }
.w-panel h1 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); font-weight: 800; }
.w-panel-lead { margin-top: .5rem; font-size: .88rem; color: var(--w-muted); }
.w-meta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .9rem; font-size: .76rem; color: var(--w-muted); }
.w-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.w-buy { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--w-line); display: flex; flex-direction: column; gap: .6rem; }
.w-buy-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.w-buy-price b { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.w-buy-price s { font-size: .9rem; color: var(--w-muted); }
.w-note { display: flex; gap: .6rem; padding: .7rem .8rem; border-radius: 10px; font-size: .8rem; line-height: 1.45; }
.w-note-info { color: var(--w-text); background: var(--w-pri-soft); border: 1px solid rgb(var(--c-primary) / .18); }
.w-note-warn { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.w-note-ok { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; }
.w-note-err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.w-demo { display: grid; gap: .4rem; padding: .75rem; border-radius: 10px; background: var(--w-soft); border: 1px dashed var(--w-line); font-size: .78rem; }
.w-demo-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.w-demo-row code { font-family: ui-monospace, monospace; font-size: .78rem; padding: .1rem .4rem; border-radius: 5px; background: #fff; border: 1px solid var(--w-line); }
.w-copy { border: 0; background: none; color: var(--w-pri); cursor: pointer; font-size: .74rem; font-weight: 700; }
.w-block { margin-top: 2rem; }
.w-block h2 { font-size: 1.08rem; font-weight: 800; margin-bottom: .8rem; }
.w-prose { font-size: .9rem; color: #334155; white-space: pre-line; }
.w-checks { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; }
.w-checks li { display: flex; gap: .55rem; align-items: flex-start; padding: .6rem .75rem; border-radius: 10px; font-size: .84rem; background: #fff; border: 1px solid var(--w-line); }
.w-checks li i, .w-checks li svg { color: #10b981; margin-top: .2rem; flex: none; }
.w-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--w-shadow-lg); }
.w-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-video-poster { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; }
.w-video-poster::before { content: ''; position: absolute; inset: 0; background: rgb(15 23 42 / .25); }
.w-play { position: relative; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.15rem; background: #e11d48; animation: w-pulse 2s infinite; }
@keyframes w-pulse { 0% { box-shadow: 0 0 0 0 rgb(225 29 72 / .55); } 70% { box-shadow: 0 0 0 18px rgb(225 29 72 / 0); } 100% { box-shadow: 0 0 0 0 rgb(225 29 72 / 0); } }

/* ---------- Formularios ---------- */
.w-form { display: grid; gap: .75rem; }
.w-field label { display: block; margin-bottom: .3rem; font-size: .76rem; font-weight: 600; color: var(--w-text); }
.w-field input, .w-field select, .w-field textarea { width: 100%; height: 40px; padding: 0 .8rem; border-radius: 9px; font: inherit; font-size: .85rem; color: var(--w-text); background: #fff; border: 1px solid var(--w-line); outline: none; transition: border-color .2s, box-shadow .2s; }
.w-field textarea { height: auto; padding: .55rem .8rem; resize: vertical; }
.w-field input:focus, .w-field select:focus, .w-field textarea:focus { border-color: var(--w-pri); box-shadow: 0 0 0 3px rgb(var(--c-primary) / .12); }
.w-input-icon { position: relative; }
.w-input-icon > i, .w-input-icon > svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--w-muted); pointer-events: none; }
.w-input-icon input, .w-input-icon select { padding-left: 2.2rem; }
.w-input-icon .w-eye { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: var(--w-muted); cursor: pointer; }
.w-file { position: relative; display: flex; align-items: center; gap: .65rem; padding: .7rem; border-radius: 10px; border: 1px dashed var(--w-line); cursor: pointer; transition: border-color .2s, background .2s; }
.w-file:hover { border-color: var(--w-pri); background: var(--w-pri-soft); }
.w-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.w-file-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--w-pri); background: var(--w-pri-soft); }
.w-file b { display: block; font-size: .8rem; }
.w-file small { font-size: .7rem; color: var(--w-muted); }
.w-file-preview { margin-top: .5rem; width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; background: var(--w-soft); }
.w-check { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--w-muted); cursor: pointer; }
.w-check input { width: 15px; height: 15px; accent-color: rgb(var(--c-primary)); }
.w-text-link { font-size: .8rem; font-weight: 600; color: var(--w-pri); background: none; border: 0; cursor: pointer; padding: 0; }

/* Diálogos */
.w-dialog { width: min(460px, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--w-line); border-radius: 16px; background: #fff; color: var(--w-text); box-shadow: 0 40px 80px -30px rgb(15 23 42 / .45); }
.w-dialog::backdrop { background: rgb(15 23 42 / .45); backdrop-filter: blur(4px); }
.w-dialog[open] { animation: w-pop .35s var(--w-ease); }
@keyframes w-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.w-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--w-line); }
.w-dialog-head h3 { font-size: .96rem; font-weight: 800; }
.w-dialog-body { padding: 1.1rem; }
.w-lightbox { width: min(1100px, calc(100vw - 2rem)); background: transparent; border: 0; box-shadow: none; padding: 0; }
.w-lightbox::backdrop { background: rgb(15 23 42 / .85); }
.w-lightbox img { width: 100%; max-height: 85vh; object-fit: contain; border-radius: 12px; }
.w-lightbox-close { position: fixed; top: 1rem; right: 1rem; }

/* ---------- Login / registro de clientes ---------- */
.w-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .w-auth { grid-template-columns: 1fr; } }
.w-auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--w-header) + 2.5rem) 3rem 3rem; color: #fff; background: linear-gradient(140deg, var(--p-500), var(--p-800)); isolation: isolate; }
.w-auth-side::after { content: ''; position: absolute; right: -120px; bottom: -120px; z-index: -1; width: 380px; height: 380px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.w-auth-side h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.w-auth-side p { margin-top: .6rem; max-width: 420px; font-size: .92rem; opacity: .9; }
.w-auth-perks { display: grid; gap: .7rem; margin-top: 2rem; }
.w-auth-perk { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; max-width: 380px; border-radius: 12px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); backdrop-filter: blur(8px); font-size: .84rem; font-weight: 600; }
.w-auth-perk i, .w-auth-perk svg { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: #fff; color: var(--p-700); flex: none; }
.w-auth-side small { font-size: .74rem; opacity: .75; }
@media (max-width: 960px) { .w-auth-side { display: none; } }
.w-auth-main { display: flex; align-items: center; justify-content: center; padding: calc(var(--w-header) + 2rem) 1.25rem 3rem; background: #fff; }
.w-auth-card { width: 100%; max-width: 420px; }
.w-auth-card h1 { font-size: 1.5rem; font-weight: 800; }
.w-auth-card > p { margin-top: .35rem; font-size: .88rem; color: var(--w-muted); }
.w-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; margin: 1.4rem 0 1.2rem; border-radius: 11px; background: var(--w-soft); border: 1px solid var(--w-line); position: relative; }
.w-tabs button { position: relative; z-index: 1; height: 34px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .82rem; font-weight: 700; color: var(--w-muted); cursor: pointer; transition: color .25s; }
.w-tabs button.is-active { color: var(--w-text); }
.w-tabs-pill { position: absolute; top: .25rem; bottom: .25rem; left: .25rem; width: calc(50% - .375rem); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px -3px rgb(15 23 42 / .2); transition: transform .45s var(--w-ease); }
.w-tabs[data-tab="register"] .w-tabs-pill { transform: translateX(calc(100% + .25rem)); }
.w-auth-pane[hidden] { display: none; }
.w-auth-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.w-grid-2 { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .w-grid-2 { grid-template-columns: 1fr; } }
.w-auth-foot { margin-top: 1.2rem; text-align: center; font-size: .78rem; color: var(--w-muted); }

/* ---------- Footer ---------- */
.w-footer { position: relative; margin-top: 2rem; padding: 3.5rem 0 1.5rem; background: var(--w-soft); border-top: 1px solid var(--w-line); color: var(--w-muted); }
.w-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 860px) { .w-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .w-footer-grid { grid-template-columns: 1fr; } }
.w-footer p { margin-top: .8rem; max-width: 320px; font-size: .84rem; }
.w-footer h4 { margin-bottom: .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--w-text); }
.w-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .84rem; }
.w-footer a:hover { color: var(--w-pri); }
.w-social { display: flex; gap: .45rem; margin-top: 1rem; }
.w-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid var(--w-line); color: var(--w-text); transition: all .25s; }
.w-social a:hover { color: var(--w-pri-fg); background: var(--w-pri); border-color: var(--w-pri); }
.w-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--w-line); font-size: .76rem; }

.w-fab { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.3rem; background: #22c55e; box-shadow: 0 14px 30px -10px #16a34a; transition: transform .3s var(--w-ease); }
.w-fab:hover { transform: scale(1.08); }

.w-toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 130; width: min(440px, calc(100vw - 2rem)); transform: translate(-50%, 140%); transition: transform .5s var(--w-ease); }
.w-toast.is-in { transform: translate(-50%, 0); }
.w-toast .w-note { background-color: #fff; box-shadow: 0 20px 40px -20px rgb(15 23 42 / .4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .w-browser { transform: none !important; }
}

/* =========================================================
   Banner cinematográfico (portada)
   ========================================================= */
.w-banner { position: relative; height: clamp(620px, 96vh, 920px); overflow: hidden; background: #fff; isolation: isolate; }
.w-slides { position: absolute; inset: 0; }
.w-slide { position: absolute; inset: 0; visibility: hidden; clip-path: inset(0 0 0 0); }
.w-slide.is-active { visibility: visible; z-index: 2; }
.w-slide.is-leaving { visibility: visible; z-index: 1; }
.w-slide-media { position: absolute; inset: -6% -4%; will-change: transform; }
.w-slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.w-slide.is-active .w-slide-media img { animation: w-kenburns 9s ease-out forwards; }
@keyframes w-kenburns { from { transform: scale(1.18); } to { transform: scale(1.04); } }
html.has-gsap .w-slide.is-active .w-slide-media img { animation: none; }
/* Velo claro: el texto queda sobre blanco y la imagen respira a la derecha */
.w-slide-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgb(255 255 255 / .97) 0%, rgb(255 255 255 / .9) 30%, rgb(255 255 255 / .35) 58%, rgb(255 255 255 / 0) 75%),
  linear-gradient(0deg, rgb(255 255 255 / 1) 0%, rgb(255 255 255 / 0) 22%); }
.w-slide-shade::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 0% 50%, rgb(var(--c-primary) / .12), transparent 70%); }
@media (max-width: 860px) {
  .w-slide-shade { background: linear-gradient(0deg, rgb(255 255 255 / 1) 0%, rgb(255 255 255 / .94) 42%, rgb(255 255 255 / .2) 75%, rgb(255 255 255 / 0) 100%); }
}
.w-slide-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--w-header); padding-bottom: 12rem; }
@media (max-width: 860px) { .w-slide-content { justify-content: flex-end; padding-bottom: 6.5rem; } }
.w-slide-kicker { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--w-pri); }
.w-slide-kicker::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.w-slide-title { max-width: 620px; margin-top: .9rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--w-text); }
.w-slide-title .line { overflow: hidden; padding-bottom: .06em; }
.w-slide-desc { max-width: 500px; margin-top: .9rem; font-size: .96rem; color: #475569; }
.w-slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin-top: 1rem; font-size: .78rem; color: var(--w-muted); }
.w-slide-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.w-slide-meta b { color: var(--w-text); font-size: 1.05rem; }
.w-slide-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* Navegación del banner: tarjetas con miniatura */
.w-banner-ui { position: absolute; left: 0; right: 0; bottom: 4.25rem; z-index: 5; }
.w-banner-ui .w-container { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.w-thumbnav { display: flex; gap: .75rem; }
.w-thumbnav button { position: relative; width: 168px; padding: .45rem .45rem .6rem; border-radius: 12px; border: 1px solid rgb(255 255 255 / .7); background: rgb(255 255 255 / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 30px -18px rgb(15 23 42 / .45); cursor: pointer; text-align: left; font: inherit; color: var(--w-muted); overflow: hidden; transition: transform .45s var(--w-ease), background .3s, box-shadow .3s, border-color .3s; }
.w-thumbnav button:hover { transform: translateY(-4px); background: rgb(255 255 255 / .92); }
.w-thumbnav button.is-active { transform: translateY(-6px); background: #fff; color: var(--w-text); border-color: rgb(var(--c-primary) / .45); box-shadow: 0 20px 36px -18px rgb(var(--c-primary) / .6); }
.w-thumbnav img { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; }
.w-thumbnav span { display: block; margin-top: .45rem; padding: 0 .1rem; font-size: .74rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-thumbnav button::before { content: ''; position: absolute; left: .45rem; right: .45rem; bottom: .3rem; height: 3px; border-radius: 3px; background: rgb(15 23 42 / .08); }
.w-thumbnav button i { position: absolute; left: .45rem; right: .45rem; bottom: .3rem; height: 3px; width: auto; border-radius: 3px; background: var(--w-pri); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1180px) { .w-thumbnav button { width: 140px; } }
@media (max-width: 980px) { .w-thumbnav button:nth-child(n+4) { display: none; } }
@media (max-width: 860px) {
  .w-banner-ui { bottom: 3.5rem; }
  .w-thumbnav { gap: .4rem; flex: 1; }
  .w-thumbnav button, .w-thumbnav button:nth-child(n+4) { display: block; flex: 1; width: auto; height: 10px; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; transform: none !important; }
  .w-thumbnav img, .w-thumbnav span { display: none; }
  .w-thumbnav button::before, .w-thumbnav button i { left: 0; right: 0; bottom: 3px; }
}
.w-banner-side { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.w-banner-arrows { display: flex; gap: .4rem; }
.w-banner-arrows button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .7); background: rgb(255 255 255 / .8); backdrop-filter: blur(10px); color: var(--w-text); cursor: pointer; box-shadow: 0 10px 24px -14px rgb(15 23 42 / .5); transition: all .25s; }
.w-banner-arrows button:hover { color: var(--w-pri-fg); background: var(--w-pri); border-color: var(--w-pri); }
.w-banner-count { font-size: .8rem; font-weight: 700; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.w-banner-count b { color: var(--w-text); font-size: 1.15rem; }
@media (max-width: 860px) { .w-banner-count { display: none; } }

/* Banner sin imágenes (respaldo) */
.w-banner-plain { display: flex; align-items: center; background: radial-gradient(70% 90% at 85% 20%, rgb(var(--c-primary) / .16), transparent 60%), radial-gradient(50% 60% at 10% 90%, rgb(var(--c-primary) / .1), transparent 60%), #fff; }

/* Franja de estadísticas que se monta sobre el banner */
.w-statbar { position: relative; z-index: 6; margin-top: -2.6rem; }
.w-statbar-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 16px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow-lg); overflow: hidden; }
.w-statbar-inner > div { padding: 1.1rem 1.25rem; border-left: 1px solid var(--w-line); }
.w-statbar-inner > div:first-child { border-left: 0; }
.w-statbar b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--w-text); }
.w-statbar span { font-size: .76rem; color: var(--w-muted); }
@media (max-width: 760px) { .w-statbar-inner { grid-template-columns: 1fr 1fr; } .w-statbar-inner > div:nth-child(3) { border-left: 0; } .w-statbar-inner > div:nth-child(n+3) { border-top: 1px solid var(--w-line); } }

/* Franja con parallax (membresía) */
.w-band { position: relative; overflow: hidden; border-radius: 22px; min-height: 380px; display: flex; align-items: center; isolation: isolate; }
.w-band-media { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.w-band-media img { width: 100%; height: 100%; object-fit: cover; }
.w-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(var(--c-primary) / .95) 0%, rgb(var(--c-primary) / .82) 45%, rgb(var(--c-primary) / .35) 100%); }
.w-band-content { padding: 2.75rem; max-width: 620px; color: #fff; }
.w-band-content h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.w-band-content p { margin-top: .6rem; font-size: .94rem; opacity: .92; }
.w-band-content .w-cta-actions { margin-top: 1.4rem; }
.w-band .w-btn-ghost { color: #fff; background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .35); box-shadow: none; }
@media (max-width: 640px) { .w-band-content { padding: 1.75rem; } .w-band { min-height: 320px; } }

/* Sección "por dentro" con mockup */
.w-inside { text-align: center; }
.w-inside .w-showcase { margin-top: 2rem; }

/* ---------- Aviso de membresía: menú y tarjetas ---------- */
.w-nav-pop { position: relative; }
.w-nav-pop > a { display: inline-flex; align-items: center; }
.w-pop { position: absolute; left: 50%; top: calc(100% + 12px); z-index: 30; width: 290px; display: flex; gap: .7rem; padding: .85rem .9rem; border-radius: 14px; text-align: left; background: #fff; border: 1px solid var(--w-line); box-shadow: 0 24px 48px -20px rgb(15 23 42 / .35); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .35s var(--w-ease), visibility .25s; }
.w-pop::before { content: ''; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--w-line); border-top: 1px solid var(--w-line); transform: translateX(-50%) rotate(45deg); }
.w-pop::after { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* puente para no perder el hover */
.w-nav-pop:hover .w-pop, .w-nav-pop:focus-within .w-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.w-pop-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #e11d48; box-shadow: 0 8px 18px -8px #e11d48; }
.w-pop b { display: block; font-size: .84rem; color: var(--w-text); }
.w-pop p { margin-top: .2rem; font-size: .78rem; line-height: 1.45; color: var(--w-muted); }
.w-nav .w-pop a.w-link { padding: 0; color: var(--w-pri); background: none; }
.w-pop .w-link::after { display: none; }

.w-card-note { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .5rem .65rem; border-radius: 10px; font-size: .74rem; font-weight: 600; line-height: 1.35; color: #fff; background: rgb(190 18 60 / .92); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -12px rgb(190 18 60 / .8); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .45s var(--w-ease); }
.w-card-note i, .w-card-note svg { flex: none; color: #fde68a; }
.w-card:hover .w-card-note, .w-card:focus-within .w-card-note { opacity: 1; transform: none; }
@media (hover: none) { .w-card-note { opacity: 1; transform: none; } }

/* =========================================================
   Mi cuenta (portal del cliente)
   ========================================================= */
.w-portal { padding: calc(var(--w-header) + 1.5rem) 0 3rem; background: var(--w-soft); min-height: 100vh; }
.w-portal-top { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: 1rem 1.1rem; margin-bottom: 1.1rem; border-radius: 16px; color: #fff; background: linear-gradient(120deg, var(--p-500), var(--p-800)); box-shadow: 0 18px 36px -24px rgb(var(--c-primary) / .9); position: relative; overflow: hidden; isolation: isolate; }
.w-portal-top::after { content: ''; position: absolute; right: -60px; top: -80px; z-index: -1; width: 240px; height: 240px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.w-portal-avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; font-size: 1.1rem; font-weight: 800; color: var(--p-700); background: #fff; }
.w-portal-top h1 { color: #fff; font-size: 1.15rem; font-weight: 800; }
.w-portal-top p { font-size: .78rem; opacity: .85; }
.w-chip-status { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; background: rgb(255 255 255 / .18); border: 1px solid rgb(255 255 255 / .25); }
.w-chip-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #fff); box-shadow: 0 0 0 3px rgb(255 255 255 / .2); }
.w-portal-top .w-btn { height: 34px; font-size: .78rem; color: #fff; background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .3); box-shadow: none; }
.w-portal-top .w-btn:hover { background: rgb(255 255 255 / .24); color: #fff; }

.w-portal-grid { display: grid; gap: 1.1rem; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .w-portal-grid { grid-template-columns: 1fr; } }
.w-portal-nav { position: sticky; top: calc(var(--w-header) + 1rem); display: flex; flex-direction: column; gap: .2rem; padding: .5rem; border-radius: 14px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); }
.w-portal-nav button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 9px; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--w-muted); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.w-portal-nav button i, .w-portal-nav button svg { width: 16px; }
.w-portal-nav button:hover { color: var(--w-text); background: var(--w-soft); }
.w-portal-nav button.is-active { color: var(--w-pri); background: var(--w-pri-soft); }
.w-portal-nav .w-nav-count { margin-left: auto; min-width: 20px; padding: 0 .35rem; border-radius: 6px; font-size: .66rem; font-weight: 700; text-align: center; color: var(--w-muted); background: var(--w-soft); }
@media (max-width: 900px) {
  .w-portal-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .w-portal-nav button { width: auto; white-space: nowrap; }
  .w-portal-nav .w-nav-count { display: none; }
}
.w-pane[hidden] { display: none; }
.w-pane { display: grid; gap: 1rem; }
.w-box { padding: 1.05rem; border-radius: 14px; background: #fff; border: 1px solid var(--w-line); box-shadow: var(--w-shadow); }
.w-box-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.w-box-head h2 { font-size: .92rem; font-weight: 800; }
.w-box-head p { font-size: .74rem; color: var(--w-muted); }

.w-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .w-kpis { grid-template-columns: 1fr; } }
.w-kpi { position: relative; overflow: hidden; padding: .85rem .95rem; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 12px 24px -16px var(--g2); }
.w-kpi::after { content: ''; position: absolute; right: -22px; top: -22px; width: 80px; height: 80px; border-radius: 50%; background: rgb(255 255 255 / .14); }
.w-kpi small { position: relative; z-index: 1; display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; opacity: .9; }
.w-kpi b { position: relative; z-index: 1; display: block; margin-top: .35rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.w-kpi span { position: relative; z-index: 1; font-size: .7rem; opacity: .85; }
.k-pri { --g1: var(--p-400); --g2: var(--p-700); } .k-ok { --g1: #34d399; --g2: #059669; } .k-rose { --g1: #fb7185; --g2: #be123c; } .k-gray { --g1: #94a3b8; --g2: #475569; }

.w-feature { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1rem; align-items: center; }
@media (max-width: 560px) { .w-feature { grid-template-columns: 1fr; } }
.w-feature img, .w-feature .w-acc-ph { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; background: var(--w-soft); display: grid; place-items: center; color: var(--w-muted); }
.w-feature h3 { font-size: .98rem; font-weight: 800; }
.w-feature p { margin-top: .25rem; font-size: .78rem; color: var(--w-muted); }
.w-feature .w-cta-actions { margin-top: .75rem; }

.w-sys-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.w-sys { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--w-line); background: #fff; transition: box-shadow .3s, translate .3s var(--w-ease); }
.w-sys:hover { translate: 0 -3px; box-shadow: 0 18px 30px -20px rgb(var(--c-primary) / .5); }
.w-sys img, .w-sys .w-acc-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--w-soft); display: grid; place-items: center; color: var(--w-muted); }
.w-sys-body { padding: .7rem .75rem .8rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.w-sys-body b { font-size: .82rem; line-height: 1.35; }
.w-sys-body small { font-size: .7rem; color: var(--w-muted); }
.w-sys-body .w-btn { margin-top: auto; }

.w-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.w-table th { padding: .5rem .6rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; color: var(--w-muted); border-bottom: 1px solid var(--w-line); }
.w-table td { padding: .6rem; border-bottom: 1px solid var(--w-line); vertical-align: middle; }
.w-table tr:last-child td { border-bottom: 0; }
.w-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem; border-radius: 6px; font-size: .68rem; font-weight: 700; }
.p-ok { color: #047857; background: #d1fae5; } .p-warn { color: #92400e; background: #fef3c7; } .p-err { color: #b91c1c; background: #fee2e2; } .p-gray { color: #475569; background: #f1f5f9; }

.w-steps-mini { display: grid; gap: .6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .w-steps-mini { grid-template-columns: 1fr; } }
.w-steps-mini div { display: flex; gap: .55rem; padding: .65rem; border-radius: 10px; background: var(--w-soft); font-size: .76rem; color: var(--w-muted); }
.w-steps-mini b { display: block; font-size: .78rem; color: var(--w-text); }
.w-steps-mini span.n { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .68rem; font-weight: 800; color: var(--w-pri-fg); background: var(--w-pri); }

/* Formularios compactos del portal */
.w-portal .w-field label { font-size: .74rem; }
.w-portal .w-field input, .w-portal .w-field select { height: 36px; font-size: .82rem; border-radius: 8px; }
.w-form-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .w-form-grid { grid-template-columns: 1fr; } }

/* Diálogo de verificación: compacto en dos columnas */
.w-dialog-lg { width: min(640px, calc(100vw - 2rem)); }
.w-dialog-lg .w-dialog-head { padding: .75rem 1rem; }
.w-dialog-lg .w-dialog-head h3 { font-size: .9rem; display: flex; align-items: center; gap: .45rem; }
.w-dialog-lg .w-icon-btn { width: 30px; height: 30px; }
.w-dialog-lg .w-dialog-body { padding: 1rem; }
.w-verify { display: grid; gap: 1rem; grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 600px) { .w-verify { grid-template-columns: 1fr; } }
.w-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 210px; padding: .8rem; border-radius: 12px; border: 1.5px dashed var(--w-line); background: var(--w-soft); text-align: center; cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s; }
.w-drop:hover { border-color: var(--w-pri); background: var(--w-pri-soft); }
.w-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.w-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-drop-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--w-pri); background: #fff; box-shadow: var(--w-shadow); }
.w-drop b { font-size: .78rem; }
.w-drop small { font-size: .68rem; color: var(--w-muted); }
.w-verify .w-field label { font-size: .74rem; }
.w-verify .w-field input, .w-verify .w-field select { height: 36px; font-size: .82rem; border-radius: 8px; }
.w-verify .w-field textarea { font-size: .82rem; border-radius: 8px; min-height: 64px; }
.w-verify-fields { display: grid; gap: .6rem; align-content: start; }
.w-dialog-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--w-line); background: var(--w-soft); border-radius: 0 0 16px 16px; }
.w-dialog-foot .w-btn { height: 36px; font-size: .8rem; }

/* Diálogos: cabecera y pie fijos, solo el cuerpo hace scroll */
.web [hidden] { display: none !important; }
.w-dialog[open] { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); overflow: hidden; }
.w-dialog > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.w-dialog-head, .w-dialog-foot { flex: none; }
.w-dialog-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

/* Galería del detalle: nunca más ancha que la pantalla */
.w-gallery-main, .w-thumbs { max-width: 100%; }
.w-thumbs { scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.w-thumbs img { display: block; }
@media (max-width: 640px) {
  .w-gallery-main { border-radius: 12px; }
  .w-thumbs button { width: 64px; }
}
