/* ── Módulo de piso: vistas móviles del mesero y planos de mesas ── */

.piso-body { background: #f4f3ef; }

/* Sin zoom por doble toque en pantallas touch: la captura del PIN y los
   botones responden al instante y la vista no "brinca". El pellizco para
   acercar sigue funcionando donde el navegador lo permita. */
.piso-body, .inicio-body,
.piso-body button, .piso-body a, .piso-body input, .piso-body select, .piso-body label,
.inicio-body a, .teclado button, .stepper button {
    touch-action: manipulation;
}

/* Los enlaces de texto (azul subrayado) no se ven sobre el verde y son
   difíciles de picar: en el módulo táctil todo enlace se ve como botón. */
.piso-main a.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: .6rem 1.1rem;
    border: 2px solid #6c757d;
    border-radius: 12px;
    background: #fff;
    color: var(--flux-lime-700);
    font-weight: 600;
    text-decoration: none;
}
.piso-main a.btn-link:active { transform: scale(.97); }

/* ── Pantalla de inicio: elegir módulo con un dedo ──
   Lienzo LIMA de la marca con las líneas de seda del flow sangrando por
   la esquina inferior-derecha (assets FLUX); la tinta solo acentúa. */
.inicio-body {
    min-height: 100vh;
    margin: 0;
    /* Viñeta lima: atenuado (más claro) al centro, más oscuro hacia las
       orillas; encima, las líneas de seda animadas de la marca. */
    background:
        url("../img/flux/flow-lines.svg") right bottom / cover no-repeat,
        radial-gradient(115% 95% at 50% 42%,
            var(--flux-lime-300) 0%,
            var(--flux-lime-400) 34%,
            var(--flux-lime-500) 62%,
            var(--flux-lime-600) 84%,
            #7EA518 100%);
    background-color: #7EA518;
    background-attachment: fixed, fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4vh;
    padding: 24px;
}
/* Luz y sombra en movimiento: un barrido de luz diagonal que cruza el
   lienzo con reposos largos, y una sombra suave que deriva despacio —
   hacen visible el movimiento sin robar protagonismo. */
.inicio-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 40%,
        rgba(255, 255, 255, .26) 50%,
        rgba(11, 13, 18, .07) 58%,
        transparent 67%);
    background-size: 260% 100%;
    background-position: 145% 0;
    animation: flux-luz 19s ease-in-out infinite;
}
.inicio-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(640px 480px at 18% 82%, rgba(11, 13, 18, .12), transparent 70%);
    animation: flux-sombra 27s ease-in-out 6s infinite;
}
@keyframes flux-luz {
    0%, 26% { background-position: 145% 0; }
    58% { background-position: -45% 0; }
    100% { background-position: -45% 0; }
}
@keyframes flux-sombra {
    0%, 38% { transform: translate(0, 0); opacity: 1; }
    58% { transform: translate(9vw, -7vh); opacity: .55; }
    78%, 100% { transform: translate(0, 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .inicio-body::before, .inicio-body::after { animation: none; }
}

.inicio-marca { color: var(--flux-ink-900); text-align: center; }
.inicio-marca .inicio-sub { color: rgba(11, 13, 18, .62); font-size: 1.05rem; }
.inicio-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 980px;
}
.inicio-tile {
    background: #fff;
    border-radius: 26px;
    min-height: max(30vh, 210px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 10px 26px rgba(60, 92, 8, .25);
    transition: transform .06s ease;
}

/* Selector de restaurante del dispositivo sobre el lienzo lima */
.inicio-suc {
    background: rgba(255, 255, 255, .82);
    border: 1.5px solid rgba(11, 13, 18, .25);
    color: var(--flux-ink-900);
    border-radius: var(--radius-pill);
    font-weight: 600;
}
.inicio-suc:hover { background: #fff; color: var(--flux-ink-900); border-color: var(--flux-ink-900); }
.inicio-suc.actual {
    background: var(--flux-ink-900);
    border-color: var(--flux-ink-900);
    color: var(--flux-lime-500);
    opacity: 1;
}
.inicio-flux-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, .85);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: transform .06s ease, background .15s ease;
}
a.inicio-flux-chip:hover { background: #fff; }
a.inicio-flux-chip:active { transform: scale(.96); }
.inicio-tile:active { transform: scale(.96); }
.inicio-tile:hover { color: #212529; }
.inicio-tile .emoji { font-size: 4.6rem; line-height: 1; }
/* Iconografía de marca: Lucide outline en tinta dentro de un disco lima */
.inicio-tile .icono {
    width: 108px; height: 108px;
    border-radius: 50%;
    background: var(--flux-lime-100);
    display: flex; align-items: center; justify-content: center;
}
.inicio-tile .icono img { width: 56px; height: 56px; }
.inicio-tile .titulo { font-size: 1.7rem; font-weight: 700; }
.inicio-tile .sub { color: #6c757d; font-size: 1rem; text-align: center; padding: 0 12px; }
.piso-nav { background-color: var(--flux-ink-900); border-bottom: 1px solid var(--flux-ink-500); }
/* Enlaces siempre blancos sobre la barra verde, en cualquier estado. */
.piso-nav a, .piso-nav a:hover, .piso-nav a:focus, .piso-nav a:visited,
.piso-nav .navbar-brand { color: #fff !important; }
.piso-main { max-width: 720px; }

/* Plano en cuadrícula (config y monitor) */
.plano {
    display: grid;
    gap: 10px;
    grid-auto-rows: 72px;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    max-width: 640px;
}
.mesa-celda {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px solid var(--flux-gray-400); border-radius: 10px;
    background: #fff; text-decoration: none; color: #212529;
}
.mesa-celda:hover { background: var(--flux-lime-100); }
.mesa-celda .mesa-num { font-size: 1.2rem; font-weight: 700; }
.mesa-celda .mesa-cap { font-size: .75rem; color: #6c757d; }
.mesa-inactiva { opacity: .4; border-style: dashed; }

/* ── Plano libre: lienzo con la imagen real del salón ── */
.plano-libre {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d8d4c8;
    /* piso genérico (duela) cuando no hay imagen subida */
    background: repeating-linear-gradient(90deg, #efe9dd 0 46px, #e6dfd0 46px 48px);
}
.plano-libre .plano-fondo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.plano-libre .zona-titulo {
    position: absolute; top: 8px; left: 10px; z-index: 3;
    padding: 2px 12px; border-radius: 999px;
    background: rgba(46, 75, 70, .88); color: #fff;
    font-weight: 600; font-size: .85rem;
}

.mesa-libre {
    position: absolute; z-index: 2;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 13%; aspect-ratio: 1 / 1;
    background: #f8f9fa;
    border: 3px solid #8a9299; border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    color: #212529; text-decoration: none; text-align: center;
    user-select: none;
}
.mesa-libre.forma-redonda { border-radius: 50%; }
.mesa-libre.forma-rect { aspect-ratio: 2 / 1; width: 19%; border-radius: 12px; }
.mesa-libre .mesa-num { font-size: clamp(.85rem, 2.8vw, 1.25rem); font-weight: 700; line-height: 1.1; }
.mesa-libre .mesa-sub { font-size: clamp(.55rem, 1.7vw, .75rem); color: #495057; line-height: 1.1; }
.mesa-libre.estado-ocupada { border-color: #2C5F8A; background: #e7f0f7; }
.mesa-libre.estado-impresa { border-color: #B4682B; background: #f9efe3; }
.mesa-libre.ajena { opacity: .42; filter: saturate(.3); }
.mesa-libre.mesa-inactiva { opacity: .35; border-style: dashed; }
.mesa-libre .aviso-listo { position: absolute; top: -10px; right: -6px; font-size: 1.05rem; }
a.mesa-libre:active { transform: translate(-50%, -50%) scale(.95); }

/* Editor: mesas arrastrables con el dedo o el mouse */
.plano-editor .mesa-libre { cursor: grab; touch-action: none; }
.plano-editor .mesa-libre.arrastrando { cursor: grabbing; z-index: 5; box-shadow: 0 6px 16px rgba(0,0,0,.35); }

/* Plano editable con drag & drop (admin) */
.plano-dnd {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    max-width: 760px;
}
.plano-dnd .plano-celda {
    min-height: 76px;
    border: 1px dashed #d8d4c8;
    border-radius: 10px;
}
.plano-dnd .plano-celda:hover { border-color: var(--flux-lime-700); background: var(--flux-lime-100); }
.plano-dnd .mesa-celda { width: 100%; height: 100%; cursor: grab; }
.plano-dnd .mesa-celda:active { cursor: grabbing; }

/* Tarjetas de mesa con estado (mis mesas / monitor) */
.mesa-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.mesa-card {
    border-radius: 12px;
    padding: 10px 12px;
    border: 2px solid transparent;
    color: #212529;
    text-decoration: none;
    display: block;
    background: #fff;
}
a.mesa-card:active { transform: scale(.98); }
.mesa-card { min-height: 96px; }
.mesa-card .mesa-num { font-size: 1.7rem; font-weight: 700; }
.mesa-card .mesero-nombre { color: #495057; }

.estado-libre   { border-color: #adb5bd; background: #f8f9fa; }
.estado-ocupada { border-color: #2C5F8A; background: #e7f0f7; }
.estado-impresa { border-color: #B4682B; background: #f9efe3; }
.estado-reservada  { border-color: #7B5EA7; background: #f1ecf8; }
.estado-porlimpiar { border-color: #6c757d; background: #e9ecef; border-style: dashed; }

.badge-libre   { background: #adb5bd; }
.badge-ocupada { background: #2C5F8A; }
.badge-impresa { background: #B4682B; }
.badge-reservada  { background: #7B5EA7; }
.badge-porlimpiar { background: #6c757d; }
.chips .badge { margin-right: 6px; }

/* ── Recepción (host stand) ── */
/* El podio usa toda la pantalla, no el ancho de teléfono del mesero. */
.piso-main:has(.rcp-tabs) { max-width: 1280px; }

/* Pestañas grandes: una sección a la vez, pensadas para dedo. */
.rcp-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
@media (max-width: 576px) { .rcp-tabs { grid-template-columns: repeat(2, 1fr); } }
.rcp-tab {
    min-height: 62px;
    border-radius: 14px;
    border: 2px solid #ced4da;
    background: #fff;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.rcp-tab:active { transform: scale(.97); }
.rcp-tab.activa { border-color: var(--flux-lime-700); background: var(--flux-lime-100); color: var(--flux-lime-700); }

/* Calendario mensual de la agenda (tipo Outlook, celdas para dedo) */
.cal-encabezados {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 6px;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.cal-dia {
    min-height: 88px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    color: #212529;
}
.cal-dia:active { transform: scale(.96); }
.cal-dia .cal-num { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.cal-dia.hoy { border-color: var(--flux-lime-700); background: var(--flux-lime-100); }
.cal-dia.hoy .cal-num { color: var(--flux-lime-700); }
.cal-dia.otro-mes { opacity: .35; }
.cal-dia.pasado:not(.hoy) { background: #f4f4f2; color: #8a9299; }
.cal-badge {
    background: #7B5EA7;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.cal-badge small { font-weight: 400; opacity: .85; }
@media (max-width: 640px) {
    .cal-dia { min-height: 64px; padding: 4px 6px; }
    .cal-badge small { display: none; }
}
.panel-recepcion {
    background: #fff; border: 1px solid #dee2e6; border-radius: 14px;
    padding: 14px 16px; margin-bottom: 16px;
}
.panel-recepcion h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.fila-recepcion {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #f1f3f5; flex-wrap: wrap;
}
.fila-recepcion:last-child { border-bottom: none; }
.fila-recepcion .acciones { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fila-recepcion .acciones .btn { min-height: 40px; font-size: .9rem; }
.fila-recepcion .acciones select { min-height: 40px; border-radius: 10px; }
.espera-crono { font-weight: 700; font-variant-numeric: tabular-nums; }
.espera-crono.excedida { color: #b02a37; }
.mesa-excedida { color: #b02a37; font-weight: 700; }
.mesero-sugerido { background: var(--flux-lime-100); border-radius: 10px; }
.reserva-notas { font-size: .85rem; color: #6c757d; }

/* Página pública de reservas */
.franjas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.franja-chip { position: relative; margin: 0; }
.franja-chip input { position: absolute; opacity: 0; pointer-events: none; }
.franja-chip span {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 58px; border: 2px solid #ced4da; border-radius: 12px;
    background: #fff; font-weight: 600;
}
.franja-chip small { font-weight: 400; color: #6c757d; }
.franja-chip input:checked + span { border-color: var(--flux-lime-700); background: var(--flux-lime-100); color: var(--flux-lime-700); }
.franja-chip.agotada span { opacity: .4; text-decoration: line-through; }
.franja-chip span:active { transform: scale(.96); }

/* ── Modo touch: todo presionable, grande y con retroalimentación ── */

.piso-main .btn {
    min-height: 52px;
    border-radius: 12px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.piso-main .btn:active { transform: scale(.97); }
.piso-main .btn-link { min-height: 44px; }

/* Botones principales, aún más grandes */
/* Barra de acciones flotante: se pega al fondo de la pantalla para que
   "Agregar a la comanda" y "Elegir otro platillo" siempre estén a la mano,
   sin importar cuánto se haya scrolleado el formulario. */
.barra-acciones {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 10px 0 14px;
    margin-top: 6px;
    background: linear-gradient(to bottom, rgba(244, 243, 239, 0), #f4f3ef 26%);
}

.btn-piso {
    font-size: 1.25rem;
    font-weight: 600;
    min-height: 64px;
    padding: .7rem 1rem;
    border-radius: 14px;
}

/* Teclado numérico en pantalla */
.kp-dots {
    text-align: center;
    font-size: 1.9rem;
    letter-spacing: .45rem;
    min-height: 2.6rem;
    color: var(--flux-lime-700);
    user-select: none;
}
.teclado {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.teclado button {
    height: 68px;
    font-size: 1.7rem;
    font-weight: 600;
    border: 1px solid #ced4da;
    border-radius: 14px;
    background: #fff;
    color: #212529;
}
.teclado button:active { transform: scale(.93); background: var(--flux-lime-100); }
.teclado .kp-borrar { background: #f8f9fa; color: #b02a37; }
.teclado .kp-ok { background: var(--flux-lime-500); border-color: var(--flux-lime-500); color: var(--flux-ink-900); }
.teclado .kp-ok:active { background: var(--flux-lime-600); }

/* Stepper −/+ para cantidades */
.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper button {
    width: 64px;
    min-height: 60px;
    font-size: 1.9rem;
    font-weight: 700;
    border: 1px solid #ced4da;
    border-radius: 14px;
    background: #fff;
    color: var(--flux-lime-700);
    flex: none;
}
.stepper button:active { transform: scale(.93); background: var(--flux-lime-100); }
.stepper input {
    flex: 1;
    min-width: 70px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 1px solid #ced4da;
    border-radius: 14px;
    background: #fff;
}
.stepper-sm button { width: 52px; min-height: 50px; font-size: 1.5rem; }
.stepper-sm input { font-size: 1.2rem; min-width: 56px; }

/* Mesa con asientos numerados (posición fija: 1 arriba, manecillas) */
.mesa-visual { position: relative; width: 250px; height: 250px; margin: 0 auto 10px; }
.mesa-visual .mesa-centro {
    position: absolute; inset: 58px;
    border-radius: 50%;
    background: var(--flux-lime-100); border: 2px solid var(--flux-lime-600);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-weight: 700; color: var(--flux-lime-700); text-align: center;
}
.mesa-visual .mesa-centro small { font-weight: 400; color: #5c7561; }
.asiento-chip {
    position: absolute; width: 42px; height: 42px; border-radius: 50%;
    background: #2C5F8A; color: #fff; font-weight: 700; font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    user-select: none;
}

/* Badge de comensal en líneas de cuenta y ticket */
.asiento-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 6px;
    border-radius: 50rem; background: #2C5F8A; color: #fff;
    font-weight: 700; font-size: .9rem;
}

/* Selector de comensal al capturar */
.comensal-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.comensal-chip { position: relative; margin: 0; }
.comensal-chip input { position: absolute; opacity: 0; pointer-events: none; }
.comensal-chip span {
    display: flex; align-items: center; justify-content: center;
    min-width: 58px; height: 58px; border-radius: 50%;
    border: 2px solid #ced4da; background: #fff;
    font-size: 1.3rem; font-weight: 700;
}
.comensal-chip.mesa-toda span { border-radius: 14px; padding: 0 16px; font-size: 1rem; font-weight: 600; }
.comensal-chip input:checked + span { border-color: #2C5F8A; background: #e7f0f7; color: #2C5F8A; }
.comensal-chip span:active { transform: scale(.95); }

/* Dividir cuenta: unidades que se pasan tocando */
.unidad {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    width: 100%; min-height: 58px; padding: .5rem .9rem; margin-bottom: 8px;
    background: #fff; border: 1px solid #dee2e6; border-radius: 12px;
    text-align: left; font-size: 1.02rem; color: #212529;
}
.unidad:active { transform: scale(.98); }
.unidad .flecha-mover { color: #2C5F8A; font-weight: 700; flex: none; }
.zona-nueva { border: 2px dashed #2C5F8A; border-radius: 14px; padding: 12px; background: #f6f9fc; }
.zona-nueva .unidad { border-color: #2C5F8A; background: #e7f0f7; }
.zona-vacia { color: #6c757d; text-align: center; padding: 14px 0; margin: 0; }

/* "Sin ingrediente" como fichas presionables */
.chips-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.chip-check { position: relative; margin: 0; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 54px;
    padding: .4rem .6rem;
    border: 2px solid #ced4da;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
}
.chip-check input:checked + span {
    border-color: #B4682B;
    background: #f9efe3;
    font-weight: 700;
}
.chip-check span:active { transform: scale(.97); }

/* Lista de captura de platillos */
.platillo-btn {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; text-align: left;
    min-height: 62px; font-size: 1.1rem;
    background: #fff; border: 1px solid #dee2e6; border-radius: 12px;
    padding: .7rem 1rem; margin-bottom: 10px;
    color: #212529; text-decoration: none;
}
.platillo-btn:active { background: var(--flux-lime-100); }
.platillo-precio { font-weight: 700; white-space: nowrap; }

/* Cuenta: líneas y modificadores */
.linea-cancelada { text-decoration: line-through; color: #adb5bd; }
.mod-item { font-size: .85rem; color: #6c757d; }
.mod-extra { color: #B4682B; }

/* Ticket imprimible */
.ticket {
    background: #fff; max-width: 380px; margin: 0 auto;
    padding: 18px; border: 1px dashed #adb5bd; border-radius: 8px;
    font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: .85rem;
}
.ticket table { width: 100%; }
.ticket td { vertical-align: top; padding: 1px 0; }
.ticket .tot { border-top: 1px dashed #adb5bd; font-weight: 700; }
@media print {
    .piso-nav, .alert, .d-print-none { display: none !important; }
    .piso-body { background: #fff; }
    .ticket { border: none; }
}

/* Badges de consumo sobre el chip del comensal (🍽 platillos / 🥤 bebidas). */
.comensal-chip { position: relative; }
.comensal-chip .comensal-badge {
    font-size: .62rem;
    position: absolute;
    top: -8px;
    padding: .2em .45em;
}
.comensal-chip .comensal-badge.bg-success { right: -6px; }
.comensal-chip .comensal-badge.bg-info { left: -6px; }
.comensal-chip.mesa-toda .comensal-badge { position: static; margin-left: .3rem; font-size: .72rem; }

/* ── Ayuda del PIN en la demo (_AyudaPinDemo) ─────────────────────────
   Botón discreto junto a «Teclea tu PIN» que abre quién es quién en el
   restaurante de ejemplo. Solo existe con datos de prueba. */
.apd-abrir {
    width: 30px; height: 30px;
    margin-left: .4rem;
    border-radius: 50%;
    border: 1px solid var(--flux-gray-400);
    background: var(--flux-gray-050);
    color: var(--flux-gray-700);
    font-weight: 700; font-size: .95rem; line-height: 1;
    vertical-align: middle;
    touch-action: manipulation;
}
.apd-abrir:active { background: var(--flux-lime-100); border-color: var(--flux-lime-600); }
.apd-panel { border-radius: var(--radius-2xl); }
.apd-panel .modal-header { align-items: flex-start; border-bottom: 1px solid var(--flux-gray-300); }
.apd-eyebrow {
    display: block;
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow);
    color: var(--flux-lime-700);
    margin-bottom: .15rem;
}
.apd-intro { color: var(--flux-gray-600); font-size: .92rem; margin-bottom: .75rem; }
.apd-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.apd-usar {
    width: 100%;
    display: flex; align-items: center; gap: 14px;
    text-align: left;
    padding: 10px 12px;
    min-height: 52px;
    border: 1px solid var(--flux-gray-300);
    border-radius: var(--radius-lg);
    background: var(--flux-gray-050);
    touch-action: manipulation;
}
.apd-usar:active { background: var(--flux-lime-100); border-color: var(--flux-lime-600); }
.apd-pin {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: .06em;
    color: var(--flux-ink-900);
    background: var(--flux-lime-500);
    border-radius: var(--radius-md);
    padding: .3rem .6rem;
}
.apd-quien { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.apd-rol { font-weight: 650; font-size: .95rem; color: var(--flux-ink-900); }
.apd-nombre { font-size: .82rem; color: var(--flux-gray-600); }
.apd-para { font-size: .82rem; color: var(--flux-gray-700); margin-top: .2rem; }
.apd-pie { color: var(--flux-gray-600); font-size: .8rem; margin: .85rem 0 0; }
