/* 4.1 · Servicios aliados y experiencias (Mercado NextAds), cuentas de cliente y calendario de espacios. */

/* ---------- Tarjetas ---------- */
.mk-hero h1 { max-width: 18ch; }
.mk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.mk-step { padding: 18px 20px; border: 1px solid var(--trace-soft); border-radius: var(--radius-l); background: var(--ink-2); }
.mk-step i { font-size: 1.3rem; color: var(--blue); }
.mk-step h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.mk-step p { margin: 0; color: var(--mist); font-size: .9rem; }
.mk-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 16px; }
.mk-filters input, .mk-filters select { min-width: 0; }
@media (max-width: 720px) { .mk-filters { grid-template-columns: minmax(0, 1fr); } }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.mk-grid.is-portal { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.mk-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--trace-soft); border-radius: var(--radius-l); background: var(--ink-2);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mk-card:hover, .mk-card:focus-within { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 20px 48px -30px rgba(46, 139, 255, .8); }
.mk-card-hit { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.mk-card-hit:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mk-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0a1430; }
.mk-cover.is-empty { display: grid; place-items: center; font-size: 2.2rem; color: rgba(255, 255, 255, .85);
    background: radial-gradient(circle at 30% 20%, rgba(46, 139, 255, .55), transparent 60%), linear-gradient(135deg, #0b1a3d, #15103a); }
.mk-cover.mk-cat-musica { background: radial-gradient(circle at 30% 20%, rgba(255, 90, 140, .55), transparent 60%), linear-gradient(135deg, #2a0f3d, #0b1a3d); }
.mk-cover.mk-cat-espacios { background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, .5), transparent 60%), linear-gradient(135deg, #062a3d, #0b1a3d); }
.mk-cover.mk-cat-eventos { background: radial-gradient(circle at 30% 20%, rgba(242, 211, 107, .5), transparent 60%), linear-gradient(135deg, #3d2a0b, #0b1a3d); }
.mk-cover.mk-cat-contenido { background: radial-gradient(circle at 30% 20%, rgba(139, 123, 255, .55), transparent 60%), linear-gradient(135deg, #1a0f3d, #0b1a3d); }
.mk-card-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.mk-card-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; overflow-wrap: anywhere; }
.mk-card-body .kicker { margin: 0; }
.mk-card-body p { margin: 0; }
.mk-sum { color: #c9d4ee; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-price { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.mk-price strong { font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.mk-price span { color: var(--mist); font-size: .82rem; }
.mk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px !important; }
.mk-tags:empty { display: none; }
.mk-empty { display: grid; justify-items: center; gap: 8px; grid-column: 1 / -1; text-align: center; }
.mk-empty i { font-size: 1.8rem; color: var(--blue); }

/* ---------- Panel lateral ---------- */
dialog.modal.mk-drawer { margin: 0 0 0 auto; width: min(620px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 22px 0 0 22px; padding: 0;
    display: flex; flex-direction: column; animation: mk-slide .22s ease-out; }
dialog.modal.mk-drawer[open] { display: flex; }
dialog.modal.mk-drawer .modal-head { position: sticky; top: 0; z-index: 3; padding: 16px 20px; background: var(--ink-2); border-bottom: 1px solid var(--trace-soft); }
dialog.modal.mk-drawer .modal-head h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
dialog.modal.mk-drawer .modal-body { padding: 18px 20px 28px; overflow-y: auto; flex: 1; }
@keyframes mk-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.modal.mk-drawer { animation: none; } .mk-card { transition: none; } }
@media (max-width: 640px) { dialog.modal.mk-drawer { border-radius: 0; width: 100vw; } }
.mk-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 14px; border-radius: 14px; }
.mk-gallery img, .mk-gallery .mk-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; scroll-snap-align: start; }
.mk-gallery:has(> :only-child) { grid-auto-columns: 100%; }
.mk-seller { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; }
.mk-price-box { padding: 12px 14px; border-radius: 14px; background: rgba(46, 139, 255, .08); border: 1px solid rgba(46, 139, 255, .25); }
.mk-price-box p { margin: 0; }
.mk-lead { font-size: 1rem; color: #dbe4f8; margin: 14px 0 0; }
.mk-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--trace-soft); }
.mk-sec h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; font-size: 1rem; }
.mk-sec h3 i { color: var(--blue); font-size: .95rem; }
.mk-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.mk-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; font-size: .92rem; }
.mk-list li > i { margin-top: .3em; font-size: .8rem; color: var(--ok); text-align: center; }
.mk-list li b { font-weight: 600; white-space: nowrap; font-size: .88rem; }
.mk-how { background: rgba(255, 255, 255, .02); border-radius: 14px; padding: 14px; border: 1px solid var(--trace-soft); }
.mk-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mk-form { margin-top: 18px; padding: 16px; border-radius: 16px; border: 1px solid rgba(46, 139, 255, .35); background: rgba(46, 139, 255, .05); }
.mk-form h3 { display: flex; gap: 8px; align-items: center; margin: 0; }
.mk-date { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 8px; }
.mk-date .icon-button { margin-bottom: 4px; }
@media (max-width: 520px) { .mk-date { grid-template-columns: minmax(0, 1fr) auto; } .mk-date label:nth-child(2) { grid-column: 1; } }
.mk-total { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.mk-paystep { margin-top: 18px; display: grid; gap: 10px; }
.mk-paystep h3 { margin: 0; }
.mk-manual { margin: 8px 0 0; }
.v41-pre { white-space: pre-line; overflow-wrap: anywhere; margin: 0; }

/* ---------- Portal ---------- */
.mk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--trace-soft); width: fit-content; max-width: 100%; }
.mk-tabs button { border: 0; background: transparent; color: var(--mist); font: 600 .88rem/1 var(--text); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.mk-tabs button.is-active { background: var(--blue); color: #fff; }
.mk-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mk-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 72px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.mk-item > [hidden] { display: none !important; }
.mk-item input, .mk-item select { min-width: 0; }
@media (max-width: 760px) { .mk-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mk-item .icon-button { justify-self: end; } }
.mk-shared { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.mk-shared-item { padding: 14px; border-radius: 14px; border: 1px solid var(--trace-soft); background: rgba(255, 255, 255, .02); display: grid; gap: 6px; align-content: start; }
.mk-shared-item h3 { margin: 0; font-size: 1rem; }
.mk-shared-item p { margin: 0; }

/* ---------- Espacios: horario y calendario ---------- */
.v41-schedule { display: grid; gap: 6px; }
.v41-day { display: grid; grid-template-columns: minmax(120px, 170px) minmax(130px, 170px) auto minmax(130px, 170px); justify-content: start; gap: 8px; align-items: center; }
.v41-day .check { margin: 0; }
@media (max-width: 560px) { .v41-day { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .v41-day .check { grid-column: 1 / -1; } }
.v41-doc { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.v41-booking-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v41-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.v41-cal-head strong { display: inline-block; }
.v41-cal-head strong::first-letter { text-transform: uppercase; }
.v41-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.v41-cal-dow { text-align: center; font-size: .75rem; color: var(--mist-2); padding: 4px 0; }
.v41-cal-day { min-height: 54px; padding: 6px; border-radius: 10px; display: grid; align-content: start; gap: 2px; font-size: .8rem; border: 1px solid transparent; }
.v41-cal-day b { font-weight: 700; }
.v41-cal-day small { font-size: .68rem; color: #fff; opacity: .85; }
.v41-cal-day.is-free, .v41-cal-legend .is-free { background: rgba(46, 204, 113, .12); border-color: rgba(46, 204, 113, .25); }
.v41-cal-day.is-busy, .v41-cal-legend .is-busy { background: rgba(46, 139, 255, .22); border-color: rgba(46, 139, 255, .45); }
.v41-cal-day.is-blocked, .v41-cal-legend .is-blocked { background: rgba(231, 76, 60, .2); border-color: rgba(231, 76, 60, .4); }
.v41-cal-day.is-closed, .v41-cal-legend .is-closed { background: rgba(255, 255, 255, .03); color: var(--mist-2); }
.v41-cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.v41-cal-legend span { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid transparent; }
@media (max-width: 420px) { .v41-cal-day { min-height: 40px; padding: 4px; } .v41-cal-day small { display: none; } }
/* Notas dentro de una celda de precio: texto normal, no cifra. */
.price-tag .muted, .price-tag small { font: 400 .78rem/1.35 var(--text); color: var(--mist); }
.mk-gallery .mk-cover.is-empty { aspect-ratio: 21 / 8; }

/* 4.1.1 · «En vivo» en el menú principal: foquito verde con onda si hay alguien en vivo; rojo que respira si no. */
.nav-link.nav-live { display: inline-flex; align-items: center; gap: 8px; }
.nav-live-dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; }
.nav-live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.nav-live-dot[data-live="off"] { background: #ff3b5c; animation: nav-live-breathe 2.4s ease-in-out infinite; }
.nav-live-dot[data-live="on"] { background: #22e07a; box-shadow: 0 0 8px rgba(34, 224, 122, .9); animation: nav-live-glow 1.2s ease-in-out infinite; }
.nav-live-dot[data-live="on"]::after { border: 2px solid rgba(34, 224, 122, .8); animation: nav-live-ring 1.6s ease-out infinite; }
@keyframes nav-live-breathe { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 59, 92, .5); } 50% { opacity: .45; box-shadow: 0 0 6px 1px rgba(255, 59, 92, .35); } }
@keyframes nav-live-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes nav-live-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nav-live-dot, .nav-live-dot::after { animation: none !important; } }
.nav-trigger { white-space: nowrap; }
/* Con «En vivo» como opción principal, el encabezado se compacta antes para que todo quepa en una línea. */
@media (min-width: 901px) and (max-width: 1440px) { .nav-trigger { padding: 0 9px; gap: 6px; }
    .header-app span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .header-app i { margin: 0; } }
@media (min-width: 901px) and (max-width: 1100px) { .nav-trigger { padding: 0 7px; font-size: .94rem; } }
@media (max-width: 900px) { .main-nav .nav-link.nav-live { justify-content: flex-start; gap: 12px; } }
@media (min-width: 901px) and (max-width: 1180px) { .account-trigger .account-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
