/* GEPUD — complementos a Tailwind (mínimos; preferir utilidades de Tailwind). */

/* Resaltado de marcadores [[PENDIENTE: ...]] en el contenido generado (se usa desde la Fase 4). */
.marcador-pendiente {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 0.25rem;
    padding: 0 0.25rem;
    font-weight: 600;
}

/* ============================================================
   Capa móvil (rediseño mobile-first, docs/07_REDISENO_MOVIL.md)
   Componentes propios con prefijo gp-: no dependen de Tailwind.
   ============================================================ */

/* --- Tab bar inferior y FAB: solo existen en móvil (≤768 px) --- */
#gp-tabbar, #gp-fab { display: none; }

@media (max-width: 768px) {
    /* El contenido no debe quedar debajo de la barra inferior */
    main { padding-bottom: 86px !important; }

    #gp-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        background: #0f172a; border-top: 1px solid #1e293b;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
    }
    .gp-tab {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; background: none; border: none; cursor: pointer; padding: 6px 2px;
        color: #94a3b8; font-size: 11px; font-weight: 600; border-radius: 12px;
        text-decoration: none;
    }
    .gp-tab svg { width: 22px; height: 22px; }
    .gp-tab--activa { color: #ffffff; }
    .gp-tab:active { transform: scale(.94); }

    #gp-fab {
        display: flex; align-items: center; justify-content: center;
        position: fixed; right: 18px; bottom: 92px; z-index: 91;
        width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
        background: linear-gradient(135deg, #1e293b, #0f172a);
        color: #ffffff; box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
        border: 1px solid #334155; text-decoration: none;
    }
    #gp-fab svg { width: 26px; height: 26px; }
    #gp-fab:active { transform: scale(.94); }

    /* Tablas anchas: desplazamiento propio, nunca del body */
    .overflow-x-auto { -webkit-overflow-scrolling: touch; }
}

/* --- Hoja inferior de acciones (móvil Y escritorio: se centra) --- */
#gp-telon {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, .5); z-index: 120;
}
#gp-hoja {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 121;
    background: #fff; border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    animation: gp-subir .22s ease-out; max-width: 520px; margin: 0 auto;
}
@keyframes gp-subir { from { transform: translateY(100%); } to { transform: translateY(0); } }
.gp-hoja-asa    { width: 40px; height: 4px; border-radius: 99px; background: #e5e7eb; margin: 4px auto 10px; }
.gp-hoja-cabeza { padding: 0 8px 10px; border-bottom: 1px solid #f1f5f9; margin-bottom: 6px; }
.gp-hoja-titulo { font-weight: 800; font-size: 16px; color: #0f172a; }
.gp-hoja-sub    { font-size: 12px; color: #6b7280; margin-top: 2px;
                  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-hoja-item {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    background: none; border: none; cursor: pointer; padding: 14px 10px;
    border-radius: 12px; font-size: 15px; font-weight: 600; color: #0f172a;
}
.gp-hoja-item:hover  { background: #f3f4f6; }
.gp-hoja-item--peligro { color: #dc2626; }

/* Botón ⋮ (kebab) de filas y tarjetas */
.gp-kebab {
    background: none; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer;
    font-size: 18px; line-height: 1; padding: 4px 10px; color: #475569;
}
.gp-kebab:hover  { background: #f1f5f9; }
.gp-kebab:active { transform: scale(.94); }
