/* =============================================================
   JM WEB SERVICE — demos-showcase.css
   Vitrina con fotos del inicio, carrusel 3D de demos, constructor "Ponle tu nombre"
   y cuadrícula de demos. Mobile first: todo se usa con el dedo.
   ============================================================= */

/* ---------------------------------------------------------------
   INICIO: texto + vitrina de fotos
--------------------------------------------------------------- */
.hero-layout { position: relative; z-index: 2; display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; justify-items: center; }
.hero-layout .hero-content { max-width: 760px; }

.hx {
  --tx: 0; --ty: 0;
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4 / 4.6;
  perspective: 1400px;
  touch-action: pan-y;
  user-select: none;
}
.hx-deck {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--tx) * 10deg)) rotateX(calc(var(--ty) * -8deg));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hx-card {
  position: absolute; inset: 4% 8% 14%;
  border-radius: 26px; overflow: hidden;
  background: #111; color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4);
  transform-origin: 50% 100%;
  transition: transform .8s cubic-bezier(.2,.75,.2,1), opacity .6s ease, filter .6s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.hx-card img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 6s ease; }
.hx-card[data-pos="0"] img { transform: scale(1.12); }
.hx-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.85) 100%), linear-gradient(0deg, color-mix(in srgb, var(--c) 35%, transparent), transparent 50%); }
.hx-tag {
  position: absolute; top: 14px; left: 14px;
  padding: .4rem .8rem; border-radius: 999px;
  font: 700 .74rem var(--font-mono); letter-spacing: .04em;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hx-body { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; gap: .2rem; text-align: left; }
.hx-body strong { font-size: clamp(1.15rem, 3.4vw, 1.45rem); line-height: 1.15; }
.hx-body small { color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.35; }
.hx-go { margin-top: .5rem; justify-self: start; padding: .45rem .9rem; border-radius: 999px; background: var(--neon); color: #050505; font-weight: 800; font-size: .82rem; box-shadow: 0 0 18px rgba(0,255,20,.45); }

/* Posiciones del mazo: 0 adelante, 1-3 detrás, "fuera" se va volando */
.hx-card[data-pos="0"] { transform: translate3d(0,0,60px) rotateZ(0deg); opacity: 1; z-index: 5; }
.hx-card[data-pos="1"] { transform: translate3d(9%, -4%, 0) rotateZ(5deg) scale(.94); opacity: .9; z-index: 4; filter: brightness(.7); }
.hx-card[data-pos="2"] { transform: translate3d(-9%, -7%, -60px) rotateZ(-6deg) scale(.88); opacity: .75; z-index: 3; filter: brightness(.5); }
.hx-card[data-pos="3"] { transform: translate3d(0, -10%, -120px) scale(.82); opacity: 0; z-index: 2; }
.hx-card[data-pos="atras"] { transform: translate3d(0, -10%, -160px) scale(.8); opacity: 0; z-index: 1; pointer-events: none; }
.hx-card[data-pos="fuera"] { transform: translate3d(-75%, 8%, 80px) rotateZ(-16deg) rotateY(25deg); opacity: 0; z-index: 6; pointer-events: none; }
.hx-card:not([data-pos="0"]) { pointer-events: none; }
.hx-card[data-pos="1"], .hx-card[data-pos="2"] { pointer-events: auto; cursor: pointer; }
.hx-card:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; }
/* Sin JavaScript solo existe la primera tarjeta: se ve de frente */
.hx:not(.is-ready) .hx-card { transform: none; }

.hx-toast {
  position: absolute; left: 50%; bottom: 3%;
  max-width: 92%;
  padding: .65rem 1rem; border-radius: 14px;
  background: rgba(12,14,16,.88); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), inset 3px 0 0 var(--c, var(--neon));
  font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateX(-50%);
  z-index: 8;
}
.hx-toast.is-in { animation: hxToast .6s cubic-bezier(.2,.8,.2,1.2) both; }
@keyframes hxToast { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.hx-dots { position: absolute; left: 0; right: 0; bottom: -2.2rem; display: flex; justify-content: center; gap: 4px; }
.hx-dots button { width: 26px; height: 26px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.hx-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.28); transition: width .3s, background .3s; }
.hx-dots button.is-on::before { width: 22px; background: var(--neon); box-shadow: 0 0 10px var(--neon); }

@media (min-width: 1080px) {
  .hero-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); justify-items: stretch; }
  .hero-layout .hero-content { text-align: left; max-width: none; }
  .hero-layout .hero-subtitle { margin-left: 0; }
  .hero-layout .hero-ctas, .hero-layout .hero-chips { justify-content: flex-start; }
  .hero-layout .hero-title { font-size: clamp(2.6rem, 4.4vw, 4.1rem); }
  .hx { justify-self: center; width: min(100%, 460px); }
}
@media (max-width: 1079px) {
  .hx { margin-bottom: 2.4rem; }
}
@media (max-width: 520px) {
  .hx { width: min(100%, 330px); }
  .hx-card { inset: 3% 6% 15%; border-radius: 22px; }
  .hx-toast { font-size: .78rem; padding: .55rem .8rem; }
}

/* ---------------------------------------------------------------
   SECCIÓN DE DEMOS
--------------------------------------------------------------- */
.dx-section { position: relative; overflow: hidden; }
.dx-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 40% at 50% 18%, rgba(0,255,20,.09), transparent 70%); }

/* Filtros */
.dx3d-filtros { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; justify-content: safe center; -webkit-overflow-scrolling: touch; }
.dx3d-filtros::-webkit-scrollbar { display: none; }
.dx3d-filtros button {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--muted);
  font: 600 .9rem var(--font-body); cursor: pointer; transition: all .2s;
}
.dx3d-filtros button:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.dx3d-filtros button.is-on { background: var(--neon); color: #050505; border-color: var(--neon); box-shadow: 0 0 16px rgba(0,255,20,.35); }

/* Escenario 3D */
.dx3d-stage {
  position: relative;
  height: clamp(340px, 52vw, 470px);
  perspective: 1500px;
  perspective-origin: 50% 40%;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
  outline: none;
  margin-top: .4rem;
}
.dx3d-stage.is-drag { cursor: grabbing; }
.dx3d-stage:focus-visible { box-shadow: 0 0 0 2px var(--border-neon); border-radius: 24px; }
.dx3d-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.dx3d-floor { position: absolute; left: 10%; right: 10%; bottom: 2%; height: 60px; background: radial-gradient(ellipse at center, rgba(0,255,20,.22), transparent 70%); filter: blur(14px); pointer-events: none; }

.dx-card {
  position: absolute; left: 50%; top: 46%;
  width: clamp(200px, 30vw, 290px);
  aspect-ratio: 10 / 13;
  border-radius: 22px; overflow: hidden;
  color: #fff; background: #121214;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  transition: box-shadow .3s, border-color .3s;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.dx-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.dx-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.88) 100%), linear-gradient(0deg, color-mix(in srgb, var(--c) 40%, transparent), transparent 45%); }
.dx-card-emoji { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dx-card-b { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: .15rem; }
.dx-card-b strong { font-size: 1.15rem; line-height: 1.15; }
.dx-card-b small { color: rgba(255,255,255,.78); font-size: .82rem; }
.dx-card.is-on { border-color: color-mix(in srgb, var(--c) 70%, #fff 0%); box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 2px color-mix(in srgb, var(--c) 75%, transparent), 0 0 40px color-mix(in srgb, var(--c) 40%, transparent); }
.dx-card:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; }

.dx3d-ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .4rem; }
.dx3d-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-neon); background: rgba(0,255,20,.06); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.dx3d-arrow:hover { background: var(--neon); color: #000; }
.dx3d-arrow:active { transform: scale(.94); }
.dx3d-count { font: 700 .85rem var(--font-mono); color: var(--muted); min-width: 64px; text-align: center; }

/* Detalle de la demo del frente */
.dx3d-info {
  max-width: 760px; margin: 1.2rem auto 0; padding: 1.2rem 1.4rem;
  border-radius: 20px; border: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 120% at 0% 0%, color-mix(in srgb, var(--c, var(--neon)) 14%, transparent), transparent 60%), var(--bg-card);
}
.dx-info-t { display: flex; gap: 1rem; align-items: flex-start; }
.dx-info-emoji { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: color-mix(in srgb, var(--c, var(--neon)) 22%, #111); border: 1px solid color-mix(in srgb, var(--c, var(--neon)) 45%, transparent); }
.dx-info-t h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.dx-info-t p { color: var(--muted); font-size: .95rem; max-width: none; }
.dx-info-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: .9rem 0 1rem; }
.dx-info-tags li { padding: .3rem .7rem; border-radius: 999px; font: 600 .72rem var(--font-mono); background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.dx-info-tags li:last-child { background: rgba(37,211,102,.12); color: #4ade80; }
.dx-info-acc { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.dx-info-wa { color: var(--neon); font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; }
.dx-noscript { text-align: center; margin-top: 1rem; }
.dx-noscript a { color: var(--neon); font-weight: 700; }

/* ---------------------------------------------------------------
   CONSTRUCTOR "PONLE TU NOMBRE"
--------------------------------------------------------------- */
.dxb {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid; gap: 1.6rem; align-items: center;
  padding: clamp(1.2rem, 3.5vw, 2.4rem);
  border-radius: 28px; border: 1px solid var(--border-neon);
  background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(0,255,20,.1), transparent 60%), var(--bg-card);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.dxb-form h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.12; margin: .6rem 0 .5rem; }
.dxb-form > p { color: var(--muted); max-width: 52ch; }
.dxb-fields { display: grid; gap: 1rem; margin: 1.3rem 0 1.4rem; }
.dxb-field { display: grid; gap: .45rem; min-width: 0; }
.dxb-field > span { font: 700 .72rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dxb-field select, .dxb-field input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: #0b0b0d; color: #fff;
  font: 500 16px var(--font-body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.dxb-field select:focus, .dxb-field input[type="text"]:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-dim); }
.dxb-fotos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.dxb-fotos button { position: relative; padding: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #1a1a1d; cursor: pointer; transition: transform .2s, border-color .2s; }
.dxb-fotos button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dxb-fotos button:hover { transform: translateY(-2px); }
.dxb-fotos button.is-on { border-color: var(--neon); box-shadow: 0 0 14px rgba(0,255,20,.4); }
.dxb-colores { display: flex; flex-wrap: wrap; gap: 8px; }
.dxb-colores button, .dxb-color-otro { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); background: var(--sw); cursor: pointer; position: relative; transition: transform .2s; }
.dxb-colores button:hover { transform: scale(1.1); }
.dxb-colores button.is-on { border-color: #fff; box-shadow: 0 0 0 3px var(--sw); }
.dxb-color-otro { display: grid; place-items: center; color: #fff; font-weight: 800; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #0ea5e9, #8b5cf6, #ef4444); overflow: hidden; }
.dxb-color-otro input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dxb-color-otro:focus-within { outline: 2px solid var(--neon); outline-offset: 2px; }
.dxb-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.dxb-seg { display: flex; padding: 4px; border-radius: 12px; background: #0b0b0d; border: 1px solid var(--border); gap: 4px; }
.dxb-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 .9rem var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.dxb-seg button.is-on { background: var(--neon); color: #050505; }
.dxb-acc { display: flex; flex-wrap: wrap; gap: .8rem; }
.dxb-note { margin-top: 1rem; color: var(--muted); font-size: .86rem; max-width: 56ch; }

/* Vista previa: portátil + celular */
.dxb-prev { position: relative; min-width: 0; }
.dxb-prev.is-flash .dxp-laptop { animation: dxpFlash .5s ease; }
@keyframes dxpFlash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--neon) 50%, transparent), 0 30px 80px rgba(0,0,0,.6); } 100% { box-shadow: 0 0 0 14px transparent, 0 30px 80px rgba(0,0,0,.6); } }
.dxp { --bg: #f5f6f8; --sf: #fff; --tx: #111827; --mu: #667085; --ln: rgba(17,24,39,.09); position: relative; padding-right: 22%; font-family: var(--pf); }
.dxp.is-dark { --bg: #0e1014; --sf: #161920; --tx: #f2f4f7; --mu: #9aa3b2; --ln: rgba(255,255,255,.09); }
.dxp-laptop { border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.dxp-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #18181b; }
.dxp-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3f3f46; }
.dxp-bar i:nth-child(1) { background: #ef4444; } .dxp-bar i:nth-child(2) { background: #f59e0b; } .dxp-bar i:nth-child(3) { background: #22c55e; }
.dxp-bar span { margin-left: 8px; padding: 3px 10px; border-radius: 6px; background: #0b0b0d; color: #a1a1aa; font: 500 .68rem var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dxp-site { color: var(--tx); font-family: var(--pf); }
.dxp-nav { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--sf); border-bottom: 1px solid var(--ln); }
.dxp-nav b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dxp-logo { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--b); font-size: .9rem; }
.dxp-btn { display: inline-block; padding: .5rem .9rem; border-radius: 10px; background: var(--b); color: var(--b-ink); font: 700 .78rem 'DM Sans', sans-serif; white-space: nowrap; box-shadow: 0 8px 18px color-mix(in srgb, var(--b) 35%, transparent); }
.dxp-btn.is-sm { margin-left: auto; padding: .35rem .65rem; font-size: .68rem; }
.dxp-hero { position: relative; min-height: 210px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.dxp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dxp-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(5,7,10,.88), rgba(5,7,10,.45) 60%, rgba(5,7,10,.15)), linear-gradient(0deg, color-mix(in srgb, var(--b) 30%, transparent), transparent 60%); }
.dxp-hero-t { position: relative; z-index: 2; padding: 18px 16px; max-width: 78%; }
.dxp-hero-t small { display: inline-flex; align-items: center; gap: 6px; font: 600 .66rem 'DM Sans', sans-serif; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.14); }
.dxp-hero-t small i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.dxp-hero-t h4 { font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1.12; margin: .5rem 0 .35rem; color: #fff; }
.dxp-hero-t p { font: 400 .74rem/1.45 'DM Sans', sans-serif; color: rgba(255,255,255,.82); margin-bottom: .7rem; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dxp-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.dxp-items div { display: grid; gap: 2px; padding: 9px; border-radius: 10px; background: var(--sf); border: 1px solid var(--ln); min-width: 0; }
.dxp-items b { font: 700 .72rem 'DM Sans', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dxp-items span { font: 800 .72rem 'DM Sans', sans-serif; color: var(--b); filter: brightness(.9); }
.dxp.is-dark .dxp-items span { filter: brightness(1.25); }
.dxp-phone {
  position: absolute; right: 0; bottom: -6%; width: 34%; min-width: 150px;
  border-radius: 24px; padding: 6px; background: #0a0a0a; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 60px rgba(0,0,0,.65); transform: rotate(3deg);
  font-family: 'DM Sans', sans-serif; overflow: hidden;
}
.dxp-wa-h { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; border-radius: 18px 18px 0 0; background: #0b8a6d; color: #fff; }
.dxp-wa-h > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: .8rem; }
.dxp-wa-h div { display: grid; min-width: 0; }
.dxp-wa-h b { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dxp-wa-h small { font-size: .6rem; opacity: .8; }
.dxp-chat { display: grid; gap: 6px; padding: 10px 8px 14px; min-height: 170px; align-content: start; background: #ece5dd; border-radius: 0 0 18px 18px; }
.dxp-chat p { max-width: 88%; padding: 6px 8px; border-radius: 9px; font-size: .64rem; line-height: 1.35; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.dxp-chat .is-bot { background: #fff; justify-self: start; border-top-left-radius: 2px; }
.dxp-chat .is-yo { background: #d9fdd3; justify-self: end; border-top-right-radius: 2px; }

@media (min-width: 980px) {
  .dxb { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .dxb-row { grid-template-columns: 1fr 1.4fr; }
}
@media (max-width: 640px) {
  .dxb-fotos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dxp { padding-right: 0; padding-bottom: 150px; }
  .dxp-laptop { transform: none; }
  .dxp-phone { width: 52%; min-width: 0; bottom: 0; right: 4%; }
  .dxp-chat { min-height: 120px; }
  .dxp-hero { min-height: 190px; }
  .dxp-hero-t { max-width: 100%; }
  .dxp-items { grid-template-columns: 1fr 1fr; }
  .dxp-items div:nth-child(3) { display: none; }
  .dxb-acc > * { flex: 1 1 100%; justify-content: center; text-align: center; }
  .dx3d-info { padding: 1rem; }
  .dx-info-acc > * { flex: 1 1 100%; justify-content: center; text-align: center; }
  .dx-info-wa { text-align: center; }
}

/* ---------------------------------------------------------------
   CUADRÍCULA CON FOTO
--------------------------------------------------------------- */
.dxg { margin-top: clamp(3rem, 7vw, 5rem); }
.dxg-h { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.4rem; }
.dxg-h h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: .6rem; }
.dxg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 12px; }
.dxg-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); color: #fff; transition: transform .25s, border-color .25s, box-shadow .25s; }
.dxg-card:hover, .dxg-card:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 20px 50px color-mix(in srgb, var(--c) 22%, transparent); }
.dxg-img { position: relative; aspect-ratio: 25 / 18; overflow: hidden; background: #18181b; }
.dxg-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.dxg-card:hover .dxg-img img { transform: scale(1.08); }
.dxg-img > span { position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); }
.dxg-b { display: grid; gap: .15rem; padding: .8rem .9rem 1rem; }
.dxg-b strong { font-size: 1rem; }
.dxg-b small { color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) {
  .dxg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dxg-b { padding: .65rem .7rem .8rem; }
  .dxg-b strong { font-size: .92rem; }
  .dxg-b small { font-size: .74rem; }
  .dxg-h .btn-ghost { width: 100%; justify-content: center; }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .hx-card, .hx-deck, .hx-card img, .dxg-img img, .dx-card { transition: none !important; }
  .hx-toast.is-in, .dxb-prev.is-flash .dxp-laptop { animation: none; }
}
