/* =====================================================
   STREET PATCH · MENÚ DESPLEGABLE "HELP"
   Este archivo se usa en TODAS las páginas.
   Estilos del botón Help y de su lista desplegable
   (manual de usuario, site map, ubicación y panel admin).
   Índice:
   1. Contenedor y botón
   2. Lista desplegable (computador)
   3. Versión celular / tablet (acordeón dentro del menú)
===================================================== */


/* ========== 1. CONTENEDOR Y BOTÓN ========== */

/* Contenedor: sirve de referencia para ubicar la lista */
.help-dd {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Botón "Help". Se reinician los estilos globales de <button>
   (algunas páginas ponen padding y borde redondeado a todos los botones) */
.help-dd .help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;

    color: #F7F5EF;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;

    transition: color 0.3s;
}

.help-dd .help-btn:hover,
.help-dd.abierto .help-btn {
    color: #21D4C2;
    background: none;
    transform: none;
}

/* Flechita que gira al abrir */
.help-dd .help-flecha {
    font-size: 11px;
    transition: transform 0.3s;
}

.help-dd.abierto .help-flecha {
    transform: rotate(180deg);
}


/* ========== 2. LISTA DESPLEGABLE (COMPUTADOR) ========== */

.help-dd .help-lista {
    position: absolute;
    top: calc(100% + 18px);
    right: -10px;
    z-index: 1100;

    min-width: 250px;
    padding: 10px;

    display: flex;
    flex-direction: column;
    gap: 2px;

    background: rgba(17, 20, 20, 0.98);
    border: 1px solid rgba(33, 212, 194, 0.55);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);

    /* Oculta por defecto; se muestra con la clase .abierto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.help-dd.abierto .help-lista {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cada opción de la lista */
.help-dd .help-lista a {
    display: block;
    padding: 12px 14px;

    border: none;
    border-radius: 9px;

    color: #F7F5EF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;

    transition: background 0.2s, color 0.2s;
}

.help-dd .help-lista a:hover {
    background: rgba(33, 212, 194, 0.14);
    color: #21D4C2;
}

/* Línea separadora y acceso al panel de administración (resaltado en naranja) */
.help-dd .help-lista .help-sep {
    height: 1px;
    margin: 6px 4px;
    background: rgba(255, 255, 255, 0.12);
}

.help-dd .help-lista a.help-admin {
    color: #FFB347;
}

.help-dd .help-lista a.help-admin:hover {
    background: rgba(255, 122, 47, 0.16);
    color: #FF7A2F;
}


/* ========== 3. CELULAR Y TABLET (ACORDEÓN) ========== */
/* En pantallas pequeñas el menú es una columna, así que la lista
   no flota: se despliega hacia abajo dentro del mismo menú. */

@media (max-width: 900px) {

    .help-dd {
        display: block;
        width: 100%;
    }

    .help-dd .help-btn {
        width: 100%;
        justify-content: space-between;
        padding: 16px 4px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .help-dd .help-lista {
        position: static;
        min-width: 0;
        padding: 0 0 0 12px;

        background: none;
        border: none;
        border-left: 2px solid rgba(33, 212, 194, 0.5);
        border-radius: 0;
        box-shadow: none;

        /* Cerrada: sin altura. Abierta: se ve completa */
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .help-dd.abierto .help-lista {
        display: flex;
        margin: 4px 0 10px 4px;
    }

    .help-dd .help-lista a {
        padding: 13px 10px;
        font-size: 15px;
    }
}

/* La página de inicio cambia al menú celular a los 1024px (no a los 900px) */
@media (max-width: 1024px) {

    body.inicio .help-dd {
        display: block;
        width: 100%;
    }

    body.inicio .help-dd .help-btn {
        width: 100%;
        justify-content: space-between;
        padding: 16px 4px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.inicio .help-dd .help-lista {
        position: static;
        min-width: 0;
        padding: 0 0 0 12px;

        background: none;
        border: none;
        border-left: 2px solid rgba(33, 212, 194, 0.5);
        border-radius: 0;
        box-shadow: none;

        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    body.inicio .help-dd.abierto .help-lista {
        display: flex;
        margin: 4px 0 10px 4px;
    }

    body.inicio .help-dd .help-lista a {
        padding: 13px 10px;
        font-size: 15px;
    }
}
