/* ============================================================
   AtomTech - Boton PRODUCTOS con panel desplegable
   ============================================================ */

.atm-prod {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    z-index: 500;
}

/* --- Boton PRODUCTOS (rojo, como el titulo del lateral) --- */
.atm-prod__trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #c00000;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1;
    padding: 11px 16px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.atm-prod__bars { font-size: 20px; line-height: 1; }
.atm-prod__caret { font-size: 20px; line-height: 1; opacity: .9; transition: transform .18s ease; }
.atm-prod:hover .atm-prod__caret,
.atm-prod:focus-within .atm-prod__caret { transform: rotate(180deg); }

/* --- Panel desplegable --- */
.atm-prod__panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border-top: 3px solid #c00000;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    padding: 18px 22px;
    width: max-content;
    max-width: 92vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    z-index: 999;
}
.atm-prod:hover .atm-prod__panel,
.atm-prod:focus-within .atm-prod__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
}

/* --- Columnas por grupo --- */
.atm-prod__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 30px;
}
.atm-prod__col { min-width: 175px; }

.atm-prod__group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    padding-bottom: 6px;
    color: #c00000;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 1px solid #eee;
}
.atm-prod__gicon { font-size: 18px; }

.atm-prod__items { list-style: none; margin: 0; padding: 0; }
.atm-prod__items a {
    display: block;
    padding: 6px 6px;
    color: #555;
    font-size: 0.84rem;
    line-height: 1.3;
    text-decoration: none;
    border-radius: 3px;
    transition: background .12s ease, color .12s ease;
}
.atm-prod__items a:hover {
    background: #f6efef;
    color: #c00000;
    text-decoration: none;
}

/* Mobile: lo ocultamos; el menu lateral sigue cubriendo el celular */
@media (max-width: 767px) {
    .atm-prod { display: none; }
}
