/* ── HAC Inactivity Popup ────────────────────────────── */

.hac-inact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .50);
    z-index: 999998; /* un nivel por debajo del popup del carrito */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hac-inact-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 44px 36px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
    animation: hacInactSlide .38s cubic-bezier(.22, .6, .36, 1) both;
    overflow: hidden;
}

/* Banda decorativa superior con gradiente Hubin */
.hac-inact-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e31a80, #74257e, #1b97d5, #ee8410);
}

@keyframes hacInactSlide {
    from { transform: translateY(28px) scale(.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.hac-inact-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
    transition: background .15s, color .15s;
}
.hac-inact-close:hover {
    background: #f4f4f4;
    color: #444;
}

.hac-inact-icon {
    font-size: 52px;
    margin-bottom: 12px;
    display: block;
    animation: hacIconBounce 1.8s ease-in-out infinite;
}

@keyframes hacIconBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.hac-inact-title {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.hac-inact-desc {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Botones */
.hac-inact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.hac-inact-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .15s;
    line-height: 1.3;
}
.hac-inact-btn:hover {
    opacity: .87;
    transform: translateY(-1px);
    text-decoration: none;
}

.hac-inact-btn--primary {
    background: linear-gradient(135deg, #e31a80, #74257e);
    color: #fff !important;
}

.hac-inact-btn--whatsapp {
    background: #25d366;
    color: #fff !important;
}

.hac-inact-btn--email {
    background: #f0f0f0;
    color: #333 !important;
}
.hac-inact-btn--email:hover { background: #e4e4e4; }

/* Barra de contacto */
.hac-inact-contact-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 10px;
}
.hac-inact-contact-bar span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Botón "Seguir navegando" */
.hac-inact-link {
    background: none;
    border: none;
    color: #bbb;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    transition: color .15s;
}
.hac-inact-link:hover { color: #666; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
    .hac-inact-box {
        padding: 36px 20px 24px;
        border-radius: 16px;
    }
    .hac-inact-title { font-size: 20px; }
    .hac-inact-contact-bar { flex-direction: column; align-items: center; gap: 6px; }
}
