/* HC Avísame — botón, ventana y "Mis avisos". Colores del tema vía variables de hctheme (con valores por defecto). */
.hcav-box { margin: 12px 0; width: 100%; flex: 1 1 100%; min-width: 0; }
.hcav-box[hidden], .hcav-modal[hidden], .hcav-done[hidden], .hcav-error[hidden], .hcav-variant-note[hidden], .hcav-form[hidden] { display: none !important; }
.hcav-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    min-height: 50px; padding: 12px 20px; border: 0; border-radius: var(--hc-radius-btn, 8px);
    background: var(--hc-buy-bg, var(--hc-primary, #1b5fd9)); color: #fff;
    font-size: 15px; font-weight: 700; letter-spacing: .3px; cursor: pointer; transition: filter .15s, transform .15s;
}
.hcav-btn:hover { filter: brightness(1.08); }
.hcav-btn:active { transform: scale(.98); }
.hcav-btn .fa { font-size: 17px; animation: hcav-ring 2.4s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes hcav-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .hcav-btn .fa { animation: none; } }
.hcav-counter { margin-top: 8px; font-size: 13px; color: #b4521c; font-weight: 600; text-align: center; }
.hcav-variant-note { margin-bottom: 8px; font-size: 13px; color: #555; }

/* Variantes agotadas */
.hcav-oos { opacity: .6; position: relative; }
.hcav-oos-tag {
    display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 10px;
    background: #f2f2f2; color: #a33; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; vertical-align: middle;
}

/* Ventana */
html.hcav-lock, html.hcav-lock body { overflow: hidden; }
.hcav-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hcav-modal-bg { position: absolute; inset: 0; background: rgba(15, 20, 25, .55); }
.hcav-modal-box {
    position: relative; width: 100%; max-width: 420px; max-height: 100%; overflow: auto; background: #fff; color: #333;
    border-radius: 14px; padding: 28px 24px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); text-align: center;
    animation: hcav-in .2s ease-out;
}
@keyframes hcav-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hcav-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; color: #999; cursor: pointer; }
.hcav-modal-icon {
    width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--hc-primary, #1b5fd9); color: #fff; font-size: 24px;
}
.hcav-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #222; }
.hcav-product { margin: 0 0 12px; font-size: 14px; color: #555; }
.hcav-intro { margin: 0 0 14px; font-size: 13px; color: #666; }
.hcav-input {
    width: 100%; height: 46px; padding: 0 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px; box-sizing: border-box;
}
.hcav-input:focus { outline: none; border-color: var(--hc-primary, #1b5fd9); box-shadow: 0 0 0 3px rgba(27, 95, 217, .15); }
.hcav-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.hcav-consent { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 12px; font-weight: normal; color: #555; text-align: left; cursor: pointer; }
.hcav-consent input { margin-top: 2px; flex: 0 0 auto; }
.hcav-error { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: #fdecea; color: #a12622; font-size: 13px; }
.hcav-submit {
    width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--hc-buy-bg, var(--hc-primary, #1b5fd9)); color: #fff; font-size: 15px; font-weight: 700;
}
.hcav-submit:disabled { opacity: .6; cursor: wait; }
.hcav-done { padding: 8px 0 4px; }
.hcav-done .fa { font-size: 44px; color: #1f9d55; }
.hcav-done p { margin: 10px 0 0; font-size: 15px; color: #333; }

/* Mis avisos */
.hcav-acct h1 { margin-top: 0; }
.hcav-acct-intro { color: #666; }
.hcav-acct-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.hcav-acct-item {
    display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--hc-border, #e5e5e5);
    border-radius: var(--hc-radius-card, 10px); background: var(--hc-surface, #fff);
}
.hcav-acct-img img { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; display: block; }
.hcav-acct-info { flex: 1 1 auto; min-width: 0; }
.hcav-acct-name { font-weight: 700; color: inherit; }
.hcav-acct-variant { font-size: 13px; color: #666; }
.hcav-acct-meta { margin-top: 4px; font-size: 12px; color: #888; }
.hcav-acct-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #fff4e0; color: #9a5b00; }
.hcav-acct-item--notified .hcav-acct-badge { background: #e8f6ee; color: #137a43; }
.hcav-acct-item--converted .hcav-acct-badge { background: #eef2ff; color: #3b4cc0; }
.hcav-acct-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.hcav-acct-actions form { margin: 0; }
.hcav-acct-empty { padding: 24px; text-align: center; color: #777; border: 1px dashed #ddd; border-radius: 10px; }
@media (max-width: 575px) {
    .hcav-acct-item { flex-wrap: wrap; }
    .hcav-acct-actions { flex-direction: row; width: 100%; justify-content: flex-end; }
}
