/* ==========================================================================
   Demos vivas de secciones del home (escenas de concepto):
   home-chaos, home-auto, home-adapt, home-hub y home-web.
   Markup: resources/views/web/partials/anim/home-*.blade.php · JS: anim/home-x.js
   ========================================================================== */

.lla-hx {
  --lla-bg: #ffffff;
  --lla-surface: #f8f9fa;
  --lla-text: #1e2022;
  --lla-muted: #677788;
  --lla-border: #e7eaf3;
  --lla-primary: #377dff;
  --lla-shadow: 0 32px 64px -24px rgba(22, 34, 58, .35), 0 10px 24px -10px rgba(22, 34, 58, .16);
  margin-inline: auto;
  color: var(--lla-text);
  line-height: 1.3;
  text-align: left;
}
html[data-theme="dark"] .lla-hx {
  --lla-shadow: 0 32px 64px -24px rgba(0, 0, 0, .8), 0 10px 24px -10px rgba(0, 0, 0, .55);
}
.lla-hx :where(b, small, strong, em, i, p) { margin: 0; font-size: inherit; font-style: normal; color: inherit; }
.lla-hx .bi::before { vertical-align: 0; }

.lla-hx__card { position: absolute; padding: 18px; border: 1px solid var(--lla-border); border-radius: 18px; background: var(--lla-bg); box-shadow: var(--lla-shadow); }
.lla-hx__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 17px; }
.lla-hx__icon--success { background: rgba(0, 201, 167, .12); color: #00a389; }
.lla-hx__icon--primary { background: rgba(55, 125, 255, .1); color: var(--lla-primary); }
.lla-hx__icon--warning { background: rgba(245, 166, 35, .14); color: #d48806; }

/* ---------- iPhone tipo Pro Max (19.5:9, marco de titanio, Dynamic Island) ---------- */
.lla-hx-ip { --ip-pad: 10px; --ip-r: 54px; --ip-island: 92px; position: absolute; padding: var(--ip-pad); border-radius: var(--ip-r); background: #0a0a0c; box-shadow: inset 0 0 0 2px #8a8e97, inset 0 0 0 3.5px #2b2d33, var(--lla-shadow); }
.lla-hx-ip__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--ip-r) - var(--ip-pad)); background: #fff; }
.lla-hx-ip__island { position: absolute; top: calc(var(--ip-pad) + 1px); left: 50%; z-index: 6; width: var(--ip-island); height: calc(var(--ip-island) * .3); border-radius: 999px; background: #000; transform: translateX(-50%); }
.lla-hx-ip__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #5c6068, #9a9ea7); }
.lla-hx-ip__btn--action { left: -2px; top: 17%; height: 5%; }
.lla-hx-ip__btn--vol1 { left: -2px; top: 25%; height: 8%; }
.lla-hx-ip__btn--vol2 { left: -2px; top: 35%; height: 8%; }
.lla-hx-ip__btn--power { right: -2px; top: 27%; height: 12%; }
.lla-hx-ip__btn--cam { right: -2px; top: 54%; height: 7%; }
.lla-hx-ip__status { position: absolute; top: 18px; left: 34px; right: 28px; z-index: 5; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 13px; font-weight: 700; }
.lla-hx-ip__status span { display: flex; gap: 5px; font-size: 13px; }
.lla-hx-ip__dock { position: absolute; left: 34px; right: 34px; bottom: 30px; display: flex; justify-content: space-between; }
.lla-hx-ip__dock span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .28); color: #fff; font-size: 17px; backdrop-filter: blur(10px); }
.lla-hx-ip__home { position: absolute; bottom: 8px; left: 50%; z-index: 6; width: 36%; height: 5px; border-radius: 999px; background: rgba(0, 0, 0, .85); transform: translateX(-50%); }
.lla-hx-chaos .lla-hx-ip__home { background: #fff; }

/* ---------- home-chaos ---------- */
.lla-hx-chaos { max-width: 340px; }
.lla .lla-hx-chaos__stage { --lla-w: 340; --lla-h: 660; }
.lla-hx-chaos__phone { left: 22px; top: 12px; width: 296px; height: 636px; }
.lla-hx-chaos__screen { background: radial-gradient(120% 70% at 20% 0%, #7c3aed, transparent 60%), linear-gradient(170deg, #4c1d95, #be185d 55%, #f97316); }
.lla-hx-chaos__clock { display: flex; flex-direction: column; align-items: center; padding: 50px 0 12px; color: #fff; }
.lla-hx-chaos__date { font-size: 15px; font-weight: 600; opacity: .9; }
.lla-hx-chaos__clock b { margin-top: -2px; font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.lla-hx-chaos__pill { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 11px; border-radius: 999px; background: rgba(0, 0, 0, .25); font-size: 11.5px; font-weight: 600; }
.lla-hx-chaos__pill span { font-variant-numeric: tabular-nums; }
.lla-hx-chaos__list { display: flex; flex-direction: column; gap: 7px; padding: 0 11px; }
.lla-hx-chaos__n { display: none; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 17px; background: rgba(255, 255, 255, .8); box-shadow: 0 6px 16px rgba(0, 0, 0, .16); font-size: 12px; backdrop-filter: blur(10px); }
.lla-hx-chaos__n > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lla-hx-chaos__n b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lla-hx-chaos__n small { color: var(--lla-muted); font-size: 10.5px; }
.lla-hx-chaos__ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: #25d366; color: #fff; font-size: 17px; }
.lla-hx-chaos__n:has(.bi-telephone-x) .lla-hx-chaos__ic { background: #ef4444; }
.lla-hx-chaos__n:has(.bi-chat-dots) .lla-hx-chaos__ic { background: #3b82f6; }
.lla-hx-chaos__n:has(.bi-file-earmark-text) .lla-hx-chaos__ic { background: #f59e0b; }
.lla-hx-chaos__n:has(.bi-instagram) .lla-hx-chaos__ic { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.lla-hx-chaos[data-n="1"] [data-i="1"],
.lla-hx-chaos[data-n="2"] :is([data-i="1"], [data-i="2"]),
.lla-hx-chaos[data-n="3"] :is([data-i="1"], [data-i="2"], [data-i="3"]),
.lla-hx-chaos[data-n="4"] :is([data-i="1"], [data-i="2"], [data-i="3"], [data-i="4"]),
.lla-hx-chaos[data-n="5"] :is([data-i="1"], [data-i="2"], [data-i="3"], [data-i="4"], [data-i="5"]),
.lla-hx-chaos[data-n="6"] .lla-hx-chaos__n { display: flex; animation: lla-hx-drop .4s var(--lla-ease) both; }
.lla-hx-chaos[data-n="6"] .lla-hx-chaos__phone { animation: lla-hx-buzz .5s ease-in-out 2; }

/* ---------- home-auto ---------- */
.lla-hx-auto { max-width: 700px; }
.lla .lla-hx-auto__stage { --lla-w: 700; --lla-h: 650; }
.lla-hx-auto__card { left: 4px; top: 4px; width: 692px; height: 640px; padding: 20px 22px; }
.lla-hx-auto__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lla-hx-auto__head b { display: flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 700; }
.lla-hx-auto__head b .bi { color: var(--lla-primary); }
.lla-hx-auto__you { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #1e1b4b; color: #e0e7ff; font-size: 12px; font-weight: 600; }
.lla-hx-auto__you .bi { color: #fde68a; animation: lla-hx-twinkle 2.4s ease-in-out infinite; }

.lla-hx-auto__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.lla-hx-auto__kpi { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 7px; padding: 10px 12px; border: 1px solid var(--lla-border); border-radius: 12px; background: var(--lla-surface); transition: box-shadow .3s var(--lla-ease), border-color .3s; }
.lla-hx-auto__kpi .bi { color: var(--lla-primary); font-size: 13px; }
.lla-hx-auto__kpi small { overflow: hidden; color: var(--lla-muted); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lla-hx-auto__kpi b { grid-column: 1 / -1; margin-top: 3px; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lla-hx-auto__kpi.is-bump { border-color: rgba(55, 125, 255, .5); box-shadow: 0 0 0 3px rgba(55, 125, 255, .12); }

.lla-hx-auto__rows { display: grid; gap: 7px; }
.lla-hx-auto__row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid var(--lla-border); border-radius: 14px; background: var(--lla-surface); opacity: .3; transform: translateY(6px); transition: opacity .4s var(--lla-ease), transform .45s var(--lla-ease), background-color .4s var(--lla-ease); }
.lla-hx-auto__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.lla-hx-auto__txt b { font-size: 14px; font-weight: 700; }
.lla-hx-auto__txt small { color: var(--lla-muted); font-size: 12px; }
.lla-hx-auto__badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 201, 167, .12); color: #00a389; font-size: 11px; font-weight: 700; opacity: 0; transform: scale(.6); transition: opacity .3s var(--lla-ease) .25s, transform .35s var(--lla-ease) .25s; }
.lla-hx-auto[data-n="1"] [data-i="1"],
.lla-hx-auto[data-n="2"] :is([data-i="1"], [data-i="2"]),
.lla-hx-auto[data-n="3"] :is([data-i="1"], [data-i="2"], [data-i="3"]),
.lla-hx-auto[data-n="4"] :is([data-i="1"], [data-i="2"], [data-i="3"], [data-i="4"]),
.lla-hx-auto[data-n="5"] .lla-hx-auto__row { opacity: 1; transform: none; background: #fff; }
.lla-hx-auto[data-n="1"] [data-i="1"] .lla-hx-auto__badge,
.lla-hx-auto[data-n="2"] :is([data-i="1"], [data-i="2"]) .lla-hx-auto__badge,
.lla-hx-auto[data-n="3"] :is([data-i="1"], [data-i="2"], [data-i="3"]) .lla-hx-auto__badge,
.lla-hx-auto[data-n="4"] :is([data-i="1"], [data-i="2"], [data-i="3"], [data-i="4"]) .lla-hx-auto__badge,
.lla-hx-auto[data-n="5"] .lla-hx-auto__badge { opacity: 1; transform: none; }

.lla-hx-auto__chart { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lla-border); }
.lla-hx-auto__chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lla-hx-auto__chart-head b { font-size: 13px; font-weight: 700; }
.lla-hx-auto__chart-head small { color: var(--lla-muted); font-size: 11px; }
.lla-hx-auto__bars { display: flex; align-items: flex-end; gap: 12px; height: 92px; }
.lla-hx-auto__bars span { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.lla-hx-auto__bars i { display: block; width: 100%; height: calc(var(--h) * .74); min-height: 4px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #5a95ff, var(--lla-primary)); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--lla-ease); }
.lla-hx-auto__bars span[data-on] i { transform: none; }
.lla-hx-auto__bars small { color: var(--lla-muted); font-size: 10px; }

/* ---------- home-adapt: navegador + celular ---------- */
.lla-hx-adapt { max-width: 700px; }
.lla .lla-hx-adapt__stage { --lla-w: 700; --lla-h: 580; }
.lla-hx-adapt__chips { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lla-hx-adapt__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--lla-border); border-radius: 999px; background: #fff; color: var(--lla-muted); font-size: 13px; font-weight: 600; transition: background-color .3s var(--lla-ease), color .3s var(--lla-ease), border-color .3s var(--lla-ease), transform .3s var(--lla-ease); }
.lla-hx-adapt[data-t="0"] [data-chip="0"], .lla-hx-adapt[data-t="1"] [data-chip="1"],
.lla-hx-adapt[data-t="2"] [data-chip="2"], .lla-hx-adapt[data-t="3"] [data-chip="3"] { border-color: var(--lla-primary); background: var(--lla-primary); color: #fff; transform: translateY(-2px); }

.lla-hx-adapt [data-site] { opacity: 0; transition: opacity .5s var(--lla-ease), transform .55s var(--lla-ease); }
.lla-hx-adapt[data-t="0"] [data-site="0"], .lla-hx-adapt[data-t="1"] [data-site="1"],
.lla-hx-adapt[data-t="2"] [data-site="2"], .lla-hx-adapt[data-t="3"] [data-site="3"] { opacity: 1; transform: none; }

.lla-hx-adapt__site--pastry { --c: #db2777; --s: #fdf2f8; --s2: #fbcfe8; }
.lla-hx-adapt__site--clinic { --c: #0284c7; --s: #f0f9ff; --s2: #bae6fd; }
.lla-hx-adapt__site--gym { --c: #ea580c; --s: #fff7ed; --s2: #fed7aa; }
.lla-hx-adapt__site--grocery { --c: #16a34a; --s: #f0fdf4; --s2: #bbf7d0; }

.lla-hx-adapt__browser { position: absolute; left: 0; top: 56px; width: 560px; height: 510px; overflow: hidden; border: 1px solid var(--lla-border); border-radius: 14px; background: #fff; box-shadow: var(--lla-shadow); }
.lla-hx-adapt__chrome { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--lla-border); background: var(--lla-surface); }
.lla-hx-adapt__dots { display: flex; gap: 5px; }
.lla-hx-adapt__dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.lla-hx-adapt__dots i:nth-child(2) { background: #febc2e; }
.lla-hx-adapt__dots i:nth-child(3) { background: #28c840; }
.lla-hx-adapt__url { position: relative; display: flex; align-items: center; gap: 6px; flex: 1; max-width: 300px; height: 20px; margin-inline: auto; padding: 0 10px; border-radius: 6px; background: #fff; color: var(--lla-muted); font-size: 11px; }
.lla-hx-adapt__url .bi { color: #198754; font-size: 9px; }
.lla-hx-adapt__url em { position: absolute; left: 26px; }
.lla-hx-adapt__view { position: relative; height: calc(100% - 32px); }
.lla-hx-adapt__site { position: absolute; inset: 0; transform: translateY(8px); }

.lla-hx-adapt__nav { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px; border-bottom: 1px solid #f1f2f5; }
.lla-hx-adapt__logo { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: 10.5px; font-weight: 800; }
.lla-hx-adapt__nav b { color: #111827; font-size: 14px; font-weight: 800; }
.lla-hx-adapt__links { display: flex; gap: 16px; margin-left: auto; color: #4b5563; font-size: 12px; }
.lla-hx-adapt__btn, .lla-hx-adapt__hero em { padding: 6px 12px; border-radius: 8px; background: var(--c); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.lla-hx-adapt__nav .lla-hx-adapt__btn { margin-left: 12px; }

.lla-hx-adapt__hero { display: grid; grid-template-columns: 1fr 180px; align-items: center; height: 150px; margin: 14px 18px 0; padding: 0 22px; border-radius: 16px; background: linear-gradient(115deg, var(--s), var(--s2)); }
.lla-hx-adapt__hero > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lla-hx-adapt__hero small { color: var(--c); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lla-hx-adapt__hero b { color: #111827; font-size: 22px; font-weight: 800; line-height: 1.12; }
.lla-hx-adapt__hero em { margin-top: 4px; }
.lla-hx-adapt__photo { position: relative; display: block; height: 130px; }
.lla-hx-adapt__photo::before { content: ""; position: absolute; inset: 8px 14px; border-radius: 50%; background: rgba(255, 255, 255, .65); }
.lla-hx-adapt__photo i { position: absolute; font-size: 30px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .15)); }
.lla-hx-adapt__photo i:nth-child(1) { left: 50%; top: 50%; font-size: 64px; transform: translate(-50%, -50%); }
.lla-hx-adapt__photo i:nth-child(2) { left: 10px; top: 12px; }
.lla-hx-adapt__photo i:nth-child(3) { right: 8px; bottom: 10px; }

.lla-hx-adapt__h { margin: 14px 18px 8px !important; color: #111827; font-size: 14px !important; font-weight: 800; }
.lla-hx-adapt__mod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 18px; }
.lla-hx-adapt__card { display: flex; flex-direction: column; gap: 3px; padding: 8px; border: 1px solid #eef0f3; border-radius: 12px; }
.lla-hx-adapt__card > i, .lla-hx-adapt__tiles i { display: grid; place-items: center; height: 56px; margin-bottom: 4px; border-radius: 9px; background: var(--s); font-size: 30px; }
.lla-hx-adapt__card b, .lla-hx-adapt__tiles b { overflow: hidden; color: #111827; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lla-hx-adapt__card small, .lla-hx-adapt__tiles small { color: #374151; font-size: 11.5px; font-weight: 600; }
.lla-hx-adapt__card em { margin-top: 4px; padding: 5px; border-radius: 7px; background: var(--c); color: #fff; font-size: 10.5px; font-weight: 700; text-align: center; }

.lla-hx-adapt__mod--clinic, .lla-hx-adapt__mod--grocery { grid-template-columns: 1fr 1fr; }
.lla-hx-adapt__list { display: grid; gap: 6px; }
.lla-hx-adapt__list span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #eef0f3; border-radius: 10px; font-size: 12px; }
.lla-hx-adapt__list i { font-size: 18px; }
.lla-hx-adapt__list b { font-weight: 700; }
.lla-hx-adapt__list small { margin-left: auto; color: var(--lla-muted); font-size: 11px; }
.lla-hx-adapt__list .is-on { border-color: var(--c); background: var(--s); }
.lla-hx-adapt__cal { display: flex; flex-direction: column; gap: 8px; }
.lla-hx-adapt__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.lla-hx-adapt__days i { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 8px; background: #f6f7f9; font-size: 13px; font-weight: 700; }
.lla-hx-adapt__days small { color: var(--lla-muted); font-size: 9.5px; font-weight: 600; }
.lla-hx-adapt__days .is-on { background: var(--c); color: #fff; }
.lla-hx-adapt__days .is-on small { color: rgba(255, 255, 255, .85); }
.lla-hx-adapt__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.lla-hx-adapt__slots i { padding: 6px 0; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.lla-hx-adapt__slots .is-on { border-color: var(--c); background: var(--c); color: #fff; }

.lla-hx-adapt__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.lla-hx-adapt__tiles span { display: flex; flex-direction: column; padding: 6px; border: 1px solid #eef0f3; border-radius: 10px; }
.lla-hx-adapt__tiles i { height: 46px; font-size: 24px; }
.lla-hx-adapt__ticket { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border: 1px solid #eef0f3; border-radius: 12px; background: #fafbfc; font-family: 'Courier New', Courier, monospace; font-size: 11px; }
.lla-hx-adapt__ticket > span { display: flex; justify-content: space-between; gap: 6px; }
.lla-hx-adapt__ticket > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lla-hx-adapt__total { padding-top: 5px; border-top: 1px dashed #9ca3af; font-size: 12.5px; }
.lla-hx-adapt__ticket em { margin-top: 3px; padding: 6px; border-radius: 8px; background: var(--c); color: #fff; font-family: inherit; font-weight: 700; text-align: center; }

/* Celular */
.lla-hx-adapt__phone { --ip-pad: 7px; --ip-r: 36px; --ip-island: 54px; left: 498px; top: 132px; width: 196px; height: 404px; }
.lla-hx-adapt__m { position: absolute; inset: 0; padding-top: 32px; transform: translateY(8px); }
.lla-hx-adapt__mnav { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #f1f2f5; }
.lla-hx-adapt__mnav .lla-hx-adapt__logo { width: 22px; height: 22px; font-size: 8.5px; }
.lla-hx-adapt__mnav b { overflow: hidden; color: #111827; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.lla-hx-adapt__mnav .bi { margin-left: auto; color: #4b5563; font-size: 15px; }
.lla-hx-adapt__mhero { display: flex; flex-direction: column; gap: 2px; margin: 8px 8px 0; padding: 4px 10px 10px; border-radius: 12px; background: linear-gradient(140deg, var(--s), var(--s2)); }
.lla-hx-adapt__mhero .lla-hx-adapt__photo { height: 88px; }
.lla-hx-adapt__mhero .lla-hx-adapt__photo i { font-size: 22px; }
.lla-hx-adapt__mhero .lla-hx-adapt__photo i:nth-child(1) { font-size: 46px; }
.lla-hx-adapt__mhero b { color: #111827; font-size: 12.5px; font-weight: 800; line-height: 1.15; }
.lla-hx-adapt__m .lla-hx-adapt__h { margin: 9px 10px 6px !important; font-size: 11.5px !important; }
.lla-hx-adapt__mrow { display: flex; align-items: center; gap: 8px; margin: 0 8px 6px; padding: 5px; border: 1px solid #eef0f3; border-radius: 10px; }
.lla-hx-adapt__mrow > i { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--s); font-size: 19px; }
.lla-hx-adapt__mrow > span { display: flex; flex-direction: column; min-width: 0; }
.lla-hx-adapt__mrow b { overflow: hidden; color: #111827; font-size: 10.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lla-hx-adapt__mrow small { color: #374151; font-size: 10px; }
.lla-hx-adapt__slots--m { grid-template-columns: 1fr 1fr; margin: 0 8px; }
.lla-hx-adapt__mcta { position: absolute; left: 10px; right: 10px; bottom: 20px; padding: 8px; border-radius: 10px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

/* Fotos reales del giro (CDN): sustituyen al emoji del logo, la portada y los productos.
   La portada ocupa TODO el hero (como el banner de una web real) y se ve completa: el recuadro
   toma su proporción, y el texto y el botón que irían encima se quitan (ya vienen en la portada). */
.lla-hx-adapt__logo { overflow: hidden; }
.lla-hx-adapt__logo img { width: 100%; height: 100%; object-fit: cover; }

.lla-hx-adapt__photo.is-photo::before { display: none; }
.lla-hx-adapt__hero:has(.lla-hx-adapt__photo > img) { display: block; height: auto; padding: 0; background: none; }
.lla-hx-adapt__hero:has(.lla-hx-adapt__photo > img) > div { display: none; }
.lla-hx-adapt__photo:has(> img) { height: auto; }
.lla-hx-adapt__photo > img { display: block; width: 100%; height: auto; border-radius: 16px; }

.lla-hx-adapt__mhero:has(.lla-hx-adapt__photo > img) { padding: 0; background: none; }
.lla-hx-adapt__mhero:has(.lla-hx-adapt__photo > img) > b { display: none; }
.lla-hx-adapt__mhero .lla-hx-adapt__photo:has(> img) { height: auto; }
.lla-hx-adapt__mhero .lla-hx-adapt__photo > img { display: block; width: 100%; height: auto; border-radius: 12px; }

.lla-hx-adapt__card > img.lla-hx-adapt__thumb { width: 100%; height: 56px; margin-bottom: 4px; border-radius: 9px; object-fit: cover; }
.lla-hx-adapt__tiles img.lla-hx-adapt__thumb { width: 100%; height: 46px; border-radius: 9px; object-fit: cover; }
.lla-hx-adapt__list img.lla-hx-adapt__thumb { flex: none; width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.lla-hx-adapt__mrow > img.lla-hx-adapt__thumb { flex: none; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }

/* Consultorio (como la web dental de referencia): la portada arranca hasta arriba, pegada al
   borde, y el menú flota ENCIMA de ella, transparente y sin velo oscuro sobre la foto; para
   que se lea, el texto del menú va en blanco con una sombra suave (no se pinta la imagen). */
.lla-hx-adapt__site--clinic:has(.lla-hx-adapt__photo > img) .lla-hx-adapt__hero { margin: 0; border-radius: 0; }
.lla-hx-adapt__site--clinic:has(.lla-hx-adapt__photo > img) .lla-hx-adapt__nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  border-bottom: 0;
  background: none;
}
.lla-hx-adapt__site--clinic:has(.lla-hx-adapt__photo > img) .lla-hx-adapt__nav b,
.lla-hx-adapt__site--clinic:has(.lla-hx-adapt__photo > img) .lla-hx-adapt__links { color: #fff; text-shadow: 0 1px 8px rgba(8, 26, 51, .5); }
.lla-hx-adapt__site--clinic:has(.lla-hx-adapt__photo > img) .lla-hx-adapt__nav .lla-hx-adapt__btn { background: #fff; color: var(--c); }

/* Gimnasio: el sitio va en negro con una textura fina (le queda a la portada del gym) y el
   texto se aclara para que se lea encima. Aplica al navegador, al celular y a la tarjeta apilada. */
.lla-hx-adapt__site--gym,
.lla-hx-stack__card--gym,
.lla-hx-stack__card--gym .lla-hx-web {
  background-color: #0a0c10;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 7px);
}
.lla-hx-adapt__site--gym .lla-hx-adapt__nav,
.lla-hx-adapt__site--gym .lla-hx-adapt__mnav,
.lla-hx-stack__card--gym .lla-hx-web__nav { border-color: rgba(255, 255, 255, .16); }
.lla-hx-adapt__site--gym .lla-hx-adapt__nav b,
.lla-hx-adapt__site--gym .lla-hx-adapt__mnav b,
.lla-hx-adapt__site--gym .lla-hx-adapt__h,
.lla-hx-adapt__site--gym .lla-hx-adapt__card b,
.lla-hx-adapt__site--gym .lla-hx-adapt__mrow b { color: #fff; }
.lla-hx-adapt__site--gym .lla-hx-adapt__links { color: rgba(255, 255, 255, .72); }
.lla-hx-adapt__site--gym .lla-hx-adapt__card,
.lla-hx-adapt__site--gym .lla-hx-adapt__mrow { border-color: rgba(255, 255, 255, .16); }
.lla-hx-adapt__site--gym .lla-hx-adapt__card small,
.lla-hx-adapt__site--gym .lla-hx-adapt__mrow small { color: rgba(255, 255, 255, .72); }

/* ---------- home-hub ---------- */
.lla-hx-hub { max-width: 520px; }
.lla .lla-hx-hub__stage { --lla-w: 520; --lla-h: 460; }
.lla-hx-hub__lines { position: absolute; inset: 0; width: 520px; height: 460px; }
.lla-hx-hub__lines line { stroke: #c7d2fe; stroke-width: 2; stroke-dasharray: 5 6; animation: lla-hx-dash 1.2s linear infinite; }
html[data-theme="dark"] .lla-hx-hub__lines line { stroke: rgba(165, 180, 252, .45); }
.lla-hx-hub__ring { position: absolute; left: 180px; top: 150px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(55, 125, 255, .3), transparent); animation: lla-hx-ring 2.4s ease-out infinite; }
.lla-hx-hub__center { position: absolute; left: 192px; top: 162px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 136px; height: 136px; border-radius: 50%; background: #fff; box-shadow: 0 16px 40px -10px rgba(55, 125, 255, .55), inset 0 0 0 3px rgba(55, 125, 255, .2); text-align: center; }
.lla-hx-hub__logo { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; object-fit: cover; box-shadow: 0 6px 14px -6px rgba(22, 34, 58, .45); }
i.lla-hx-hub__logo { background: rgba(55, 125, 255, .1); color: var(--lla-primary); font-size: 30px; }
.lla-hx-hub__center b { font-size: 14px; font-weight: 800; }
.lla-hx-hub__center small { margin-top: -3px; color: var(--lla-muted); font-size: 10.5px; }
.lla-hx-hub__node { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; padding: 10px 6px; border: 1px solid var(--lla-border); border-radius: 16px; background: #fff; box-shadow: 0 12px 26px -12px rgba(22, 34, 58, .35); text-align: center; transform: translate(-50%, -50%); animation: lla-hx-node 2.7s ease-in-out infinite; }
.lla-hx-hub__node .bi { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(55, 125, 255, .1); color: var(--lla-primary); font-size: 17px; }
.lla-hx-hub__node:has(.bi-whatsapp) .bi { background: rgba(37, 211, 102, .14); color: #16a34a; }
.lla-hx-hub__node:has(.bi-instagram) .bi { background: rgba(236, 72, 153, .12); color: #db2777; }
.lla-hx-hub__node:has(.bi-truck) .bi, .lla-hx-hub__node:has(.bi-box-seam) .bi { background: rgba(245, 166, 35, .14); color: #d48806; }
.lla-hx-hub__node b { font-size: 12px; font-weight: 700; }
.lla-hx-hub__dot { position: absolute; left: 254px; top: 224px; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--lla-primary); box-shadow: 0 0 0 4px rgba(55, 125, 255, .2); animation: lla-hx-flow 2.7s ease-in infinite; }

/* ---------- home-web: 4 páginas apiladas como tarjetas ----------
   Ciclo de 16 s; cada tarjeta va desfasada 4 s. La de enfrente sale hacia la derecha, se acomoda hasta atrás y las
   otras avanzan un lugar: siempre hay una al frente. Posiciones: 0 = frente … 3 = hasta atrás. */
.lla-hx-stack { position: relative; height: 560px; margin-top: 0; transform: perspective(1600px) rotateY(-10deg) rotateX(4deg); transform-origin: left center; }
.lla-hx-stack__card { position: absolute; left: 16%; top: 84px; width: min(500px, 92%); overflow: hidden; border: 1px solid #e7eaf3; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -24px rgba(22, 34, 58, .45), 0 10px 22px -10px rgba(22, 34, 58, .2); transform-origin: 50% 0; animation: lla-hx-deck 16s cubic-bezier(.2, .8, .2, 1) infinite; }
.lla-hx-stack__card:nth-child(2) { animation-delay: -12s; }
.lla-hx-stack__card:nth-child(3) { animation-delay: -8s; }
.lla-hx-stack__card:nth-child(4) { animation-delay: -4s; }
.lla-hx-stack__card:nth-child(1) { animation-delay: 0s; }
html[data-theme="dark"] .lla-hx-stack__card { border-color: rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 10px 22px -10px rgba(0, 0, 0, .5); }
.lla-hx-stack__chrome { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 12px; border-bottom: 1px solid #eef0f3; background: #f8f9fa; }
.lla-hx-stack__chrome > span { display: flex; gap: 5px; }
.lla-hx-stack__chrome > span i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.lla-hx-stack__chrome > span i:nth-child(2) { background: #febc2e; }
.lla-hx-stack__chrome > span i:nth-child(3) { background: #28c840; }
.lla-hx-stack__chrome em { display: flex; align-items: center; gap: 5px; flex: 1; max-width: 230px; height: 18px; margin-inline: auto; padding: 0 9px; border-radius: 5px; background: #fff; color: #677788; font-size: 10px; font-style: normal; }
.lla-hx-stack__chrome em .bi { color: #198754; font-size: 8px; }

.lla-hx-web { position: relative; overflow: hidden; background: #fff; color: #1f2937; font-size: 11px; line-height: 1.3; text-align: left; }
.lla-hx-web :where(b, small, em, i) { margin: 0; font-style: normal; }
.lla-hx-web__nav { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #eef0f3; }
.lla-hx-web__nav b { color: var(--c); font-size: 14px; font-weight: 800; }
.lla-hx-web__nav span { display: flex; gap: 10px; margin-left: auto; }
.lla-hx-web__nav i { display: block; width: 30px; height: 6px; border-radius: 4px; background: #e5e7eb; }
.lla-hx-web__nav em { padding: 5px 10px; border-radius: 7px; background: var(--c); color: #fff; font-size: 10px; font-weight: 700; }
.lla-hx-web__hero { display: grid; grid-template-columns: 1fr 34%; align-items: center; height: 150px; padding: 0 24px; background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); color: #fff; }
.lla-hx-web__hero > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.lla-hx-web__hero b { font-size: 26px; font-weight: 800; }
.lla-hx-web__hero small { font-size: 12px; opacity: .9; }
.lla-hx-web__hero em { margin-top: 6px; padding: 6px 14px; border-radius: 8px; background: #fff; color: var(--c); font-size: 11px; font-weight: 700; }
.lla-hx-web__photo { display: grid; place-items: center; width: 110px; height: 110px; margin-left: auto; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 62px; line-height: 1; }
.lla-hx-web__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 24px; }
.lla-hx-web__grid span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 12px; background: color-mix(in srgb, var(--c) 8%, #fff); text-align: center; }
.lla-hx-web__grid i { font-size: 30px; line-height: 1; }
.lla-hx-web__grid b { font-size: 12px; font-weight: 700; }

/* Fotos reales del giro (CDN) en la tarjeta apilada: logo, portada y productos.
   La portada ocupa todo el hero (el texto y el botón del hero se quitan: ya están en la portada
   y el menú de arriba conserva el nombre y la acción). */
.lla-hx-web__nav img.lla-hx-web__logo { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.lla-hx-web__hero:has(.lla-hx-web__photo > img) { display: block; height: auto; padding: 0; background: none; }
.lla-hx-web__hero:has(.lla-hx-web__photo > img) > div { display: none; }
.lla-hx-web__photo:has(> img) { width: 100%; height: auto; border-radius: 0; background: none; }
.lla-hx-web__photo img.lla-hx-web__img { display: block; width: 100%; height: auto; border-radius: 0; }
.lla-hx-web__grid img.lla-hx-web__thumb { width: 100%; height: 64px; border-radius: 10px; object-fit: cover; }

/* Consultorio en la tarjeta apilada: igual que en la demo de arriba — la portada arranca hasta
   arriba y el menú flota encima, transparente y sin velo oscuro sobre la foto. */
.lla-hx-stack__card--clinic .lla-hx-web__nav { position: absolute; inset: 0 0 auto; z-index: 2; border-bottom: 0; background: none; }
.lla-hx-stack__card--clinic .lla-hx-web__nav b { color: #fff; text-shadow: 0 1px 8px rgba(8, 26, 51, .5); }
.lla-hx-stack__card--clinic .lla-hx-web__nav > span i { background: rgba(255, 255, 255, .6); }
.lla-hx-stack__card--clinic .lla-hx-web__nav em { background: #fff; color: var(--c); }

@media (prefers-reduced-motion: reduce) {
  .lla-hx-stack__card, .lla-hx-hub__node, .lla-hx-hub__dot, .lla-hx-hub__ring, .lla-hx-hub__lines line { animation: none !important; }
  .lla-hx-stack__card:not(:first-child) { display: none; }
}

/* Reset suave (estas escenas no usan .lla-fade) */
.lla-hx .lla__canvas > * { transition: opacity .4s var(--lla-ease); }
.lla-hx[data-fade] .lla__canvas > * { opacity: 0; }

@keyframes lla-hx-drop { from { transform: translateY(-14px) scale(.95); } to { transform: none; } }
@keyframes lla-hx-buzz { 0%, 100% { transform: none; } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
@keyframes lla-hx-twinkle { 50% { opacity: .5; } }
@keyframes lla-hx-dash { to { stroke-dashoffset: -22; } }
@keyframes lla-hx-ring { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes lla-hx-node { 0%, 70%, 100% { box-shadow: 0 12px 26px -12px rgba(22, 34, 58, .35); } 15% { box-shadow: 0 0 0 4px rgba(55, 125, 255, .25), 0 12px 26px -12px rgba(22, 34, 58, .35); } }
@keyframes lla-hx-flow {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.6); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(0, 0) scale(1); }
}
/* Una tarjeta en el ciclo: frente (0–19%) → baja y sale del cuadro → reaparece hasta atrás → avanza 2 → avanza 1 → frente.
   La que sale lleva z-index 9 (más alto que el frente, que es 5) para que siga VIENDO por delante de las demás
   mientras baja: si no, la que ya llegó al frente la tapaba a media salida. */
@keyframes lla-hx-deck {
  0%, 19% { z-index: 9; opacity: 1; transform: none; filter: none; animation-timing-function: cubic-bezier(.55, 0, .8, .3); }
  25% { z-index: 9; opacity: 1; transform: translateY(150%); filter: none; animation-timing-function: steps(1, end); }
  25.5% { z-index: 0; opacity: 0; transform: translate(18%, -110px) scale(.82); filter: brightness(.86); }
  31%, 44% { z-index: 1; opacity: 1; transform: translate(18%, -78px) scale(.82); filter: brightness(.86); }
  50%, 69% { z-index: 2; transform: translate(12%, -54px) scale(.88); filter: brightness(.92); }
  75%, 94% { z-index: 3; transform: translate(6%, -28px) scale(.94); filter: brightness(.97); }
  100% { z-index: 5; transform: none; filter: none; }
}
