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

.hac-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hac-popup-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: hacSlideUp .35s cubic-bezier(.22,.6,.36,1) both;
}

@keyframes hacSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.hac-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color .2s;
}
.hac-popup-close:hover { color: #333; }

.hac-popup-emoji {
    font-size: 48px;
    margin-bottom: 8px;
    display: block;
}

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

.hac-popup-desc {
    font-size: 15px;
    color: #555;
    margin: 0 0 24px;
    line-height: 1.5;
}

.hac-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .15s;
}
.hac-btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

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

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

.hac-btn-link {
    background: none;
    color: #aaa;
    font-size: 13px;
    font-weight: 400;
    padding: 8px;
    width: auto;
    margin: 4px auto 0;
    display: inline-block;
    text-decoration: underline;
    cursor: pointer;
    border: none;
}
.hac-btn-link:hover { color: #333; }

/* ── HAC Idle Popup (inactividad) ────────────────── */

.hac-idle-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 0, 30, .60);
    z-index: 999998;
    display: flex;
    align-items: flex-end;        /* sale desde abajo */
    justify-content: center;
    padding: 0 16px 32px;
}

@media (min-width: 600px) {
    .hac-idle-overlay {
        align-items: center;
        padding: 16px;
    }
}

.hac-idle-box {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 16px 16px;
    padding: 0 0 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(116,37,126,.25);
    animation: hacIdleUp .4s cubic-bezier(.22,.6,.36,1) both;
    overflow: hidden;
}

@media (min-width: 600px) {
    .hac-idle-box { border-radius: 20px; }
}

@keyframes hacIdleUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.hac-idle-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(255,255,255,.25);
    border: none;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
    transition: background .2s;
    z-index: 2;
}
.hac-idle-close:hover { background: rgba(255,255,255,.4); }

/* Header con gradiente Hubin */
.hac-idle-header {
    background: linear-gradient(135deg, #74257e 0%, #e31a80 100%);
    padding: 18px 24px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
}

.hac-idle-icon {
    font-size: 26px;
    line-height: 1;
}

.hac-idle-brand {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    opacity: .95;
}

/* Contenido */
.hac-idle-title {
    margin: 22px 24px 8px;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.25;
}

.hac-idle-desc {
    margin: 0 28px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Botones de contacto */
.hac-idle-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 24px;
    margin-bottom: 18px;
}

.hac-idle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}
.hac-idle-btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

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

.hac-idle-btn--email {
    background: #f3f3f3;
    color: #333 !important;
    border: 1px solid #e0e0e0;
}

/* Separador */
.hac-idle-or {
    position: relative;
    text-align: center;
    margin: 4px 24px 14px;
}
.hac-idle-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: #ececec;
}
.hac-idle-or span {
    position: relative;
    background: #fff;
    padding: 0 10px;
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* CTA principal */
.hac-idle-cta {
    display: block;
    margin: 0 24px 12px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #e31a80, #74257e);
    color: #fff !important;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.hac-idle-cta:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

/* Enlace de descarte */
.hac-idle-dismiss-link {
    background: none;
    border: none;
    color: #bbb;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    transition: color .2s;
}
.hac-idle-dismiss-link:hover { color: #888; }
