/* PMU Votaciones - Estilos */

:root {
    --pmu-color-primary: #1a73e8;
    --pmu-color-primary-dark: #1557b0;
    --pmu-color-success: #137333;
    --pmu-color-error: #c5221f;
    --pmu-color-warning: #b06000;
    --pmu-color-info: #1a73e8;
    --pmu-color-text: #1f1f1f;
    --pmu-color-text-muted: #5f6368;
    --pmu-color-border: #dadce0;
    --pmu-color-bg: #ffffff;
    --pmu-color-bg-soft: #f8f9fa;
    --pmu-radius: 8px;
    --pmu-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --pmu-shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
}

.pmu-card {
    background: var(--pmu-color-bg);
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
    padding: 32px;
    margin: 24px 0;
    box-shadow: var(--pmu-shadow);
    color: var(--pmu-color-text);
    max-width: 880px;
}
.pmu-card--narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.pmu-card__title { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.pmu-card__desc { margin: 0 0 24px; color: var(--pmu-color-text-muted); font-size: 14px; }
.pmu-card__footer { margin-top: 16px; font-size: 14px; text-align: center; }

.pmu-aviso {
    padding: 12px 16px;
    border-radius: var(--pmu-radius);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid;
}
.pmu-aviso--success { background: #e6f4ea; border-color: var(--pmu-color-success); color: #0d652d; }
.pmu-aviso--error   { background: #fce8e6; border-color: var(--pmu-color-error); color: #a50e0e; }
.pmu-aviso--warning { background: #fef7e0; border-color: var(--pmu-color-warning); color: #7c4a00; }
.pmu-aviso--info    { background: #e8f0fe; border-color: var(--pmu-color-info); color: #174ea6; }
.pmu-aviso code { background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.pmu-notice { padding: 16px; border-radius: var(--pmu-radius); margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.pmu-notice--info { background: var(--pmu-color-bg-soft); border: 1px solid var(--pmu-color-border); }
.pmu-notice code { background: #fff; padding: 2px 6px; border-radius: 4px; font-size: 13px; border: 1px solid var(--pmu-color-border); }

.pmu-form { margin: 0; }
.pmu-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
@media (max-width: 600px) { .pmu-form__row { grid-template-columns: 1fr; } }
.pmu-form__actions { margin-top: 24px; display: flex; gap: 12px; justify-content: flex-end; }

.pmu-fieldset {
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
    padding: 20px;
    margin: 0 0 20px;
    background: var(--pmu-color-bg-soft);
}
.pmu-fieldset__legend {
    padding: 0 8px;
    font-weight: 600;
    color: var(--pmu-color-text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pmu-field { margin-bottom: 16px; }
.pmu-field__label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--pmu-color-text); }
.pmu-required { color: var(--pmu-color-error); font-weight: 700; margin-left: 2px; }

.pmu-field__input, .pmu-field__select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pmu-color-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--pmu-color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.pmu-field__input:focus, .pmu-field__select:focus {
    outline: none;
    border-color: var(--pmu-color-primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
.pmu-field__file {
    width: 100%;
    padding: 8px;
    border: 1px dashed var(--pmu-color-border);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}
.pmu-field__hint { display: block; margin-top: 4px; color: var(--pmu-color-text-muted); font-size: 12px; }

.pmu-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s;
    line-height: 1.4;
}
.pmu-btn--primary { background: var(--pmu-color-primary); color: #fff; border-color: var(--pmu-color-primary); }
.pmu-btn--primary:hover { background: var(--pmu-color-primary-dark); border-color: var(--pmu-color-primary-dark); color: #fff; }
.pmu-btn--ghost { background: transparent; color: var(--pmu-color-text); border-color: var(--pmu-color-border); }
.pmu-btn--ghost:hover { background: var(--pmu-color-bg-soft); }

/* SLIDER */
.pmu-slider-group { margin-bottom: 28px; padding: 12px 4px; }
.pmu-slider__label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 12px; color: var(--pmu-color-text); }
.pmu-slider-wrapper { position: relative; height: 40px; display: flex; align-items: center; }

.pmu-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right,
        var(--pmu-color-primary) 0%,
        var(--pmu-color-primary) var(--pmu-fill, 50%),
        var(--pmu-color-border) var(--pmu-fill, 50%),
        var(--pmu-color-border) 100%);
    border-radius: 3px;
    outline: none;
    margin: 0;
    padding: 0;
}
.pmu-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pmu-color-primary);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.1s;
}
.pmu-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.pmu-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pmu-color-primary);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pmu-slider__bubble {
    position: absolute;
    top: -32px;
    transform: translateX(-50%);
    background: var(--pmu-color-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    left: var(--pmu-bubble-x, 50%);
}
.pmu-slider__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--pmu-color-primary);
}

.pmu-slider__ticks { display: flex; justify-content: space-between; margin-top: 8px; padding: 0 4px; }
.pmu-slider__tick { font-size: 11px; color: var(--pmu-color-text-muted); font-weight: 500; }

/* PANEL */
.pmu-panel__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.pmu-panel__subtitle { margin: 24px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--pmu-color-text-muted); font-weight: 600; }
.pmu-panel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pmu-panel__item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--pmu-color-bg-soft);
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
    text-decoration: none;
    color: var(--pmu-color-text);
    transition: all 0.15s;
}
.pmu-panel__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--pmu-shadow-hover);
    border-color: var(--pmu-color-primary);
    color: var(--pmu-color-text);
    text-decoration: none;
}
.pmu-panel__item--accent { background: linear-gradient(135deg, var(--pmu-color-primary), var(--pmu-color-primary-dark)); color: #fff; border-color: transparent; }
.pmu-panel__item--accent:hover { color: #fff; }
.pmu-panel__item-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pmu-panel__item-meta { font-size: 12px; opacity: 0.85; }

.pmu-pre { background: var(--pmu-color-bg-soft); padding: 12px; border-radius: 6px; font-size: 13px; overflow-x: auto; border: 1px solid var(--pmu-color-border); }
.pmu-details { margin-top: 16px; padding: 12px; background: var(--pmu-color-bg-soft); border-radius: 6px; }
.pmu-details summary { cursor: pointer; font-weight: 500; font-size: 14px; }

/* PASSWORD BOX (mostrar password generado de forma copiable) */
.pmu-password-box {
    margin-top: 14px;
    padding: 14px;
    background: #fff;
    border: 2px dashed var(--pmu-color-success);
    border-radius: var(--pmu-radius);
}
.pmu-password-box__label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--pmu-color-text);
}
.pmu-password-box__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.pmu-password-box__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--pmu-color-border);
    border-radius: 6px;
    font-family: 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    background: #f8f9fa;
    color: var(--pmu-color-text);
    cursor: text;
    user-select: all;
}
.pmu-password-box__input:focus {
    outline: none;
    border-color: var(--pmu-color-success);
    background: #fff;
}
.pmu-password-box__copy {
    white-space: nowrap;
}
.pmu-password-box__copy.copied {
    background: var(--pmu-color-success);
    border-color: var(--pmu-color-success);
}
@media (max-width: 480px) {
    .pmu-password-box__row { flex-direction: column; }
}

/* ============================================================
   REPORTES
   ============================================================ */
.pmu-reporte { max-width: 100%; }
.pmu-reporte__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.pmu-reporte__footer {
    margin-top: 12px;
    font-size: 13px;
    color: var(--pmu-color-text-muted);
    text-align: right;
}

.pmu-badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--pmu-color-bg-soft);
    border: 1px solid var(--pmu-color-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pmu-color-text);
}
.pmu-badge--info {
    background: #e8f0fe;
    border-color: #aecbfa;
    color: #174ea6;
}

/* Stats cards */
.pmu-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.pmu-stat {
    padding: 14px 16px;
    background: var(--pmu-color-bg-soft);
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
}
.pmu-stat__label {
    font-size: 12px;
    color: var(--pmu-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}
.pmu-stat__value {
    font-size: 26px;
    font-weight: 700;
    color: var(--pmu-color-text);
    line-height: 1.1;
}
.pmu-stat__meta {
    font-size: 12px;
    color: var(--pmu-color-text-muted);
    margin-top: 4px;
}
.pmu-stat--accent {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    border-color: var(--pmu-color-primary);
}
.pmu-stat--accent .pmu-stat__value {
    color: var(--pmu-color-primary-dark);
}

/* Filtros */
.pmu-filtros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--pmu-color-bg-soft);
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
    margin: 16px 0 20px;
    align-items: end;
}
.pmu-filtros__field {
    display: flex;
    flex-direction: column;
}
.pmu-filtros__field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pmu-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.pmu-filtros__field input,
.pmu-filtros__field select {
    padding: 7px 10px;
    border: 1px solid var(--pmu-color-border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    font-family: inherit;
}
.pmu-filtros__actions {
    display: flex;
    gap: 8px;
    align-items: end;
}
.pmu-filtros__actions .pmu-btn {
    padding: 7px 14px;
    font-size: 14px;
}

/* Tabla */
.pmu-tabla-wrap {
    overflow-x: auto;
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
    background: #fff;
}
.pmu-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pmu-tabla thead {
    background: var(--pmu-color-bg-soft);
}
.pmu-tabla th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--pmu-color-text-muted);
    border-bottom: 1px solid var(--pmu-color-border);
    white-space: nowrap;
}
.pmu-tabla td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f3;
    color: var(--pmu-color-text);
}
.pmu-tabla tbody tr:last-child td {
    border-bottom: none;
}
.pmu-tabla tbody tr:hover {
    background: #f8fbff;
}
.pmu-tabla__rank {
    width: 50px;
    font-weight: 600;
    color: var(--pmu-color-text-muted);
    text-align: center;
}
.pmu-tabla__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.pmu-tabla__date {
    white-space: nowrap;
    color: var(--pmu-color-text-muted);
    font-size: 12px;
}

/* Empty state */
.pmu-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--pmu-color-text-muted);
    background: var(--pmu-color-bg-soft);
    border: 1px dashed var(--pmu-color-border);
    border-radius: var(--pmu-radius);
}

/* ============================================================
   ACCIONES (exportar, toggle gráficos)
   ============================================================ */
.pmu-acciones {
    display: flex;
    gap: 8px;
    margin: 16px 0 8px;
    flex-wrap: wrap;
}
.pmu-acciones .pmu-btn {
    font-size: 14px;
    padding: 8px 14px;
}

/* ============================================================
   GRÁFICOS
   ============================================================ */
.pmu-graficos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}
@media (max-width: 768px) {
    .pmu-graficos { grid-template-columns: 1fr; }
}
.pmu-graficos--hidden {
    display: none;
}
.pmu-grafico {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
    box-shadow: var(--pmu-shadow);
}
.pmu-grafico--full {
    grid-column: 1 / -1;
}
.pmu-grafico__title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--pmu-color-text);
}
.pmu-grafico__canvas-wrap {
    position: relative;
    height: 320px;
}

/* ============================================================
   HEATMAP
   ============================================================ */
.pmu-heatmap-wrap {
    overflow-x: auto;
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
    background: #fff;
}
.pmu-heatmap {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pmu-heatmap th,
.pmu-heatmap td {
    padding: 10px 12px;
    border: 1px solid #e0e3e7;
    white-space: nowrap;
}
.pmu-heatmap__corner {
    background: var(--pmu-color-bg-soft);
    font-weight: 600;
    color: var(--pmu-color-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pmu-heatmap__th {
    background: var(--pmu-color-bg-soft);
    font-weight: 600;
    color: var(--pmu-color-text);
    text-align: center;
}
.pmu-heatmap__row-label {
    background: var(--pmu-color-bg-soft);
    font-weight: 600;
    color: var(--pmu-color-text);
    text-align: left;
}
.pmu-heatmap__cell {
    text-align: center;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
.pmu-heatmap__cell--empty {
    background: #f4f5f7 !important;
    color: var(--pmu-color-text-muted);
    font-weight: 400;
    text-shadow: none;
}
.pmu-heatmap__leyenda {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--pmu-color-text-muted);
    justify-content: flex-end;
}
.pmu-heatmap__leyenda-barra {
    display: inline-block;
    width: 120px;
    height: 10px;
    background: linear-gradient(to right,
        hsl(0, 70%, 60%),
        hsl(60, 70%, 60%),
        hsl(120, 70%, 60%));
    border-radius: 5px;
}

/* ============================================================
   BARRA DE NAVEGACIÓN INTERNA (sticky)
   ============================================================ */
.pmu-nav {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: #fff;
    border-bottom: 1px solid var(--pmu-color-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin: 0 0 24px 0;
    font-family: inherit;
}
.pmu-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    position: relative;
}

/* Brand */
.pmu-nav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--pmu-color-text);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    margin-right: 16px;
}
.pmu-nav__brand:hover {
    color: var(--pmu-color-primary);
    text-decoration: none;
}
.pmu-nav__brand-icon {
    font-size: 20px;
}

/* Toggle móvil */
.pmu-nav__toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    flex-direction: column;
    gap: 4px;
    border-radius: 4px;
}
.pmu-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pmu-color-text);
    transition: transform 0.2s, opacity 0.2s;
}
.pmu-nav__toggle:hover {
    background: var(--pmu-color-bg-soft);
}

/* Items */
.pmu-nav__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.pmu-nav__item {
    position: relative;
    list-style: none;
}
.pmu-nav__item > a,
.pmu-nav__item > button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: var(--pmu-color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.pmu-nav__item > a:hover,
.pmu-nav__item > button:hover {
    background: var(--pmu-color-bg-soft);
    color: var(--pmu-color-text);
    text-decoration: none;
}
.pmu-nav__item.is-active > a,
.pmu-nav__item.is-active > button {
    background: #e8f0fe;
    color: var(--pmu-color-primary-dark);
}
.pmu-nav__icon {
    font-size: 16px;
    line-height: 1;
}
.pmu-nav__chevron {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.7;
    transition: transform 0.2s;
}
.pmu-nav__item.is-open .pmu-nav__chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.pmu-nav__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid var(--pmu-color-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 6px;
    min-width: 200px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.pmu-nav__item.is-open .pmu-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pmu-nav__dropdown li {
    list-style: none;
    margin: 0;
}
.pmu-nav__dropdown a {
    display: block;
    padding: 8px 12px;
    color: var(--pmu-color-text);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.1s;
    white-space: nowrap;
}
.pmu-nav__dropdown a:hover {
    background: var(--pmu-color-bg-soft);
    color: var(--pmu-color-text);
    text-decoration: none;
}
.pmu-nav__dropdown a.is-active {
    background: #e8f0fe;
    color: var(--pmu-color-primary-dark);
    font-weight: 600;
}
.pmu-nav__dropdown-divider {
    height: 1px;
    background: var(--pmu-color-border);
    margin: 4px 8px;
    list-style: none;
}

/* User + logout */
.pmu-nav__user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--pmu-color-border);
    margin-left: auto;
}
.pmu-nav__user-name {
    font-size: 13px;
    color: var(--pmu-color-text-muted);
    font-weight: 500;
}
.pmu-nav__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    color: var(--pmu-color-text-muted);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.15s;
}
.pmu-nav__logout:hover {
    background: #fce8e6;
    color: var(--pmu-color-error);
    text-decoration: none;
}

/* Content wrapper */
.pmu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   RESPONSIVE: menú móvil
   ============================================================ */
@media (max-width: 900px) {
    .pmu-nav__toggle {
        display: flex;
    }
    .pmu-nav__items {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 2px;
        border-bottom: 1px solid var(--pmu-color-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        display: none;
    }
    .pmu-nav.is-open .pmu-nav__items {
        display: flex;
    }
    .pmu-nav__item > a,
    .pmu-nav__item > button {
        width: 100%;
        justify-content: flex-start;
    }
    .pmu-nav__dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--pmu-color-bg-soft);
        margin: 4px 0 4px 24px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 4px;
    }
    .pmu-nav__item.is-open .pmu-nav__dropdown {
        display: block;
    }
    .pmu-nav__user {
        border-left: none;
        border-top: 1px solid var(--pmu-color-border);
        padding: 8px 12px;
        margin-top: 8px;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 500px) {
    .pmu-nav__brand-text {
        display: none;
    }
    .pmu-nav__inner {
        padding: 0 12px;
    }
}

/* ============================================================
   AYUDA (accordion)
   ============================================================ */
.pmu-ayuda__seccion {
    margin-bottom: 8px;
    border: 1px solid var(--pmu-color-border);
    border-radius: var(--pmu-radius);
    overflow: hidden;
    background: #fff;
}
.pmu-ayuda__seccion summary {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 15px;
    background: var(--pmu-color-bg-soft);
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}
.pmu-ayuda__seccion summary::-webkit-details-marker {
    display: none;
}
.pmu-ayuda__seccion summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.15s;
    color: var(--pmu-color-text-muted);
}
.pmu-ayuda__seccion[open] summary::before {
    transform: rotate(90deg);
}
.pmu-ayuda__seccion[open] summary {
    background: #e8f0fe;
}
.pmu-ayuda__seccion summary:hover {
    background: #d2e3fc;
}
.pmu-ayuda__contenido {
    padding: 16px 18px;
    line-height: 1.7;
    color: var(--pmu-color-text);
    font-size: 14px;
}
.pmu-ayuda__contenido ol,
.pmu-ayuda__contenido ul {
    margin: 8px 0;
    padding-left: 24px;
}
.pmu-ayuda__contenido li {
    margin-bottom: 4px;
}
.pmu-ayuda__contenido p {
    margin: 8px 0;
}
.pmu-ayuda__contenido code {
    background: var(--pmu-color-bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid var(--pmu-color-border);
}
