/* =========================================
   COMPONENTES REUTILIZABLES
   ========================================= */

/* Botón CTA Universal */
.btn-cta {
    display: inline-block;
    background: #202322;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-cta:hover {
    transform: scale(1.02);
    background: #000;
}

/* Badge de Estado Animado (Estilo Refinado) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0; /* Color sutil y neutro */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: rgba(32, 35, 34, 0.85); /* Negro no tan sólido */
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none; /* Sin bordes como solicitado */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: default;
    user-select: none;
}

.status-badge .badge-icon {
    font-size: 14px;
    display: inline-block;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.status-badge.badge-fade-out {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
}

.status-badge.badge-fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Loaders y Estados Vacíos */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    width: 100%;
}

.animate-spin {
    animation: spin 1s linear infinite;
    color: #202322;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-msg {
    text-align: center;
    width: 100%;
    padding: 40px;
    color: var(--text-muted);
    display: none;
}

/* Wishlist / Favoritos Base */
.wishlist-wrapper {
    max-width: 900px;
    margin: 0 auto;
    min-height: 50vh;
}

.empty-state-box {
    background: #fff;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed #eee;
    margin-top: 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
/* =========================================
   FOOTER GLOBAL
   ========================================= */
.app-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-muted);
    padding-bottom: 40px;
    width: 100%;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    border: none;
    padding: 10px;
}

.social-btn:hover {
    transform: scale(1.2);
    color: #e91e8c !important; /* Brand pink on hover */
}

.social-btn svg {
    width: 20px;
    height: 20px;
    transition: color 0.3s;
}

/* Specific hover colors for extra premium touch */
.social-btn[aria-label="Instagram"]:hover { color: #E1306C !important; }
.social-btn[aria-label="TikTok"]:hover { color: #000 !important; }
.social-btn[aria-label="WhatsApp"]:hover { color: #25D366 !important; }

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-link:hover {
    text-decoration: underline;
    color: #000;
}

.footer-copy {
    font-size: 11px;
    opacity: 0.95; /* Increased opacity for better contrast (Passes AA) */
}

/* Toasts / Notificaciones (Unificados con el diseño) */
.rr-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(228, 200, 196, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: none;
    animation: toastPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastPopIn {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
